@d19n/youfibre-odin-sdk 2.0.281 → 2.0.282
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 +10 -2
- package/dist/EntityRegistry.d.ts +2 -0
- package/dist/EntityRegistry.js +2 -0
- package/dist/OdinApiClient.d.ts +4 -0
- package/dist/OdinApiClient.js +8 -0
- package/dist/OdinDbClient.d.ts +4 -0
- package/dist/OdinDbClient.js +8 -0
- package/dist/accessors-v2/YfAgentLocationAccessor.d.ts +111 -0
- package/dist/accessors-v2/YfAgentLocationAccessor.js +190 -0
- package/dist/accessors-v2/index.d.ts +1 -0
- package/dist/accessors-v2/index.js +3 -1
- package/dist/actions-v2/CreateContactDto.d.ts +8 -8
- package/dist/actions-v2/CreateLeadFromAddressDto.d.ts +8 -8
- package/dist/actions-v2/CreateYfAgentLocationDto.d.ts +92 -0
- package/dist/actions-v2/CreateYfAgentLocationDto.js +54 -0
- package/dist/actions-v2/UpdateOrderDto.d.ts +9 -1
- package/dist/actions-v2/UpdatePgFileAllocationInvalidDto.d.ts +77 -0
- package/dist/actions-v2/UpdatePgFileAllocationInvalidDto.js +61 -0
- package/dist/api-sdk-v2/YfAgentLocationApi.d.ts +45 -0
- package/dist/api-sdk-v2/YfAgentLocationApi.js +151 -0
- package/dist/db-accessors-v2/YfAgentLocationDbAccessor.d.ts +149 -0
- package/dist/db-accessors-v2/YfAgentLocationDbAccessor.js +227 -0
- package/dist/db-accessors-v2/index.d.ts +1 -0
- package/dist/db-accessors-v2/index.js +3 -1
- package/dist/db-sdk-v2/YfAgentLocationDb.d.ts +117 -0
- package/dist/db-sdk-v2/YfAgentLocationDb.js +200 -0
- package/dist/entities-v2/FieldServiceProduct.d.ts +2 -0
- package/dist/entities-v2/FieldServiceProduct.js +2 -0
- package/dist/entities-v2/Order.d.ts +9 -0
- package/dist/entities-v2/Order.js +2 -0
- package/dist/entities-v2/PgFileAllocation.d.ts +21 -1
- package/dist/entities-v2/PgFileAllocation.js +2 -0
- package/dist/entities-v2/WorkOrder.d.ts +3 -2
- package/dist/entities-v2/WorkOrder.js +3 -2
- package/dist/entities-v2/YfAgentLocation.d.ts +98 -0
- package/dist/entities-v2/YfAgentLocation.js +72 -0
- package/dist/records-v2/PgFileAllocationRecord.d.ts +28 -0
- package/dist/records-v2/PgFileAllocationRecord.js +37 -0
- package/dist/records-v2/YfAgentLocationRecord.d.ts +184 -0
- package/dist/records-v2/YfAgentLocationRecord.js +243 -0
- package/dist/records-v2/index.d.ts +1 -0
- package/dist/records-v2/index.js +5 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -124,7 +124,7 @@ await workOrder.completeWorkOrder({ ... });
|
|
|
124
124
|
|
|
125
125
|
## Entities
|
|
126
126
|
|
|
127
|
-
This SDK includes **
|
|
127
|
+
This SDK includes **178** entities across **12** modules.
|
|
128
128
|
|
|
129
129
|
### CrmModule
|
|
130
130
|
|
|
@@ -255,6 +255,7 @@ This SDK includes **177** entities across **12** modules.
|
|
|
255
255
|
| **UgRetroAudit** | UgRetroAudit Entity Definition | OUTCOME_FORM |
|
|
256
256
|
| **WayleaveAudit** | WayleaveAudit Entity Definition | OUTCOME_FORM |
|
|
257
257
|
| **WorkOrder** | WorkOrder Entity Definition | COLLECTION, COLLECTION_AMCO, DISPATCH_AMCO... |
|
|
258
|
+
| **YfAgentLocation** | YfAgentLocation Entity Definition | DEFAULT |
|
|
258
259
|
| **YfEquipmentCollection** | YfEquipmentCollection Entity Definition | OUTCOME_FORM |
|
|
259
260
|
| **YfFieldServiceVisit** | YfFieldServiceVisit Entity Definition | OUTCOME_FORM |
|
|
260
261
|
| **YfStockCount** | YfStockCount Entity Definition | OUTCOME_FORM |
|
|
@@ -365,7 +366,7 @@ This SDK includes **177** entities across **12** modules.
|
|
|
365
366
|
|
|
366
367
|
## Actions
|
|
367
368
|
|
|
368
|
-
This SDK includes **
|
|
369
|
+
This SDK includes **837** actions.
|
|
369
370
|
|
|
370
371
|
### Action Types
|
|
371
372
|
|
|
@@ -1342,6 +1343,7 @@ This SDK includes **835** actions.
|
|
|
1342
1343
|
| `UpdatePgAllocationWithAcknowledgementTwo` | UPDATE | k1.t-hEOJjsDb.BillingModule.PgFileAllocation.Update.UpdatePgAllocationWithAcknowledgementTwo |
|
|
1343
1344
|
| `UpdatePgAllocationWithBacsReport` | UPDATE | k1.t-hEOJjsDb.BillingModule.PgFileAllocation.Update.UpdatePgAllocationWithBacsReport |
|
|
1344
1345
|
| `UpdatePgFileAllocation` | UPDATE | k1.t-hEOJjsDb.BillingModule.PgFileAllocation.Update.UpdatePgFileAllocation |
|
|
1346
|
+
| `UpdatePgFileAllocationInvalid` | UPDATE | k1.t-hEOJjsDb.BillingModule.PgFileAllocation.Update.UpdatePgFileAllocationInvalid |
|
|
1345
1347
|
|
|
1346
1348
|
#### BngProvision
|
|
1347
1349
|
|
|
@@ -2161,6 +2163,12 @@ This SDK includes **835** actions.
|
|
|
2161
2163
|
|--------|------|-------|
|
|
2162
2164
|
| `CreateWorkOrderStatusUpdate` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.WorkOrderStatusUpdate.Create.CreateWorkOrderStatusUpdate |
|
|
2163
2165
|
|
|
2166
|
+
#### YfAgentLocation
|
|
2167
|
+
|
|
2168
|
+
| Action | Type | Event |
|
|
2169
|
+
|--------|------|-------|
|
|
2170
|
+
| `CreateYfAgentLocation` | CREATE | k1.t-hEOJjsDb.FieldServiceModule.YfAgentLocation.Create.CreateYfAgentLocation |
|
|
2171
|
+
|
|
2164
2172
|
#### YfWifiSurvey
|
|
2165
2173
|
|
|
2166
2174
|
| Action | Type | Event |
|
package/dist/EntityRegistry.d.ts
CHANGED
|
@@ -126,6 +126,7 @@ import { VoiceConfigurationAccessor } from './accessors-v2/VoiceConfigurationAcc
|
|
|
126
126
|
import { WayleaveAuditAccessor } from './accessors-v2/WayleaveAuditAccessor';
|
|
127
127
|
import { WorkOrderAccessor } from './accessors-v2/WorkOrderAccessor';
|
|
128
128
|
import { WorkOrderStatusUpdateAccessor } from './accessors-v2/WorkOrderStatusUpdateAccessor';
|
|
129
|
+
import { YfAgentLocationAccessor } from './accessors-v2/YfAgentLocationAccessor';
|
|
129
130
|
import { YfFieldServiceVisitAccessor } from './accessors-v2/YfFieldServiceVisitAccessor';
|
|
130
131
|
import { YfWifiSurveyAccessor } from './accessors-v2/YfWifiSurveyAccessor';
|
|
131
132
|
export declare const EntityRegistry: {
|
|
@@ -244,6 +245,7 @@ export declare const EntityRegistry: {
|
|
|
244
245
|
readonly WayleaveAudit: typeof WayleaveAuditAccessor;
|
|
245
246
|
readonly WorkOrder: typeof WorkOrderAccessor;
|
|
246
247
|
readonly WorkOrderStatusUpdate: typeof WorkOrderStatusUpdateAccessor;
|
|
248
|
+
readonly YfAgentLocation: typeof YfAgentLocationAccessor;
|
|
247
249
|
readonly YfFieldServiceVisit: typeof YfFieldServiceVisitAccessor;
|
|
248
250
|
readonly YfWifiSurvey: typeof YfWifiSurveyAccessor;
|
|
249
251
|
};
|
package/dist/EntityRegistry.js
CHANGED
|
@@ -129,6 +129,7 @@ const VoiceConfigurationAccessor_1 = require("./accessors-v2/VoiceConfigurationA
|
|
|
129
129
|
const WayleaveAuditAccessor_1 = require("./accessors-v2/WayleaveAuditAccessor");
|
|
130
130
|
const WorkOrderAccessor_1 = require("./accessors-v2/WorkOrderAccessor");
|
|
131
131
|
const WorkOrderStatusUpdateAccessor_1 = require("./accessors-v2/WorkOrderStatusUpdateAccessor");
|
|
132
|
+
const YfAgentLocationAccessor_1 = require("./accessors-v2/YfAgentLocationAccessor");
|
|
132
133
|
const YfFieldServiceVisitAccessor_1 = require("./accessors-v2/YfFieldServiceVisitAccessor");
|
|
133
134
|
const YfWifiSurveyAccessor_1 = require("./accessors-v2/YfWifiSurveyAccessor");
|
|
134
135
|
exports.EntityRegistry = {
|
|
@@ -247,6 +248,7 @@ exports.EntityRegistry = {
|
|
|
247
248
|
'WayleaveAudit': WayleaveAuditAccessor_1.WayleaveAuditAccessor,
|
|
248
249
|
'WorkOrder': WorkOrderAccessor_1.WorkOrderAccessor,
|
|
249
250
|
'WorkOrderStatusUpdate': WorkOrderStatusUpdateAccessor_1.WorkOrderStatusUpdateAccessor,
|
|
251
|
+
'YfAgentLocation': YfAgentLocationAccessor_1.YfAgentLocationAccessor,
|
|
250
252
|
'YfFieldServiceVisit': YfFieldServiceVisitAccessor_1.YfFieldServiceVisitAccessor,
|
|
251
253
|
'YfWifiSurvey': YfWifiSurveyAccessor_1.YfWifiSurveyAccessor,
|
|
252
254
|
};
|
package/dist/OdinApiClient.d.ts
CHANGED
|
@@ -136,6 +136,7 @@ import { VoiceConfigurationAccessor } from './accessors-v2/VoiceConfigurationAcc
|
|
|
136
136
|
import { WayleaveAuditAccessor } from './accessors-v2/WayleaveAuditAccessor';
|
|
137
137
|
import { WorkOrderAccessor } from './accessors-v2/WorkOrderAccessor';
|
|
138
138
|
import { WorkOrderStatusUpdateAccessor } from './accessors-v2/WorkOrderStatusUpdateAccessor';
|
|
139
|
+
import { YfAgentLocationAccessor } from './accessors-v2/YfAgentLocationAccessor';
|
|
139
140
|
import { YfFieldServiceVisitAccessor } from './accessors-v2/YfFieldServiceVisitAccessor';
|
|
140
141
|
import { YfWifiSurveyAccessor } from './accessors-v2/YfWifiSurveyAccessor';
|
|
141
142
|
export interface OdinApiClientConfig {
|
|
@@ -263,6 +264,7 @@ export declare class OdinApiClient {
|
|
|
263
264
|
private _wayleaveAudits?;
|
|
264
265
|
private _workOrders?;
|
|
265
266
|
private _workOrderStatusUpdates?;
|
|
267
|
+
private _yfAgentLocations?;
|
|
266
268
|
private _yfFieldServiceVisits?;
|
|
267
269
|
private _yfWifiSurveys?;
|
|
268
270
|
/**
|
|
@@ -506,6 +508,8 @@ export declare class OdinApiClient {
|
|
|
506
508
|
get workOrders(): WorkOrderAccessor;
|
|
507
509
|
/** Access WorkOrderStatusUpdate records */
|
|
508
510
|
get workOrderStatusUpdates(): WorkOrderStatusUpdateAccessor;
|
|
511
|
+
/** Access YfAgentLocation records */
|
|
512
|
+
get yfAgentLocations(): YfAgentLocationAccessor;
|
|
509
513
|
/** Access YfFieldServiceVisit records */
|
|
510
514
|
get yfFieldServiceVisits(): YfFieldServiceVisitAccessor;
|
|
511
515
|
/** Access YfWifiSurvey records */
|
package/dist/OdinApiClient.js
CHANGED
|
@@ -147,6 +147,7 @@ const VoiceConfigurationAccessor_1 = require("./accessors-v2/VoiceConfigurationA
|
|
|
147
147
|
const WayleaveAuditAccessor_1 = require("./accessors-v2/WayleaveAuditAccessor");
|
|
148
148
|
const WorkOrderAccessor_1 = require("./accessors-v2/WorkOrderAccessor");
|
|
149
149
|
const WorkOrderStatusUpdateAccessor_1 = require("./accessors-v2/WorkOrderStatusUpdateAccessor");
|
|
150
|
+
const YfAgentLocationAccessor_1 = require("./accessors-v2/YfAgentLocationAccessor");
|
|
150
151
|
const YfFieldServiceVisitAccessor_1 = require("./accessors-v2/YfFieldServiceVisitAccessor");
|
|
151
152
|
const YfWifiSurveyAccessor_1 = require("./accessors-v2/YfWifiSurveyAccessor");
|
|
152
153
|
class OdinApiClient {
|
|
@@ -982,6 +983,13 @@ class OdinApiClient {
|
|
|
982
983
|
}
|
|
983
984
|
return this._workOrderStatusUpdates;
|
|
984
985
|
}
|
|
986
|
+
/** Access YfAgentLocation records */
|
|
987
|
+
get yfAgentLocations() {
|
|
988
|
+
if (!this._yfAgentLocations) {
|
|
989
|
+
this._yfAgentLocations = new YfAgentLocationAccessor_1.YfAgentLocationAccessor(this._provider);
|
|
990
|
+
}
|
|
991
|
+
return this._yfAgentLocations;
|
|
992
|
+
}
|
|
985
993
|
/** Access YfFieldServiceVisit records */
|
|
986
994
|
get yfFieldServiceVisits() {
|
|
987
995
|
if (!this._yfFieldServiceVisits) {
|
package/dist/OdinDbClient.d.ts
CHANGED
|
@@ -143,6 +143,7 @@ import { VoiceConfigurationDbAccessor } from './db-accessors-v2/VoiceConfigurati
|
|
|
143
143
|
import { WayleaveAuditDbAccessor } from './db-accessors-v2/WayleaveAuditDbAccessor';
|
|
144
144
|
import { WorkOrderDbAccessor } from './db-accessors-v2/WorkOrderDbAccessor';
|
|
145
145
|
import { WorkOrderStatusUpdateDbAccessor } from './db-accessors-v2/WorkOrderStatusUpdateDbAccessor';
|
|
146
|
+
import { YfAgentLocationDbAccessor } from './db-accessors-v2/YfAgentLocationDbAccessor';
|
|
146
147
|
import { YfFieldServiceVisitDbAccessor } from './db-accessors-v2/YfFieldServiceVisitDbAccessor';
|
|
147
148
|
import { YfWifiSurveyDbAccessor } from './db-accessors-v2/YfWifiSurveyDbAccessor';
|
|
148
149
|
export declare class OdinDbClient {
|
|
@@ -264,6 +265,7 @@ export declare class OdinDbClient {
|
|
|
264
265
|
private _wayleaveAudits?;
|
|
265
266
|
private _workOrders?;
|
|
266
267
|
private _workOrderStatusUpdates?;
|
|
268
|
+
private _yfAgentLocations?;
|
|
267
269
|
private _yfFieldServiceVisits?;
|
|
268
270
|
private _yfWifiSurveys?;
|
|
269
271
|
/**
|
|
@@ -516,6 +518,8 @@ export declare class OdinDbClient {
|
|
|
516
518
|
get workOrders(): WorkOrderDbAccessor;
|
|
517
519
|
/** Access WorkOrderStatusUpdate records */
|
|
518
520
|
get workOrderStatusUpdates(): WorkOrderStatusUpdateDbAccessor;
|
|
521
|
+
/** Access YfAgentLocation records */
|
|
522
|
+
get yfAgentLocations(): YfAgentLocationDbAccessor;
|
|
519
523
|
/** Access YfFieldServiceVisit records */
|
|
520
524
|
get yfFieldServiceVisits(): YfFieldServiceVisitDbAccessor;
|
|
521
525
|
/** Access YfWifiSurvey records */
|
package/dist/OdinDbClient.js
CHANGED
|
@@ -145,6 +145,7 @@ const VoiceConfigurationDbAccessor_1 = require("./db-accessors-v2/VoiceConfigura
|
|
|
145
145
|
const WayleaveAuditDbAccessor_1 = require("./db-accessors-v2/WayleaveAuditDbAccessor");
|
|
146
146
|
const WorkOrderDbAccessor_1 = require("./db-accessors-v2/WorkOrderDbAccessor");
|
|
147
147
|
const WorkOrderStatusUpdateDbAccessor_1 = require("./db-accessors-v2/WorkOrderStatusUpdateDbAccessor");
|
|
148
|
+
const YfAgentLocationDbAccessor_1 = require("./db-accessors-v2/YfAgentLocationDbAccessor");
|
|
148
149
|
const YfFieldServiceVisitDbAccessor_1 = require("./db-accessors-v2/YfFieldServiceVisitDbAccessor");
|
|
149
150
|
const YfWifiSurveyDbAccessor_1 = require("./db-accessors-v2/YfWifiSurveyDbAccessor");
|
|
150
151
|
class OdinDbClient {
|
|
@@ -983,6 +984,13 @@ class OdinDbClient {
|
|
|
983
984
|
}
|
|
984
985
|
return this._workOrderStatusUpdates;
|
|
985
986
|
}
|
|
987
|
+
/** Access YfAgentLocation records */
|
|
988
|
+
get yfAgentLocations() {
|
|
989
|
+
if (!this._yfAgentLocations) {
|
|
990
|
+
this._yfAgentLocations = new YfAgentLocationDbAccessor_1.YfAgentLocationDbAccessor(this._principal, this._dbService, this._defaultOptions);
|
|
991
|
+
}
|
|
992
|
+
return this._yfAgentLocations;
|
|
993
|
+
}
|
|
986
994
|
/** Access YfFieldServiceVisit records */
|
|
987
995
|
get yfFieldServiceVisits() {
|
|
988
996
|
if (!this._yfFieldServiceVisits) {
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* YfAgentLocation Accessor
|
|
3
|
+
*
|
|
4
|
+
* Provides typed access to YfAgentLocation records via API.
|
|
5
|
+
* Returns wrapped records with typed action methods.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* // Get existing record
|
|
10
|
+
* const record = await accessor.get(id);
|
|
11
|
+
* await record.updateYfAgentLocation({ ... });
|
|
12
|
+
*
|
|
13
|
+
* // Create new record
|
|
14
|
+
* const newRecord = accessor.new();
|
|
15
|
+
* await newRecord.createYfAgentLocation({ ... });
|
|
16
|
+
* ```
|
|
17
|
+
*
|
|
18
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
19
|
+
*/
|
|
20
|
+
import { OdinSearchV2 } from '@d19n/odin-types/dist/core';
|
|
21
|
+
import { ApiProvider } from '@d19n/odin-sdk-generator/dist/api.provider';
|
|
22
|
+
import { OauthParams } from '@d19n/odin-sdk-generator/dist/odin-sdk-types';
|
|
23
|
+
import { QueryBuilder } from '@d19n/odin-sdk-generator/dist/query-builder';
|
|
24
|
+
import { YfAgentLocationProperties } from '../entities-v2/YfAgentLocation';
|
|
25
|
+
import { YfAgentLocationRecord } from '../records-v2/YfAgentLocationRecord';
|
|
26
|
+
/** List response with wrapped records */
|
|
27
|
+
export interface YfAgentLocationListResponse {
|
|
28
|
+
data: YfAgentLocationRecord[];
|
|
29
|
+
hasMore: boolean;
|
|
30
|
+
totalRecords: number;
|
|
31
|
+
}
|
|
32
|
+
/** Search response with wrapped records */
|
|
33
|
+
export interface YfAgentLocationSearchResponse {
|
|
34
|
+
records: YfAgentLocationRecord[];
|
|
35
|
+
totalRecords: number;
|
|
36
|
+
hasMore: boolean;
|
|
37
|
+
}
|
|
38
|
+
export declare class YfAgentLocationAccessor {
|
|
39
|
+
private readonly _provider;
|
|
40
|
+
private readonly _moduleName;
|
|
41
|
+
private readonly _entityName;
|
|
42
|
+
constructor(provider: ApiProvider);
|
|
43
|
+
constructor(authParams: OauthParams);
|
|
44
|
+
constructor(authToken: string, host?: string);
|
|
45
|
+
get moduleName(): string;
|
|
46
|
+
get entityName(): string;
|
|
47
|
+
/**
|
|
48
|
+
* Create a new empty YfAgentLocation record instance for create operations.
|
|
49
|
+
* Pre-generates an ID that can be referenced before the record is saved.
|
|
50
|
+
*
|
|
51
|
+
* @param id - Optional ID to use (auto-generated UUID if not provided)
|
|
52
|
+
* @returns A new record wrapper with pre-generated ID
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```typescript
|
|
56
|
+
* // Auto-generated ID
|
|
57
|
+
* const note = odinClient.notes.new();
|
|
58
|
+
* console.log(note.id); // UUID available immediately
|
|
59
|
+
*
|
|
60
|
+
* // Custom ID
|
|
61
|
+
* const order = odinClient.orders.new("custom-id-123");
|
|
62
|
+
*
|
|
63
|
+
* // Reference ID before save
|
|
64
|
+
* const account = odinClient.accounts.new();
|
|
65
|
+
* const contact = odinClient.contacts.new();
|
|
66
|
+
* await contact
|
|
67
|
+
* .link({ id: account.id, entity: "CrmModule:Account" })
|
|
68
|
+
* .createContact({ FirstName: "John" });
|
|
69
|
+
* ```
|
|
70
|
+
*/
|
|
71
|
+
new(id?: string): YfAgentLocationRecord;
|
|
72
|
+
/**
|
|
73
|
+
* Get a single YfAgentLocation record by ID
|
|
74
|
+
*/
|
|
75
|
+
get(id: string): Promise<YfAgentLocationRecord>;
|
|
76
|
+
/**
|
|
77
|
+
* Get multiple YfAgentLocation records by IDs
|
|
78
|
+
*/
|
|
79
|
+
getMany(ids: string[]): Promise<YfAgentLocationRecord[]>;
|
|
80
|
+
/**
|
|
81
|
+
* Search YfAgentLocation records
|
|
82
|
+
*/
|
|
83
|
+
search(params: Partial<OdinSearchV2>): Promise<YfAgentLocationSearchResponse>;
|
|
84
|
+
/**
|
|
85
|
+
* Search all YfAgentLocation records with automatic pagination
|
|
86
|
+
*/
|
|
87
|
+
searchAll(params: Partial<OdinSearchV2>): Promise<YfAgentLocationRecord[]>;
|
|
88
|
+
/**
|
|
89
|
+
* Async generator for paginating through all matching records.
|
|
90
|
+
* Yields batches of wrapped records.
|
|
91
|
+
*/
|
|
92
|
+
paginate(params: Partial<OdinSearchV2>): AsyncGenerator<YfAgentLocationRecord[]>;
|
|
93
|
+
/**
|
|
94
|
+
* Create a fluent query builder for YfAgentLocation records
|
|
95
|
+
*
|
|
96
|
+
* @example
|
|
97
|
+
* ```typescript
|
|
98
|
+
* const results = await accessor
|
|
99
|
+
* .query()
|
|
100
|
+
* .where('Status', 'in', ['Active', 'Pending'])
|
|
101
|
+
* .where('CreatedAt', 'gte', '2025-01-01')
|
|
102
|
+
* .select('id', 'title', 'properties.*')
|
|
103
|
+
* .sortBy('createdAt', 'desc')
|
|
104
|
+
* .limit(100)
|
|
105
|
+
* .execute();
|
|
106
|
+
* ```
|
|
107
|
+
*/
|
|
108
|
+
query(): QueryBuilder<YfAgentLocationProperties, YfAgentLocationRecord>;
|
|
109
|
+
/** Access the underlying ApiProvider */
|
|
110
|
+
get provider(): ApiProvider;
|
|
111
|
+
}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* YfAgentLocation Accessor
|
|
4
|
+
*
|
|
5
|
+
* Provides typed access to YfAgentLocation records via API.
|
|
6
|
+
* Returns wrapped records with typed action methods.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```typescript
|
|
10
|
+
* // Get existing record
|
|
11
|
+
* const record = await accessor.get(id);
|
|
12
|
+
* await record.updateYfAgentLocation({ ... });
|
|
13
|
+
*
|
|
14
|
+
* // Create new record
|
|
15
|
+
* const newRecord = accessor.new();
|
|
16
|
+
* await newRecord.createYfAgentLocation({ ... });
|
|
17
|
+
* ```
|
|
18
|
+
*
|
|
19
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
20
|
+
*/
|
|
21
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
22
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
23
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
24
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
25
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
26
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
27
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }
|
|
31
|
+
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
|
|
32
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
33
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
34
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
35
|
+
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
36
|
+
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
37
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
38
|
+
function fulfill(value) { resume("next", value); }
|
|
39
|
+
function reject(value) { resume("throw", value); }
|
|
40
|
+
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
41
|
+
};
|
|
42
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43
|
+
exports.YfAgentLocationAccessor = void 0;
|
|
44
|
+
const api_provider_1 = require("@d19n/odin-sdk-generator/dist/api.provider");
|
|
45
|
+
const query_builder_1 = require("@d19n/odin-sdk-generator/dist/query-builder");
|
|
46
|
+
const YfAgentLocationRecord_1 = require("../records-v2/YfAgentLocationRecord");
|
|
47
|
+
class YfAgentLocationAccessor {
|
|
48
|
+
constructor(providerOrAuth, host) {
|
|
49
|
+
this._moduleName = 'FieldServiceModule';
|
|
50
|
+
this._entityName = 'YfAgentLocation';
|
|
51
|
+
if (providerOrAuth instanceof api_provider_1.ApiProvider) {
|
|
52
|
+
this._provider = providerOrAuth;
|
|
53
|
+
}
|
|
54
|
+
else if (typeof providerOrAuth === 'string') {
|
|
55
|
+
// Auth token provided
|
|
56
|
+
this._provider = new api_provider_1.ApiProvider(host ? { host } : undefined, providerOrAuth);
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
// OauthParams provided
|
|
60
|
+
this._provider = new api_provider_1.ApiProvider(providerOrAuth);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
get moduleName() { return this._moduleName; }
|
|
64
|
+
get entityName() { return this._entityName; }
|
|
65
|
+
// ============================================
|
|
66
|
+
// RECORD CREATION
|
|
67
|
+
// ============================================
|
|
68
|
+
/**
|
|
69
|
+
* Create a new empty YfAgentLocation record instance for create operations.
|
|
70
|
+
* Pre-generates an ID that can be referenced before the record is saved.
|
|
71
|
+
*
|
|
72
|
+
* @param id - Optional ID to use (auto-generated UUID if not provided)
|
|
73
|
+
* @returns A new record wrapper with pre-generated ID
|
|
74
|
+
*
|
|
75
|
+
* @example
|
|
76
|
+
* ```typescript
|
|
77
|
+
* // Auto-generated ID
|
|
78
|
+
* const note = odinClient.notes.new();
|
|
79
|
+
* console.log(note.id); // UUID available immediately
|
|
80
|
+
*
|
|
81
|
+
* // Custom ID
|
|
82
|
+
* const order = odinClient.orders.new("custom-id-123");
|
|
83
|
+
*
|
|
84
|
+
* // Reference ID before save
|
|
85
|
+
* const account = odinClient.accounts.new();
|
|
86
|
+
* const contact = odinClient.contacts.new();
|
|
87
|
+
* await contact
|
|
88
|
+
* .link({ id: account.id, entity: "CrmModule:Account" })
|
|
89
|
+
* .createContact({ FirstName: "John" });
|
|
90
|
+
* ```
|
|
91
|
+
*/
|
|
92
|
+
new(id) {
|
|
93
|
+
return new YfAgentLocationRecord_1.YfAgentLocationRecord(null, this._provider, id);
|
|
94
|
+
}
|
|
95
|
+
// ============================================
|
|
96
|
+
// RECORD RETRIEVAL
|
|
97
|
+
// ============================================
|
|
98
|
+
/**
|
|
99
|
+
* Get a single YfAgentLocation record by ID
|
|
100
|
+
*/
|
|
101
|
+
get(id) {
|
|
102
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
103
|
+
const record = yield this._provider._getByPrimaryKey(this._moduleName, this._entityName, id);
|
|
104
|
+
return new YfAgentLocationRecord_1.YfAgentLocationRecord(record, this._provider);
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Get multiple YfAgentLocation records by IDs
|
|
109
|
+
*/
|
|
110
|
+
getMany(ids) {
|
|
111
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
112
|
+
if (ids.length === 0)
|
|
113
|
+
return [];
|
|
114
|
+
const records = yield this._provider._getManyByPrimaryKey(this._moduleName, this._entityName, ids);
|
|
115
|
+
return records.map((r) => new YfAgentLocationRecord_1.YfAgentLocationRecord(r, this._provider));
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
// ============================================
|
|
119
|
+
// SEARCH OPERATIONS
|
|
120
|
+
// ============================================
|
|
121
|
+
/**
|
|
122
|
+
* Search YfAgentLocation records
|
|
123
|
+
*/
|
|
124
|
+
search(params) {
|
|
125
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
126
|
+
const result = yield this._provider._searchRecords(this._moduleName, this._entityName, params);
|
|
127
|
+
return {
|
|
128
|
+
records: result.records.map((r) => new YfAgentLocationRecord_1.YfAgentLocationRecord(r, this._provider)),
|
|
129
|
+
totalRecords: result.totalRecords,
|
|
130
|
+
hasMore: result.hasMore,
|
|
131
|
+
};
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Search all YfAgentLocation records with automatic pagination
|
|
136
|
+
*/
|
|
137
|
+
searchAll(params) {
|
|
138
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
139
|
+
const result = yield this._provider._searchAllRecordsAndPaginate(this._moduleName, this._entityName, params);
|
|
140
|
+
return result.records.map((r) => new YfAgentLocationRecord_1.YfAgentLocationRecord(r, this._provider));
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Async generator for paginating through all matching records.
|
|
145
|
+
* Yields batches of wrapped records.
|
|
146
|
+
*/
|
|
147
|
+
paginate(params) {
|
|
148
|
+
var _a;
|
|
149
|
+
return __asyncGenerator(this, arguments, function* paginate_1() {
|
|
150
|
+
let hasMore = true;
|
|
151
|
+
let searchAfter;
|
|
152
|
+
const query = Object.assign(Object.assign({}, params.query), { pageSize: ((_a = params.query) === null || _a === void 0 ? void 0 : _a.pageSize) || 500 });
|
|
153
|
+
while (hasMore) {
|
|
154
|
+
const result = yield __await(this._provider._searchRecords(this._moduleName, this._entityName, Object.assign(Object.assign({}, params), { query: Object.assign(Object.assign({}, query), { searchAfter }) })));
|
|
155
|
+
if (result.records.length > 0) {
|
|
156
|
+
yield yield __await(result.records.map((r) => new YfAgentLocationRecord_1.YfAgentLocationRecord(r, this._provider)));
|
|
157
|
+
const lastRecord = result.records[result.records.length - 1];
|
|
158
|
+
searchAfter = lastRecord === null || lastRecord === void 0 ? void 0 : lastRecord.sort;
|
|
159
|
+
}
|
|
160
|
+
hasMore = result.hasMore && result.records.length >= query.pageSize;
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
// ============================================
|
|
165
|
+
// QUERY BUILDER
|
|
166
|
+
// ============================================
|
|
167
|
+
/**
|
|
168
|
+
* Create a fluent query builder for YfAgentLocation records
|
|
169
|
+
*
|
|
170
|
+
* @example
|
|
171
|
+
* ```typescript
|
|
172
|
+
* const results = await accessor
|
|
173
|
+
* .query()
|
|
174
|
+
* .where('Status', 'in', ['Active', 'Pending'])
|
|
175
|
+
* .where('CreatedAt', 'gte', '2025-01-01')
|
|
176
|
+
* .select('id', 'title', 'properties.*')
|
|
177
|
+
* .sortBy('createdAt', 'desc')
|
|
178
|
+
* .limit(100)
|
|
179
|
+
* .execute();
|
|
180
|
+
* ```
|
|
181
|
+
*/
|
|
182
|
+
query() {
|
|
183
|
+
return (0, query_builder_1.createQueryBuilder)(this);
|
|
184
|
+
}
|
|
185
|
+
/** Access the underlying ApiProvider */
|
|
186
|
+
get provider() {
|
|
187
|
+
return this._provider;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
exports.YfAgentLocationAccessor = YfAgentLocationAccessor;
|
|
@@ -121,5 +121,6 @@ export { VoiceConfigurationAccessor, VoiceConfigurationSearchResponse, VoiceConf
|
|
|
121
121
|
export { WayleaveAuditAccessor, WayleaveAuditSearchResponse, WayleaveAuditListResponse } from './WayleaveAuditAccessor';
|
|
122
122
|
export { WorkOrderAccessor, WorkOrderSearchResponse, WorkOrderListResponse } from './WorkOrderAccessor';
|
|
123
123
|
export { WorkOrderStatusUpdateAccessor, WorkOrderStatusUpdateSearchResponse, WorkOrderStatusUpdateListResponse } from './WorkOrderStatusUpdateAccessor';
|
|
124
|
+
export { YfAgentLocationAccessor, YfAgentLocationSearchResponse, YfAgentLocationListResponse } from './YfAgentLocationAccessor';
|
|
124
125
|
export { YfFieldServiceVisitAccessor, YfFieldServiceVisitSearchResponse, YfFieldServiceVisitListResponse } from './YfFieldServiceVisitAccessor';
|
|
125
126
|
export { YfWifiSurveyAccessor, YfWifiSurveySearchResponse, YfWifiSurveyListResponse } from './YfWifiSurveyAccessor';
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
11
|
exports.NoteAccessor = exports.NetworkDeviceAccessor = exports.ModifyServiceRequestAccessor = exports.MessageAccessor = exports.LeadAccessor = exports.KnowledgeArticleAccessor = exports.InvoiceAccessor = exports.InvoiceItemAccessor = exports.ImpersonationTrackerAccessor = exports.FileAccessor = exports.FieldServiceProductAccessor = exports.FieldServiceDispatchedProductAccessor = exports.ExchangeAccessor = exports.EmailTemplateAccessor = exports.EmailSenderAccessor = exports.EmailAccessor = exports.DiscountAccessor = exports.DataIssueAccessor = exports.CustomerPhonePortingAccessor = exports.CustomerDeviceRouterAccessor = exports.CustomerDeviceAccessor = exports.CustomerDeviceOntAccessor = exports.CustomerDeviceConfigurationAccessor = exports.CustomerDeviceAtaAccessor = exports.CrmDatasetAccessor = exports.CreditNoteAccessor = exports.ConversationSummaryFeedbackAccessor = exports.ConversationAccessor = exports.ContractBuyOutAccessor = exports.ContactAccessor = exports.ContactIdentityAccessor = exports.ConfigAccessor = exports.ChurnRequestAccessor = exports.ChangeReasonAccessor = exports.CaseAccessor = exports.CampaignAccessor = exports.CallAccessor = exports.CallLegAccessor = exports.BrskEntityMigrationErrorAccessor = exports.BngProvisionAccessor = exports.BillingRequestAccessor = exports.BillingAdjustmentAccessor = exports.AppointmentAccessor = exports.AffiliateCodeAccessor = exports.AddressAccessor = exports.AddressInteractionAccessor = exports.ActivityAccessor = exports.ActivityLogAccessor = exports.AccountAccessor = exports.AccountCreditAccessor = void 0;
|
|
12
12
|
exports.SmsTemplateAccessor = exports.SmsMessageAccessor = exports.SiteSpecificRiskAssessmentOutcomeFormAccessor = exports.ServiceAccessor = exports.ServiceAppointmentAccessor = exports.ServiceAppointmentConfigAccessor = exports.ScheduleSlotAccessor = exports.SalesTerritoryAccessor = exports.RewardAccessor = exports.ReturnsAccessor = exports.RemediationRequiredReasonAccessor = exports.RemediationOutcomeFormAccessor = exports.RegionAccessor = exports.ReferralAccessor = exports.PushNotificationAccessor = exports.ProductAccessor = exports.PriceBookAccessor = exports.PgWebhookAccessor = exports.PgWebhookAttemptAccessor = exports.PgVocalinkAccessor = exports.PgTransactionAccessor = exports.PgSortCodeSubstitutionAccessor = exports.PgReportEventAccessor = exports.PgPaymentMethodAccessor = exports.PgLogAccessor = exports.PgFileAllocationAccessor = exports.PgDisputeAccessor = exports.PgDirectDebitFileAccessor = exports.PgContactAccessor = exports.PgAccountValidationAccessor = exports.PermissionToFailAccessor = exports.PaymentAccessor = exports.PaymentMethodRefundAccessor = exports.PaymentMethodAccessor = exports.PICRequestAccessor = exports.OverlayRealA55Accessor = exports.OutboundDialSessionAccessor = exports.OutboundDialCampaignAccessor = exports.OutboundDialCampaignCaseAccessor = exports.OutageAccessor = exports.OrderAccessor = exports.OrderKciAccessor = exports.OrderItemAccessor = exports.OrderCheckAccessor = exports.OntReplacementApprovalAccessor = exports.OneTouchSwitchAccessor = exports.OhExternalAuditAccessor = exports.OfferTemplateAccessor = exports.OfferAccessor = exports.NotificationTemplateAccessor = void 0;
|
|
13
|
-
exports.YfWifiSurveyAccessor = exports.YfFieldServiceVisitAccessor = exports.WorkOrderStatusUpdateAccessor = exports.WorkOrderAccessor = exports.WayleaveAuditAccessor = exports.VoiceConfigurationAccessor = exports.VisitAccessor = exports.UserAccessor = exports.UgExternalAuditAccessor = exports.TwilioWorkerAccessor = exports.TwilioUserUpdateAccessor = exports.TwilioTaskQueueAccessor = exports.TwilioCallEventAccessor = exports.TwilioActivityAccessor = exports.TransactionAccessor = exports.TimeSlotAccessor = exports.TeamAccessor = void 0;
|
|
13
|
+
exports.YfWifiSurveyAccessor = exports.YfFieldServiceVisitAccessor = exports.YfAgentLocationAccessor = exports.WorkOrderStatusUpdateAccessor = exports.WorkOrderAccessor = exports.WayleaveAuditAccessor = exports.VoiceConfigurationAccessor = exports.VisitAccessor = exports.UserAccessor = exports.UgExternalAuditAccessor = exports.TwilioWorkerAccessor = exports.TwilioUserUpdateAccessor = exports.TwilioTaskQueueAccessor = exports.TwilioCallEventAccessor = exports.TwilioActivityAccessor = exports.TransactionAccessor = exports.TimeSlotAccessor = exports.TeamAccessor = void 0;
|
|
14
14
|
var AccountCreditAccessor_1 = require("./AccountCreditAccessor");
|
|
15
15
|
Object.defineProperty(exports, "AccountCreditAccessor", { enumerable: true, get: function () { return AccountCreditAccessor_1.AccountCreditAccessor; } });
|
|
16
16
|
var AccountAccessor_1 = require("./AccountAccessor");
|
|
@@ -241,6 +241,8 @@ var WorkOrderAccessor_1 = require("./WorkOrderAccessor");
|
|
|
241
241
|
Object.defineProperty(exports, "WorkOrderAccessor", { enumerable: true, get: function () { return WorkOrderAccessor_1.WorkOrderAccessor; } });
|
|
242
242
|
var WorkOrderStatusUpdateAccessor_1 = require("./WorkOrderStatusUpdateAccessor");
|
|
243
243
|
Object.defineProperty(exports, "WorkOrderStatusUpdateAccessor", { enumerable: true, get: function () { return WorkOrderStatusUpdateAccessor_1.WorkOrderStatusUpdateAccessor; } });
|
|
244
|
+
var YfAgentLocationAccessor_1 = require("./YfAgentLocationAccessor");
|
|
245
|
+
Object.defineProperty(exports, "YfAgentLocationAccessor", { enumerable: true, get: function () { return YfAgentLocationAccessor_1.YfAgentLocationAccessor; } });
|
|
244
246
|
var YfFieldServiceVisitAccessor_1 = require("./YfFieldServiceVisitAccessor");
|
|
245
247
|
Object.defineProperty(exports, "YfFieldServiceVisitAccessor", { enumerable: true, get: function () { return YfFieldServiceVisitAccessor_1.YfFieldServiceVisitAccessor; } });
|
|
246
248
|
var YfWifiSurveyAccessor_1 = require("./YfWifiSurveyAccessor");
|
|
@@ -22,7 +22,7 @@ export interface CreateContactMessage extends OdinRecordCreatedEvent<CreateConta
|
|
|
22
22
|
* Properties for CreateContact action
|
|
23
23
|
*
|
|
24
24
|
* @property Required fields: 3
|
|
25
|
-
* @property Optional fields:
|
|
25
|
+
* @property Optional fields: 2
|
|
26
26
|
*/
|
|
27
27
|
export interface CreateContactProperties {
|
|
28
28
|
/**
|
|
@@ -49,13 +49,6 @@ export interface CreateContactProperties {
|
|
|
49
49
|
* @required
|
|
50
50
|
*/
|
|
51
51
|
EmailAddress: string;
|
|
52
|
-
/**
|
|
53
|
-
* Marketing Consent
|
|
54
|
-
*
|
|
55
|
-
* I am happy to hear from YouFibre by email, WhatsApp and SMS about YouFibre’s broadband packages and any special offers. I am aware that I can opt-out at any time. For details on how we manage your data, please see our privacy policy.
|
|
56
|
-
* @type {BOOLEAN}
|
|
57
|
-
*/
|
|
58
|
-
MarketingConsent?: boolean | null;
|
|
59
52
|
/**
|
|
60
53
|
* Phone
|
|
61
54
|
*
|
|
@@ -63,6 +56,13 @@ export interface CreateContactProperties {
|
|
|
63
56
|
* @type {PHONE_NUMBER_E164_GB}
|
|
64
57
|
*/
|
|
65
58
|
Phone?: string | null;
|
|
59
|
+
/**
|
|
60
|
+
* Marketing Consent
|
|
61
|
+
*
|
|
62
|
+
* I am happy to hear from YouFibre by email, WhatsApp and SMS about YouFibre’s broadband packages and any special offers. I am aware that I can opt-out at any time. For details on how we manage your data, please see our privacy policy.
|
|
63
|
+
* @type {BOOLEAN}
|
|
64
|
+
*/
|
|
65
|
+
MarketingConsent?: boolean | null;
|
|
66
66
|
}
|
|
67
67
|
/**
|
|
68
68
|
* CreateContact
|
|
@@ -87,7 +87,7 @@ export declare class CreateLeadDto extends OdinRecordCreateDto<CreateLeadPropert
|
|
|
87
87
|
* Properties for CreateContact action
|
|
88
88
|
*
|
|
89
89
|
* @property Required fields: 3
|
|
90
|
-
* @property Optional fields:
|
|
90
|
+
* @property Optional fields: 2
|
|
91
91
|
*/
|
|
92
92
|
export interface CreateContactProperties {
|
|
93
93
|
/**
|
|
@@ -114,13 +114,6 @@ export interface CreateContactProperties {
|
|
|
114
114
|
* @required
|
|
115
115
|
*/
|
|
116
116
|
EmailAddress: string;
|
|
117
|
-
/**
|
|
118
|
-
* Marketing Consent
|
|
119
|
-
*
|
|
120
|
-
* I am happy to hear from YouFibre by email, WhatsApp and SMS about YouFibre’s broadband packages and any special offers. I am aware that I can opt-out at any time. For details on how we manage your data, please see our privacy policy.
|
|
121
|
-
* @type {BOOLEAN}
|
|
122
|
-
*/
|
|
123
|
-
MarketingConsent?: boolean | null;
|
|
124
117
|
/**
|
|
125
118
|
* Phone
|
|
126
119
|
*
|
|
@@ -128,6 +121,13 @@ export interface CreateContactProperties {
|
|
|
128
121
|
* @type {PHONE_NUMBER_E164_GB}
|
|
129
122
|
*/
|
|
130
123
|
Phone?: string | null;
|
|
124
|
+
/**
|
|
125
|
+
* Marketing Consent
|
|
126
|
+
*
|
|
127
|
+
* I am happy to hear from YouFibre by email, WhatsApp and SMS about YouFibre’s broadband packages and any special offers. I am aware that I can opt-out at any time. For details on how we manage your data, please see our privacy policy.
|
|
128
|
+
* @type {BOOLEAN}
|
|
129
|
+
*/
|
|
130
|
+
MarketingConsent?: boolean | null;
|
|
131
131
|
}
|
|
132
132
|
/**
|
|
133
133
|
* CreateContact
|