@d19n/youfibre-odin-sdk 2.0.265 → 2.0.266

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 CHANGED
@@ -364,7 +364,7 @@ This SDK includes **176** entities across **12** modules.
364
364
 
365
365
  ## Actions
366
366
 
367
- This SDK includes **800** actions.
367
+ This SDK includes **802** actions.
368
368
 
369
369
  ### Action Types
370
370
 
@@ -1053,6 +1053,7 @@ This SDK includes **800** actions.
1053
1053
  | `DefaultUpdateChurnRequest` | UPDATE | k1.t-hEOJjsDb.OrderModule.ChurnRequest.Update.DefaultUpdateChurnRequest |
1054
1054
  | `MoveOrderFromDeactivatedToCancelled` | CREATE | k1.t-hEOJjsDb.OrderModule.ChurnRequest.Create.CreateChurnRequest |
1055
1055
  | `MoveOrderFromPendingCancellationToCancelled` | CREATE | k1.t-hEOJjsDb.OrderModule.ChurnRequest.Create.CreateChurnRequest |
1056
+ | `StampChurnRequestCompleted` | UPDATE | k1.t-hEOJjsDb.OrderModule.ChurnRequest.Update.StampChurnRequestCompleted |
1056
1057
 
1057
1058
  **CompleteChurnRequestFlow Target Stages:** `ChurnRequestStageDone`
1058
1059
 
@@ -1105,6 +1106,7 @@ This SDK includes **800** actions.
1105
1106
  | `CreatePicRequest` | CREATE | k1.t-hEOJjsDb.OrderModule.PICRequest.Create.CreatePICRequest |
1106
1107
  | `DefaultUpdatePicRequest` | UPDATE | k1.t-hEOJjsDb.OrderModule.PICRequest.Update.DefaultUpdatePICRequest |
1107
1108
  | `OverrideMovePicToInProgress` | STAGE_TRANSITION | k1.t-hEOJjsDb.OrderModule.PICRequest.Transition.OverrideMovePICToInProgress |
1109
+ | `StampPicRequestCompleted` | UPDATE | k1.t-hEOJjsDb.OrderModule.PICRequest.Update.StampPicRequestCompleted |
1108
1110
 
1109
1111
  **CompletePicRequestFlow Target Stages:** `PICRequestStageDone`
1110
1112
 
