@d19n/youfibre-odin-sdk 2.0.383 → 2.0.384

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 (42) hide show
  1. package/README.md +22 -1
  2. package/dist/EntityRegistry.d.ts +2 -0
  3. package/dist/EntityRegistry.js +2 -0
  4. package/dist/OdinApiClient.d.ts +4 -0
  5. package/dist/OdinApiClient.js +8 -0
  6. package/dist/OdinDbClient.d.ts +4 -0
  7. package/dist/OdinDbClient.js +8 -0
  8. package/dist/accessors-v2/TaskAccessor.d.ts +112 -0
  9. package/dist/accessors-v2/TaskAccessor.js +191 -0
  10. package/dist/accessors-v2/index.d.ts +1 -0
  11. package/dist/accessors-v2/index.js +3 -1
  12. package/dist/actions-v2/MoveTaskToDoneDto.d.ts +67 -0
  13. package/dist/actions-v2/MoveTaskToDoneDto.js +59 -0
  14. package/dist/actions-v2/MoveTaskToInProgressDto.d.ts +67 -0
  15. package/dist/actions-v2/MoveTaskToInProgressDto.js +59 -0
  16. package/dist/actions-v2/MoveTaskToOnHoldDto.d.ts +67 -0
  17. package/dist/actions-v2/MoveTaskToOnHoldDto.js +59 -0
  18. package/dist/actions-v2/MoveTaskToStopDto.d.ts +67 -0
  19. package/dist/actions-v2/MoveTaskToStopDto.js +59 -0
  20. package/dist/actions-v2/MoveTaskToTodoDto.d.ts +67 -0
  21. package/dist/actions-v2/MoveTaskToTodoDto.js +59 -0
  22. package/dist/actions-v2/UpdateAddressAvailabilityChecksDto.d.ts +79 -0
  23. package/dist/actions-v2/UpdateAddressAvailabilityChecksDto.js +56 -0
  24. package/dist/db-accessors-v2/TaskDbAccessor.d.ts +180 -0
  25. package/dist/db-accessors-v2/TaskDbAccessor.js +265 -0
  26. package/dist/db-accessors-v2/index.d.ts +1 -0
  27. package/dist/db-accessors-v2/index.js +3 -1
  28. package/dist/entities-v2/Address.d.ts +17 -1
  29. package/dist/entities-v2/Address.js +4 -0
  30. package/dist/entities-v2/OrderItem.d.ts +5 -1
  31. package/dist/entities-v2/OrderItem.js +5 -1
  32. package/dist/entities-v2/RouterPingSnapshot.d.ts +0 -6
  33. package/dist/entities-v2/RouterPingSnapshot.js +1 -5
  34. package/dist/records-v2/AddressRecord.d.ts +28 -0
  35. package/dist/records-v2/AddressRecord.js +37 -0
  36. package/dist/records-v2/NoteRecord.d.ts +20 -0
  37. package/dist/records-v2/NoteRecord.js +33 -0
  38. package/dist/records-v2/TaskRecord.d.ts +283 -0
  39. package/dist/records-v2/TaskRecord.js +370 -0
  40. package/dist/records-v2/index.d.ts +1 -0
  41. package/dist/records-v2/index.js +5 -2
  42. package/package.json +1 -1
