@d19n/youfibre-odin-sdk 2.0.266 → 2.0.270

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.
Files changed (61) hide show
  1. package/README.md +9 -2
  2. package/dist/actions-v2/InvoiceUpdateDto.d.ts +9 -1
  3. package/dist/actions-v2/PauseCallRecordingDto.d.ts +73 -0
  4. package/dist/actions-v2/PauseCallRecordingDto.js +56 -0
  5. package/dist/actions-v2/ResumeCallRecordingDto.d.ts +73 -0
  6. package/dist/actions-v2/ResumeCallRecordingDto.js +56 -0
  7. package/dist/actions-v2/UpdateAdditionalCareDto.d.ts +12 -10
  8. package/dist/actions-v2/UpdateCallS3RecordingUrlsDto.d.ts +80 -0
  9. package/dist/actions-v2/UpdateCallS3RecordingUrlsDto.js +56 -0
  10. package/dist/actions-v2/UpdateCampaignCallExternalIdDto.d.ts +73 -0
  11. package/dist/actions-v2/UpdateCampaignCallExternalIdDto.js +56 -0
  12. package/dist/actions-v2/UpdateCaseFromLinkedCallDto.d.ts +79 -0
  13. package/dist/actions-v2/UpdateCaseFromLinkedCallDto.js +56 -0
  14. package/dist/actions-v2/UpdateContactDto.d.ts +8 -1
  15. package/dist/actions-v2/VisitCreateSalesAppDto.d.ts +67 -0
  16. package/dist/actions-v2/VisitCreateSalesAppDto.js +54 -0
  17. package/dist/api-sdk-v2/AddressApi.d.ts +2 -2
  18. package/dist/api-sdk-v2/AddressApi.js +6 -6
  19. package/dist/api-sdk-v2/ContactApi.d.ts +4 -4
  20. package/dist/api-sdk-v2/ContactApi.js +12 -12
  21. package/dist/api-sdk-v2/FileApi.d.ts +2 -0
  22. package/dist/api-sdk-v2/FileApi.js +6 -0
  23. package/dist/api-sdk-v2/WorkOrderApi.d.ts +2 -0
  24. package/dist/api-sdk-v2/WorkOrderApi.js +6 -0
  25. package/dist/api-sdk-v2/YfWifiSurveyApi.d.ts +50 -0
  26. package/dist/api-sdk-v2/YfWifiSurveyApi.js +161 -0
  27. package/dist/db-sdk-v2/AddressDb.d.ts +2 -2
  28. package/dist/db-sdk-v2/AddressDb.js +6 -6
  29. package/dist/db-sdk-v2/ContactDb.d.ts +4 -4
  30. package/dist/db-sdk-v2/ContactDb.js +12 -12
  31. package/dist/db-sdk-v2/FileDb.d.ts +2 -0
  32. package/dist/db-sdk-v2/FileDb.js +6 -0
  33. package/dist/db-sdk-v2/WorkOrderDb.d.ts +2 -0
  34. package/dist/db-sdk-v2/WorkOrderDb.js +6 -0
  35. package/dist/db-sdk-v2/YfWifiSurveyDb.d.ts +122 -0
  36. package/dist/db-sdk-v2/YfWifiSurveyDb.js +210 -0
  37. package/dist/entities-v2/Address.d.ts +3 -3
  38. package/dist/entities-v2/Contact.d.ts +52 -46
  39. package/dist/entities-v2/Contact.js +26 -26
  40. package/dist/entities-v2/CustomerDeviceOnt.d.ts +7 -1
  41. package/dist/entities-v2/CustomerDeviceOnt.js +6 -0
  42. package/dist/entities-v2/File.d.ts +3 -0
  43. package/dist/entities-v2/Order.d.ts +7 -0
  44. package/dist/entities-v2/Order.js +2 -0
  45. package/dist/entities-v2/PaymentMethodRefund.d.ts +19 -0
  46. package/dist/entities-v2/PaymentMethodRefund.js +8 -0
  47. package/dist/entities-v2/WorkOrder.d.ts +7 -0
  48. package/dist/entities-v2/WorkOrder.js +5 -1
  49. package/dist/entities-v2/YfWifiSurvey.d.ts +164 -0
  50. package/dist/entities-v2/YfWifiSurvey.js +102 -0
  51. package/dist/records-v2/AddressRecord.d.ts +20 -20
  52. package/dist/records-v2/AddressRecord.js +33 -33
  53. package/dist/records-v2/CallRecord.d.ts +108 -0
  54. package/dist/records-v2/CallRecord.js +116 -0
  55. package/dist/records-v2/CaseRecord.d.ts +28 -0
  56. package/dist/records-v2/CaseRecord.js +37 -0
  57. package/dist/records-v2/ContactRecord.d.ts +26 -27
  58. package/dist/records-v2/ContactRecord.js +40 -48
  59. package/dist/records-v2/VisitRecord.d.ts +29 -0
  60. package/dist/records-v2/VisitRecord.js +36 -0
  61. package/package.json +3 -2