@@ -0,0 +1,80 @@
1
+ /**
2
+ * StampChurnRequestCompleted Action DTO
3
+ *
4
+ * Stamps the Done-stage audit fields on a ChurnRequest. Written by the orders RMQ subscriber ChurnRequestsRabbitmqHandler when the record reaches ChurnRequestStageDone — CompletedBy from the event principal, CompletedDate from the clock. Not operator-facing: both columns are hidden.
5
+ *
6
+ * @module OrderModule
7
+ * @entity ChurnRequest
8
+ * @actionKey StampChurnRequestCompleted
9
+ * @event k1.t-hEOJjsDb.OrderModule.ChurnRequest.Update.StampChurnRequestCompleted
10
+ *
11
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
12
+ */
13
+ import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
14
+ /**
15
+ * RabbitMQ message payload for StampChurnRequestCompleted updated events
16
+ *
17
+ * @event k1.t-hEOJjsDb.OrderModule.ChurnRequest.Update.StampChurnRequestCompleted
18
+ */
19
+ export interface StampChurnRequestCompletedMessage extends OdinRecordUpdatedEvent<StampChurnRequestCompletedDto, StampChurnRequestCompletedProperties> {
20
+ }
21
+ /**
22
+ * Properties for StampChurnRequestCompleted action
23
+ *
24
+ * @property Required fields: 0
25
+ * @property Optional fields: 2
26
+ */
27
+ export interface StampChurnRequestCompletedProperties {
28
+ /**
29
+ * Completed by
30
+ *
31
+ * the user that moved the record to done (Sales - ChurnRequest)
32
+ * @type {TEXT}
33
+ */
34
+ CompletedBy?: string | null;
35
+ /**
36
+ * Completed date
37
+ *
38
+ * the date the record was moved to done (Sales - ChurnRequest)
39
+ * @type {DATE}
40
+ * @format DD/MM/YYYY
41
+ */
42
+ CompletedDate?: string | null;
43
+ }
44
+ /**
45
+ * Record who completed the churn request, and when
46
+ *
47
+ * Stamps the Done-stage audit fields on a ChurnRequest. Written by the orders RMQ subscriber ChurnRequestsRabbitmqHandler when the record reaches ChurnRequestStageDone — CompletedBy from the event principal, CompletedDate from the clock. Not operator-facing: both columns are hidden.
48
+ *
49
+ * @actionType UPDATE - Updates an existing ChurnRequest record
50
+ * @module OrderModule
51
+ * @entity ChurnRequest
52
+ * @event k1.t-hEOJjsDb.OrderModule.ChurnRequest.Update.StampChurnRequestCompleted
53
+ * @permission schema.action.stampchurnrequestcompleted.trigger
54
+ * @benchmark This action is tracked for performance benchmarks
55
+ */
56
+ export declare class StampChurnRequestCompletedDto extends OdinRecordUpdateDto<StampChurnRequestCompletedProperties> {
57
+ /** Used by SDK generators to identify action type */
58
+ static readonly ACTION_TYPE = "UPDATE";
59
+ static readonly ACTION_KEY = "StampChurnRequestCompleted";
60
+ static readonly MODULE_NAME = "OrderModule";
61
+ static readonly ENTITIES: string[];
62
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.OrderModule.ChurnRequest.Update.StampChurnRequestCompleted";
63
+ static readonly PERMISSION = "schema.action.stampchurnrequestcompleted.trigger";
64
+ /** Step metadata - entity this action targets */
65
+ static readonly STEP_ENTITY = "OrderModule:ChurnRequest";
66
+ static readonly STEP_SCHEMA_ID = "aec13a3b-3a34-43aa-9cc9-dcf8c1637ab6";
67
+ static readonly STEP_SCHEMA_ACTION_ID = "e9e7f7c4-7d75-4a26-a478-7672c7b10c37";
68
+ static readonly AUTO_LINK_PARENT = false;
69
+ readonly actionName: string;
70
+ readonly schemaActionId: string;
71
+ readonly entity: string;
72
+ constructor(record: OdinRecord<any> | {
73
+ id: string;
74
+ entity: string;
75
+ type?: string;
76
+ }, properties: StampChurnRequestCompletedProperties, options?: {
77
+ journeyId?: string;
78
+ stageKey?: string;
79
+ });
80
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /**
3
+ * StampChurnRequestCompleted Action DTO
4
+ *
5
+ * Stamps the Done-stage audit fields on a ChurnRequest. Written by the orders RMQ subscriber ChurnRequestsRabbitmqHandler when the record reaches ChurnRequestStageDone — CompletedBy from the event principal, CompletedDate from the clock. Not operator-facing: both columns are hidden.
6
+ *
7
+ * @module OrderModule
8
+ * @entity ChurnRequest
9
+ * @actionKey StampChurnRequestCompleted
10
+ * @event k1.t-hEOJjsDb.OrderModule.ChurnRequest.Update.StampChurnRequestCompleted
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.StampChurnRequestCompletedDto = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * Record who completed the churn request, and when
19
+ *
20
+ * Stamps the Done-stage audit fields on a ChurnRequest. Written by the orders RMQ subscriber ChurnRequestsRabbitmqHandler when the record reaches ChurnRequestStageDone — CompletedBy from the event principal, CompletedDate from the clock. Not operator-facing: both columns are hidden.
21
+ *
22
+ * @actionType UPDATE - Updates an existing ChurnRequest record
23
+ * @module OrderModule
24
+ * @entity ChurnRequest
25
+ * @event k1.t-hEOJjsDb.OrderModule.ChurnRequest.Update.StampChurnRequestCompleted
26
+ * @permission schema.action.stampchurnrequestcompleted.trigger
27
+ * @benchmark This action is tracked for performance benchmarks
28
+ */
29
+ class StampChurnRequestCompletedDto extends core_1.OdinRecordUpdateDto {
30
+ constructor(record, properties, options) {
31
+ super({
32
+ id: record.id,
33
+ entity: record.entity,
34
+ type: record.type,
35
+ properties,
36
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
37
+ stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
38
+ });
39
+ this.actionName = 'StampChurnRequestCompleted';
40
+ this.schemaActionId = 'e9e7f7c4-7d75-4a26-a478-7672c7b10c37';
41
+ this.entity = 'OrderModule:ChurnRequest';
42
+ }
43
+ }
44
+ exports.StampChurnRequestCompletedDto = StampChurnRequestCompletedDto;
45
+ /** Used by SDK generators to identify action type */
46
+ StampChurnRequestCompletedDto.ACTION_TYPE = 'UPDATE';
47
+ StampChurnRequestCompletedDto.ACTION_KEY = 'StampChurnRequestCompleted';
48
+ StampChurnRequestCompletedDto.MODULE_NAME = 'OrderModule';
49
+ StampChurnRequestCompletedDto.ENTITIES = ['ChurnRequest'];
50
+ StampChurnRequestCompletedDto.EVENT_NAME = 'k1.t-hEOJjsDb.OrderModule.ChurnRequest.Update.StampChurnRequestCompleted';
51
+ StampChurnRequestCompletedDto.PERMISSION = 'schema.action.stampchurnrequestcompleted.trigger';
52
+ /** Step metadata - entity this action targets */
53
+ StampChurnRequestCompletedDto.STEP_ENTITY = 'OrderModule:ChurnRequest';
54
+ StampChurnRequestCompletedDto.STEP_SCHEMA_ID = 'aec13a3b-3a34-43aa-9cc9-dcf8c1637ab6';
55
+ StampChurnRequestCompletedDto.STEP_SCHEMA_ACTION_ID = 'e9e7f7c4-7d75-4a26-a478-7672c7b10c37';
56
+ StampChurnRequestCompletedDto.AUTO_LINK_PARENT = false;
@@ -0,0 +1,80 @@
1
+ /**
2
+ * StampPicRequestCompleted Action DTO
3
+ *
4
+ * Stamps the Done-stage audit fields on a PICRequest. Written by the orders RMQ subscriber PicRequestsRabbitmqHandler when the record reaches its success stage — CompletedBy from the event principal, CompletedDate from the clock. Not operator-facing: both columns are hidden.
5
+ *
6
+ * @module OrderModule
7
+ * @entity PICRequest
8
+ * @actionKey StampPicRequestCompleted
9
+ * @event k1.t-hEOJjsDb.OrderModule.PICRequest.Update.StampPicRequestCompleted
10
+ *
11
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
12
+ */
13
+ import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
14
+ /**
15
+ * RabbitMQ message payload for StampPicRequestCompleted updated events
16
+ *
17
+ * @event k1.t-hEOJjsDb.OrderModule.PICRequest.Update.StampPicRequestCompleted
18
+ */
19
+ export interface StampPicRequestCompletedMessage extends OdinRecordUpdatedEvent<StampPicRequestCompletedDto, StampPicRequestCompletedProperties> {
20
+ }
21
+ /**
22
+ * Properties for StampPicRequestCompleted action
23
+ *
24
+ * @property Required fields: 0
25
+ * @property Optional fields: 2
26
+ */
27
+ export interface StampPicRequestCompletedProperties {
28
+ /**
29
+ * Completed by
30
+ *
31
+ * The person who moved the PICRequest to done (Sales - PICRequest)
32
+ * @type {TEXT}
33
+ */
34
+ CompletedBy?: string | null;
35
+ /**
36
+ * Completed date
37
+ *
38
+ * the date the PICRequest was moved to done (Sales - PICRequest)
39
+ * @type {DATE}
40
+ * @format DD/MM/YYYY
41
+ */
42
+ CompletedDate?: string | null;
43
+ }
44
+ /**
45
+ * Record who completed the PIC request, and when
46
+ *
47
+ * Stamps the Done-stage audit fields on a PICRequest. Written by the orders RMQ subscriber PicRequestsRabbitmqHandler when the record reaches its success stage — CompletedBy from the event principal, CompletedDate from the clock. Not operator-facing: both columns are hidden.
48
+ *
49
+ * @actionType UPDATE - Updates an existing PICRequest record
50
+ * @module OrderModule
51
+ * @entity PICRequest
52
+ * @event k1.t-hEOJjsDb.OrderModule.PICRequest.Update.StampPicRequestCompleted
53
+ * @permission schema.action.stamppicrequestcompleted.trigger
54
+ * @benchmark This action is tracked for performance benchmarks
55
+ */
56
+ export declare class StampPicRequestCompletedDto extends OdinRecordUpdateDto<StampPicRequestCompletedProperties> {
57
+ /** Used by SDK generators to identify action type */
58
+ static readonly ACTION_TYPE = "UPDATE";
59
+ static readonly ACTION_KEY = "StampPicRequestCompleted";
60
+ static readonly MODULE_NAME = "OrderModule";
61
+ static readonly ENTITIES: string[];
62
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.OrderModule.PICRequest.Update.StampPicRequestCompleted";
63
+ static readonly PERMISSION = "schema.action.stamppicrequestcompleted.trigger";
64
+ /** Step metadata - entity this action targets */
65
+ static readonly STEP_ENTITY = "OrderModule:PICRequest";
66
+ static readonly STEP_SCHEMA_ID = "5d43f05b-29a7-4cb7-9eb4-95517cc18ba1";
67
+ static readonly STEP_SCHEMA_ACTION_ID = "0ee20496-2bfd-47b2-8f19-d393875af028";
68
+ static readonly AUTO_LINK_PARENT = false;
69
+ readonly actionName: string;
70
+ readonly schemaActionId: string;
71
+ readonly entity: string;
72
+ constructor(record: OdinRecord<any> | {
73
+ id: string;
74
+ entity: string;
75
+ type?: string;
76
+ }, properties: StampPicRequestCompletedProperties, options?: {
77
+ journeyId?: string;
78
+ stageKey?: string;
79
+ });
80
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /**
3
+ * StampPicRequestCompleted Action DTO
4
+ *
5
+ * Stamps the Done-stage audit fields on a PICRequest. Written by the orders RMQ subscriber PicRequestsRabbitmqHandler when the record reaches its success stage — CompletedBy from the event principal, CompletedDate from the clock. Not operator-facing: both columns are hidden.
6
+ *
7
+ * @module OrderModule
8
+ * @entity PICRequest
9
+ * @actionKey StampPicRequestCompleted
10
+ * @event k1.t-hEOJjsDb.OrderModule.PICRequest.Update.StampPicRequestCompleted
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.StampPicRequestCompletedDto = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * Record who completed the PIC request, and when
19
+ *
20
+ * Stamps the Done-stage audit fields on a PICRequest. Written by the orders RMQ subscriber PicRequestsRabbitmqHandler when the record reaches its success stage — CompletedBy from the event principal, CompletedDate from the clock. Not operator-facing: both columns are hidden.
21
+ *
22
+ * @actionType UPDATE - Updates an existing PICRequest record
23
+ * @module OrderModule
24
+ * @entity PICRequest
25
+ * @event k1.t-hEOJjsDb.OrderModule.PICRequest.Update.StampPicRequestCompleted
26
+ * @permission schema.action.stamppicrequestcompleted.trigger
27
+ * @benchmark This action is tracked for performance benchmarks
28
+ */
29
+ class StampPicRequestCompletedDto extends core_1.OdinRecordUpdateDto {
30
+ constructor(record, properties, options) {
31
+ super({
32
+ id: record.id,
33
+ entity: record.entity,
34
+ type: record.type,
35
+ properties,
36
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
37
+ stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
38
+ });
39
+ this.actionName = 'StampPicRequestCompleted';
40
+ this.schemaActionId = '0ee20496-2bfd-47b2-8f19-d393875af028';
41
+ this.entity = 'OrderModule:PICRequest';
42
+ }
43
+ }
44
+ exports.StampPicRequestCompletedDto = StampPicRequestCompletedDto;
45
+ /** Used by SDK generators to identify action type */
46
+ StampPicRequestCompletedDto.ACTION_TYPE = 'UPDATE';
47
+ StampPicRequestCompletedDto.ACTION_KEY = 'StampPicRequestCompleted';
48
+ StampPicRequestCompletedDto.MODULE_NAME = 'OrderModule';
49
+ StampPicRequestCompletedDto.ENTITIES = ['PICRequest'];
50
+ StampPicRequestCompletedDto.EVENT_NAME = 'k1.t-hEOJjsDb.OrderModule.PICRequest.Update.StampPicRequestCompleted';
51
+ StampPicRequestCompletedDto.PERMISSION = 'schema.action.stamppicrequestcompleted.trigger';
52
+ /** Step metadata - entity this action targets */
53
+ StampPicRequestCompletedDto.STEP_ENTITY = 'OrderModule:PICRequest';
54
+ StampPicRequestCompletedDto.STEP_SCHEMA_ID = '5d43f05b-29a7-4cb7-9eb4-95517cc18ba1';
55
+ StampPicRequestCompletedDto.STEP_SCHEMA_ACTION_ID = '0ee20496-2bfd-47b2-8f19-d393875af028';
56
+ StampPicRequestCompletedDto.AUTO_LINK_PARENT = false;
@@ -209,6 +209,7 @@ export declare enum ChangeReasonInformReason {
209
209
  * - `ADVERSE_WEATHER_CONDITIONS` - Adverse weather conditions
210
210
  * - `AREA_NOT_RFS_SUPPLIER` - Area not RFS
211
211
  * - `AREA_NOT_RFS_TENANT` - Area not RFS
212
+ * - `AUTOMATICALLY_PROVISIONED_BY_START_ORDER`
212
213
  * - `CANCELLATION_FOR_PERSONAL_REASONS` - Cancellation for personal reasons
213
214
  * - `CHANGED_ASSIGNED_CONTRACTOR` - Changed assigned contractor
214
215
  * - `CLAIMING_MISSELING` - Claiming misselling
@@ -219,13 +220,13 @@ export declare enum ChangeReasonInformReason {
219
220
  * - `ENGINEER_DID_NOT_ATTEND` - Engineer did not attend
220
221
  * - `HEALTH_AND_SAFETY_CONCERN_CUSTOMER_PREMISE` - Health and safety concern
221
222
  * - `H_S_CONCERN_CUSTOMER_PREMISE` - HS Concern Customer Premise
222
- * - `INCORRECT_ADDRESS_BOOKED` - Incorrect address booked
223
- * - ... and 22 more
223
+ * - ... and 23 more
224
224
  */
225
225
  export declare enum ChangeReasonCancelReason {
226
226
  ADDITIONAL_WORK_REQ_APPROVAL_NEEDED = "ADDITIONAL_WORKS_REQUIRED_APPROVAL_NEEDED",
227
227
  ADVERSE_WEATHER_CONDITIONS = "ADVERSE_WEATHER_CONDITIONS",
228
228
  AREA_NOT_RFS = "AREA_NOT_RFS_SUPPLIER",
229
+ AUTOMATICALLY_PROVISIONED_BY_START_ORDER = "AUTOMATICALLY_PROVISIONED_BY_START_ORDER",
229
230
  CANCELLATION_FOR_PERSONAL_REASONS = "CANCELLATION_FOR_PERSONAL_REASONS",
230
231
  CHANGED_ASSIGNED_CONTRACTOR = "CHANGED_ASSIGNED_CONTRACTOR",
231
232
  CLAIMING_MISSELLING = "CLAIMING_MISSELING",
@@ -213,6 +213,7 @@ var ChangeReasonInformReason;
213
213
  * - `ADVERSE_WEATHER_CONDITIONS` - Adverse weather conditions
214
214
  * - `AREA_NOT_RFS_SUPPLIER` - Area not RFS
215
215
  * - `AREA_NOT_RFS_TENANT` - Area not RFS
216
+ * - `AUTOMATICALLY_PROVISIONED_BY_START_ORDER`
216
217
  * - `CANCELLATION_FOR_PERSONAL_REASONS` - Cancellation for personal reasons
217
218
  * - `CHANGED_ASSIGNED_CONTRACTOR` - Changed assigned contractor
218
219
  * - `CLAIMING_MISSELING` - Claiming misselling
@@ -223,14 +224,14 @@ var ChangeReasonInformReason;
223
224
  * - `ENGINEER_DID_NOT_ATTEND` - Engineer did not attend
224
225
  * - `HEALTH_AND_SAFETY_CONCERN_CUSTOMER_PREMISE` - Health and safety concern
225
226
  * - `H_S_CONCERN_CUSTOMER_PREMISE` - HS Concern Customer Premise
226
- * - `INCORRECT_ADDRESS_BOOKED` - Incorrect address booked
227
- * - ... and 22 more
227
+ * - ... and 23 more
228
228
  */
229
229
  var ChangeReasonCancelReason;
230
230
  (function (ChangeReasonCancelReason) {
231
231
  ChangeReasonCancelReason["ADDITIONAL_WORK_REQ_APPROVAL_NEEDED"] = "ADDITIONAL_WORKS_REQUIRED_APPROVAL_NEEDED";
232
232
  ChangeReasonCancelReason["ADVERSE_WEATHER_CONDITIONS"] = "ADVERSE_WEATHER_CONDITIONS";
233
233
  ChangeReasonCancelReason["AREA_NOT_RFS"] = "AREA_NOT_RFS_SUPPLIER";
234
+ ChangeReasonCancelReason["AUTOMATICALLY_PROVISIONED_BY_START_ORDER"] = "AUTOMATICALLY_PROVISIONED_BY_START_ORDER";
234
235
  ChangeReasonCancelReason["CANCELLATION_FOR_PERSONAL_REASONS"] = "CANCELLATION_FOR_PERSONAL_REASONS";
235
236
  ChangeReasonCancelReason["CHANGED_ASSIGNED_CONTRACTOR"] = "CHANGED_ASSIGNED_CONTRACTOR";
236
237
  ChangeReasonCancelReason["CLAIMING_MISSELLING"] = "CLAIMING_MISSELING";
@@ -606,15 +606,15 @@ export declare enum ReplacementAmcoWorkOrderStageNames {
606
606
  PendingInspection = "Pending Inspection",
607
607
  /** Error */
608
608
  Error = "Error",
609
- /** Failed Inspection */
609
+ /** Failed Inspection (fail) */
610
610
  FailedInspection = "Failed Inspection",
611
611
  /** Non Returned */
612
612
  NonReturned = "Non Returned",
613
- /** Cancelled */
613
+ /** Cancelled (success) */
614
614
  Cancelled = "Cancelled",
615
- /** Overridden */
615
+ /** Overridden (success) */
616
616
  Overridden = "Overridden",
617
- /** Complete */
617
+ /** Complete (success) */
618
618
  Complete = "Complete"
619
619
  }
620
620
  /**
@@ -578,15 +578,15 @@ var ReplacementAmcoWorkOrderStageNames;
578
578
  ReplacementAmcoWorkOrderStageNames["PendingInspection"] = "Pending Inspection";
579
579
  /** Error */
580
580
  ReplacementAmcoWorkOrderStageNames["Error"] = "Error";
581
- /** Failed Inspection */
581
+ /** Failed Inspection (fail) */
582
582
  ReplacementAmcoWorkOrderStageNames["FailedInspection"] = "Failed Inspection";
583
583
  /** Non Returned */
584
584
  ReplacementAmcoWorkOrderStageNames["NonReturned"] = "Non Returned";
585
- /** Cancelled */
585
+ /** Cancelled (success) */
586
586
  ReplacementAmcoWorkOrderStageNames["Cancelled"] = "Cancelled";
587
- /** Overridden */
587
+ /** Overridden (success) */
588
588
  ReplacementAmcoWorkOrderStageNames["Overridden"] = "Overridden";
589
- /** Complete */
589
+ /** Complete (success) */
590
590
  ReplacementAmcoWorkOrderStageNames["Complete"] = "Complete";
591
591
  })(ReplacementAmcoWorkOrderStageNames = exports.ReplacementAmcoWorkOrderStageNames || (exports.ReplacementAmcoWorkOrderStageNames = {}));
592
592
  /**
@@ -27,6 +27,7 @@ import { CreateChurnRequestProperties } from '../actions-v2/CancelActiveOrderDto
27
27
  import { CompleteChurnRequestProperties } from '../actions-v2/CompleteChurnRequestDto';
28
28
  import { CreateChurnRequestTempProperties } from '../actions-v2/CreateChurnRequestTempDto';
29
29
  import { DefaultUpdateChurnRequestProperties } from '../actions-v2/DefaultUpdateChurnRequestDto';
30
+ import { StampChurnRequestCompletedProperties } from '../actions-v2/StampChurnRequestCompletedDto';
30
31
  import { NoteRecord } from './NoteRecord';
31
32
  import { OrderRecord } from './OrderRecord';
32
33
  import { AddressRecord } from './AddressRecord';
@@ -408,6 +409,33 @@ export declare class ChurnRequestRecord<TProps = ChurnRequestProperties> {
408
409
  journeyId?: string;
409
410
  stageKey?: string;
410
411
  }): ActionBuilder;
412
+ /**
413
+ * StampChurnRequestCompleted
414
+ *
415
+ * Updates this ChurnRequest record.
416
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
417
+ *
418
+ * @param propertiesOrOptions - Properties to update, or options object
419
+ * @param options - Optional settings (journeyId, stageKey)
420
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
421
+ * @throws Error if called on a new (unsaved) record
422
+ *
423
+ * @example
424
+ * ```typescript
425
+ * const record = await odinClient.churnRequests.get(id);
426
+ * await record.stampChurnRequestCompleted({ ... }).execute();
427
+ *
428
+ * // Dry run (for debugging)
429
+ * const payload = record.stampChurnRequestCompleted({ ... }).dryRun();
430
+ * ```
431
+ */
432
+ stampChurnRequestCompleted(propertiesOrOptions?: StampChurnRequestCompletedProperties | {
433
+ journeyId?: string;
434
+ stageKey?: string;
435
+ }, options?: {
436
+ journeyId?: string;
437
+ stageKey?: string;
438
+ }): ActionBuilder;
411
439
  }
412
440
  /** Type guard to check if an object is a ChurnRequestRecord */
413
441
  export declare function isChurnRequestRecord(obj: any): obj is ChurnRequestRecord;
@@ -560,6 +560,43 @@ class ChurnRequestRecord {
560
560
  const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'DefaultUpdateChurnRequest', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, options);
561
561
  return new ActionBuilder(this._provider, 'OrderModule', 'ChurnRequest', payload, () => { this._pendingLinks = []; });
562
562
  }
563
+ /**
564
+ * StampChurnRequestCompleted
565
+ *
566
+ * Updates this ChurnRequest record.
567
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
568
+ *
569
+ * @param propertiesOrOptions - Properties to update, or options object
570
+ * @param options - Optional settings (journeyId, stageKey)
571
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
572
+ * @throws Error if called on a new (unsaved) record
573
+ *
574
+ * @example
575
+ * ```typescript
576
+ * const record = await odinClient.churnRequests.get(id);
577
+ * await record.stampChurnRequestCompleted({ ... }).execute();
578
+ *
579
+ * // Dry run (for debugging)
580
+ * const payload = record.stampChurnRequestCompleted({ ... }).dryRun();
581
+ * ```
582
+ */
583
+ stampChurnRequestCompleted(propertiesOrOptions, options) {
584
+ var _a;
585
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
586
+ throw new Error('stampChurnRequestCompleted requires an existing record. Use accessor.get() first.');
587
+ let properties = {};
588
+ let opts = options;
589
+ if (propertiesOrOptions) {
590
+ if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
591
+ opts = propertiesOrOptions;
592
+ }
593
+ else {
594
+ properties = propertiesOrOptions;
595
+ }
596
+ }
597
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'StampChurnRequestCompleted', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
598
+ return new ActionBuilder(this._provider, 'OrderModule', 'ChurnRequest', payload, () => { this._pendingLinks = []; });
599
+ }
563
600
  }
564
601
  exports.ChurnRequestRecord = ChurnRequestRecord;
565
602
  // ============================================
@@ -26,6 +26,7 @@ import { PICRequestProperties } from '../entities-v2/PICRequest';
26
26
  import { CreatePicRequestProperties } from '../actions-v2/CancelOrderPreInstallDto';
27
27
  import { CompletePicRequestProperties } from '../actions-v2/CompletePicRequestDto';
28
28
  import { DefaultUpdatePicRequestProperties } from '../actions-v2/DefaultUpdatePicRequestDto';
29
+ import { StampPicRequestCompletedProperties } from '../actions-v2/StampPicRequestCompletedDto';
29
30
  import { NoteRecord } from './NoteRecord';
30
31
  import { OrderRecord } from './OrderRecord';
31
32
  /** Valid entity types for PICRequest */
@@ -384,6 +385,33 @@ export declare class PICRequestRecord<TProps = PICRequestProperties> {
384
385
  overrideMovePicToInProgress(options?: {
385
386
  journeyId?: string;
386
387
  }): ActionBuilder;
388
+ /**
389
+ * StampPicRequestCompleted
390
+ *
391
+ * Updates this PICRequest record.
392
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
393
+ *
394
+ * @param propertiesOrOptions - Properties to update, or options object
395
+ * @param options - Optional settings (journeyId, stageKey)
396
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
397
+ * @throws Error if called on a new (unsaved) record
398
+ *
399
+ * @example
400
+ * ```typescript
401
+ * const record = await odinClient.picRequests.get(id);
402
+ * await record.stampPicRequestCompleted({ ... }).execute();
403
+ *
404
+ * // Dry run (for debugging)
405
+ * const payload = record.stampPicRequestCompleted({ ... }).dryRun();
406
+ * ```
407
+ */
408
+ stampPicRequestCompleted(propertiesOrOptions?: StampPicRequestCompletedProperties | {
409
+ journeyId?: string;
410
+ stageKey?: string;
411
+ }, options?: {
412
+ journeyId?: string;
413
+ stageKey?: string;
414
+ }): ActionBuilder;
387
415
  }
388
416
  /** Type guard to check if an object is a PICRequestRecord */
389
417
  export declare function isPICRequestRecord(obj: any): obj is PICRequestRecord;
@@ -521,6 +521,43 @@ class PICRequestRecord {
521
521
  const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'OverrideMovePICToInProgress', associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined, stageKey: 'PICRequestStageInProgress' }, options);