@@ -0,0 +1,370 @@
1
+ "use strict";
2
+ /**
3
+ * Task Record Wrapper
4
+ *
5
+ * Provides typed action methods and link management.
6
+ * Works with both ApiProvider and DbProvider.
7
+ *
8
+ * All action methods return an ActionBuilder or FlowBuilder.
9
+ * Call .execute() to run or .dryRun() to get the payload for debugging.
10
+ *
11
+ * Can be instantiated with null record for create operations:
12
+ * ```typescript
13
+ * const record = odinClient.tasks.new();
14
+ * await record.createTask({ ... }).execute();
15
+ * ```
16
+ *
17
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
18
+ */
19
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
20
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
21
+ return new (P || (P = Promise))(function (resolve, reject) {
22
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
23
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
24
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
25
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
26
+ });
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.isTaskRecord = exports.TaskRecord = void 0;
30
+ const uuid_1 = require("uuid");
31
+ const core_1 = require("@d19n/odin-types/dist/core");
32
+ const record_link_manager_1 = require("@d19n/odin-sdk-generator/dist/record-link-manager");
33
+ const NoteRecord_1 = require("./NoteRecord");
34
+ /**
35
+ * Builder for action execution with dryRun support
36
+ *
37
+ * Provides a consistent API across all action types:
38
+ * - `.execute()` - Execute the action and return results
39
+ * - `.dryRun()` - Return the payload without executing (for debugging)
40
+ */
41
+ class ActionBuilder {
42
+ constructor(provider, moduleName, entityName, payload, clearPendingLinks) {
43
+ this._provider = provider;
44
+ this._moduleName = moduleName;
45
+ this._entityName = entityName;
46
+ this._payload = payload;
47
+ this._clearPendingLinks = clearPendingLinks;
48
+ }
49
+ /**
50
+ * Set an external system identifier for this record.
51
+ * Links the record to a corresponding entry in an external application.
52
+ *
53
+ * @param externalId - The ID in the external system
54
+ * @param externalAppId - The external application identifier
55
+ * @returns this (for chaining)
56
+ *
57
+ * @example
58
+ * ```typescript
59
+ * await record.createOrder({ ... }).withExternalId('SF-123', 'salesforce').execute();
60
+ * ```
61
+ */
62
+ withExternalId(externalId, externalAppId) {
63
+ this._payload.externalId = externalId;
64
+ this._payload.externalAppId = externalAppId;
65
+ return this;
66
+ }
67
+ /**
68
+ * Set security/access groups for this record.
69
+ * Controls which user groups can access the record.
70
+ *
71
+ * @param groups - Array of group names
72
+ * @returns this (for chaining)
73
+ *
74
+ * @example
75
+ * ```typescript
76
+ * await record.createOrder({ ... }).withGroups(['TenantA', 'BillingTeam']).execute();
77
+ * ```
78
+ */
79
+ withGroups(groups) {
80
+ this._payload.groups = groups;
81
+ return this;
82
+ }
83
+ /**
84
+ * Execute the action
85
+ * @returns The result from the API
86
+ */
87
+ execute() {
88
+ return __awaiter(this, void 0, void 0, function* () {
89
+ const result = yield this._provider._applyAction(this._moduleName, this._entityName, this._payload);
90
+ this._clearPendingLinks();
91
+ return result;
92
+ });
93
+ }
94
+ /**
95
+ * Returns the request payload without executing (for debugging)
96
+ * @returns The request payload that would be sent to the API
97
+ */
98
+ dryRun() {
99
+ return this._payload;
100
+ }
101
+ /**
102
+ * Prevents accidental `await actionBuilder` without .execute()
103
+ * Forces developers to explicitly call .execute()
104
+ * @throws Error always - use .execute() or .dryRun() instead
105
+ */
106
+ then() {
107
+ throw new Error('ActionBuilder cannot be awaited directly. Call .execute() to run the action or .dryRun() to get the payload.');
108
+ }
109
+ }
110
+ class TaskRecord {
111
+ /**
112
+ * Create a record wrapper.
113
+ * @param record - The underlying record, or null for create operations
114
+ * @param provider - The API or DB provider
115
+ * @param preGeneratedId - Optional pre-generated ID for new records (auto-generated if not provided)
116
+ */
117
+ constructor(record, provider, preGeneratedId) {
118
+ this._pendingLinks = [];
119
+ this._record = record;
120
+ this._provider = provider;
121
+ this._preGeneratedId = preGeneratedId !== null && preGeneratedId !== void 0 ? preGeneratedId : (0, uuid_1.v4)();
122
+ }
123
+ // ============================================
124
+ // CORE PROPERTIES
125
+ // ============================================
126
+ /** Returns true if this is a new (unsaved) record */
127
+ get isNew() { var _a; return !((_a = this._record) === null || _a === void 0 ? void 0 : _a.id); }
128
+ /** Record ID - always available (pre-generated for new records) */
129
+ get id() { var _a, _b; return (_b = (_a = this._record) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : this._preGeneratedId; }
130
+ get entity() { var _a, _b; return (_b = (_a = this._record) === null || _a === void 0 ? void 0 : _a.entity) !== null && _b !== void 0 ? _b : 'ProjectModule:Task'; }
131
+ get type() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.type; }
132
+ /** Record properties - empty object for new (unsaved) records */
133
+ get properties() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.properties) || {}; }
134
+ get title() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.title; }
135
+ get recordNumber() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.recordNumber; }
136
+ get stage() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.stage; }
137
+ get createdAt() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.createdAt; }
138
+ get updatedAt() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.updatedAt; }
139
+ get externalId() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.externalId; }
140
+ get externalAppId() { var _a; return (_a = this._record) === null || _a === void 0 ? void 0 : _a.externalAppId; }
141
+ get groups() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.groups) || []; }
142
+ /** Link metadata - populated only when the read passed withLinks (empty otherwise) */
143
+ get links() { var _a, _b; return (_b = (_a = this._record) === null || _a === void 0 ? void 0 : _a.links) !== null && _b !== void 0 ? _b : []; }
144
+ /** Access the underlying OdinRecord (null for new records) */
145
+ get record() { return this._record; }
146
+ /**
147
+ * Access linked Note records
148
+ * @remarks Available labels: Task__Note
149
+ * @throws Error if called on a new (unsaved) record
150
+ *
151
+ * @example
152
+ * ```typescript
153
+ * // Get all linked Note records
154
+ * const items = await record.notes.list();
155
+ * const first = await record.notes.first();
156
+ *
157
+ * // Filter by label
158
+ * const specific = await record.notes.first({ label: 'Task__Note' });
159
+ * ```
160
+ */
161
+ get notes() {
162
+ var _a;
163
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
164
+ throw new Error('Cannot access links on a new (unsaved) record');
165
+ if (!this._notes) {
166
+ this._notes = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
167
+ sourceEntity: 'ProjectModule:Task',
168
+ targetEntity: 'SupportModule:Note',
169
+ targetModuleName: 'SupportModule',
170
+ targetEntityName: 'Note',
171
+ labels: ['Task__Note'],
172
+ }, NoteRecord_1.NoteRecord);
173
+ }
174
+ return this._notes;
175
+ }
176
+ // ============================================
177
+ // LINK MANAGEMENT
178
+ // ============================================
179
+ /**
180
+ * Queue a link to be created with the next action.
181
+ * Works for both create and update actions.
182
+ * @returns this (for chaining)
183
+ */
184
+ link(target) {
185
+ this._pendingLinks.push(new core_1.OdinRecordLinkDto({ id: target.id, entity: target.entity }));
186
+ return this;
187
+ }
188
+ /** Get the currently queued links */
189
+ get pendingLinks() {
190
+ return [...this._pendingLinks];
191
+ }
192
+ /** Clear pending links without executing an action */
193
+ clearPendingLinks() {
194
+ this._pendingLinks = [];
195
+ return this;
196
+ }
197
+ /**
198
+ * Immediately unlink a record (API call).
199
+ * Unlike link(), this executes immediately.
200
+ * @throws Error if called on a new (unsaved) record
201
+ */
202
+ unlink(target) {
203
+ var _a;
204
+ return __awaiter(this, void 0, void 0, function* () {
205
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
206
+ throw new Error('Cannot unlink from a new (unsaved) record');
207
+ const targetId = typeof target === 'string' ? target : target.id;
208
+ yield this._provider._deleteLinks('ProjectModule', 'Task', this._record.id, targetId);
209
+ });
210
+ }
211
+ // ============================================
212
+ // UPDATE ACTIONS (require existing record)
213
+ // ============================================
214
+ /**
215
+ * MoveTaskToDone
216
+ *
217
+ * Transitions this Task record to a new pipeline stage.
218
+ * Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
219
+ *
220
+ * @remarks Transitions to stage: TaskStageDone
221
+ *
222
+ * @param options - Optional settings
223
+ * @param options.journeyId - Associate with a journey
224
+ * @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
225
+ * @throws Error if called on a new (unsaved) record
226
+ *
227
+ * @example
228
+ * ```typescript
229
+ * const record = await odinClient.tasks.get(id);
230
+ * await record.moveTaskToDone().execute();
231
+ *
232
+ * // Dry run (for debugging)
233
+ * const payload = record.moveTaskToDone().dryRun();
234
+ * ```
235
+ */
236
+ moveTaskToDone(options) {
237
+ var _a;
238
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
239
+ throw new Error('moveTaskToDone requires an existing record. Use accessor.get() first.');
240
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MoveTaskToDone', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'TaskStageDone' }, options);
241
+ return new ActionBuilder(this._provider, 'ProjectModule', 'Task', payload, () => { this._pendingLinks = []; });
242
+ }
243
+ /**
244
+ * MoveTaskToInProgress
245
+ *
246
+ * Transitions this Task record to a new pipeline stage.
247
+ * Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
248
+ *
249
+ * @remarks Transitions to stage: TaskStageInProgress
250
+ *
251
+ * @param options - Optional settings
252
+ * @param options.journeyId - Associate with a journey
253
+ * @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
254
+ * @throws Error if called on a new (unsaved) record
255
+ *
256
+ * @example
257
+ * ```typescript
258
+ * const record = await odinClient.tasks.get(id);
259
+ * await record.moveTaskToInProgress().execute();
260
+ *
261
+ * // Dry run (for debugging)
262
+ * const payload = record.moveTaskToInProgress().dryRun();
263
+ * ```
264
+ */
265
+ moveTaskToInProgress(options) {
266
+ var _a;
267
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
268
+ throw new Error('moveTaskToInProgress requires an existing record. Use accessor.get() first.');
269
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MoveTaskToInProgress', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'TaskStageInProgress' }, options);
270
+ return new ActionBuilder(this._provider, 'ProjectModule', 'Task', payload, () => { this._pendingLinks = []; });
271
+ }
272
+ /**
273
+ * MoveTaskToOnHold
274
+ *
275
+ * Transitions this Task record to a new pipeline stage.
276
+ * Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
277
+ *
278
+ * @remarks Transitions to stage: TaskStageOnHold
279
+ *
280
+ * @param options - Optional settings
281
+ * @param options.journeyId - Associate with a journey
282
+ * @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
283
+ * @throws Error if called on a new (unsaved) record
284
+ *
285
+ * @example
286
+ * ```typescript
287
+ * const record = await odinClient.tasks.get(id);
288
+ * await record.moveTaskToOnHold().execute();
289
+ *
290
+ * // Dry run (for debugging)
291
+ * const payload = record.moveTaskToOnHold().dryRun();
292
+ * ```
293
+ */
294
+ moveTaskToOnHold(options) {
295
+ var _a;
296
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
297
+ throw new Error('moveTaskToOnHold requires an existing record. Use accessor.get() first.');
298
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MoveTaskToOnHold', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'TaskStageOnHold' }, options);
299
+ return new ActionBuilder(this._provider, 'ProjectModule', 'Task', payload, () => { this._pendingLinks = []; });
300
+ }
301
+ /**
302
+ * MoveTaskToStop
303
+ *
304
+ * Transitions this Task record to a new pipeline stage.
305
+ * Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
306
+ *
307
+ * @remarks Transitions to stage: ProjectStageStop
308
+ *
309
+ * @param options - Optional settings
310
+ * @param options.journeyId - Associate with a journey
311
+ * @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
312
+ * @throws Error if called on a new (unsaved) record
313
+ *
314
+ * @example
315
+ * ```typescript
316
+ * const record = await odinClient.tasks.get(id);
317
+ * await record.moveTaskToStop().execute();
318
+ *
319
+ * // Dry run (for debugging)
320
+ * const payload = record.moveTaskToStop().dryRun();
321
+ * ```
322
+ */
323
+ moveTaskToStop(options) {
324
+ var _a;
325
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
326
+ throw new Error('moveTaskToStop requires an existing record. Use accessor.get() first.');
327
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MoveTaskToStop', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'ProjectStageStop' }, options);
328
+ return new ActionBuilder(this._provider, 'ProjectModule', 'Task', payload, () => { this._pendingLinks = []; });
329
+ }
330
+ /**
331
+ * MoveTaskToTodo
332
+ *
333
+ * Transitions this Task record to a new pipeline stage.
334
+ * Returns an ActionBuilder - call .execute() to transition or .dryRun() for debugging.
335
+ *
336
+ * @remarks Transitions to stage: TaskStageTodo
337
+ *
338
+ * @param options - Optional settings
339
+ * @param options.journeyId - Associate with a journey
340
+ * @returns ActionBuilder - call .execute() to transition or .dryRun() for payload
341
+ * @throws Error if called on a new (unsaved) record
342
+ *
343
+ * @example
344
+ * ```typescript
345
+ * const record = await odinClient.tasks.get(id);
346
+ * await record.moveTaskToTodo().execute();
347
+ *
348
+ * // Dry run (for debugging)
349
+ * const payload = record.moveTaskToTodo().dryRun();
350
+ * ```
351
+ */
352
+ moveTaskToTodo(options) {
353
+ var _a;
354
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
355
+ throw new Error('moveTaskToTodo requires an existing record. Use accessor.get() first.');
356
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'MoveTaskToTodo', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'TaskStageTodo' }, options);
357
+ return new ActionBuilder(this._provider, 'ProjectModule', 'Task', payload, () => { this._pendingLinks = []; });
358
+ }
359
+ }
360
+ exports.TaskRecord = TaskRecord;
361
+ // ============================================
362
+ // TYPED LINK ACCESSORS
363
+ // ============================================
364
+ /** Valid labels for Note associations */
365
+ TaskRecord.notesLabels = ['Task__Note'];
366
+ /** Type guard to check if an object is a TaskRecord */
367
+ function isTaskRecord(obj) {
368
+ return obj instanceof TaskRecord;
369
+ }
370
+ exports.isTaskRecord = isTaskRecord;
@@ -126,6 +126,7 @@ export { KnowledgeArticleRecord, isKnowledgeArticleRecord } from './KnowledgeArt
126
126
  export { RemediationRequiredReasonRecord, isRemediationRequiredReasonRecord } from './RemediationRequiredReasonRecord';
