@d19n/youfibre-odin-sdk 1.0.28 → 1.0.29
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/package.json +2 -2
- package/src/api-sdk-v2/AccountApi.ts +19 -19
- package/src/api-sdk-v2/ActivityApi.ts +19 -19
- package/src/api-sdk-v2/ActivityLogApi.ts +19 -19
- package/src/api-sdk-v2/AddressApi.ts +19 -19
- package/src/api-sdk-v2/AppointmentApi.ts +19 -19
- package/src/api-sdk-v2/AppointmentCalendarApi.ts +19 -19
- package/src/api-sdk-v2/BillingAdjustmentApi.ts +19 -19
- package/src/api-sdk-v2/BillingRequestApi.ts +19 -19
- package/src/api-sdk-v2/BlockageReportA55Api.ts +19 -19
- package/src/api-sdk-v2/CalendarApi.ts +19 -19
- package/src/api-sdk-v2/CallApi.ts +19 -19
- package/src/api-sdk-v2/CaseApi.ts +19 -19
- package/src/api-sdk-v2/CaseQueueListViewApi.ts +19 -19
- package/src/api-sdk-v2/ChangeReasonApi.ts +19 -19
- package/src/api-sdk-v2/ChurnRequestApi.ts +19 -19
- package/src/api-sdk-v2/CommissionApi.ts +19 -19
- package/src/api-sdk-v2/ConsumptionRateApi.ts +19 -19
- package/src/api-sdk-v2/ConsumptionScheduleApi.ts +19 -19
- package/src/api-sdk-v2/ContactApi.ts +97 -97
- package/src/api-sdk-v2/ContactIdentityApi.ts +19 -19
- package/src/api-sdk-v2/CreditNoteApi.ts +19 -19
- package/src/api-sdk-v2/CrmDatasetApi.ts +19 -19
- package/src/api-sdk-v2/CustomerDeviceAtaApi.ts +19 -19
- package/src/api-sdk-v2/CustomerDeviceOntApi.ts +19 -19
- package/src/api-sdk-v2/CustomerDeviceOntRemovalApi.ts +19 -19
- package/src/api-sdk-v2/CustomerDeviceRouterApi.ts +19 -19
- package/src/api-sdk-v2/CustomerPhonePortingApi.ts +19 -19
- package/src/api-sdk-v2/DeactivationApprovalApi.ts +19 -19
- package/src/api-sdk-v2/DiscountApi.ts +19 -19
- package/src/api-sdk-v2/EngineerApi.ts +19 -19
- package/src/api-sdk-v2/ExchangeApi.ts +19 -19
- package/src/api-sdk-v2/FileApi.ts +19 -19
- package/src/api-sdk-v2/FingerprintApi.ts +19 -19
- package/src/api-sdk-v2/InternalInstallAuditApi.ts +19 -19
- package/src/api-sdk-v2/InvoiceApi.ts +19 -19
- package/src/api-sdk-v2/InvoiceItemApi.ts +19 -19
- package/src/api-sdk-v2/LeadApi.ts +19 -19
- package/src/api-sdk-v2/LinearIssueApi.ts +19 -19
- package/src/api-sdk-v2/MilestoneApi.ts +19 -19
- package/src/api-sdk-v2/NetomniaFtth1StageInstallAuditApi.ts +19 -19
- package/src/api-sdk-v2/NetomniaFtthServiceVisitSheetApi.ts +19 -19
- package/src/api-sdk-v2/NetomniaInstallVerificationApi.ts +19 -19
- package/src/api-sdk-v2/NetworkDeviceApi.ts +19 -19
- package/src/api-sdk-v2/Noinstall3AuditOfInstallationSheetApi.ts +19 -19
- package/src/api-sdk-v2/NoteApi.ts +19 -19
- package/src/api-sdk-v2/OfferApi.ts +19 -19
- package/src/api-sdk-v2/OhAuditOfInstallationApi.ts +19 -19
- package/src/api-sdk-v2/OhExternalAuditApi.ts +19 -19
- package/src/api-sdk-v2/OhInProgressAuditApi.ts +19 -19
- package/src/api-sdk-v2/OhInstallationAuditApi.ts +19 -19
- package/src/api-sdk-v2/OneTouchSwitchApi.ts +19 -19
- package/src/api-sdk-v2/OntReplacementApprovalApi.ts +19 -19
- package/src/api-sdk-v2/OrderApi.ts +19 -19
- package/src/api-sdk-v2/OrderCheckApi.ts +19 -19
- package/src/api-sdk-v2/OrderItemApi.ts +19 -19
- package/src/api-sdk-v2/OrderRemediationTaskApi.ts +19 -19
- package/src/api-sdk-v2/OrganizationApi.ts +19 -19
- package/src/api-sdk-v2/OutageApi.ts +19 -19
- package/src/api-sdk-v2/OverlayRealA55Api.ts +19 -19
- package/src/api-sdk-v2/PICRequestApi.ts +19 -19
- package/src/api-sdk-v2/PaymentMethodApi.ts +19 -19
- package/src/api-sdk-v2/PaymentMethodRefundApi.ts +19 -19
- package/src/api-sdk-v2/PermissionToFailApi.ts +19 -19
- package/src/api-sdk-v2/PhoneNumberApi.ts +19 -19
- package/src/api-sdk-v2/Premise2Api.ts +19 -19
- package/src/api-sdk-v2/PremiseApi.ts +19 -19
- package/src/api-sdk-v2/PriceBookApi.ts +19 -19
- package/src/api-sdk-v2/ProductApi.ts +19 -19
- package/src/api-sdk-v2/ProductComponentApi.ts +19 -19
- package/src/api-sdk-v2/ProgramApi.ts +19 -19
- package/src/api-sdk-v2/ProjectApi.ts +19 -19
- package/src/api-sdk-v2/QueueApi.ts +19 -19
- package/src/api-sdk-v2/QueueChangeApi.ts +19 -19
- package/src/api-sdk-v2/RegionApi.ts +19 -19
- package/src/api-sdk-v2/RemediationRequiredReasonApi.ts +19 -19
- package/src/api-sdk-v2/RestrictionApi.ts +19 -19
- package/src/api-sdk-v2/ReturnOrderApi.ts +19 -19
- package/src/api-sdk-v2/SalesLeaderBoardApi.ts +19 -19
- package/src/api-sdk-v2/SalesTerritoryApi.ts +19 -19
- package/src/api-sdk-v2/ScheduleSlotApi.ts +19 -19
- package/src/api-sdk-v2/ServiceApi.ts +19 -19
- package/src/api-sdk-v2/ServiceAppointmentApi.ts +19 -19
- package/src/api-sdk-v2/ServiceAppointmentConfigApi.ts +19 -19
- package/src/api-sdk-v2/ServiceVisitAuditApi.ts +19 -19
- package/src/api-sdk-v2/SmsMessageApi.ts +19 -19
- package/src/api-sdk-v2/SplitOrderApi.ts +19 -19
- package/src/api-sdk-v2/SubtaskApi.ts +19 -19
- package/src/api-sdk-v2/SupportTaskApi.ts +19 -19
- package/src/api-sdk-v2/SweeperMaintenanceAuditApi.ts +19 -19
- package/src/api-sdk-v2/TaskApi.ts +19 -19
- package/src/api-sdk-v2/TeamApi.ts +19 -19
- package/src/api-sdk-v2/TelesalesDashboardApi.ts +19 -19
- package/src/api-sdk-v2/TimeOffApi.ts +19 -19
- package/src/api-sdk-v2/TimeSlotApi.ts +19 -19
- package/src/api-sdk-v2/TransactionApi.ts +19 -19
- package/src/api-sdk-v2/UgAuditOfInstallationApi.ts +19 -19
- package/src/api-sdk-v2/UgExternalAuditApi.ts +19 -19
- package/src/api-sdk-v2/UgInProgressAuditApi.ts +19 -19
- package/src/api-sdk-v2/UgInstallationAuditApi.ts +19 -19
- package/src/api-sdk-v2/UserApi.ts +19 -19
- package/src/api-sdk-v2/VendorApi.ts +19 -19
- package/src/api-sdk-v2/VoiceConfigurationApi.ts +19 -19
- package/src/api-sdk-v2/WorkOrderApi.ts +72 -72
- package/src/api-sdk-v2/WorkOrderRemediationViewApi.ts +19 -19
- package/src/api-sdk-v2/YfEquipmentCollectionApi.ts +19 -19
- package/src/api-sdk-v2/YfFieldServiceVisitApi.ts +19 -19
- package/src/api-sdk-v2/YfToolAuditApi.ts +19 -19
- package/src/api-sdk-v2/YfVanAuditApi.ts +19 -19
- package/src/db-sdk-v2/LeadDb.ts +21 -21
- package/src/entities-v2/CreditNote.ts +4 -4
- package/src/entities-v2/DefaultContact.ts +73 -73
- package/src/entities-v2/DefaultLead.ts +53 -51
- package/src/entities-v2/OutcomeFormServiceVisitAudit.ts +37 -37
- package/src/entities-v2/OutcomeFormYfFieldServiceVisit.ts +10 -10
- package/src/entities-v2/OverlayRealA55.ts +40 -40
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@d19n/youfibre-odin-sdk",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.29",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "@d19n",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"typescript": "^5.4.5"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@d19n/odin-sdk-generator": "^1.0.
|
|
14
|
+
"@d19n/odin-sdk-generator": "^1.0.68",
|
|
15
15
|
"@d19n/odin-types": "^1.0.10"
|
|
16
16
|
},
|
|
17
17
|
"scripts": {
|
|
@@ -81,22 +81,22 @@
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
// Use this function when you want to search and handle all pagination on your own
|
|
84
|
-
public async
|
|
84
|
+
public async search(params: Partial<OdinSearchV2>) {
|
|
85
85
|
return await this._searchRecords(this.moduleName, this.entityName, params);
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
-
// Use this function to re-index records in elastic search
|
|
89
|
-
public async reIndexRecords(body: { id: string, schemaId: string }[]) {
|
|
90
|
-
return await this._reIndexRecords(body);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
88
|
// Use this function when you want paginating through the results to be handled
|
|
94
|
-
public async
|
|
89
|
+
public async searchAndPaginate(params: Partial<OdinSearchV2>) {
|
|
95
90
|
return await this._searchAllRecordsAndPaginate(this.moduleName, this.entityName, params);
|
|
96
91
|
}
|
|
92
|
+
|
|
93
|
+
// Use this function to re-index records in elastic search
|
|
94
|
+
public async reIndex(body: { id: string, schemaId: string }[]) {
|
|
95
|
+
return await this._reIndexRecords(body);
|
|
96
|
+
}
|
|
97
97
|
|
|
98
98
|
// Use this function when you want to return a single record
|
|
99
|
-
public async
|
|
99
|
+
public async get(accountId: string) {
|
|
100
100
|
const res = await this._getByPrimaryKey(
|
|
101
101
|
this.moduleName,
|
|
102
102
|
this.entityName,
|
|
@@ -107,18 +107,8 @@
|
|
|
107
107
|
return res;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
-
// Use this function when you want to return the versions for a single record
|
|
111
|
-
public async getVersions() {
|
|
112
|
-
return await this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
// Use this function when you want to return the change history for a single record
|
|
116
|
-
public async getRevisionTimeline() {
|
|
117
|
-
return await this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
110
|
// Use this function when you want to return many records by primaryKeys
|
|
121
|
-
public async
|
|
111
|
+
public async getMany(accountIds: string[]) {
|
|
122
112
|
return await this._getManyByPrimaryKey(
|
|
123
113
|
this.moduleName,
|
|
124
114
|
this.entityName,
|
|
@@ -153,6 +143,16 @@
|
|
|
153
143
|
accountIds
|
|
154
144
|
);
|
|
155
145
|
}
|
|
146
|
+
|
|
147
|
+
// Use this function when you want to return the versions for a single record
|
|
148
|
+
public async getVersions() {
|
|
149
|
+
return await this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
// Use this function when you want to return the change history for a single record
|
|
153
|
+
public async getRevisionTimeline() {
|
|
154
|
+
return await this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
155
|
+
}
|
|
156
156
|
|
|
157
157
|
|
|
158
158
|
}
|
|
@@ -87,22 +87,22 @@
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
// Use this function when you want to search and handle all pagination on your own
|
|
90
|
-
public async
|
|
90
|
+
public async search(params: Partial<OdinSearchV2>) {
|
|
91
91
|
return await this._searchRecords(this.moduleName, this.entityName, params);
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
// Use this function to re-index records in elastic search
|
|
95
|
-
public async reIndexRecords(body: { id: string, schemaId: string }[]) {
|
|
96
|
-
return await this._reIndexRecords(body);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
94
|
// Use this function when you want paginating through the results to be handled
|
|
100
|
-
public async
|
|
95
|
+
public async searchAndPaginate(params: Partial<OdinSearchV2>) {
|
|
101
96
|
return await this._searchAllRecordsAndPaginate(this.moduleName, this.entityName, params);
|
|
102
97
|
}
|
|
98
|
+
|
|
99
|
+
// Use this function to re-index records in elastic search
|
|
100
|
+
public async reIndex(body: { id: string, schemaId: string }[]) {
|
|
101
|
+
return await this._reIndexRecords(body);
|
|
102
|
+
}
|
|
103
103
|
|
|
104
104
|
// Use this function when you want to return a single record
|
|
105
|
-
public async
|
|
105
|
+
public async get(activityId: string) {
|
|
106
106
|
const res = await this._getByPrimaryKey(
|
|
107
107
|
this.moduleName,
|
|
108
108
|
this.entityName,
|
|
@@ -113,18 +113,8 @@
|
|
|
113
113
|
return res;
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
-
// Use this function when you want to return the versions for a single record
|
|
117
|
-
public async getVersions() {
|
|
118
|
-
return await this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
// Use this function when you want to return the change history for a single record
|
|
122
|
-
public async getRevisionTimeline() {
|
|
123
|
-
return await this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
116
|
// Use this function when you want to return many records by primaryKeys
|
|
127
|
-
public async
|
|
117
|
+
public async getMany(activityIds: string[]) {
|
|
128
118
|
return await this._getManyByPrimaryKey(
|
|
129
119
|
this.moduleName,
|
|
130
120
|
this.entityName,
|
|
@@ -159,6 +149,16 @@
|
|
|
159
149
|
activityIds
|
|
160
150
|
);
|
|
161
151
|
}
|
|
152
|
+
|
|
153
|
+
// Use this function when you want to return the versions for a single record
|
|
154
|
+
public async getVersions() {
|
|
155
|
+
return await this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
// Use this function when you want to return the change history for a single record
|
|
159
|
+
public async getRevisionTimeline() {
|
|
160
|
+
return await this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
161
|
+
}
|
|
162
162
|
|
|
163
163
|
|
|
164
164
|
}
|
|
@@ -39,22 +39,22 @@
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
// Use this function when you want to search and handle all pagination on your own
|
|
42
|
-
public async
|
|
42
|
+
public async search(params: Partial<OdinSearchV2>) {
|
|
43
43
|
return await this._searchRecords(this.moduleName, this.entityName, params);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
// Use this function to re-index records in elastic search
|
|
47
|
-
public async reIndexRecords(body: { id: string, schemaId: string }[]) {
|
|
48
|
-
return await this._reIndexRecords(body);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
46
|
// Use this function when you want paginating through the results to be handled
|
|
52
|
-
public async
|
|
47
|
+
public async searchAndPaginate(params: Partial<OdinSearchV2>) {
|
|
53
48
|
return await this._searchAllRecordsAndPaginate(this.moduleName, this.entityName, params);
|
|
54
49
|
}
|
|
50
|
+
|
|
51
|
+
// Use this function to re-index records in elastic search
|
|
52
|
+
public async reIndex(body: { id: string, schemaId: string }[]) {
|
|
53
|
+
return await this._reIndexRecords(body);
|
|
54
|
+
}
|
|
55
55
|
|
|
56
56
|
// Use this function when you want to return a single record
|
|
57
|
-
public async
|
|
57
|
+
public async get(activityLogId: string) {
|
|
58
58
|
const res = await this._getByPrimaryKey(
|
|
59
59
|
this.moduleName,
|
|
60
60
|
this.entityName,
|
|
@@ -65,18 +65,8 @@
|
|
|
65
65
|
return res;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
// Use this function when you want to return the versions for a single record
|
|
69
|
-
public async getVersions() {
|
|
70
|
-
return await this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
// Use this function when you want to return the change history for a single record
|
|
74
|
-
public async getRevisionTimeline() {
|
|
75
|
-
return await this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
68
|
// Use this function when you want to return many records by primaryKeys
|
|
79
|
-
public async
|
|
69
|
+
public async getMany(activityLogIds: string[]) {
|
|
80
70
|
return await this._getManyByPrimaryKey(
|
|
81
71
|
this.moduleName,
|
|
82
72
|
this.entityName,
|
|
@@ -111,6 +101,16 @@
|
|
|
111
101
|
activityLogIds
|
|
112
102
|
);
|
|
113
103
|
}
|
|
104
|
+
|
|
105
|
+
// Use this function when you want to return the versions for a single record
|
|
106
|
+
public async getVersions() {
|
|
107
|
+
return await this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// Use this function when you want to return the change history for a single record
|
|
111
|
+
public async getRevisionTimeline() {
|
|
112
|
+
return await this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
113
|
+
}
|
|
114
114
|
|
|
115
115
|
|
|
116
116
|
}
|
|
@@ -129,22 +129,22 @@
|
|
|
129
129
|
}
|
|
130
130
|
|
|
131
131
|
// Use this function when you want to search and handle all pagination on your own
|
|
132
|
-
public async
|
|
132
|
+
public async search(params: Partial<OdinSearchV2>) {
|
|
133
133
|
return await this._searchRecords(this.moduleName, this.entityName, params);
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
// Use this function to re-index records in elastic search
|
|
137
|
-
public async reIndexRecords(body: { id: string, schemaId: string }[]) {
|
|
138
|
-
return await this._reIndexRecords(body);
|
|
139
|
-
}
|
|
140
|
-
|
|
141
136
|
// Use this function when you want paginating through the results to be handled
|
|
142
|
-
public async
|
|
137
|
+
public async searchAndPaginate(params: Partial<OdinSearchV2>) {
|
|
143
138
|
return await this._searchAllRecordsAndPaginate(this.moduleName, this.entityName, params);
|
|
144
139
|
}
|
|
140
|
+
|
|
141
|
+
// Use this function to re-index records in elastic search
|
|
142
|
+
public async reIndex(body: { id: string, schemaId: string }[]) {
|
|
143
|
+
return await this._reIndexRecords(body);
|
|
144
|
+
}
|
|
145
145
|
|
|
146
146
|
// Use this function when you want to return a single record
|
|
147
|
-
public async
|
|
147
|
+
public async get(addressId: string) {
|
|
148
148
|
const res = await this._getByPrimaryKey(
|
|
149
149
|
this.moduleName,
|
|
150
150
|
this.entityName,
|
|
@@ -155,18 +155,8 @@
|
|
|
155
155
|
return res;
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
-
// Use this function when you want to return the versions for a single record
|
|
159
|
-
public async getVersions() {
|
|
160
|
-
return await this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
// Use this function when you want to return the change history for a single record
|
|
164
|
-
public async getRevisionTimeline() {
|
|
165
|
-
return await this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
166
|
-
}
|
|
167
|
-
|
|
168
158
|
// Use this function when you want to return many records by primaryKeys
|
|
169
|
-
public async
|
|
159
|
+
public async getMany(addressIds: string[]) {
|
|
170
160
|
return await this._getManyByPrimaryKey(
|
|
171
161
|
this.moduleName,
|
|
172
162
|
this.entityName,
|
|
@@ -201,6 +191,16 @@
|
|
|
201
191
|
addressIds
|
|
202
192
|
);
|
|
203
193
|
}
|
|
194
|
+
|
|
195
|
+
// Use this function when you want to return the versions for a single record
|
|
196
|
+
public async getVersions() {
|
|
197
|
+
return await this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
// Use this function when you want to return the change history for a single record
|
|
201
|
+
public async getRevisionTimeline() {
|
|
202
|
+
return await this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
203
|
+
}
|
|
204
204
|
|
|
205
205
|
|
|
206
206
|
}
|
|
@@ -63,22 +63,22 @@
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
// Use this function when you want to search and handle all pagination on your own
|
|
66
|
-
public async
|
|
66
|
+
public async search(params: Partial<OdinSearchV2>) {
|
|
67
67
|
return await this._searchRecords(this.moduleName, this.entityName, params);
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
// Use this function to re-index records in elastic search
|
|
71
|
-
public async reIndexRecords(body: { id: string, schemaId: string }[]) {
|
|
72
|
-
return await this._reIndexRecords(body);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
70
|
// Use this function when you want paginating through the results to be handled
|
|
76
|
-
public async
|
|
71
|
+
public async searchAndPaginate(params: Partial<OdinSearchV2>) {
|
|
77
72
|
return await this._searchAllRecordsAndPaginate(this.moduleName, this.entityName, params);
|
|
78
73
|
}
|
|
74
|
+
|
|
75
|
+
// Use this function to re-index records in elastic search
|
|
76
|
+
public async reIndex(body: { id: string, schemaId: string }[]) {
|
|
77
|
+
return await this._reIndexRecords(body);
|
|
78
|
+
}
|
|
79
79
|
|
|
80
80
|
// Use this function when you want to return a single record
|
|
81
|
-
public async
|
|
81
|
+
public async get(appointmentId: string) {
|
|
82
82
|
const res = await this._getByPrimaryKey(
|
|
83
83
|
this.moduleName,
|
|
84
84
|
this.entityName,
|
|
@@ -89,18 +89,8 @@
|
|
|
89
89
|
return res;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
// Use this function when you want to return the versions for a single record
|
|
93
|
-
public async getVersions() {
|
|
94
|
-
return await this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
// Use this function when you want to return the change history for a single record
|
|
98
|
-
public async getRevisionTimeline() {
|
|
99
|
-
return await this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
92
|
// Use this function when you want to return many records by primaryKeys
|
|
103
|
-
public async
|
|
93
|
+
public async getMany(appointmentIds: string[]) {
|
|
104
94
|
return await this._getManyByPrimaryKey(
|
|
105
95
|
this.moduleName,
|
|
106
96
|
this.entityName,
|
|
@@ -135,6 +125,16 @@
|
|
|
135
125
|
appointmentIds
|
|
136
126
|
);
|
|
137
127
|
}
|
|
128
|
+
|
|
129
|
+
// Use this function when you want to return the versions for a single record
|
|
130
|
+
public async getVersions() {
|
|
131
|
+
return await this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
// Use this function when you want to return the change history for a single record
|
|
135
|
+
public async getRevisionTimeline() {
|
|
136
|
+
return await this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
137
|
+
}
|
|
138
138
|
|
|
139
139
|
|
|
140
140
|
}
|
|
@@ -27,22 +27,22 @@
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
// Use this function when you want to search and handle all pagination on your own
|
|
30
|
-
public async
|
|
30
|
+
public async search(params: Partial<OdinSearchV2>) {
|
|
31
31
|
return await this._searchRecords(this.moduleName, this.entityName, params);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
// Use this function to re-index records in elastic search
|
|
35
|
-
public async reIndexRecords(body: { id: string, schemaId: string }[]) {
|
|
36
|
-
return await this._reIndexRecords(body);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
34
|
// Use this function when you want paginating through the results to be handled
|
|
40
|
-
public async
|
|
35
|
+
public async searchAndPaginate(params: Partial<OdinSearchV2>) {
|
|
41
36
|
return await this._searchAllRecordsAndPaginate(this.moduleName, this.entityName, params);
|
|
42
37
|
}
|
|
38
|
+
|
|
39
|
+
// Use this function to re-index records in elastic search
|
|
40
|
+
public async reIndex(body: { id: string, schemaId: string }[]) {
|
|
41
|
+
return await this._reIndexRecords(body);
|
|
42
|
+
}
|
|
43
43
|
|
|
44
44
|
// Use this function when you want to return a single record
|
|
45
|
-
public async
|
|
45
|
+
public async get(appointmentCalendarId: string) {
|
|
46
46
|
const res = await this._getByPrimaryKey(
|
|
47
47
|
this.moduleName,
|
|
48
48
|
this.entityName,
|
|
@@ -53,18 +53,8 @@
|
|
|
53
53
|
return res;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
// Use this function when you want to return the versions for a single record
|
|
57
|
-
public async getVersions() {
|
|
58
|
-
return await this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
// Use this function when you want to return the change history for a single record
|
|
62
|
-
public async getRevisionTimeline() {
|
|
63
|
-
return await this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
56
|
// Use this function when you want to return many records by primaryKeys
|
|
67
|
-
public async
|
|
57
|
+
public async getMany(appointmentCalendarIds: string[]) {
|
|
68
58
|
return await this._getManyByPrimaryKey(
|
|
69
59
|
this.moduleName,
|
|
70
60
|
this.entityName,
|
|
@@ -99,6 +89,16 @@
|
|
|
99
89
|
appointmentCalendarIds
|
|
100
90
|
);
|
|
101
91
|
}
|
|
92
|
+
|
|
93
|
+
// Use this function when you want to return the versions for a single record
|
|
94
|
+
public async getVersions() {
|
|
95
|
+
return await this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
// Use this function when you want to return the change history for a single record
|
|
99
|
+
public async getRevisionTimeline() {
|
|
100
|
+
return await this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
101
|
+
}
|
|
102
102
|
|
|
103
103
|
|
|
104
104
|
}
|
|
@@ -51,22 +51,22 @@
|
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
// Use this function when you want to search and handle all pagination on your own
|
|
54
|
-
public async
|
|
54
|
+
public async search(params: Partial<OdinSearchV2>) {
|
|
55
55
|
return await this._searchRecords(this.moduleName, this.entityName, params);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
// Use this function to re-index records in elastic search
|
|
59
|
-
public async reIndexRecords(body: { id: string, schemaId: string }[]) {
|
|
60
|
-
return await this._reIndexRecords(body);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
58
|
// Use this function when you want paginating through the results to be handled
|
|
64
|
-
public async
|
|
59
|
+
public async searchAndPaginate(params: Partial<OdinSearchV2>) {
|
|
65
60
|
return await this._searchAllRecordsAndPaginate(this.moduleName, this.entityName, params);
|
|
66
61
|
}
|
|
62
|
+
|
|
63
|
+
// Use this function to re-index records in elastic search
|
|
64
|
+
public async reIndex(body: { id: string, schemaId: string }[]) {
|
|
65
|
+
return await this._reIndexRecords(body);
|
|
66
|
+
}
|
|
67
67
|
|
|
68
68
|
// Use this function when you want to return a single record
|
|
69
|
-
public async
|
|
69
|
+
public async get(billingAdjustmentId: string) {
|
|
70
70
|
const res = await this._getByPrimaryKey(
|
|
71
71
|
this.moduleName,
|
|
72
72
|
this.entityName,
|
|
@@ -77,18 +77,8 @@
|
|
|
77
77
|
return res;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
// Use this function when you want to return the versions for a single record
|
|
81
|
-
public async getVersions() {
|
|
82
|
-
return await this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
// Use this function when you want to return the change history for a single record
|
|
86
|
-
public async getRevisionTimeline() {
|
|
87
|
-
return await this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
80
|
// Use this function when you want to return many records by primaryKeys
|
|
91
|
-
public async
|
|
81
|
+
public async getMany(billingAdjustmentIds: string[]) {
|
|
92
82
|
return await this._getManyByPrimaryKey(
|
|
93
83
|
this.moduleName,
|
|
94
84
|
this.entityName,
|
|
@@ -123,6 +113,16 @@
|
|
|
123
113
|
billingAdjustmentIds
|
|
124
114
|
);
|
|
125
115
|
}
|
|
116
|
+
|
|
117
|
+
// Use this function when you want to return the versions for a single record
|
|
118
|
+
public async getVersions() {
|
|
119
|
+
return await this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
// Use this function when you want to return the change history for a single record
|
|
123
|
+
public async getRevisionTimeline() {
|
|
124
|
+
return await this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
125
|
+
}
|
|
126
126
|
|
|
127
127
|
|
|
128
128
|
}
|
|
@@ -69,22 +69,22 @@
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
// Use this function when you want to search and handle all pagination on your own
|
|
72
|
-
public async
|
|
72
|
+
public async search(params: Partial<OdinSearchV2>) {
|
|
73
73
|
return await this._searchRecords(this.moduleName, this.entityName, params);
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
// Use this function to re-index records in elastic search
|
|
77
|
-
public async reIndexRecords(body: { id: string, schemaId: string }[]) {
|
|
78
|
-
return await this._reIndexRecords(body);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
76
|
// Use this function when you want paginating through the results to be handled
|
|
82
|
-
public async
|
|
77
|
+
public async searchAndPaginate(params: Partial<OdinSearchV2>) {
|
|
83
78
|
return await this._searchAllRecordsAndPaginate(this.moduleName, this.entityName, params);
|
|
84
79
|
}
|
|
80
|
+
|
|
81
|
+
// Use this function to re-index records in elastic search
|
|
82
|
+
public async reIndex(body: { id: string, schemaId: string }[]) {
|
|
83
|
+
return await this._reIndexRecords(body);
|
|
84
|
+
}
|
|
85
85
|
|
|
86
86
|
// Use this function when you want to return a single record
|
|
87
|
-
public async
|
|
87
|
+
public async get(billingRequestId: string) {
|
|
88
88
|
const res = await this._getByPrimaryKey(
|
|
89
89
|
this.moduleName,
|
|
90
90
|
this.entityName,
|
|
@@ -95,18 +95,8 @@
|
|
|
95
95
|
return res;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
// Use this function when you want to return the versions for a single record
|
|
99
|
-
public async getVersions() {
|
|
100
|
-
return await this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
// Use this function when you want to return the change history for a single record
|
|
104
|
-
public async getRevisionTimeline() {
|
|
105
|
-
return await this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
98
|
// Use this function when you want to return many records by primaryKeys
|
|
109
|
-
public async
|
|
99
|
+
public async getMany(billingRequestIds: string[]) {
|
|
110
100
|
return await this._getManyByPrimaryKey(
|
|
111
101
|
this.moduleName,
|
|
112
102
|
this.entityName,
|
|
@@ -141,6 +131,16 @@
|
|
|
141
131
|
billingRequestIds
|
|
142
132
|
);
|
|
143
133
|
}
|
|
134
|
+
|
|
135
|
+
// Use this function when you want to return the versions for a single record
|
|
136
|
+
public async getVersions() {
|
|
137
|
+
return await this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
// Use this function when you want to return the change history for a single record
|
|
141
|
+
public async getRevisionTimeline() {
|
|
142
|
+
return await this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
143
|
+
}
|
|
144
144
|
|
|
145
145
|
|
|
146
146
|
}
|
|
@@ -45,22 +45,22 @@
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
// Use this function when you want to search and handle all pagination on your own
|
|
48
|
-
public async
|
|
48
|
+
public async search(params: Partial<OdinSearchV2>) {
|
|
49
49
|
return await this._searchRecords(this.moduleName, this.entityName, params);
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
// Use this function to re-index records in elastic search
|
|
53
|
-
public async reIndexRecords(body: { id: string, schemaId: string }[]) {
|
|
54
|
-
return await this._reIndexRecords(body);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
52
|
// Use this function when you want paginating through the results to be handled
|
|
58
|
-
public async
|
|
53
|
+
public async searchAndPaginate(params: Partial<OdinSearchV2>) {
|
|
59
54
|
return await this._searchAllRecordsAndPaginate(this.moduleName, this.entityName, params);
|
|
60
55
|
}
|
|
56
|
+
|
|
57
|
+
// Use this function to re-index records in elastic search
|
|
58
|
+
public async reIndex(body: { id: string, schemaId: string }[]) {
|
|
59
|
+
return await this._reIndexRecords(body);
|
|
60
|
+
}
|
|
61
61
|
|
|
62
62
|
// Use this function when you want to return a single record
|
|
63
|
-
public async
|
|
63
|
+
public async get(blockageReportA55Id: string) {
|
|
64
64
|
const res = await this._getByPrimaryKey(
|
|
65
65
|
this.moduleName,
|
|
66
66
|
this.entityName,
|
|
@@ -71,18 +71,8 @@
|
|
|
71
71
|
return res;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
// Use this function when you want to return the versions for a single record
|
|
75
|
-
public async getVersions() {
|
|
76
|
-
return await this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
// Use this function when you want to return the change history for a single record
|
|
80
|
-
public async getRevisionTimeline() {
|
|
81
|
-
return await this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
74
|
// Use this function when you want to return many records by primaryKeys
|
|
85
|
-
public async
|
|
75
|
+
public async getMany(blockageReportA55Ids: string[]) {
|
|
86
76
|
return await this._getManyByPrimaryKey(
|
|
87
77
|
this.moduleName,
|
|
88
78
|
this.entityName,
|
|
@@ -117,6 +107,16 @@
|
|
|
117
107
|
blockageReportA55Ids
|
|
118
108
|
);
|
|
119
109
|
}
|
|
110
|
+
|
|
111
|
+
// Use this function when you want to return the versions for a single record
|
|
112
|
+
public async getVersions() {
|
|
113
|
+
return await this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
// Use this function when you want to return the change history for a single record
|
|
117
|
+
public async getRevisionTimeline() {
|
|
118
|
+
return await this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id);
|
|
119
|
+
}
|
|
120
120
|
|
|
121
121
|
|
|
122
122
|
}
|