@d19n/youfibre-odin-sdk 2.0.313 → 2.0.314
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 +8 -1
- package/dist/actions-v2/CreateEnRouteToScheduledChangeReasonDto.d.ts +88 -0
- package/dist/actions-v2/CreateEnRouteToScheduledChangeReasonDto.js +59 -0
- package/dist/actions-v2/MoveBusinessInstallFromEnRouteToScheduledDto.d.ts +186 -0
- package/dist/actions-v2/MoveBusinessInstallFromEnRouteToScheduledDto.js +124 -0
- package/dist/actions-v2/MoveInspectionWorkOrderFromEnRouteToScheduledDto.d.ts +186 -0
- package/dist/actions-v2/MoveInspectionWorkOrderFromEnRouteToScheduledDto.js +124 -0
- package/dist/actions-v2/MoveInstallWorkOrderFromEnRouteToScheduledDto.d.ts +186 -0
- package/dist/actions-v2/MoveInstallWorkOrderFromEnRouteToScheduledDto.js +124 -0
- package/dist/actions-v2/MovePrePullWorkOrderFromEnRouteToScheduledDto.d.ts +186 -0
- package/dist/actions-v2/MovePrePullWorkOrderFromEnRouteToScheduledDto.js +124 -0
- package/dist/actions-v2/MoveRemediationWorkOrderFromEnRouteToScheduledDto.d.ts +186 -0
- package/dist/actions-v2/MoveRemediationWorkOrderFromEnRouteToScheduledDto.js +124 -0
- package/dist/actions-v2/MoveServiceWorkOrderFromEnRouteToScheduledDto.d.ts +186 -0
- package/dist/actions-v2/MoveServiceWorkOrderFromEnRouteToScheduledDto.js +124 -0
- package/dist/entities-v2/ChangeReason.d.ts +53 -1
- package/dist/entities-v2/ChangeReason.js +19 -1
- package/dist/entities-v2/Config.d.ts +8 -8
- package/dist/entities-v2/Config.js +2 -2
- package/dist/entities-v2/WorkOrder.d.ts +2 -0
- package/dist/entities-v2/WorkOrder.js +2 -0
- package/dist/records-v2/ChangeReasonRecord.d.ts +29 -0
- package/dist/records-v2/ChangeReasonRecord.js +36 -0
- package/dist/records-v2/WorkOrderRecord.d.ts +517 -0
- package/dist/records-v2/WorkOrderRecord.js +943 -151
- package/package.json +1 -1
|
@@ -70,6 +70,7 @@ import { FlowStepEnRouteCallConfirmationProperties } from '../actions-v2/FlowSte
|
|
|
70
70
|
import { FlowStepEnRouteCollectionConfirmationProperties } from '../actions-v2/FlowStepEnRouteCollectionConfirmationDto';
|
|
71
71
|
import { InProgressWorkOrderConfirmationProperties } from '../actions-v2/InProgressWorkOrderConfirmationDto';
|
|
72
72
|
import { ManageSlaProperties } from '../actions-v2/ManageSlaDto';
|
|
73
|
+
import { CreateEnRouteToScheduledChangeReasonProperties } from '../actions-v2/MoveBusinessInstallFromEnRouteToScheduledDto';
|
|
73
74
|
import { CreatePermissionToFailProperties } from '../actions-v2/MoveBusinessInstallToRemediationDto';
|
|
74
75
|
import { RemediationRequiredReasonCreateProperties } from '../actions-v2/MoveBusinessInstallToRemediationDto';
|
|
75
76
|
import { CreateSsraProperties } from '../actions-v2/MoveInspectionWorkOrderToInProgressSubstantialDto';
|
|
@@ -897,6 +898,68 @@ export declare class CreateWayleaveWorkOrderFlowFlowBuilder {
|
|
|
897
898
|
private _buildRequestPayload;
|
|
898
899
|
}
|
|
899
900
|
/** Options for a flow step */
|
|
901
|
+
export interface MoveBusinessInstallFromEnRouteToScheduledFlowBuilderStepOptions {
|
|
902
|
+
/** Associations to create with this step */
|
|
903
|
+
associations?: Array<{
|
|
904
|
+
recordId?: string;
|
|
905
|
+
entity?: string;
|
|
906
|
+
}>;
|
|
907
|
+
/** Groups for this step */
|
|
908
|
+
groups?: string[];
|
|
909
|
+
}
|
|
910
|
+
/**
|
|
911
|
+
* FlowBuilder for MoveBusinessInstallFromEnRouteToScheduled multi-step action
|
|
912
|
+
*
|
|
913
|
+
* Use method chaining to add steps, then call execute() to run the flow.
|
|
914
|
+
* This is a CREATE flow - no existing record required.
|
|
915
|
+
* Transitions to stage: BusinessInstallPipelineStageScheduled
|
|
916
|
+
*/
|
|
917
|
+
export declare class MoveBusinessInstallFromEnRouteToScheduledFlowBuilder {
|
|
918
|
+
private _record;
|
|
919
|
+
private _provider;
|
|
920
|
+
private _pendingLinks;
|
|
921
|
+
private _options?;
|
|
922
|
+
private _groups;
|
|
923
|
+
private _steps;
|
|
924
|
+
constructor(record: WorkOrderRecord<any>, provider: IOdinProvider, pendingLinks: OdinRecordLinkDto[], options?: {
|
|
925
|
+
journeyId?: string;
|
|
926
|
+
});
|
|
927
|
+
/**
|
|
928
|
+
* Add a group to the main action
|
|
929
|
+
* @param group - Group name to add
|
|
930
|
+
* @returns this (for method chaining)
|
|
931
|
+
*/
|
|
932
|
+
addGroup(group: string): this;
|
|
933
|
+
/**
|
|
934
|
+
* Add CreateEnRouteToScheduledChangeReason step to the flow
|
|
935
|
+
* @param properties - Properties for this step
|
|
936
|
+
* @param options - Optional step settings
|
|
937
|
+
* @returns this (for method chaining)
|
|
938
|
+
*/
|
|
939
|
+
createEnRouteToScheduledChangeReason(properties: CreateEnRouteToScheduledChangeReasonProperties, options?: MoveBusinessInstallFromEnRouteToScheduledFlowBuilderStepOptions): this;
|
|
940
|
+
/**
|
|
941
|
+
* Execute the flow
|
|
942
|
+
* @returns The result from the API
|
|
943
|
+
*/
|
|
944
|
+
execute(): Promise<IDbRecordCreateUpdateRes[]>;
|
|
945
|
+
/**
|
|
946
|
+
* Returns the request payload without executing (for debugging)
|
|
947
|
+
* @returns The request payload that would be sent to the API
|
|
948
|
+
*/
|
|
949
|
+
dryRun(): Record<string, any>;
|
|
950
|
+
/**
|
|
951
|
+
* Prevents accidental `await flowBuilder` without .execute()
|
|
952
|
+
* Forces developers to explicitly call .execute()
|
|
953
|
+
* @throws Error always - use .execute() or .dryRun() instead
|
|
954
|
+
*/
|
|
955
|
+
then(): never;
|
|
956
|
+
/**
|
|
957
|
+
* Build the request payload for the action
|
|
958
|
+
* @private
|
|
959
|
+
*/
|
|
960
|
+
private _buildRequestPayload;
|
|
961
|
+
}
|
|
962
|
+
/** Options for a flow step */
|
|
900
963
|
export interface MoveBusinessInstallToRemediationFlowBuilderStepOptions {
|
|
901
964
|
/** Associations to create with this step */
|
|
902
965
|
associations?: Array<{
|
|
@@ -1090,6 +1153,68 @@ export declare class MoveCollectionWorkOrderFromReceivedToCompleteFlowBuilder {
|
|
|
1090
1153
|
private _buildRequestPayload;
|
|
1091
1154
|
}
|
|
1092
1155
|
/** Options for a flow step */
|
|
1156
|
+
export interface MoveInspectionWorkOrderFromEnRouteToScheduledFlowBuilderStepOptions {
|
|
1157
|
+
/** Associations to create with this step */
|
|
1158
|
+
associations?: Array<{
|
|
1159
|
+
recordId?: string;
|
|
1160
|
+
entity?: string;
|
|
1161
|
+
}>;
|
|
1162
|
+
/** Groups for this step */
|
|
1163
|
+
groups?: string[];
|
|
1164
|
+
}
|
|
1165
|
+
/**
|
|
1166
|
+
* FlowBuilder for MoveInspectionWorkOrderFromEnRouteToScheduled multi-step action
|
|
1167
|
+
*
|
|
1168
|
+
* Use method chaining to add steps, then call execute() to run the flow.
|
|
1169
|
+
* This is a CREATE flow - no existing record required.
|
|
1170
|
+
* Transitions to stage: WorkOrderStageScheduled
|
|
1171
|
+
*/
|
|
1172
|
+
export declare class MoveInspectionWorkOrderFromEnRouteToScheduledFlowBuilder {
|
|
1173
|
+
private _record;
|
|
1174
|
+
private _provider;
|
|
1175
|
+
private _pendingLinks;
|
|
1176
|
+
private _options?;
|
|
1177
|
+
private _groups;
|
|
1178
|
+
private _steps;
|
|
1179
|
+
constructor(record: WorkOrderRecord<any>, provider: IOdinProvider, pendingLinks: OdinRecordLinkDto[], options?: {
|
|
1180
|
+
journeyId?: string;
|
|
1181
|
+
});
|
|
1182
|
+
/**
|
|
1183
|
+
* Add a group to the main action
|
|
1184
|
+
* @param group - Group name to add
|
|
1185
|
+
* @returns this (for method chaining)
|
|
1186
|
+
*/
|
|
1187
|
+
addGroup(group: string): this;
|
|
1188
|
+
/**
|
|
1189
|
+
* Add CreateEnRouteToScheduledChangeReason step to the flow
|
|
1190
|
+
* @param properties - Properties for this step
|
|
1191
|
+
* @param options - Optional step settings
|
|
1192
|
+
* @returns this (for method chaining)
|
|
1193
|
+
*/
|
|
1194
|
+
createEnRouteToScheduledChangeReason(properties: CreateEnRouteToScheduledChangeReasonProperties, options?: MoveInspectionWorkOrderFromEnRouteToScheduledFlowBuilderStepOptions): this;
|
|
1195
|
+
/**
|
|
1196
|
+
* Execute the flow
|
|
1197
|
+
* @returns The result from the API
|
|
1198
|
+
*/
|
|
1199
|
+
execute(): Promise<IDbRecordCreateUpdateRes[]>;
|
|
1200
|
+
/**
|
|
1201
|
+
* Returns the request payload without executing (for debugging)
|
|
1202
|
+
* @returns The request payload that would be sent to the API
|
|
1203
|
+
*/
|
|
1204
|
+
dryRun(): Record<string, any>;
|
|
1205
|
+
/**
|
|
1206
|
+
* Prevents accidental `await flowBuilder` without .execute()
|
|
1207
|
+
* Forces developers to explicitly call .execute()
|
|
1208
|
+
* @throws Error always - use .execute() or .dryRun() instead
|
|
1209
|
+
*/
|
|
1210
|
+
then(): never;
|
|
1211
|
+
/**
|
|
1212
|
+
* Build the request payload for the action
|
|
1213
|
+
* @private
|
|
1214
|
+
*/
|
|
1215
|
+
private _buildRequestPayload;
|
|
1216
|
+
}
|
|
1217
|
+
/** Options for a flow step */
|
|
1093
1218
|
export interface MoveInspectionWorkOrderToInProgressFlowBuilderStepOptions {
|
|
1094
1219
|
/** Associations to create with this step */
|
|
1095
1220
|
associations?: Array<{
|
|
@@ -1214,6 +1339,68 @@ export declare class MoveInspectionWorkOrderToInProgressSubstantialFlowBuilder {
|
|
|
1214
1339
|
private _buildRequestPayload;
|
|
1215
1340
|
}
|
|
1216
1341
|
/** Options for a flow step */
|
|
1342
|
+
export interface MoveInstallWorkOrderFromEnRouteToScheduledFlowBuilderStepOptions {
|
|
1343
|
+
/** Associations to create with this step */
|
|
1344
|
+
associations?: Array<{
|
|
1345
|
+
recordId?: string;
|
|
1346
|
+
entity?: string;
|
|
1347
|
+
}>;
|
|
1348
|
+
/** Groups for this step */
|
|
1349
|
+
groups?: string[];
|
|
1350
|
+
}
|
|
1351
|
+
/**
|
|
1352
|
+
* FlowBuilder for MoveInstallWorkOrderFromEnRouteToScheduled multi-step action
|
|
1353
|
+
*
|
|
1354
|
+
* Use method chaining to add steps, then call execute() to run the flow.
|
|
1355
|
+
* This is a CREATE flow - no existing record required.
|
|
1356
|
+
* Transitions to stage: WorkOrderStageScheduled
|
|
1357
|
+
*/
|
|
1358
|
+
export declare class MoveInstallWorkOrderFromEnRouteToScheduledFlowBuilder {
|
|
1359
|
+
private _record;
|
|
1360
|
+
private _provider;
|
|
1361
|
+
private _pendingLinks;
|
|
1362
|
+
private _options?;
|
|
1363
|
+
private _groups;
|
|
1364
|
+
private _steps;
|
|
1365
|
+
constructor(record: WorkOrderRecord<any>, provider: IOdinProvider, pendingLinks: OdinRecordLinkDto[], options?: {
|
|
1366
|
+
journeyId?: string;
|
|
1367
|
+
});
|
|
1368
|
+
/**
|
|
1369
|
+
* Add a group to the main action
|
|
1370
|
+
* @param group - Group name to add
|
|
1371
|
+
* @returns this (for method chaining)
|
|
1372
|
+
*/
|
|
1373
|
+
addGroup(group: string): this;
|
|
1374
|
+
/**
|
|
1375
|
+
* Add CreateEnRouteToScheduledChangeReason step to the flow
|
|
1376
|
+
* @param properties - Properties for this step
|
|
1377
|
+
* @param options - Optional step settings
|
|
1378
|
+
* @returns this (for method chaining)
|
|
1379
|
+
*/
|
|
1380
|
+
createEnRouteToScheduledChangeReason(properties: CreateEnRouteToScheduledChangeReasonProperties, options?: MoveInstallWorkOrderFromEnRouteToScheduledFlowBuilderStepOptions): this;
|
|
1381
|
+
/**
|
|
1382
|
+
* Execute the flow
|
|
1383
|
+
* @returns The result from the API
|
|
1384
|
+
*/
|
|
1385
|
+
execute(): Promise<IDbRecordCreateUpdateRes[]>;
|
|
1386
|
+
/**
|
|
1387
|
+
* Returns the request payload without executing (for debugging)
|
|
1388
|
+
* @returns The request payload that would be sent to the API
|
|
1389
|
+
*/
|
|
1390
|
+
dryRun(): Record<string, any>;
|
|
1391
|
+
/**
|
|
1392
|
+
* Prevents accidental `await flowBuilder` without .execute()
|
|
1393
|
+
* Forces developers to explicitly call .execute()
|
|
1394
|
+
* @throws Error always - use .execute() or .dryRun() instead
|
|
1395
|
+
*/
|
|
1396
|
+
then(): never;
|
|
1397
|
+
/**
|
|
1398
|
+
* Build the request payload for the action
|
|
1399
|
+
* @private
|
|
1400
|
+
*/
|
|
1401
|
+
private _buildRequestPayload;
|
|
1402
|
+
}
|
|
1403
|
+
/** Options for a flow step */
|
|
1217
1404
|
export interface MoveInstallWorkOrderFromScheduledToPendingFlowBuilderStepOptions {
|
|
1218
1405
|
/** Associations to create with this step */
|
|
1219
1406
|
associations?: Array<{
|
|
@@ -1400,6 +1587,68 @@ export declare class MoveInstallWorkOrderToInProgressSubstantialFlowBuilder {
|
|
|
1400
1587
|
private _buildRequestPayload;
|
|
1401
1588
|
}
|
|
1402
1589
|
/** Options for a flow step */
|
|
1590
|
+
export interface MovePrePullWorkOrderFromEnRouteToScheduledFlowBuilderStepOptions {
|
|
1591
|
+
/** Associations to create with this step */
|
|
1592
|
+
associations?: Array<{
|
|
1593
|
+
recordId?: string;
|
|
1594
|
+
entity?: string;
|
|
1595
|
+
}>;
|
|
1596
|
+
/** Groups for this step */
|
|
1597
|
+
groups?: string[];
|
|
1598
|
+
}
|
|
1599
|
+
/**
|
|
1600
|
+
* FlowBuilder for MovePrePullWorkOrderFromEnRouteToScheduled multi-step action
|
|
1601
|
+
*
|
|
1602
|
+
* Use method chaining to add steps, then call execute() to run the flow.
|
|
1603
|
+
* This is a CREATE flow - no existing record required.
|
|
1604
|
+
* Transitions to stage: WorkOrderStageScheduled
|
|
1605
|
+
*/
|
|
1606
|
+
export declare class MovePrePullWorkOrderFromEnRouteToScheduledFlowBuilder {
|
|
1607
|
+
private _record;
|
|
1608
|
+
private _provider;
|
|
1609
|
+
private _pendingLinks;
|
|
1610
|
+
private _options?;
|
|
1611
|
+
private _groups;
|
|
1612
|
+
private _steps;
|
|
1613
|
+
constructor(record: WorkOrderRecord<any>, provider: IOdinProvider, pendingLinks: OdinRecordLinkDto[], options?: {
|
|
1614
|
+
journeyId?: string;
|
|
1615
|
+
});
|
|
1616
|
+
/**
|
|
1617
|
+
* Add a group to the main action
|
|
1618
|
+
* @param group - Group name to add
|
|
1619
|
+
* @returns this (for method chaining)
|
|
1620
|
+
*/
|
|
1621
|
+
addGroup(group: string): this;
|
|
1622
|
+
/**
|
|
1623
|
+
* Add CreateEnRouteToScheduledChangeReason step to the flow
|
|
1624
|
+
* @param properties - Properties for this step
|
|
1625
|
+
* @param options - Optional step settings
|
|
1626
|
+
* @returns this (for method chaining)
|
|
1627
|
+
*/
|
|
1628
|
+
createEnRouteToScheduledChangeReason(properties: CreateEnRouteToScheduledChangeReasonProperties, options?: MovePrePullWorkOrderFromEnRouteToScheduledFlowBuilderStepOptions): this;
|
|
1629
|
+
/**
|
|
1630
|
+
* Execute the flow
|
|
1631
|
+
* @returns The result from the API
|
|
1632
|
+
*/
|
|
1633
|
+
execute(): Promise<IDbRecordCreateUpdateRes[]>;
|
|
1634
|
+
/**
|
|
1635
|
+
* Returns the request payload without executing (for debugging)
|
|
1636
|
+
* @returns The request payload that would be sent to the API
|
|
1637
|
+
*/
|
|
1638
|
+
dryRun(): Record<string, any>;
|
|
1639
|
+
/**
|
|
1640
|
+
* Prevents accidental `await flowBuilder` without .execute()
|
|
1641
|
+
* Forces developers to explicitly call .execute()
|
|
1642
|
+
* @throws Error always - use .execute() or .dryRun() instead
|
|
1643
|
+
*/
|
|
1644
|
+
then(): never;
|
|
1645
|
+
/**
|
|
1646
|
+
* Build the request payload for the action
|
|
1647
|
+
* @private
|
|
1648
|
+
*/
|
|
1649
|
+
private _buildRequestPayload;
|
|
1650
|
+
}
|
|
1651
|
+
/** Options for a flow step */
|
|
1403
1652
|
export interface MovePrePullWorkOrderToInProgressFlowBuilderStepOptions {
|
|
1404
1653
|
/** Associations to create with this step */
|
|
1405
1654
|
associations?: Array<{
|
|
@@ -1593,6 +1842,68 @@ export declare class MovePrePullWorkOrderToRemediationFlowBuilder {
|
|
|
1593
1842
|
private _buildRequestPayload;
|
|
1594
1843
|
}
|
|
1595
1844
|
/** Options for a flow step */
|
|
1845
|
+
export interface MoveRemediationWorkOrderFromEnRouteToScheduledFlowBuilderStepOptions {
|
|
1846
|
+
/** Associations to create with this step */
|
|
1847
|
+
associations?: Array<{
|
|
1848
|
+
recordId?: string;
|
|
1849
|
+
entity?: string;
|
|
1850
|
+
}>;
|
|
1851
|
+
/** Groups for this step */
|
|
1852
|
+
groups?: string[];
|
|
1853
|
+
}
|
|
1854
|
+
/**
|
|
1855
|
+
* FlowBuilder for MoveRemediationWorkOrderFromEnRouteToScheduled multi-step action
|
|
1856
|
+
*
|
|
1857
|
+
* Use method chaining to add steps, then call execute() to run the flow.
|
|
1858
|
+
* This is a CREATE flow - no existing record required.
|
|
1859
|
+
* Transitions to stage: WorkOrderStageScheduled
|
|
1860
|
+
*/
|
|
1861
|
+
export declare class MoveRemediationWorkOrderFromEnRouteToScheduledFlowBuilder {
|
|
1862
|
+
private _record;
|
|
1863
|
+
private _provider;
|
|
1864
|
+
private _pendingLinks;
|
|
1865
|
+
private _options?;
|
|
1866
|
+
private _groups;
|
|
1867
|
+
private _steps;
|
|
1868
|
+
constructor(record: WorkOrderRecord<any>, provider: IOdinProvider, pendingLinks: OdinRecordLinkDto[], options?: {
|
|
1869
|
+
journeyId?: string;
|
|
1870
|
+
});
|
|
1871
|
+
/**
|
|
1872
|
+
* Add a group to the main action
|
|
1873
|
+
* @param group - Group name to add
|
|
1874
|
+
* @returns this (for method chaining)
|
|
1875
|
+
*/
|
|
1876
|
+
addGroup(group: string): this;
|
|
1877
|
+
/**
|
|
1878
|
+
* Add CreateEnRouteToScheduledChangeReason step to the flow
|
|
1879
|
+
* @param properties - Properties for this step
|
|
1880
|
+
* @param options - Optional step settings
|
|
1881
|
+
* @returns this (for method chaining)
|
|
1882
|
+
*/
|
|
1883
|
+
createEnRouteToScheduledChangeReason(properties: CreateEnRouteToScheduledChangeReasonProperties, options?: MoveRemediationWorkOrderFromEnRouteToScheduledFlowBuilderStepOptions): this;
|
|
1884
|
+
/**
|
|
1885
|
+
* Execute the flow
|
|
1886
|
+
* @returns The result from the API
|
|
1887
|
+
*/
|
|
1888
|
+
execute(): Promise<IDbRecordCreateUpdateRes[]>;
|
|
1889
|
+
/**
|
|
1890
|
+
* Returns the request payload without executing (for debugging)
|
|
1891
|
+
* @returns The request payload that would be sent to the API
|
|
1892
|
+
*/
|
|
1893
|
+
dryRun(): Record<string, any>;
|
|
1894
|
+
/**
|
|
1895
|
+
* Prevents accidental `await flowBuilder` without .execute()
|
|
1896
|
+
* Forces developers to explicitly call .execute()
|
|
1897
|
+
* @throws Error always - use .execute() or .dryRun() instead
|
|
1898
|
+
*/
|
|
1899
|
+
then(): never;
|
|
1900
|
+
/**
|
|
1901
|
+
* Build the request payload for the action
|
|
1902
|
+
* @private
|
|
1903
|
+
*/
|
|
1904
|
+
private _buildRequestPayload;
|
|
1905
|
+
}
|
|
1906
|
+
/** Options for a flow step */
|
|
1596
1907
|
export interface MoveRemediationWorkOrderToInProgressSubstantialFlowBuilderStepOptions {
|
|
1597
1908
|
/** Associations to create with this step */
|
|
1598
1909
|
associations?: Array<{
|
|
@@ -1724,6 +2035,68 @@ export declare class MoveRemediationWorkOrderToRemediationFlowBuilder {
|
|
|
1724
2035
|
private _buildRequestPayload;
|
|
1725
2036
|
}
|
|
1726
2037
|
/** Options for a flow step */
|
|
2038
|
+
export interface MoveServiceWorkOrderFromEnRouteToScheduledFlowBuilderStepOptions {
|
|
2039
|
+
/** Associations to create with this step */
|
|
2040
|
+
associations?: Array<{
|
|
2041
|
+
recordId?: string;
|
|
2042
|
+
entity?: string;
|
|
2043
|
+
}>;
|
|
2044
|
+
/** Groups for this step */
|
|
2045
|
+
groups?: string[];
|
|
2046
|
+
}
|
|
2047
|
+
/**
|
|
2048
|
+
* FlowBuilder for MoveServiceWorkOrderFromEnRouteToScheduled multi-step action
|
|
2049
|
+
*
|
|
2050
|
+
* Use method chaining to add steps, then call execute() to run the flow.
|
|
2051
|
+
* This is a CREATE flow - no existing record required.
|
|
2052
|
+
* Transitions to stage: WorkOrderStageScheduled
|
|
2053
|
+
*/
|
|
2054
|
+
export declare class MoveServiceWorkOrderFromEnRouteToScheduledFlowBuilder {
|
|
2055
|
+
private _record;
|
|
2056
|
+
private _provider;
|
|
2057
|
+
private _pendingLinks;
|
|
2058
|
+
private _options?;
|
|
2059
|
+
private _groups;
|
|
2060
|
+
private _steps;
|
|
2061
|
+
constructor(record: WorkOrderRecord<any>, provider: IOdinProvider, pendingLinks: OdinRecordLinkDto[], options?: {
|
|
2062
|
+
journeyId?: string;
|
|
2063
|
+
});
|
|
2064
|
+
/**
|
|
2065
|
+
* Add a group to the main action
|
|
2066
|
+
* @param group - Group name to add
|
|
2067
|
+
* @returns this (for method chaining)
|
|
2068
|
+
*/
|
|
2069
|
+
addGroup(group: string): this;
|
|
2070
|
+
/**
|
|
2071
|
+
* Add CreateEnRouteToScheduledChangeReason step to the flow
|
|
2072
|
+
* @param properties - Properties for this step
|
|
2073
|
+
* @param options - Optional step settings
|
|
2074
|
+
* @returns this (for method chaining)
|
|
2075
|
+
*/
|
|
2076
|
+
createEnRouteToScheduledChangeReason(properties: CreateEnRouteToScheduledChangeReasonProperties, options?: MoveServiceWorkOrderFromEnRouteToScheduledFlowBuilderStepOptions): this;
|
|
2077
|
+
/**
|
|
2078
|
+
* Execute the flow
|
|
2079
|
+
* @returns The result from the API
|
|
2080
|
+
*/
|
|
2081
|
+
execute(): Promise<IDbRecordCreateUpdateRes[]>;
|
|
2082
|
+
/**
|
|
2083
|
+
* Returns the request payload without executing (for debugging)
|
|
2084
|
+
* @returns The request payload that would be sent to the API
|
|
2085
|
+
*/
|
|
2086
|
+
dryRun(): Record<string, any>;
|
|
2087
|
+
/**
|
|
2088
|
+
* Prevents accidental `await flowBuilder` without .execute()
|
|
2089
|
+
* Forces developers to explicitly call .execute()
|
|
2090
|
+
* @throws Error always - use .execute() or .dryRun() instead
|
|
2091
|
+
*/
|
|
2092
|
+
then(): never;
|
|
2093
|
+
/**
|
|
2094
|
+
* Build the request payload for the action
|
|
2095
|
+
* @private
|
|
2096
|
+
*/
|
|
2097
|
+
private _buildRequestPayload;
|
|
2098
|
+
}
|
|
2099
|
+
/** Options for a flow step */
|
|
1727
2100
|
export interface MoveServiceWorkOrderToInProgressFlowBuilderStepOptions {
|
|
1728
2101
|
/** Associations to create with this step */
|
|
1729
2102
|
associations?: Array<{
|
|
@@ -5045,6 +5418,30 @@ export declare class WorkOrderRecord<TProps = WorkOrderProperties> {
|
|
|
5045
5418
|
moveBusinessInstallFromEnRouteToPending(options?: {
|
|
5046
5419
|
journeyId?: string;
|
|
5047
5420
|
}): ActionBuilder;
|
|
5421
|
+
/**
|
|
5422
|
+
* MoveBusinessInstallFromEnRouteToScheduled
|
|
5423
|
+
*
|
|
5424
|
+
* Starts a stage transition flow on this WorkOrder record.
|
|
5425
|
+
* Chain step methods and call .execute() to run the flow.
|
|
5426
|
+
*
|
|
5427
|
+
* @remarks Transitions to stage: BusinessInstallPipelineStageScheduled
|
|
5428
|
+
*
|
|
5429
|
+
* @param options - Optional settings
|
|
5430
|
+
* @param options.journeyId - Associate with a journey
|
|
5431
|
+
* @returns FlowBuilder for chaining step methods
|
|
5432
|
+
* @throws Error if called on a new (unsaved) record
|
|
5433
|
+
*
|
|
5434
|
+
* @example
|
|
5435
|
+
* ```typescript
|
|
5436
|
+
* const record = await odinClient.workOrders.get(id);
|
|
5437
|
+
* await record.moveBusinessInstallFromEnRouteToScheduled()
|
|
5438
|
+
* .createEnRouteToScheduledChangeReason({ ... })
|
|
5439
|
+
* .execute();
|
|
5440
|
+
* ```
|
|
5441
|
+
*/
|
|
5442
|
+
moveBusinessInstallFromEnRouteToScheduled(options?: {
|
|
5443
|
+
journeyId?: string;
|
|
5444
|
+
}): MoveBusinessInstallFromEnRouteToScheduledFlowBuilder;
|
|
5048
5445
|
/**
|
|
5049
5446
|
* MoveBusinessInstallFromInProgressToPending
|
|
5050
5447
|
*
|
|
@@ -5993,6 +6390,30 @@ export declare class WorkOrderRecord<TProps = WorkOrderProperties> {
|
|
|
5993
6390
|
moveFinanceWorkOrderToPurchaseOrder(options?: {
|
|
5994
6391
|
journeyId?: string;
|
|
5995
6392
|
}): ActionBuilder;
|
|
6393
|
+
/**
|
|
6394
|
+
* MoveInspectionWorkOrderFromEnRouteToScheduled
|
|
6395
|
+
*
|
|
6396
|
+
* Starts a stage transition flow on this WorkOrder record.
|
|
6397
|
+
* Chain step methods and call .execute() to run the flow.
|
|
6398
|
+
*
|
|
6399
|
+
* @remarks Transitions to stage: WorkOrderStageScheduled
|
|
6400
|
+
*
|
|
6401
|
+
* @param options - Optional settings
|
|
6402
|
+
* @param options.journeyId - Associate with a journey
|
|
6403
|
+
* @returns FlowBuilder for chaining step methods
|
|
6404
|
+
* @throws Error if called on a new (unsaved) record
|
|
6405
|
+
*
|
|
6406
|
+
* @example
|
|
6407
|
+
* ```typescript
|
|
6408
|
+
* const record = await odinClient.workOrders.get(id);
|
|
6409
|
+
* await record.moveInspectionWorkOrderFromEnRouteToScheduled()
|
|
6410
|
+
* .createEnRouteToScheduledChangeReason({ ... })
|
|
6411
|
+
* .execute();
|
|
6412
|
+
* ```
|
|
6413
|
+
*/
|
|
6414
|
+
moveInspectionWorkOrderFromEnRouteToScheduled(options?: {
|
|
6415
|
+
journeyId?: string;
|
|
6416
|
+
}): MoveInspectionWorkOrderFromEnRouteToScheduledFlowBuilder;
|
|
5996
6417
|
/**
|
|
5997
6418
|
* MoveInspectionWorkOrderToCancelled
|
|
5998
6419
|
*
|
|
@@ -6166,6 +6587,30 @@ export declare class WorkOrderRecord<TProps = WorkOrderProperties> {
|
|
|
6166
6587
|
moveInstallWorkOrderFromEnRouteToPending(options?: {
|
|
6167
6588
|
journeyId?: string;
|
|
6168
6589
|
}): ActionBuilder;
|
|
6590
|
+
/**
|
|
6591
|
+
* MoveInstallWorkOrderFromEnRouteToScheduled
|
|
6592
|
+
*
|
|
6593
|
+
* Starts a stage transition flow on this WorkOrder record.
|
|
6594
|
+
* Chain step methods and call .execute() to run the flow.
|
|
6595
|
+
*
|
|
6596
|
+
* @remarks Transitions to stage: WorkOrderStageScheduled
|
|
6597
|
+
*
|
|
6598
|
+
* @param options - Optional settings
|
|
6599
|
+
* @param options.journeyId - Associate with a journey
|
|
6600
|
+
* @returns FlowBuilder for chaining step methods
|
|
6601
|
+
* @throws Error if called on a new (unsaved) record
|
|
6602
|
+
*
|
|
6603
|
+
* @example
|
|
6604
|
+
* ```typescript
|
|
6605
|
+
* const record = await odinClient.workOrders.get(id);
|
|
6606
|
+
* await record.moveInstallWorkOrderFromEnRouteToScheduled()
|
|
6607
|
+
* .createEnRouteToScheduledChangeReason({ ... })
|
|
6608
|
+
* .execute();
|
|
6609
|
+
* ```
|
|
6610
|
+
*/
|
|
6611
|
+
moveInstallWorkOrderFromEnRouteToScheduled(options?: {
|
|
6612
|
+
journeyId?: string;
|
|
6613
|
+
}): MoveInstallWorkOrderFromEnRouteToScheduledFlowBuilder;
|
|
6169
6614
|
/**
|
|
6170
6615
|
* MoveInstallWorkOrderFromInProgressToComplete
|
|
6171
6616
|
*
|
|
@@ -6713,6 +7158,30 @@ export declare class WorkOrderRecord<TProps = WorkOrderProperties> {
|
|
|
6713
7158
|
movePlanningWorkOrderToOnHold(options?: {
|
|
6714
7159
|
journeyId?: string;
|
|
6715
7160
|
}): ActionBuilder;
|
|
7161
|
+
/**
|
|
7162
|
+
* MovePrePullWorkOrderFromEnRouteToScheduled
|
|
7163
|
+
*
|
|
7164
|
+
* Starts a stage transition flow on this WorkOrder record.
|
|
7165
|
+
* Chain step methods and call .execute() to run the flow.
|
|
7166
|
+
*
|
|
7167
|
+
* @remarks Transitions to stage: WorkOrderStageScheduled
|
|
7168
|
+
*
|
|
7169
|
+
* @param options - Optional settings
|
|
7170
|
+
* @param options.journeyId - Associate with a journey
|
|
7171
|
+
* @returns FlowBuilder for chaining step methods
|
|
7172
|
+
* @throws Error if called on a new (unsaved) record
|
|
7173
|
+
*
|
|
7174
|
+
* @example
|
|
7175
|
+
* ```typescript
|
|
7176
|
+
* const record = await odinClient.workOrders.get(id);
|
|
7177
|
+
* await record.movePrePullWorkOrderFromEnRouteToScheduled()
|
|
7178
|
+
* .createEnRouteToScheduledChangeReason({ ... })
|
|
7179
|
+
* .execute();
|
|
7180
|
+
* ```
|
|
7181
|
+
*/
|
|
7182
|
+
movePrePullWorkOrderFromEnRouteToScheduled(options?: {
|
|
7183
|
+
journeyId?: string;
|
|
7184
|
+
}): MovePrePullWorkOrderFromEnRouteToScheduledFlowBuilder;
|
|
6716
7185
|
/**
|
|
6717
7186
|
* MovePrePullWorkOrderToEnRoute
|
|
6718
7187
|
*
|
|
@@ -6811,6 +7280,30 @@ export declare class WorkOrderRecord<TProps = WorkOrderProperties> {
|
|
|
6811
7280
|
movePrePullWorkOrderToRemediation(options?: {
|
|
6812
7281
|
journeyId?: string;
|
|
6813
7282
|
}): MovePrePullWorkOrderToRemediationFlowBuilder;
|
|
7283
|
+
/**
|
|
7284
|
+
* MoveRemediationWorkOrderFromEnRouteToScheduled
|
|
7285
|
+
*
|
|
7286
|
+
* Starts a stage transition flow on this WorkOrder record.
|
|
7287
|
+
* Chain step methods and call .execute() to run the flow.
|
|
7288
|
+
*
|
|
7289
|
+
* @remarks Transitions to stage: WorkOrderStageScheduled
|
|
7290
|
+
*
|
|
7291
|
+
* @param options - Optional settings
|
|
7292
|
+
* @param options.journeyId - Associate with a journey
|
|
7293
|
+
* @returns FlowBuilder for chaining step methods
|
|
7294
|
+
* @throws Error if called on a new (unsaved) record
|
|
7295
|
+
*
|
|
7296
|
+
* @example
|
|
7297
|
+
* ```typescript
|
|
7298
|
+
* const record = await odinClient.workOrders.get(id);
|
|
7299
|
+
* await record.moveRemediationWorkOrderFromEnRouteToScheduled()
|
|
7300
|
+
* .createEnRouteToScheduledChangeReason({ ... })
|
|
7301
|
+
* .execute();
|
|
7302
|
+
* ```
|
|
7303
|
+
*/
|
|
7304
|
+
moveRemediationWorkOrderFromEnRouteToScheduled(options?: {
|
|
7305
|
+
journeyId?: string;
|
|
7306
|
+
}): MoveRemediationWorkOrderFromEnRouteToScheduledFlowBuilder;
|
|
6814
7307
|
/**
|
|
6815
7308
|
* MoveRemediationWorkOrderToEnRoute
|
|
6816
7309
|
*
|
|
@@ -7285,6 +7778,30 @@ export declare class WorkOrderRecord<TProps = WorkOrderProperties> {
|
|
|
7285
7778
|
moveServiceWorkOrderFromEnRouteToPendingSupplier(options?: {
|
|
7286
7779
|
journeyId?: string;
|
|
7287
7780
|
}): ActionBuilder;
|
|
7781
|
+
/**
|
|
7782
|
+
* MoveServiceWorkOrderFromEnRouteToScheduled
|
|
7783
|
+
*
|
|
7784
|
+
* Starts a stage transition flow on this WorkOrder record.
|
|
7785
|
+
* Chain step methods and call .execute() to run the flow.
|
|
7786
|
+
*
|
|
7787
|
+
* @remarks Transitions to stage: WorkOrderStageScheduled
|
|
7788
|
+
*
|
|
7789
|
+
* @param options - Optional settings
|
|
7790
|
+
* @param options.journeyId - Associate with a journey
|
|
7791
|
+
* @returns FlowBuilder for chaining step methods
|
|
7792
|
+
* @throws Error if called on a new (unsaved) record
|
|
7793
|
+
*
|
|
7794
|
+
* @example
|
|
7795
|
+
* ```typescript
|
|
7796
|
+
* const record = await odinClient.workOrders.get(id);
|
|
7797
|
+
* await record.moveServiceWorkOrderFromEnRouteToScheduled()
|
|
7798
|
+
* .createEnRouteToScheduledChangeReason({ ... })
|
|
7799
|
+
* .execute();
|
|
7800
|
+
* ```
|
|
7801
|
+
*/
|
|
7802
|
+
moveServiceWorkOrderFromEnRouteToScheduled(options?: {
|
|
7803
|
+
journeyId?: string;
|
|
7804
|
+
}): MoveServiceWorkOrderFromEnRouteToScheduledFlowBuilder;
|
|
7288
7805
|
/**
|
|
7289
7806
|
* MoveServiceWorkOrderFromInProgressToPending
|
|
7290
7807
|
*
|