127
127
  export { SiteSpecificRiskAssessmentOutcomeFormRecord, isSiteSpecificRiskAssessmentOutcomeFormRecord } from './SiteSpecificRiskAssessmentOutcomeFormRecord';
128
128
  export { OutageRecord, isOutageRecord } from './OutageRecord';
129
+ export { TaskRecord, isTaskRecord } from './TaskRecord';
129
130
  export { ServiceAppointmentRecord, isServiceAppointmentRecord } from './ServiceAppointmentRecord';
130
131
  export { OfferRecord, isOfferRecord } from './OfferRecord';
131
132
  export { OverlayRealA55Record, isOverlayRealA55Record } from './OverlayRealA55Record';
@@ -15,8 +15,8 @@ exports.isUgExternalAuditRecord = exports.UgExternalAuditRecord = exports.isPaym
15
15
  exports.isCustomerDeviceOntRecord = exports.CustomerDeviceOntRecord = exports.isCustomerDeviceConfigurationRecord = exports.CustomerDeviceConfigurationRecord = exports.isCustomerDeviceRecord = exports.CustomerDeviceRecord = exports.isConversationSummaryFeedbackRecord = exports.ConversationSummaryFeedbackRecord = exports.isContactIdentityRecord = exports.ContactIdentityRecord = exports.isConfigRecord = exports.ConfigRecord = exports.isMessageRecord = exports.MessageRecord = exports.isOrderKciRecord = exports.OrderKciRecord = exports.isRewardRecord = exports.RewardRecord = exports.isContactRecord = exports.ContactRecord = exports.isCallRecord = exports.CallRecord = exports.isTwilioCallEventRecord = exports.TwilioCallEventRecord = exports.isProductRecord = exports.ProductRecord = exports.isBrskEntityMigrationErrorRecord = exports.BrskEntityMigrationErrorRecord = exports.isBngProvisionRecord = exports.BngProvisionRecord = exports.isPgFileAllocationRecord = exports.PgFileAllocationRecord = exports.isAppointmentRecord = exports.AppointmentRecord = exports.isEmailRecord = exports.EmailRecord = exports.isCallLegRecord = exports.CallLegRecord = exports.isAffiliateCodeRecord = exports.AffiliateCodeRecord = exports.isActivityLogRecord = exports.ActivityLogRecord = exports.isAccountCreditRecord = exports.AccountCreditRecord = exports.isYfFieldVisitOutcomeFormRecord = exports.YfFieldVisitOutcomeFormRecord = exports.isRemediationOutcomeFormRecord = exports.RemediationOutcomeFormRecord = exports.isOhExternalAuditRecord = exports.OhExternalAuditRecord = void 0;
