@d19n/youfibre-odin-sdk 2.0.90 → 2.0.93
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 +39 -41
- package/dist/actions-v2/CreateOrderReferralDto.d.ts +17 -1
- package/dist/actions-v2/UpdateOrderDto.d.ts +24 -1
- package/dist/entities-v2/File.d.ts +0 -6
- package/dist/entities-v2/File.js +1 -5
- package/dist/entities-v2/Order.d.ts +4 -4
- package/dist/entities-v2/Order.js +4 -4
- package/dist/entities-v2/PgTransaction.d.ts +17 -0
- package/dist/entities-v2/PgTransaction.js +2 -0
- package/dist/entities-v2/Referral.d.ts +24 -0
- package/dist/entities-v2/Referral.js +4 -0
- package/dist/entities-v2/WorkOrder.d.ts +31 -29
- package/dist/entities-v2/WorkOrder.js +30 -28
- package/dist/records-v2/ChangeReasonRecord.d.ts +40 -40
- package/dist/records-v2/ChangeReasonRecord.js +49 -49
- package/dist/records-v2/WorkOrderRecord.d.ts +0 -174
- package/dist/records-v2/WorkOrderRecord.js +1 -265
- package/dist/records-v2/index.d.ts +1 -1
- package/dist/records-v2/index.js +4 -4
- package/package.json +1 -1
- package/dist/actions-v2/CancelInstallWorkOrderFlowSupplierDto.d.ts +0 -195
- package/dist/actions-v2/CancelInstallWorkOrderFlowSupplierDto.js +0 -132
- package/dist/actions-v2/CancelInstallWorkOrderFlowTenantDto.d.ts +0 -195
- package/dist/actions-v2/CancelInstallWorkOrderFlowTenantDto.js +0 -132
|
@@ -23,8 +23,6 @@ import { IDbRecordCreateUpdateRes } from '@d19n/odin-types/dist/core/interfaces/
|
|
|
23
23
|
import { IOdinProvider } from '@d19n/odin-sdk-generator/dist/odin-sdk-types';
|
|
24
24
|
import { RecordLinkManager } from '@d19n/odin-sdk-generator/dist/record-link-manager';
|
|
25
25
|
import { ChangeReasonProperties, SaCancelChangeReasonProperties, SaDelayChangeReasonProperties, SaInformChangeReasonProperties, SaRescheduleChangeReasonProperties } from '../entities-v2/ChangeReason';
|
|
26
|
-
import { CreateInstallCancelledChangeReasonSupplierProperties } from '../actions-v2/CancelInstallWorkOrderFlowSupplierDto';
|
|
27
|
-
import { CreateInstallCancelledChangeReasonTenantProperties } from '../actions-v2/CancelInstallWorkOrderFlowTenantDto';
|
|
28
26
|
import { CreatePrePullCancelledChangeReasonSupplierProperties } from '../actions-v2/CancelPrePullWorkOrderFlowSupplierDto';
|
|
29
27
|
import { CreateRemediationCancelledChangeReasonSupplierProperties } from '../actions-v2/CancelRemediationWorkOrderSupplierDto';
|
|
30
28
|
import { CreateServiceCancelledChangeReasonSupplierProperties } from '../actions-v2/CancelServiceWorkOrderFlowSupplierDto';
|
|
@@ -32,6 +30,8 @@ import { CreateServiceCancelledChangeReasonTenantProperties } from '../actions-v
|
|
|
32
30
|
import { CancelServiceWorkOrderSupplierProperties } from '../actions-v2/CancelServiceWorkOrderSupplierDto';
|
|
33
31
|
import { CancelServiceWorkOrderTenantProperties } from '../actions-v2/CancelServiceWorkOrderTenantDto';
|
|
34
32
|
import { CreateCollectionRescheduledChangeReasonTenantProperties } from '../actions-v2/CreateCollectionRescheduledChangeReasonTenantDto';
|
|
33
|
+
import { CreateInstallCancelledChangeReasonSupplierProperties } from '../actions-v2/CreateInstallCancelledChangeReasonSupplierDto';
|
|
34
|
+
import { CreateInstallCancelledChangeReasonTenantProperties } from '../actions-v2/CreateInstallCancelledChangeReasonTenantDto';
|
|
35
35
|
import { CreateInstallRescheduledChangeReasonSupplierProperties } from '../actions-v2/CreateInstallRescheduledChangeReasonSupplierDto';
|
|
36
36
|
import { CreateInstallRescheduledChangeReasonTenantProperties } from '../actions-v2/CreateInstallRescheduledChangeReasonTenantDto';
|
|
37
37
|
import { CreatePrePullRescheduledChangeReasonSupplierProperties } from '../actions-v2/CreatePrePullRescheduledChangeReasonSupplierDto';
|
|
@@ -298,7 +298,7 @@ export declare class ChangeReasonRecord<TProps = ChangeReasonProperties> {
|
|
|
298
298
|
id: string;
|
|
299
299
|
} | string): Promise<void>;
|
|
300
300
|
/**
|
|
301
|
-
*
|
|
301
|
+
* CreatePrePullCancelledChangeReasonSupplier
|
|
302
302
|
*
|
|
303
303
|
* Creates a new ChangeReason record with the specified properties.
|
|
304
304
|
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
@@ -315,18 +315,18 @@ export declare class ChangeReasonRecord<TProps = ChangeReasonProperties> {
|
|
|
315
315
|
* ```typescript
|
|
316
316
|
* // Create with properties
|
|
317
317
|
* const record = odinClient.changeReasons.new();
|
|
318
|
-
* await record.
|
|
318
|
+
* await record.createPrePullCancelledChangeReasonSupplier({ ... }).execute();
|
|
319
319
|
*
|
|
320
320
|
* // Dry run (for debugging)
|
|
321
|
-
* const payload = record.
|
|
321
|
+
* const payload = record.createPrePullCancelledChangeReasonSupplier({ ... }).dryRun();
|
|
322
322
|
* ```
|
|
323
323
|
*/
|
|
324
|
-
|
|
324
|
+
createPrePullCancelledChangeReasonSupplier(properties: CreatePrePullCancelledChangeReasonSupplierProperties, options?: {
|
|
325
325
|
journeyId?: string;
|
|
326
326
|
stageKey?: string;
|
|
327
327
|
}): ActionBuilder;
|
|
328
328
|
/**
|
|
329
|
-
*
|
|
329
|
+
* CreateRemediationCancelledChangeReasonSupplier
|
|
330
330
|
*
|
|
331
331
|
* Creates a new ChangeReason record with the specified properties.
|
|
332
332
|
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
@@ -343,18 +343,18 @@ export declare class ChangeReasonRecord<TProps = ChangeReasonProperties> {
|
|
|
343
343
|
* ```typescript
|
|
344
344
|
* // Create with properties
|
|
345
345
|
* const record = odinClient.changeReasons.new();
|
|
346
|
-
* await record.
|
|
346
|
+
* await record.createRemediationCancelledChangeReasonSupplier({ ... }).execute();
|
|
347
347
|
*
|
|
348
348
|
* // Dry run (for debugging)
|
|
349
|
-
* const payload = record.
|
|
349
|
+
* const payload = record.createRemediationCancelledChangeReasonSupplier({ ... }).dryRun();
|
|
350
350
|
* ```
|
|
351
351
|
*/
|
|
352
|
-
|
|
352
|
+
createRemediationCancelledChangeReasonSupplier(properties: CreateRemediationCancelledChangeReasonSupplierProperties, options?: {
|
|
353
353
|
journeyId?: string;
|
|
354
354
|
stageKey?: string;
|
|
355
355
|
}): ActionBuilder;
|
|
356
356
|
/**
|
|
357
|
-
*
|
|
357
|
+
* CreateServiceCancelledChangeReasonSupplier
|
|
358
358
|
*
|
|
359
359
|
* Creates a new ChangeReason record with the specified properties.
|
|
360
360
|
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
@@ -371,18 +371,18 @@ export declare class ChangeReasonRecord<TProps = ChangeReasonProperties> {
|
|
|
371
371
|
* ```typescript
|
|
372
372
|
* // Create with properties
|
|
373
373
|
* const record = odinClient.changeReasons.new();
|
|
374
|
-
* await record.
|
|
374
|
+
* await record.createServiceCancelledChangeReasonSupplier({ ... }).execute();
|
|
375
375
|
*
|
|
376
376
|
* // Dry run (for debugging)
|
|
377
|
-
* const payload = record.
|
|
377
|
+
* const payload = record.createServiceCancelledChangeReasonSupplier({ ... }).dryRun();
|
|
378
378
|
* ```
|
|
379
379
|
*/
|
|
380
|
-
|
|
380
|
+
createServiceCancelledChangeReasonSupplier(properties: CreateServiceCancelledChangeReasonSupplierProperties, options?: {
|
|
381
381
|
journeyId?: string;
|
|
382
382
|
stageKey?: string;
|
|
383
383
|
}): ActionBuilder;
|
|
384
384
|
/**
|
|
385
|
-
*
|
|
385
|
+
* CreateServiceCancelledChangeReasonTenant
|
|
386
386
|
*
|
|
387
387
|
* Creates a new ChangeReason record with the specified properties.
|
|
388
388
|
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
@@ -399,18 +399,18 @@ export declare class ChangeReasonRecord<TProps = ChangeReasonProperties> {
|
|
|
399
399
|
* ```typescript
|
|
400
400
|
* // Create with properties
|
|
401
401
|
* const record = odinClient.changeReasons.new();
|
|
402
|
-
* await record.
|
|
402
|
+
* await record.createServiceCancelledChangeReasonTenant({ ... }).execute();
|
|
403
403
|
*
|
|
404
404
|
* // Dry run (for debugging)
|
|
405
|
-
* const payload = record.
|
|
405
|
+
* const payload = record.createServiceCancelledChangeReasonTenant({ ... }).dryRun();
|
|
406
406
|
* ```
|
|
407
407
|
*/
|
|
408
|
-
|
|
408
|
+
createServiceCancelledChangeReasonTenant(properties: CreateServiceCancelledChangeReasonTenantProperties, options?: {
|
|
409
409
|
journeyId?: string;
|
|
410
410
|
stageKey?: string;
|
|
411
411
|
}): ActionBuilder;
|
|
412
412
|
/**
|
|
413
|
-
*
|
|
413
|
+
* CancelServiceWorkOrderSupplier
|
|
414
414
|
*
|
|
415
415
|
* Creates a new ChangeReason record with the specified properties.
|
|
416
416
|
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
@@ -427,18 +427,18 @@ export declare class ChangeReasonRecord<TProps = ChangeReasonProperties> {
|
|
|
427
427
|
* ```typescript
|
|
428
428
|
* // Create with properties
|
|
429
429
|
* const record = odinClient.changeReasons.new();
|
|
430
|
-
* await record.
|
|
430
|
+
* await record.cancelServiceWorkOrderSupplier({ ... }).execute();
|
|
431
431
|
*
|
|
432
432
|
* // Dry run (for debugging)
|
|
433
|
-
* const payload = record.
|
|
433
|
+
* const payload = record.cancelServiceWorkOrderSupplier({ ... }).dryRun();
|
|
434
434
|
* ```
|
|
435
435
|
*/
|
|
436
|
-
|
|
436
|
+
cancelServiceWorkOrderSupplier(properties?: CancelServiceWorkOrderSupplierProperties, options?: {
|
|
437
437
|
journeyId?: string;
|
|
438
438
|
stageKey?: string;
|
|
439
439
|
}): ActionBuilder;
|
|
440
440
|
/**
|
|
441
|
-
*
|
|
441
|
+
* CancelServiceWorkOrderTenant
|
|
442
442
|
*
|
|
443
443
|
* Creates a new ChangeReason record with the specified properties.
|
|
444
444
|
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
@@ -455,23 +455,23 @@ export declare class ChangeReasonRecord<TProps = ChangeReasonProperties> {
|
|
|
455
455
|
* ```typescript
|
|
456
456
|
* // Create with properties
|
|
457
457
|
* const record = odinClient.changeReasons.new();
|
|
458
|
-
* await record.
|
|
458
|
+
* await record.cancelServiceWorkOrderTenant({ ... }).execute();
|
|
459
459
|
*
|
|
460
460
|
* // Dry run (for debugging)
|
|
461
|
-
* const payload = record.
|
|
461
|
+
* const payload = record.cancelServiceWorkOrderTenant({ ... }).dryRun();
|
|
462
462
|
* ```
|
|
463
463
|
*/
|
|
464
|
-
|
|
464
|
+
cancelServiceWorkOrderTenant(properties: CancelServiceWorkOrderTenantProperties, options?: {
|
|
465
465
|
journeyId?: string;
|
|
466
466
|
stageKey?: string;
|
|
467
467
|
}): ActionBuilder;
|
|
468
468
|
/**
|
|
469
|
-
*
|
|
469
|
+
* CreateCollectionRescheduledChangeReasonTenant
|
|
470
470
|
*
|
|
471
471
|
* Creates a new ChangeReason record with the specified properties.
|
|
472
472
|
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
473
473
|
*
|
|
474
|
-
* @remarks Record type:
|
|
474
|
+
* @remarks Record type: SA_RESCHEDULE
|
|
475
475
|
*
|
|
476
476
|
* @param properties - The properties for the new record
|
|
477
477
|
* @param options - Optional settings
|
|
@@ -483,18 +483,18 @@ export declare class ChangeReasonRecord<TProps = ChangeReasonProperties> {
|
|
|
483
483
|
* ```typescript
|
|
484
484
|
* // Create with properties
|
|
485
485
|
* const record = odinClient.changeReasons.new();
|
|
486
|
-
* await record.
|
|
486
|
+
* await record.createCollectionRescheduledChangeReasonTenant({ ... }).execute();
|
|
487
487
|
*
|
|
488
488
|
* // Dry run (for debugging)
|
|
489
|
-
* const payload = record.
|
|
489
|
+
* const payload = record.createCollectionRescheduledChangeReasonTenant({ ... }).dryRun();
|
|
490
490
|
* ```
|
|
491
491
|
*/
|
|
492
|
-
|
|
492
|
+
createCollectionRescheduledChangeReasonTenant(properties: CreateCollectionRescheduledChangeReasonTenantProperties, options?: {
|
|
493
493
|
journeyId?: string;
|
|
494
494
|
stageKey?: string;
|
|
495
495
|
}): ActionBuilder;
|
|
496
496
|
/**
|
|
497
|
-
*
|
|
497
|
+
* CreateInstallCancelledChangeReasonSupplier
|
|
498
498
|
*
|
|
499
499
|
* Creates a new ChangeReason record with the specified properties.
|
|
500
500
|
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
@@ -511,23 +511,23 @@ export declare class ChangeReasonRecord<TProps = ChangeReasonProperties> {
|
|
|
511
511
|
* ```typescript
|
|
512
512
|
* // Create with properties
|
|
513
513
|
* const record = odinClient.changeReasons.new();
|
|
514
|
-
* await record.
|
|
514
|
+
* await record.createInstallCancelledChangeReasonSupplier({ ... }).execute();
|
|
515
515
|
*
|
|
516
516
|
* // Dry run (for debugging)
|
|
517
|
-
* const payload = record.
|
|
517
|
+
* const payload = record.createInstallCancelledChangeReasonSupplier({ ... }).dryRun();
|
|
518
518
|
* ```
|
|
519
519
|
*/
|
|
520
|
-
|
|
520
|
+
createInstallCancelledChangeReasonSupplier(properties: CreateInstallCancelledChangeReasonSupplierProperties, options?: {
|
|
521
521
|
journeyId?: string;
|
|
522
522
|
stageKey?: string;
|
|
523
523
|
}): ActionBuilder;
|
|
524
524
|
/**
|
|
525
|
-
*
|
|
525
|
+
* CreateInstallCancelledChangeReasonTenant
|
|
526
526
|
*
|
|
527
527
|
* Creates a new ChangeReason record with the specified properties.
|
|
528
528
|
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
529
529
|
*
|
|
530
|
-
* @remarks Record type:
|
|
530
|
+
* @remarks Record type: SA_CANCEL
|
|
531
531
|
*
|
|
532
532
|
* @param properties - The properties for the new record
|
|
533
533
|
* @param options - Optional settings
|
|
@@ -539,13 +539,13 @@ export declare class ChangeReasonRecord<TProps = ChangeReasonProperties> {
|
|
|
539
539
|
* ```typescript
|
|
540
540
|
* // Create with properties
|
|
541
541
|
* const record = odinClient.changeReasons.new();
|
|
542
|
-
* await record.
|
|
542
|
+
* await record.createInstallCancelledChangeReasonTenant({ ... }).execute();
|
|
543
543
|
*
|
|
544
544
|
* // Dry run (for debugging)
|
|
545
|
-
* const payload = record.
|
|
545
|
+
* const payload = record.createInstallCancelledChangeReasonTenant({ ... }).dryRun();
|
|
546
546
|
* ```
|
|
547
547
|
*/
|
|
548
|
-
|
|
548
|
+
createInstallCancelledChangeReasonTenant(properties: CreateInstallCancelledChangeReasonTenantProperties, options?: {
|
|
549
549
|
journeyId?: string;
|
|
550
550
|
stageKey?: string;
|
|
551
551
|
}): ActionBuilder;
|
|
@@ -372,7 +372,7 @@ class ChangeReasonRecord {
|
|
|
372
372
|
// CREATE ACTIONS (no existing record required)
|
|
373
373
|
// ============================================
|
|
374
374
|
/**
|
|
375
|
-
*
|
|
375
|
+
* CreatePrePullCancelledChangeReasonSupplier
|
|
376
376
|
*
|
|
377
377
|
* Creates a new ChangeReason record with the specified properties.
|
|
378
378
|
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
@@ -389,17 +389,17 @@ class ChangeReasonRecord {
|
|
|
389
389
|
* ```typescript
|
|
390
390
|
* // Create with properties
|
|
391
391
|
* const record = odinClient.changeReasons.new();
|
|
392
|
-
* await record.
|
|
392
|
+
* await record.createPrePullCancelledChangeReasonSupplier({ ... }).execute();
|
|
393
393
|
*
|
|
394
394
|
* // Dry run (for debugging)
|
|
395
|
-
* const payload = record.
|
|
395
|
+
* const payload = record.createPrePullCancelledChangeReasonSupplier({ ... }).dryRun();
|
|
396
396
|
* ```
|
|
397
397
|
*/
|
|
398
|
-
|
|
398
|
+
createPrePullCancelledChangeReasonSupplier(properties, options) {
|
|
399
399
|
const payload = {
|
|
400
400
|
entity: 'FieldServiceModule:ChangeReason',
|
|
401
401
|
type: 'SA_CANCEL',
|
|
402
|
-
actionName: '
|
|
402
|
+
actionName: 'CreatePrePullCancelledChangeReasonSupplier',
|
|
403
403
|
properties: properties || {},
|
|
404
404
|
associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
|
|
405
405
|
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
@@ -408,7 +408,7 @@ class ChangeReasonRecord {
|
|
|
408
408
|
return new ActionBuilder(this._provider, 'FieldServiceModule', 'ChangeReason', payload, () => { this._pendingLinks = []; });
|
|
409
409
|
}
|
|
410
410
|
/**
|
|
411
|
-
*
|
|
411
|
+
* CreateRemediationCancelledChangeReasonSupplier
|
|
412
412
|
*
|
|
413
413
|
* Creates a new ChangeReason record with the specified properties.
|
|
414
414
|
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
@@ -425,17 +425,17 @@ class ChangeReasonRecord {
|
|
|
425
425
|
* ```typescript
|
|
426
426
|
* // Create with properties
|
|
427
427
|
* const record = odinClient.changeReasons.new();
|
|
428
|
-
* await record.
|
|
428
|
+
* await record.createRemediationCancelledChangeReasonSupplier({ ... }).execute();
|
|
429
429
|
*
|
|
430
430
|
* // Dry run (for debugging)
|
|
431
|
-
* const payload = record.
|
|
431
|
+
* const payload = record.createRemediationCancelledChangeReasonSupplier({ ... }).dryRun();
|
|
432
432
|
* ```
|
|
433
433
|
*/
|
|
434
|
-
|
|
434
|
+
createRemediationCancelledChangeReasonSupplier(properties, options) {
|
|
435
435
|
const payload = {
|
|
436
436
|
entity: 'FieldServiceModule:ChangeReason',
|
|
437
437
|
type: 'SA_CANCEL',
|
|
438
|
-
actionName: '
|
|
438
|
+
actionName: 'CreateRemediationCancelledChangeReasonSupplier',
|
|
439
439
|
properties: properties || {},
|
|
440
440
|
associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
|
|
441
441
|
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
@@ -444,7 +444,7 @@ class ChangeReasonRecord {
|
|
|
444
444
|
return new ActionBuilder(this._provider, 'FieldServiceModule', 'ChangeReason', payload, () => { this._pendingLinks = []; });
|
|
445
445
|
}
|
|
446
446
|
/**
|
|
447
|
-
*
|
|
447
|
+
* CreateServiceCancelledChangeReasonSupplier
|
|
448
448
|
*
|
|
449
449
|
* Creates a new ChangeReason record with the specified properties.
|
|
450
450
|
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
@@ -461,17 +461,17 @@ class ChangeReasonRecord {
|
|
|
461
461
|
* ```typescript
|
|
462
462
|
* // Create with properties
|
|
463
463
|
* const record = odinClient.changeReasons.new();
|
|
464
|
-
* await record.
|
|
464
|
+
* await record.createServiceCancelledChangeReasonSupplier({ ... }).execute();
|
|
465
465
|
*
|
|
466
466
|
* // Dry run (for debugging)
|
|
467
|
-
* const payload = record.
|
|
467
|
+
* const payload = record.createServiceCancelledChangeReasonSupplier({ ... }).dryRun();
|
|
468
468
|
* ```
|
|
469
469
|
*/
|
|
470
|
-
|
|
470
|
+
createServiceCancelledChangeReasonSupplier(properties, options) {
|
|
471
471
|
const payload = {
|
|
472
472
|
entity: 'FieldServiceModule:ChangeReason',
|
|
473
473
|
type: 'SA_CANCEL',
|
|
474
|
-
actionName: '
|
|
474
|
+
actionName: 'CreateServiceCancelledChangeReasonSupplier',
|
|
475
475
|
properties: properties || {},
|
|
476
476
|
associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
|
|
477
477
|
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
@@ -480,7 +480,7 @@ class ChangeReasonRecord {
|
|
|
480
480
|
return new ActionBuilder(this._provider, 'FieldServiceModule', 'ChangeReason', payload, () => { this._pendingLinks = []; });
|
|
481
481
|
}
|
|
482
482
|
/**
|
|
483
|
-
*
|
|
483
|
+
* CreateServiceCancelledChangeReasonTenant
|
|
484
484
|
*
|
|
485
485
|
* Creates a new ChangeReason record with the specified properties.
|
|
486
486
|
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
@@ -497,17 +497,17 @@ class ChangeReasonRecord {
|
|
|
497
497
|
* ```typescript
|
|
498
498
|
* // Create with properties
|
|
499
499
|
* const record = odinClient.changeReasons.new();
|
|
500
|
-
* await record.
|
|
500
|
+
* await record.createServiceCancelledChangeReasonTenant({ ... }).execute();
|
|
501
501
|
*
|
|
502
502
|
* // Dry run (for debugging)
|
|
503
|
-
* const payload = record.
|
|
503
|
+
* const payload = record.createServiceCancelledChangeReasonTenant({ ... }).dryRun();
|
|
504
504
|
* ```
|
|
505
505
|
*/
|
|
506
|
-
|
|
506
|
+
createServiceCancelledChangeReasonTenant(properties, options) {
|
|
507
507
|
const payload = {
|
|
508
508
|
entity: 'FieldServiceModule:ChangeReason',
|
|
509
509
|
type: 'SA_CANCEL',
|
|
510
|
-
actionName: '
|
|
510
|
+
actionName: 'CreateServiceCancelledChangeReasonTenant',
|
|
511
511
|
properties: properties || {},
|
|
512
512
|
associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
|
|
513
513
|
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
@@ -516,7 +516,7 @@ class ChangeReasonRecord {
|
|
|
516
516
|
return new ActionBuilder(this._provider, 'FieldServiceModule', 'ChangeReason', payload, () => { this._pendingLinks = []; });
|
|
517
517
|
}
|
|
518
518
|
/**
|
|
519
|
-
*
|
|
519
|
+
* CancelServiceWorkOrderSupplier
|
|
520
520
|
*
|
|
521
521
|
* Creates a new ChangeReason record with the specified properties.
|
|
522
522
|
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
@@ -533,17 +533,17 @@ class ChangeReasonRecord {
|
|
|
533
533
|
* ```typescript
|
|
534
534
|
* // Create with properties
|
|
535
535
|
* const record = odinClient.changeReasons.new();
|
|
536
|
-
* await record.
|
|
536
|
+
* await record.cancelServiceWorkOrderSupplier({ ... }).execute();
|
|
537
537
|
*
|
|
538
538
|
* // Dry run (for debugging)
|
|
539
|
-
* const payload = record.
|
|
539
|
+
* const payload = record.cancelServiceWorkOrderSupplier({ ... }).dryRun();
|
|
540
540
|
* ```
|
|
541
541
|
*/
|
|
542
|
-
|
|
542
|
+
cancelServiceWorkOrderSupplier(properties, options) {
|
|
543
543
|
const payload = {
|
|
544
544
|
entity: 'FieldServiceModule:ChangeReason',
|
|
545
545
|
type: 'SA_CANCEL',
|
|
546
|
-
actionName: '
|
|
546
|
+
actionName: 'CancelServiceWorkOrderSupplier',
|
|
547
547
|
properties: properties || {},
|
|
548
548
|
associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
|
|
549
549
|
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
@@ -552,7 +552,7 @@ class ChangeReasonRecord {
|
|
|
552
552
|
return new ActionBuilder(this._provider, 'FieldServiceModule', 'ChangeReason', payload, () => { this._pendingLinks = []; });
|
|
553
553
|
}
|
|
554
554
|
/**
|
|
555
|
-
*
|
|
555
|
+
* CancelServiceWorkOrderTenant
|
|
556
556
|
*
|
|
557
557
|
* Creates a new ChangeReason record with the specified properties.
|
|
558
558
|
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
@@ -569,17 +569,17 @@ class ChangeReasonRecord {
|
|
|
569
569
|
* ```typescript
|
|
570
570
|
* // Create with properties
|
|
571
571
|
* const record = odinClient.changeReasons.new();
|
|
572
|
-
* await record.
|
|
572
|
+
* await record.cancelServiceWorkOrderTenant({ ... }).execute();
|
|
573
573
|
*
|
|
574
574
|
* // Dry run (for debugging)
|
|
575
|
-
* const payload = record.
|
|
575
|
+
* const payload = record.cancelServiceWorkOrderTenant({ ... }).dryRun();
|
|
576
576
|
* ```
|
|
577
577
|
*/
|
|
578
|
-
|
|
578
|
+
cancelServiceWorkOrderTenant(properties, options) {
|
|
579
579
|
const payload = {
|
|
580
580
|
entity: 'FieldServiceModule:ChangeReason',
|
|
581
581
|
type: 'SA_CANCEL',
|
|
582
|
-
actionName: '
|
|
582
|
+
actionName: 'CancelServiceWorkOrderTenant',
|
|
583
583
|
properties: properties || {},
|
|
584
584
|
associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
|
|
585
585
|
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
@@ -588,12 +588,12 @@ class ChangeReasonRecord {
|
|
|
588
588
|
return new ActionBuilder(this._provider, 'FieldServiceModule', 'ChangeReason', payload, () => { this._pendingLinks = []; });
|
|
589
589
|
}
|
|
590
590
|
/**
|
|
591
|
-
*
|
|
591
|
+
* CreateCollectionRescheduledChangeReasonTenant
|
|
592
592
|
*
|
|
593
593
|
* Creates a new ChangeReason record with the specified properties.
|
|
594
594
|
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
595
595
|
*
|
|
596
|
-
* @remarks Record type:
|
|
596
|
+
* @remarks Record type: SA_RESCHEDULE
|
|
597
597
|
*
|
|
598
598
|
* @param properties - The properties for the new record
|
|
599
599
|
* @param options - Optional settings
|
|
@@ -605,17 +605,17 @@ class ChangeReasonRecord {
|
|
|
605
605
|
* ```typescript
|
|
606
606
|
* // Create with properties
|
|
607
607
|
* const record = odinClient.changeReasons.new();
|
|
608
|
-
* await record.
|
|
608
|
+
* await record.createCollectionRescheduledChangeReasonTenant({ ... }).execute();
|
|
609
609
|
*
|
|
610
610
|
* // Dry run (for debugging)
|
|
611
|
-
* const payload = record.
|
|
611
|
+
* const payload = record.createCollectionRescheduledChangeReasonTenant({ ... }).dryRun();
|
|
612
612
|
* ```
|
|
613
613
|
*/
|
|
614
|
-
|
|
614
|
+
createCollectionRescheduledChangeReasonTenant(properties, options) {
|
|
615
615
|
const payload = {
|
|
616
616
|
entity: 'FieldServiceModule:ChangeReason',
|
|
617
|
-
type: '
|
|
618
|
-
actionName: '
|
|
617
|
+
type: 'SA_RESCHEDULE',
|
|
618
|
+
actionName: 'CreateCollectionRescheduledChangeReasonTenant',
|
|
619
619
|
properties: properties || {},
|
|
620
620
|
associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
|
|
621
621
|
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
@@ -624,7 +624,7 @@ class ChangeReasonRecord {
|
|
|
624
624
|
return new ActionBuilder(this._provider, 'FieldServiceModule', 'ChangeReason', payload, () => { this._pendingLinks = []; });
|
|
625
625
|
}
|
|
626
626
|
/**
|
|
627
|
-
*
|
|
627
|
+
* CreateInstallCancelledChangeReasonSupplier
|
|
628
628
|
*
|
|
629
629
|
* Creates a new ChangeReason record with the specified properties.
|
|
630
630
|
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
@@ -641,17 +641,17 @@ class ChangeReasonRecord {
|
|
|
641
641
|
* ```typescript
|
|
642
642
|
* // Create with properties
|
|
643
643
|
* const record = odinClient.changeReasons.new();
|
|
644
|
-
* await record.
|
|
644
|
+
* await record.createInstallCancelledChangeReasonSupplier({ ... }).execute();
|
|
645
645
|
*
|
|
646
646
|
* // Dry run (for debugging)
|
|
647
|
-
* const payload = record.
|
|
647
|
+
* const payload = record.createInstallCancelledChangeReasonSupplier({ ... }).dryRun();
|
|
648
648
|
* ```
|
|
649
649
|
*/
|
|
650
|
-
|
|
650
|
+
createInstallCancelledChangeReasonSupplier(properties, options) {
|
|
651
651
|
const payload = {
|
|
652
652
|
entity: 'FieldServiceModule:ChangeReason',
|
|
653
653
|
type: 'SA_CANCEL',
|
|
654
|
-
actionName: '
|
|
654
|
+
actionName: 'CreateInstallCancelledChangeReasonSupplier',
|
|
655
655
|
properties: properties || {},
|
|
656
656
|
associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
|
|
657
657
|
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
@@ -660,12 +660,12 @@ class ChangeReasonRecord {
|
|
|
660
660
|
return new ActionBuilder(this._provider, 'FieldServiceModule', 'ChangeReason', payload, () => { this._pendingLinks = []; });
|
|
661
661
|
}
|
|
662
662
|
/**
|
|
663
|
-
*
|
|
663
|
+
* CreateInstallCancelledChangeReasonTenant
|
|
664
664
|
*
|
|
665
665
|
* Creates a new ChangeReason record with the specified properties.
|
|
666
666
|
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
667
667
|
*
|
|
668
|
-
* @remarks Record type:
|
|
668
|
+
* @remarks Record type: SA_CANCEL
|
|
669
669
|
*
|
|
670
670
|
* @param properties - The properties for the new record
|
|
671
671
|
* @param options - Optional settings
|
|
@@ -677,17 +677,17 @@ class ChangeReasonRecord {
|
|
|
677
677
|
* ```typescript
|
|
678
678
|
* // Create with properties
|
|
679
679
|
* const record = odinClient.changeReasons.new();
|
|
680
|
-
* await record.
|
|
680
|
+
* await record.createInstallCancelledChangeReasonTenant({ ... }).execute();
|
|
681
681
|
*
|
|
682
682
|
* // Dry run (for debugging)
|
|
683
|
-
* const payload = record.
|
|
683
|
+
* const payload = record.createInstallCancelledChangeReasonTenant({ ... }).dryRun();
|
|
684
684
|
* ```
|
|
685
685
|
*/
|
|
686
|
-
|
|
686
|
+
createInstallCancelledChangeReasonTenant(properties, options) {
|
|
687
687
|
const payload = {
|
|
688
688
|
entity: 'FieldServiceModule:ChangeReason',
|
|
689
|
-
type: '
|
|
690
|
-
actionName: '
|
|
689
|
+
type: 'SA_CANCEL',
|
|
690
|
+
actionName: 'CreateInstallCancelledChangeReasonTenant',
|
|
691
691
|
properties: properties || {},
|
|
692
692
|
associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
|
|
693
693
|
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|