522
522
  return new ActionBuilder(this._provider, 'OrderModule', 'PICRequest', payload, () => { this._pendingLinks = []; });
523
523
  }
524
+ /**
525
+ * StampPicRequestCompleted
526
+ *
527
+ * Updates this PICRequest record.
528
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
529
+ *
530
+ * @param propertiesOrOptions - Properties to update, or options object
531
+ * @param options - Optional settings (journeyId, stageKey)
532
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
533
+ * @throws Error if called on a new (unsaved) record
534
+ *
535
+ * @example
536
+ * ```typescript
537
+ * const record = await odinClient.picRequests.get(id);
538
+ * await record.stampPicRequestCompleted({ ... }).execute();
539
+ *
540
+ * // Dry run (for debugging)
541
+ * const payload = record.stampPicRequestCompleted({ ... }).dryRun();
542
+ * ```
543
+ */
544
+ stampPicRequestCompleted(propertiesOrOptions, options) {
545
+ var _a;
546
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
547
+ throw new Error('stampPicRequestCompleted requires an existing record. Use accessor.get() first.');
548
+ let properties = {};
549
+ let opts = options;
550
+ if (propertiesOrOptions) {
551
+ if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
552
+ opts = propertiesOrOptions;
553
+ }
554
+ else {
555
+ properties = propertiesOrOptions;
556
+ }
557
+ }
558
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'StampPicRequestCompleted', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
559
+ return new ActionBuilder(this._provider, 'OrderModule', 'PICRequest', payload, () => { this._pendingLinks = []; });
560
+ }
524
561
  }
525
562
  exports.PICRequestRecord = PICRequestRecord;
526
563
  // ============================================
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d19n/youfibre-odin-sdk",
3
- "version": "2.0.265",
3
+ "version": "2.0.266",
4
4
  "description": "",
5
5
  "author": "@d19n",
6
6
  "license": "UNLICENSED",
@@ -48,8 +48,7 @@
48
48
  },
49
49
  "scripts": {
50
50
  "test:wholesale-provider": "npx --yes tsx src/wholesale-provider/test/netomnia-provider.spec.ts && npx --yes tsx src/wholesale-provider/test/kci-effect-bridge.spec.ts",
51
- "release:beta": "git pull --ff-only && rm -rf dist && tsc && npm version prerelease --preid=beta && git push && npm publish --tag beta",
52
- "release:prod": "git pull --ff-only && rm -rf dist && tsc && npm version patch && git push && npm publish --tag latest"
51
+ "release": "git pull --ff-only && rm -rf dist && tsc && npm version patch && git push && npm publish --tag latest"
53
52
  },
54
53
  "files": [
55
54
  "dist",