16
16
  exports.isReferralRecord = exports.ReferralRecord = exports.isOrderCheckRecord = exports.OrderCheckRecord = exports.isCampaignRecord = exports.CampaignRecord = exports.isOneTouchSwitchRecord = exports.OneTouchSwitchRecord = exports.isOfferTemplateRecord = exports.OfferTemplateRecord = exports.isReturnsRecord = exports.ReturnsRecord = exports.isNetworkDeviceRecord = exports.NetworkDeviceRecord = exports.isModifyServiceRequestRecord = exports.ModifyServiceRequestRecord = exports.isLeadRecord = exports.LeadRecord = exports.isInvoiceItemRecord = exports.InvoiceItemRecord = exports.isImpersonationTrackerRecord = exports.ImpersonationTrackerRecord = exports.isHomeMoveRecord = exports.HomeMoveRecord = exports.isActivityRecord = exports.ActivityRecord = exports.isFileRecord = exports.FileRecord = exports.isFieldServiceProductRecord = exports.FieldServiceProductRecord = exports.isFieldServiceDispatchedProductRecord = exports.FieldServiceDispatchedProductRecord = exports.isExchangeRecord = exports.ExchangeRecord = exports.isEquipmentReturnItemRecord = exports.EquipmentReturnItemRecord = exports.isEquipmentReturnRecord = exports.EquipmentReturnRecord = exports.isEmailTemplateRecord = exports.EmailTemplateRecord = exports.isEmailSenderRecord = exports.EmailSenderRecord = exports.isEdgarPICFeedbackRecord = exports.EdgarPICFeedbackRecord = exports.isEdgarFeedbackRecord = exports.EdgarFeedbackRecord = exports.isDocumentProcessingRecord = exports.DocumentProcessingRecord = exports.isDocumentRecord = exports.DocumentRecord = void 0;