@@ -0,0 +1,161 @@
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.YfWifiSurveyApi = 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 YfWifiSurveyApi(authParams).get(id)
20
+ * - New: new odin.yfwifisurvey.get(id)
21
+ *
22
+ * The new OdinApiClient returns typed record wrappers with action methods.
23
+ */
24
+ class YfWifiSurveyApi extends api_provider_1.ApiProvider {
25
+ constructor(authParams, authToken) {
26
+ super(authParams, authToken);
27
+ this.authToken = authToken;
28
+ this.moduleName = 'FieldServiceModule';
29
+ this.entityName = 'YfWifiSurvey';
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 workorder() {
37
+ if (!this._workorder) {
38
+ this._workorder = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'FieldServiceModule:YfWifiSurvey', 'FieldServiceModule:WorkOrder', 'WorkOrder__YfWifiSurvey');
39
+ }
40
+ return this._workorder;
41
+ }
42
+ get file() {
43
+ if (!this._file) {
44
+ this._file = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'FieldServiceModule:YfWifiSurvey', 'SchemaModule:File', 'YfWifiSurvey__File');
45
+ }
46
+ return this._file;
47
+ }
48
+ // ============================================
49
+ // STANDARD METHODS (Unchanged API)
50
+ // ============================================
51
+ setRecord(sourceRecord) {
52
+ this.sourceRecord = sourceRecord;
53
+ }
54
+ schema() {
55
+ return __awaiter(this, void 0, void 0, function* () {
56
+ return yield this.getSchema(this.moduleName, this.entityName);
57
+ });
58
+ }
59
+ // Use this function when you want to search and handle all pagination on your own
60
+ search(params) {
61
+ return __awaiter(this, void 0, void 0, function* () {
62
+ return yield this._searchRecords(this.moduleName, this.entityName, params);
63
+ });
64
+ }
65
+ // Use this function when you want paginating through the results to be handled
66
+ searchAndPaginate(params) {
67
+ return __awaiter(this, void 0, void 0, function* () {
68
+ return yield this._searchAllRecordsAndPaginate(this.moduleName, this.entityName, params);
69
+ });
70
+ }
71
+ // Use this function to re-index records in elastic search
72
+ reIndex(body) {
73
+ return __awaiter(this, void 0, void 0, function* () {
74
+ return yield this._reIndexRecords(body);
75
+ });
76
+ }
77
+ // Use this function when you want to return a single record
78
+ get(yfWifiSurveyId) {
79
+ return __awaiter(this, void 0, void 0, function* () {
80
+ const res = yield this._getByPrimaryKey(this.moduleName, this.entityName, yfWifiSurveyId);
81
+ if (res)
82
+ this.setRecord(res);
83
+ return res;
84
+ });
85
+ }
86
+ // Use this function when you want to return many records by primaryKeys
87
+ getMany(yfWifiSurveyIds) {
88
+ return __awaiter(this, void 0, void 0, function* () {
89
+ return yield this._getManyByPrimaryKey(this.moduleName, this.entityName, yfWifiSurveyIds);
90
+ });
91
+ }
92
+ // Use this function when you want to upsert one record
93
+ upsert(upsertDto) {
94
+ return __awaiter(this, void 0, void 0, function* () {
95
+ const res = yield this._upsert(this.moduleName, this.entityName, [upsertDto]);
96
+ return res[0];
97
+ });
98
+ }
99
+ // Use this function when you want to upsert many records
100
+ upsertMany(upsertDtos) {
101
+ return __awaiter(this, void 0, void 0, function* () {
102
+ return yield this._upsert(this.moduleName, this.entityName, upsertDtos);
103
+ });
104
+ }
105
+ // Use this function when you want to update one record
106
+ update(updateDto) {
107
+ return __awaiter(this, void 0, void 0, function* () {
108
+ const res = yield this._update(this.moduleName, this.entityName, [updateDto]);
109
+ return res[0];
110
+ });
111
+ }
112
+ // Use this function when you want to update many records
113
+ updateMany(updateDtos) {
114
+ return __awaiter(this, void 0, void 0, function* () {
115
+ return yield this._update(this.moduleName, this.entityName, updateDtos);
116
+ });
117
+ }
118
+ // Use this function when you want to delete one record
119
+ delete(yfWifiSurveyId) {
120
+ return __awaiter(this, void 0, void 0, function* () {
121
+ return yield this._delete(this.moduleName, this.entityName, [yfWifiSurveyId]);
122
+ });
123
+ }
124
+ // Use this function when you want to delete many records
125
+ deleteMany(yfWifiSurveyIds) {
126
+ return __awaiter(this, void 0, void 0, function* () {
127
+ return yield this._delete(this.moduleName, this.entityName, yfWifiSurveyIds);
128
+ });
129
+ }
130
+ // Use this function when you want to restore one or many records
131
+ restore(yfWifiSurveyIds) {
132
+ return __awaiter(this, void 0, void 0, function* () {
133
+ return yield this._restore(this.moduleName, this.entityName, yfWifiSurveyIds);
134
+ });
135
+ }
136
+ // Use this function when you want to apply a single action
137
+ applyAction(dto) {
138
+ return __awaiter(this, void 0, void 0, function* () {
139
+ return yield this._applyAction(this.moduleName, this.entityName, dto);
140
+ });
141
+ }
142
+ // Use this function when you want to bulk apply actions
143
+ bulkApplyActions(dtos) {
144
+ return __awaiter(this, void 0, void 0, function* () {
145
+ return yield this._bulkApplyActions(this.moduleName, this.entityName, dtos);
146
+ });
147
+ }
148
+ // Use this function when you want to return the versions for a single record
149
+ getVersions() {
150
+ return __awaiter(this, void 0, void 0, function* () {
151
+ return yield this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id);
152
+ });
153
+ }
154
+ // Use this function when you want to return the change history for a single record
155
+ getRevisionTimeline() {
156
+ return __awaiter(this, void 0, void 0, function* () {
157
+ return yield this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id);
158
+ });
159
+ }
160
+ }
161
+ exports.YfWifiSurveyApi = YfWifiSurveyApi;
@@ -27,8 +27,8 @@ export declare class AddressDb extends DbProvider {
27
27
  private _account?;
28
28
  private _order?;
29
29
  private _customerdeviceont?;
30
- private _contact?;
31
30
  private _customerdevicerouter?;
31
+ private _contact?;
32
32
  private _yftoolaudit?;
33
33
  private _workorder__alternative_address?;
34
34
  private _workorder__address?;
@@ -51,8 +51,8 @@ export declare class AddressDb extends DbProvider {
51
51
  get account(): DbRecordLinkManager;
52
52
  get order(): DbRecordLinkManager;
53
53
  get customerdeviceont(): DbRecordLinkManager;
54
- get contact(): DbRecordLinkManager;
55
54
  get customerdevicerouter(): DbRecordLinkManager;
55
+ get contact(): DbRecordLinkManager;
56
56
  get yftoolaudit(): DbRecordLinkManager;
57
57
  get workorder__alternative_address(): DbRecordLinkManager;
58
58
  get workorder__address(): DbRecordLinkManager;
@@ -74,18 +74,18 @@ class AddressDb extends db_provider_1.DbProvider {
74
74
  }
75
75
  return this._customerdeviceont;
76
76
  }
77
- get contact() {
78
- if (!this._contact) {
79
- this._contact = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Address', 'CrmModule:Contact', 'Contact__Address');
80
- }
81
- return this._contact;
82
- }
83
77
  get customerdevicerouter() {
84
78
  if (!this._customerdevicerouter) {
85
79
  this._customerdevicerouter = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Address', 'ServiceModule:CustomerDeviceRouter', 'Address__CustomerDeviceRouter');
86
80
  }
87
81
  return this._customerdevicerouter;
88
82
  }
83
+ get contact() {
84
+ if (!this._contact) {
85
+ this._contact = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Address', 'CrmModule:Contact', 'Contact__Address');
86
+ }
87
+ return this._contact;
88
+ }
89
89
  get yftoolaudit() {
90
90
  if (!this._yftoolaudit) {
91
91
  this._yftoolaudit = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Address', 'FieldServiceModule:YfToolAudit', 'YfToolAudit_Address');
@@ -41,7 +41,6 @@ export declare class ContactDb extends DbProvider {
41
41
  private _fingerprint?;
42
42
  private _case?;
43
43
  private _organization?;
44
- private _address?;
45
44
  private _smsmessage?;
46
45
  private _billingrequest?;
47
46
  private _contact?;
@@ -49,14 +48,15 @@ export declare class ContactDb extends DbProvider {
49
48
  private _paymentmethodrefund?;
50
49
  private _email?;
51
50
  private _reward?;
51
+ private _address?;
52
52
  private _contractbuyout?;
53
53
  private _workorder__contact?;
54
54
  private _workorder__alternative_contact?;
55
55
  private _impersonationtracker?;
56
56
  private _accountcredit?;
57
57
  private _affiliatecode?;
58
- private _npssurvey?;
59
58
  private _order?;
59
+ private _npssurvey?;
60
60
  constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
61
61
  get note(): DbRecordLinkManager;
62
62
  get lead(): DbRecordLinkManager;
@@ -78,7 +78,6 @@ export declare class ContactDb extends DbProvider {
78
78
  get fingerprint(): DbRecordLinkManager;
79
79
  get case(): DbRecordLinkManager;
80
80
  get organization(): DbRecordLinkManager;
81
- get address(): DbRecordLinkManager;
82
81
  get smsmessage(): DbRecordLinkManager;
83
82
  get billingrequest(): DbRecordLinkManager;
84
83
  get contact(): DbRecordLinkManager;
@@ -86,14 +85,15 @@ export declare class ContactDb extends DbProvider {
86
85
  get paymentmethodrefund(): DbRecordLinkManager;
87
86
  get email(): DbRecordLinkManager;
88
87
  get reward(): DbRecordLinkManager;
88
+ get address(): DbRecordLinkManager;
89
89
  get contractbuyout(): DbRecordLinkManager;
90
90
  get workorder__contact(): DbRecordLinkManager;
91
91
  get workorder__alternative_contact(): DbRecordLinkManager;
92
92
  get impersonationtracker(): DbRecordLinkManager;
93
93
  get accountcredit(): DbRecordLinkManager;
94
94
  get affiliatecode(): DbRecordLinkManager;
95
- get npssurvey(): DbRecordLinkManager;
96
95
  get order(): DbRecordLinkManager;
96
+ get npssurvey(): DbRecordLinkManager;
97
97
  setRecord(sourceRecord: any): void;
98
98
  /**
99
99
  * Search records with manual pagination control
@@ -158,12 +158,6 @@ class ContactDb extends db_provider_1.DbProvider {
158
158
  }
159
159
  return this._organization;
160
160
  }
161
- get address() {
162
- if (!this._address) {
163
- this._address = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Address', 'Contact__Address');
164
- }
165
- return this._address;
166
- }
167
161
  get smsmessage() {
168
162
  if (!this._smsmessage) {
169
163
  this._smsmessage = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'NotificationModule:SmsMessage', 'Contact__SmsMessage');
@@ -206,6 +200,12 @@ class ContactDb extends db_provider_1.DbProvider {
206
200
  }
207
201
  return this._reward;
208
202
  }
203
+ get address() {
204
+ if (!this._address) {
205
+ this._address = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Address', 'Contact__Address');
206
+ }
207
+ return this._address;
208
+ }
209
209
  get contractbuyout() {
210
210
  if (!this._contractbuyout) {
211
211
  this._contractbuyout = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'OrderModule:ContractBuyOut', 'Contact__ContractBuyOut');
@@ -242,18 +242,18 @@ class ContactDb extends db_provider_1.DbProvider {
242
242
  }
243
243
  return this._affiliatecode;
244
244
  }
245
- get npssurvey() {
246
- if (!this._npssurvey) {
247
- this._npssurvey = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:NpsSurvey', 'Contact__NpsSurvey');
248
- }
249
- return this._npssurvey;
250
- }
251
245
  get order() {
252
246
  if (!this._order) {
253
247
  this._order = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'OrderModule:Order', 'Order__Contact');
254
248
  }
255
249
  return this._order;
256
250
  }
251
+ get npssurvey() {
252
+ if (!this._npssurvey) {
253
+ this._npssurvey = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:NpsSurvey', 'Contact__NpsSurvey');
254
+ }
255
+ return this._npssurvey;
256
+ }
257
257
  // ============================================
258
258
  // STANDARD METHODS
259
259
  // ============================================
@@ -83,6 +83,7 @@ export declare class FileDb extends DbProvider {
83
83
  private _ohretroaudit?;
84
84
  private _uginprogressaudit?;
85
85
  private _pgdirectdebitfile?;
86
+ private _yfwifisurvey?;
86
87
  constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
87
88
  get servicevisitaudit(): DbRecordLinkManager;
88
89
  get blockagea55(): DbRecordLinkManager;
@@ -146,6 +147,7 @@ export declare class FileDb extends DbProvider {
146
147
  get ohretroaudit(): DbRecordLinkManager;
147
148
  get uginprogressaudit(): DbRecordLinkManager;
148
149
  get pgdirectdebitfile(): DbRecordLinkManager;
150
+ get yfwifisurvey(): DbRecordLinkManager;
149
151
  setRecord(sourceRecord: any): void;
150
152
  /**
151
153
  * Search records with manual pagination control
@@ -410,6 +410,12 @@ class FileDb extends db_provider_1.DbProvider {
410
410
  }
411
411
  return this._pgdirectdebitfile;
412
412
  }
413
+ get yfwifisurvey() {
414
+ if (!this._yfwifisurvey) {
415
+ this._yfwifisurvey = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SchemaModule:File', 'FieldServiceModule:YfWifiSurvey', 'YfWifiSurvey__File');
416
+ }
417
+ return this._yfwifisurvey;
418
+ }
413
419
  // ============================================
414
420
  // STANDARD METHODS
415
421
  // ============================================
@@ -88,6 +88,7 @@ export declare class WorkOrderDb extends DbProvider {
88
88
  private _sitespecificriskassessmentoutcomeform?;
89
89
  private _dataissue?;
90
90
  private _order?;
91
+ private _yfwifisurvey?;
91
92
  constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
92
93
  get workorder_servicevisitaudit(): DbRecordLinkManager;
93
94
  get servicevisitaudit_workorder(): DbRecordLinkManager;
@@ -156,6 +157,7 @@ export declare class WorkOrderDb extends DbProvider {
156
157
  get sitespecificriskassessmentoutcomeform(): DbRecordLinkManager;
157
158
  get dataissue(): DbRecordLinkManager;
158
159
  get order(): DbRecordLinkManager;
160
+ get yfwifisurvey(): DbRecordLinkManager;
159
161
  setRecord(sourceRecord: any): void;
160
162
  /**
161
163
  * Search records with manual pagination control
@@ -440,6 +440,12 @@ class WorkOrderDb extends db_provider_1.DbProvider {
440
440
  }
441
441
  return this._order;
442
442
  }
443
+ get yfwifisurvey() {
444
+ if (!this._yfwifisurvey) {
445
+ this._yfwifisurvey = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'FieldServiceModule:WorkOrder', 'FieldServiceModule:YfWifiSurvey', 'WorkOrder__YfWifiSurvey');
446
+ }
447
+ return this._yfwifisurvey;
448
+ }
443
449
  // ============================================
444
450
  // STANDARD METHODS
445
451
  // ============================================
@@ -0,0 +1,122 @@
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 { YfWifiSurveyProperties } from '../entities-v2/YfWifiSurvey';
5
+ /**
6
+ * @deprecated Use OdinDbClient.
7
+ *
8
+ * Migration:
9
+ * - Old: new YfWifiSurveyApi(authParams).get(id)
10
+ * - New: new odin.yfwifisurvey.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 YfWifiSurveyDb(principal, dbService, { omitPermissionsCheck: true })
16
+ * - Method level: await db.getByPrimaryKey(id, { entities: [] }, { omitPermissionsCheck: true })
17
+ */
18
+ export declare class YfWifiSurveyDb 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 _workorder?;
25
+ private _file?;
26
+ constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
27
+ get workorder(): DbRecordLinkManager;
28
+ get file(): DbRecordLinkManager;
29
+ setRecord(sourceRecord: any): void;
30
+ /**
31
+ * Search records with manual pagination control
32
+ * @param params - Search parameters
33
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
34
+ */
35
+ 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<YfWifiSurveyProperties>>>;
36
+ /**
37
+ * Search all records with automatic pagination
38
+ * @param params - Search parameters
39
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
40
+ */
41
+ 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<YfWifiSurveyProperties>>>;
42
+ /**
43
+ * Get a single record by primary key
44
+ * @param yfWifiSurveyId - Record ID
45
+ * @param queryOptions - Query options (WHAT: entities to include)
46
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
47
+ *
48
+ * @example
49
+ * // Simple get
50
+ * const record = await db.getByPrimaryKey(id);
51
+ *
52
+ * // With related entities
53
+ * const record = await db.getByPrimaryKey(id, { entities: ['InvoiceItem', 'Transaction'] });
54
+ *
55
+ * // With permissions bypass
56
+ * const record = await db.getByPrimaryKey(id, {}, { omitPermissionsCheck: true });
57
+ *
58
+ * // Both options
59
+ * const record = await db.getByPrimaryKey(id, { entities: ['Invoice'] }, { omitPermissionsCheck: true });
60
+ */
61
+ getByPrimaryKey(yfWifiSurveyId: string, queryOptions?: DbGetQueryOptions, providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-types/dist/core").OdinRecord<YfWifiSurveyProperties>>;
62
+ /**
63
+ * Get multiple records by primary keys
64
+ * @param yfWifiSurveyIds - Array of record IDs
65
+ * @param queryOptions - Query options (WHAT: entities to include)
66
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
67
+ */
68
+ getManyByPrimaryKey(yfWifiSurveyIds: string[], queryOptions?: DbGetQueryOptions, providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-types/dist/core").OdinRecord<YfWifiSurveyProperties>[]>;
69
+ /**
70
+ * Upsert a single record
71
+ * @param upsertDto - Record to upsert
72
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
73
+ */
74
+ upsert(upsertDto: OdinRecordCreateDto, providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-sdk-generator").IDbRecordCreateUpdateRes>;
75
+ /**
76
+ * Upsert multiple records
77
+ * @param upsertDtos - Records to upsert
78
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
79
+ */
80
+ upsertMany(upsertDtos: OdinRecordCreateDto[], providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-sdk-generator").IDbRecordCreateUpdateRes[]>;
81
+ /**
82
+ * Update a single record
83
+ * @param updateDto - Record to update
84
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
85
+ */
86
+ update(updateDto: OdinRecordUpdateDto, providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-sdk-generator").IDbRecordCreateUpdateRes>;
87
+ /**
88
+ * Update multiple records
89
+ * @param updateDtos - Records to update
90
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
91
+ */
92
+ updateMany(updateDtos: OdinRecordUpdateDto[], providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-sdk-generator").IDbRecordCreateUpdateRes[]>;
93
+ /**
94
+ * Delete one or many records
95
+ * @param yfWifiSurveyIds - Record IDs to delete
96
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
97
+ */
98
+ delete(yfWifiSurveyIds: string[], providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-sdk-generator").DbRecordDeleted[]>;
99
+ /**
100
+ * Restore one or many deleted records
101
+ * @param yfWifiSurveyIds - Record IDs to restore
102
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
103
+ */
104
+ restore(yfWifiSurveyIds: string[], providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-sdk-generator").DbRecordRestored[]>;
105
+ /**
106
+ * Apply an action to a record
107
+ * @param actionName - The action key
108
+ * @param dto - The action DTO
109
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
110
+ */
111
+ applyAction(actionName: string, dto: any, providerOptions?: DbProviderOptions): Promise<import("@d19n/odin-sdk-generator").IDbRecordCreateUpdateRes[]>;
112
+ /**
113
+ * Get version history for the current source record
114
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
115
+ */
116
+ getVersions(providerOptions?: DbProviderOptions): Promise<any>;
117
+ /**
118
+ * Get revision timeline for the current source record
119
+ * @param providerOptions - Provider options (HOW: omitPermissionsCheck)
120
+ */
121
+ getRevisionTimeline(providerOptions?: DbProviderOptions): Promise<any>;
122
+ }