17
17
  exports.isTwilioActivityRecord = exports.TwilioActivityRecord = exports.isTimeSlotRecord = exports.TimeSlotRecord = exports.isTeamRecord = exports.TeamRecord = exports.isSalesTerritoryRecord = exports.SalesTerritoryRecord = exports.isRegionRecord = exports.RegionRecord = exports.isVoiceConfigurationRecord = exports.VoiceConfigurationRecord = exports.isOrderItemRecord = exports.OrderItemRecord = exports.isRecontractRecord = exports.RecontractRecord = exports.isQaReportRecord = exports.QaReportRecord = exports.isPushNotificationRecord = exports.PushNotificationRecord = exports.isPgWebhookRecord = exports.PgWebhookRecord = exports.isPgWebhookAttemptRecord = exports.PgWebhookAttemptRecord = exports.isPgAccountValidationRecord = exports.PgAccountValidationRecord = exports.isPgTransactionRecord = exports.PgTransactionRecord = exports.isPgSortCodeSubstitutionRecord = exports.PgSortCodeSubstitutionRecord = exports.isPgVocalinkRecord = exports.PgVocalinkRecord = exports.isPgDirectDebitFileRecord = exports.PgDirectDebitFileRecord = exports.isPgReportEventRecord = exports.PgReportEventRecord = exports.isPgPaymentMethodRecord = exports.PgPaymentMethodRecord = exports.isPgLogRecord = exports.PgLogRecord = exports.isPgDisputeRecord = exports.PgDisputeRecord = exports.isPgContactRecord = exports.PgContactRecord = exports.isSmsMessageRecord = exports.SmsMessageRecord = exports.isOutboundDialSessionRecord = exports.OutboundDialSessionRecord = exports.isOutboundDialCampaignRecord = exports.OutboundDialCampaignRecord = void 0;
18
- exports.isServiceRecord = exports.ServiceRecord = exports.isNotificationTemplateRecord = exports.NotificationTemplateRecord = exports.isAgentStatusRecord = exports.AgentStatusRecord = exports.isScheduleSlotRecord = exports.ScheduleSlotRecord = exports.isPriceBookRecord = exports.PriceBookRecord = exports.isOverlayRealA55Record = exports.OverlayRealA55Record = exports.isOfferRecord = exports.OfferRecord = exports.isServiceAppointmentRecord = exports.ServiceAppointmentRecord = exports.isOutageRecord = exports.OutageRecord = exports.isSiteSpecificRiskAssessmentOutcomeFormRecord = exports.SiteSpecificRiskAssessmentOutcomeFormRecord = exports.isRemediationRequiredReasonRecord = exports.RemediationRequiredReasonRecord = exports.isKnowledgeArticleRecord = exports.KnowledgeArticleRecord = exports.isInvoiceRecord = exports.InvoiceRecord = exports.isDiscountRecord = exports.DiscountRecord = exports.isCustomerDeviceAtaRecord = exports.CustomerDeviceAtaRecord = exports.isCreditNoteRecord = exports.CreditNoteRecord = exports.isOutboundDialCampaignCaseRecord = exports.OutboundDialCampaignCaseRecord = exports.isYfWifiSurveyRecord = exports.YfWifiSurveyRecord = exports.isYfAgentLocationRecord = exports.YfAgentLocationRecord = exports.isWorkOrderStatusUpdateRecord = exports.WorkOrderStatusUpdateRecord = exports.isWayleaveAuditRecord = exports.WayleaveAuditRecord = exports.isUserRecord = exports.UserRecord = exports.isTwilioWorkerRecord = exports.TwilioWorkerRecord = exports.isTwilioUserUpdateRecord = exports.TwilioUserUpdateRecord = exports.isTwilioTaskQueueRecord = exports.TwilioTaskQueueRecord = void 0;
19
- exports.isCustomerPhonePortingRecord = exports.CustomerPhonePortingRecord = exports.isVisitRecord = exports.VisitRecord = exports.isSmsTemplateRecord = exports.SmsTemplateRecord = void 0;
18
+ exports.isNotificationTemplateRecord = exports.NotificationTemplateRecord = exports.isAgentStatusRecord = exports.AgentStatusRecord = exports.isScheduleSlotRecord = exports.ScheduleSlotRecord = exports.isPriceBookRecord = exports.PriceBookRecord = exports.isOverlayRealA55Record = exports.OverlayRealA55Record = exports.isOfferRecord = exports.OfferRecord = exports.isServiceAppointmentRecord = exports.ServiceAppointmentRecord = exports.isTaskRecord = exports.TaskRecord = exports.isOutageRecord = exports.OutageRecord = exports.isSiteSpecificRiskAssessmentOutcomeFormRecord = exports.SiteSpecificRiskAssessmentOutcomeFormRecord = exports.isRemediationRequiredReasonRecord = exports.RemediationRequiredReasonRecord = exports.isKnowledgeArticleRecord = exports.KnowledgeArticleRecord = exports.isInvoiceRecord = exports.InvoiceRecord = exports.isDiscountRecord = exports.DiscountRecord = exports.isCustomerDeviceAtaRecord = exports.CustomerDeviceAtaRecord = exports.isCreditNoteRecord = exports.CreditNoteRecord = exports.isOutboundDialCampaignCaseRecord = exports.OutboundDialCampaignCaseRecord = exports.isYfWifiSurveyRecord = exports.YfWifiSurveyRecord = exports.isYfAgentLocationRecord = exports.YfAgentLocationRecord = exports.isWorkOrderStatusUpdateRecord = exports.WorkOrderStatusUpdateRecord = exports.isWayleaveAuditRecord = exports.WayleaveAuditRecord = exports.isUserRecord = exports.UserRecord = exports.isTwilioWorkerRecord = exports.TwilioWorkerRecord = exports.isTwilioUserUpdateRecord = exports.TwilioUserUpdateRecord = exports.isTwilioTaskQueueRecord = exports.TwilioTaskQueueRecord = void 0;
19
+ exports.isCustomerPhonePortingRecord = exports.CustomerPhonePortingRecord = exports.isVisitRecord = exports.VisitRecord = exports.isSmsTemplateRecord = exports.SmsTemplateRecord = exports.isServiceRecord = exports.ServiceRecord = void 0;
20
20
  var OrderRecord_1 = require("./OrderRecord");
21
21
  Object.defineProperty(exports, "OrderRecord", { enumerable: true, get: function () { return OrderRecord_1.OrderRecord; } });
22
22
  Object.defineProperty(exports, "isOrderRecord", { enumerable: true, get: function () { return OrderRecord_1.isOrderRecord; } });
@@ -368,6 +368,9 @@ Object.defineProperty(exports, "isSiteSpecificRiskAssessmentOutcomeFormRecord",
368
368
  var OutageRecord_1 = require("./OutageRecord");
369
369
  Object.defineProperty(exports, "OutageRecord", { enumerable: true, get: function () { return OutageRecord_1.OutageRecord; } });
370
370
  Object.defineProperty(exports, "isOutageRecord", { enumerable: true, get: function () { return OutageRecord_1.isOutageRecord; } });
371
+ var TaskRecord_1 = require("./TaskRecord");
372
+ Object.defineProperty(exports, "TaskRecord", { enumerable: true, get: function () { return TaskRecord_1.TaskRecord; } });
373
+ Object.defineProperty(exports, "isTaskRecord", { enumerable: true, get: function () { return TaskRecord_1.isTaskRecord; } });
371
374
  var ServiceAppointmentRecord_1 = require("./ServiceAppointmentRecord");
372
375
  Object.defineProperty(exports, "ServiceAppointmentRecord", { enumerable: true, get: function () { return ServiceAppointmentRecord_1.ServiceAppointmentRecord; } });
373
376
  Object.defineProperty(exports, "isServiceAppointmentRecord", { enumerable: true, get: function () { return ServiceAppointmentRecord_1.isServiceAppointmentRecord; } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d19n/youfibre-odin-sdk",
3
- "version": "2.0.383",
3
+ "version": "2.0.384",
4
4
  "description": "",
5
5
  "author": "@d19n",
6
6
  "license": "UNLICENSED",