@d19n/youfibre-odin-sdk 2.0.232 → 2.0.233-beta.0

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
@@ -359,7 +359,7 @@ This SDK includes **171** entities across **12** modules.
359
359
 
360
360
  ## Actions
361
361
 
362
- This SDK includes **741** actions.
362
+ This SDK includes **742** actions.
363
363
 
364
364
  ### Action Types
365
365
 
@@ -1499,6 +1499,7 @@ This SDK includes **741** actions.
1499
1499
  | Action | Type | Event |
1500
1500
  |--------|------|-------|
1501
1501
  | `CreateModifyServiceRequest` | CREATE | k1.t-hEOJjsDb.ServiceModule.ModifyServiceRequest.Create.CreateModifyServiceRequest |
1502
+ | `UpdateModifyServiceRequest` | UPDATE | k1.t-hEOJjsDb.ServiceModule.ModifyServiceRequest.Update.UpdateModifyServiceRequest |
1502
1503
 
1503
1504
  #### NetworkDevice
1504
1505
 
@@ -21,8 +21,48 @@ export interface CreateModifyServiceRequestMessage extends OdinRecordCreatedEven
21
21
  /**
22
22
  * Properties for CreateModifyServiceRequest action
23
23
  *
24
+ * @property Required fields: 3
25
+ * @property Optional fields: 2
24
26
  */
25
27
  export interface CreateModifyServiceRequestProperties {
28
+ /**
29
+ * Service ID
30
+ *
31
+ * The ID of the service being modified
32
+ * @type {TEXT}
33
+ * @required
34
+ */
35
+ ServiceId: string;
36
+ /**
37
+ * SKU Previous
38
+ *
39
+ * The previous SKU being modified from (Used for Line Profile mapping)
40
+ * @type {TEXT}
41
+ * @required
42
+ */
43
+ SkuPrevious: string;
44
+ /**
45
+ * SKU Next
46
+ *
47
+ * The next SKU being modified to (Used for Line Profile mapping)
48
+ * @type {TEXT}
49
+ * @required
50
+ */
51
+ SkuNext: string;
52
+ /**
53
+ * ISP Send Status
54
+ *
55
+ * Status of the modify request to ISP (BNG Provision).
56
+ * @type {ENUM}
57
+ */
58
+ IspSendStatus?: string | null;
59
+ /**
60
+ * FNO Send Status
61
+ *
62
+ * Status of the modify request to FNO.
63
+ * @type {ENUM}
64
+ */
65
+ FnoSendStatus?: string | null;
26
66
  }
27
67
  /**
28
68
  * CreateModifyServiceRequest
@@ -0,0 +1,112 @@
1
+ /**
2
+ * UpdateModifyServiceRequest Action DTO
3
+ *
4
+ * UpdateModifyServiceRequest
5
+ *
6
+ * @module ServiceModule
7
+ * @entity ModifyServiceRequest
8
+ * @actionKey UpdateModifyServiceRequest
9
+ * @event k1.t-hEOJjsDb.ServiceModule.ModifyServiceRequest.Update.UpdateModifyServiceRequest
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 UpdateModifyServiceRequest updated events
16
+ *
17
+ * @event k1.t-hEOJjsDb.ServiceModule.ModifyServiceRequest.Update.UpdateModifyServiceRequest
18
+ */
19
+ export interface UpdateModifyServiceRequestMessage extends OdinRecordUpdatedEvent<UpdateModifyServiceRequestDto, UpdateModifyServiceRequestProperties> {
20
+ }
21
+ /**
22
+ * Properties for UpdateModifyServiceRequest action
23
+ *
24
+ * @property Required fields: 0
25
+ * @property Optional fields: 7
26
+ */
27
+ export interface UpdateModifyServiceRequestProperties {
28
+ /**
29
+ * FNO Send Status
30
+ *
31
+ * Status of the modify request to FNO.
32
+ * @type {ENUM}
33
+ */
34
+ FnoSendStatus?: string | null;
35
+ /**
36
+ * FNO Completed At
37
+ *
38
+ * Time that the modification completed on FNO side.
39
+ * @type {DATE_TIME}
40
+ */
41
+ FnoCompletedAt?: string | null;
42
+ /**
43
+ * ISP Send Status
44
+ *
45
+ * Status of the modify request to ISP (BNG Provision).
46
+ * @type {ENUM}
47
+ */
48
+ IspSendStatus?: string | null;
49
+ /**
50
+ * ISP Completed At
51
+ *
52
+ * Time that the modification completed on ISP side.
53
+ * @type {DATE_TIME}
54
+ */
55
+ IspCompletedAt?: string | null;
56
+ /**
57
+ * Service ID
58
+ *
59
+ * The ID of the service being modified
60
+ * @type {TEXT}
61
+ */
62
+ ServiceId?: string | null;
63
+ /**
64
+ * SKU Previous
65
+ *
66
+ * The previous SKU being modified from (Used for Line Profile mapping)
67
+ * @type {TEXT}
68
+ */
69
+ SkuPrevious?: string | null;
70
+ /**
71
+ * SKU Next
72
+ *
73
+ * The next SKU being modified to (Used for Line Profile mapping)
74
+ * @type {TEXT}
75
+ */
76
+ SkuNext?: string | null;
77
+ }
78
+ /**
79
+ * UpdateModifyServiceRequest
80
+ *
81
+ * @actionType UPDATE - Updates an existing ModifyServiceRequest record
82
+ * @module ServiceModule
83
+ * @entity ModifyServiceRequest
84
+ * @event k1.t-hEOJjsDb.ServiceModule.ModifyServiceRequest.Update.UpdateModifyServiceRequest
85
+ * @permission schema.action.updatemodifyservicerequest.trigger
86
+ * @benchmark This action is tracked for performance benchmarks
87
+ */
88
+ export declare class UpdateModifyServiceRequestDto extends OdinRecordUpdateDto<UpdateModifyServiceRequestProperties> {
89
+ /** Used by SDK generators to identify action type */
90
+ static readonly ACTION_TYPE = "UPDATE";
91
+ static readonly ACTION_KEY = "UpdateModifyServiceRequest";
92
+ static readonly MODULE_NAME = "ServiceModule";
93
+ static readonly ENTITIES: string[];
94
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.ServiceModule.ModifyServiceRequest.Update.UpdateModifyServiceRequest";
95
+ static readonly PERMISSION = "schema.action.updatemodifyservicerequest.trigger";
96
+ /** Step metadata - entity this action targets */
97
+ static readonly STEP_ENTITY = "ServiceModule:ModifyServiceRequest";
98
+ static readonly STEP_SCHEMA_ID = "c33f6215-f398-4d02-a35a-ebcde2ee2669";
99
+ static readonly STEP_SCHEMA_ACTION_ID = "f4fb3994-062a-46f6-ad1b-badfa0bf3afa";
100
+ static readonly AUTO_LINK_PARENT = false;
101
+ readonly actionName: string;
102
+ readonly schemaActionId: string;
103
+ readonly entity: string;
104
+ constructor(record: OdinRecord<any> | {
105
+ id: string;
106
+ entity: string;
107
+ type?: string;
108
+ }, properties: UpdateModifyServiceRequestProperties, options?: {
109
+ journeyId?: string;
110
+ stageKey?: string;
111
+ });
112
+ }
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /**
3
+ * UpdateModifyServiceRequest Action DTO
4
+ *
5
+ * UpdateModifyServiceRequest
6
+ *
7
+ * @module ServiceModule
8
+ * @entity ModifyServiceRequest
9
+ * @actionKey UpdateModifyServiceRequest
10
+ * @event k1.t-hEOJjsDb.ServiceModule.ModifyServiceRequest.Update.UpdateModifyServiceRequest
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.UpdateModifyServiceRequestDto = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * UpdateModifyServiceRequest
19
+ *
20
+ * @actionType UPDATE - Updates an existing ModifyServiceRequest record
21
+ * @module ServiceModule
22
+ * @entity ModifyServiceRequest
23
+ * @event k1.t-hEOJjsDb.ServiceModule.ModifyServiceRequest.Update.UpdateModifyServiceRequest
24
+ * @permission schema.action.updatemodifyservicerequest.trigger
25
+ * @benchmark This action is tracked for performance benchmarks
26
+ */
27
+ class UpdateModifyServiceRequestDto extends core_1.OdinRecordUpdateDto {
28
+ constructor(record, properties, options) {
29
+ super({
30
+ id: record.id,
31
+ entity: record.entity,
32
+ type: record.type,
33
+ properties,
34
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
35
+ stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
36
+ });
37
+ this.actionName = 'UpdateModifyServiceRequest';
38
+ this.schemaActionId = 'f4fb3994-062a-46f6-ad1b-badfa0bf3afa';
39
+ this.entity = 'ServiceModule:ModifyServiceRequest';
40
+ }
41
+ }
42
+ exports.UpdateModifyServiceRequestDto = UpdateModifyServiceRequestDto;
43
+ /** Used by SDK generators to identify action type */
44
+ UpdateModifyServiceRequestDto.ACTION_TYPE = 'UPDATE';
45
+ UpdateModifyServiceRequestDto.ACTION_KEY = 'UpdateModifyServiceRequest';
46
+ UpdateModifyServiceRequestDto.MODULE_NAME = 'ServiceModule';
47
+ UpdateModifyServiceRequestDto.ENTITIES = ['ModifyServiceRequest'];
48
+ UpdateModifyServiceRequestDto.EVENT_NAME = 'k1.t-hEOJjsDb.ServiceModule.ModifyServiceRequest.Update.UpdateModifyServiceRequest';
49
+ UpdateModifyServiceRequestDto.PERMISSION = 'schema.action.updatemodifyservicerequest.trigger';
50
+ /** Step metadata - entity this action targets */
51
+ UpdateModifyServiceRequestDto.STEP_ENTITY = 'ServiceModule:ModifyServiceRequest';
52
+ UpdateModifyServiceRequestDto.STEP_SCHEMA_ID = 'c33f6215-f398-4d02-a35a-ebcde2ee2669';
53
+ UpdateModifyServiceRequestDto.STEP_SCHEMA_ACTION_ID = 'f4fb3994-062a-46f6-ad1b-badfa0bf3afa';
54
+ UpdateModifyServiceRequestDto.AUTO_LINK_PARENT = false;
@@ -55,17 +55,55 @@ export declare enum DefaultModifyServiceRequestStageKeys {
55
55
  /** Request was received by supplier but failed to complete. */
56
56
  ModifyServiceRequestStateStageFailed = "ModifyServiceRequestStateStageFailed"
57
57
  }
58
+ /**
59
+ * Valid values for ModifyServiceRequest.FnoSendStatus
60
+ *
61
+ * Status of the modify request to FNO.
62
+ *
63
+ * @remarks Available options:
64
+ * - `NOT_SENT` - Not Sent
65
+ * - `SEND_FAILED` - Send Failed
66
+ * - `SEND_SUCCESSFUL` - Send Successful
67
+ */
68
+ export declare enum ModifyServiceRequestFnoSendStatus {
69
+ NOT_SENT = "NOT_SENT",
70
+ SEND_FAILED = "SEND_FAILED",
71
+ SEND_SUCCESSFUL = "SEND_SUCCESSFUL"
72
+ }
73
+ /**
74
+ * Valid values for ModifyServiceRequest.IspSendStatus
75
+ *
76
+ * Status of the modify request to ISP (BNG Provision).
77
+ *
78
+ * @remarks Available options:
79
+ * - `NOT_SENT` - Not Sent
80
+ * - `SEND_FAILED` - Send Failed
81
+ * - `SEND_SUCCESSFUL` - Send Successful
82
+ */
83
+ export declare enum ModifyServiceRequestIspSendStatus {
84
+ NOT_SENT = "NOT_SENT",
85
+ SEND_FAILED = "SEND_FAILED",
86
+ SEND_SUCCESSFUL = "SEND_SUCCESSFUL"
87
+ }
58
88
  /**
59
89
  * Property keys for ModifyServiceRequest
60
90
  * Use these constants instead of string literals for type safety
61
91
  */
62
92
  export declare enum ModifyServiceRequestPropertyKeys {
63
- /** The ID of the service being modified */
64
- ServiceId = "ServiceId",
65
93
  /** Time that the modification completed on FNO side. */
66
94
  FnoCompletedAt = "FnoCompletedAt",
95
+ /** The ID of the service being modified */
96
+ ServiceId = "ServiceId",
67
97
  /** Time that the modification completed on ISP side. */
68
- IspCompletedAt = "IspCompletedAt"
98
+ IspCompletedAt = "IspCompletedAt",
99
+ /** The previous SKU being modified from (Used for Line Profile mapping) */
100
+ SkuPrevious = "SkuPrevious",
101
+ /** The next SKU being modified to (Used for Line Profile mapping) */
102
+ SkuNext = "SkuNext",
103
+ /** Status of the modify request to FNO. */
104
+ FnoSendStatus = "FnoSendStatus",
105
+ /** Status of the modify request to ISP (BNG Provision). */
106
+ IspSendStatus = "IspSendStatus"
69
107
  }
70
108
  /**
71
109
  * Properties for ModifyServiceRequest records
@@ -73,21 +111,45 @@ export declare enum ModifyServiceRequestPropertyKeys {
73
111
  * @see ServiceModule:ModifyServiceRequest
74
112
  */
75
113
  export interface ModifyServiceRequestProperties {
76
- /** The ID of the service being modified
77
- *
78
- * @type {TEXT}
79
- */
80
- ServiceId: string;
81
114
  /** Time that the modification completed on FNO side.
82
115
  *
83
116
  * @type {DATE_TIME}
84
117
  */
85
118
  FnoCompletedAt: string;
119
+ /** The ID of the service being modified
120
+ *
121
+ * @type {TEXT}
122
+ */
123
+ ServiceId: string;
86
124
  /** Time that the modification completed on ISP side.
87
125
  *
88
126
  * @type {DATE_TIME}
89
127
  */
90
128
  IspCompletedAt: string;
129
+ /** The previous SKU being modified from (Used for Line Profile mapping)
130
+ *
131
+ * @type {TEXT}
132
+ */
133
+ SkuPrevious: string;
134
+ /** The next SKU being modified to (Used for Line Profile mapping)
135
+ *
136
+ * @type {TEXT}
137
+ */
138
+ SkuNext: string;
139
+ /** Status of the modify request to FNO.
140
+ *
141
+ * @type {ENUM}
142
+ * @default NOT_SENT
143
+ * @enum {ModifyServiceRequestFnoSendStatus}
144
+ */
145
+ FnoSendStatus: ModifyServiceRequestFnoSendStatus;
146
+ /** Status of the modify request to ISP (BNG Provision).
147
+ *
148
+ * @type {ENUM}
149
+ * @default NOT_SENT
150
+ * @enum {ModifyServiceRequestIspSendStatus}
151
+ */
152
+ IspSendStatus: ModifyServiceRequestIspSendStatus;
91
153
  }
92
154
  /**
93
155
  * ModifyServiceRequest entity from ServiceModule
@@ -12,7 +12,7 @@
12
12
  * Generated from Odin schema definition
13
13
  */
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.ROUTING_KEY_MODIFY_SERVICE_REQUEST_DEFAULT_DELETED = exports.ROUTING_KEY_MODIFY_SERVICE_REQUEST_DEFAULT_UPDATED = exports.ROUTING_KEY_MODIFY_SERVICE_REQUEST_DEFAULT_CREATED = exports.ROUTING_KEY_MODIFY_SERVICE_REQUEST_DELETED = exports.ROUTING_KEY_MODIFY_SERVICE_REQUEST_UPDATED = exports.ROUTING_KEY_MODIFY_SERVICE_REQUEST_CREATED = exports.ModifyServiceRequest = exports.ModifyServiceRequestPropertyKeys = exports.DefaultModifyServiceRequestStageKeys = exports.DefaultModifyServiceRequestStageNames = exports.ModifyServiceRequestEntityTypes = void 0;
15
+ exports.ROUTING_KEY_MODIFY_SERVICE_REQUEST_DEFAULT_DELETED = exports.ROUTING_KEY_MODIFY_SERVICE_REQUEST_DEFAULT_UPDATED = exports.ROUTING_KEY_MODIFY_SERVICE_REQUEST_DEFAULT_CREATED = exports.ROUTING_KEY_MODIFY_SERVICE_REQUEST_DELETED = exports.ROUTING_KEY_MODIFY_SERVICE_REQUEST_UPDATED = exports.ROUTING_KEY_MODIFY_SERVICE_REQUEST_CREATED = exports.ModifyServiceRequest = exports.ModifyServiceRequestPropertyKeys = exports.ModifyServiceRequestIspSendStatus = exports.ModifyServiceRequestFnoSendStatus = exports.DefaultModifyServiceRequestStageKeys = exports.DefaultModifyServiceRequestStageNames = exports.ModifyServiceRequestEntityTypes = void 0;
16
16
  const core_1 = require("@d19n/odin-types/dist/core");
17
17
  /**
18
18
  * Available types for ModifyServiceRequest records
@@ -61,18 +61,58 @@ var DefaultModifyServiceRequestStageKeys;
61
61
  /** Request was received by supplier but failed to complete. */
62
62
  DefaultModifyServiceRequestStageKeys["ModifyServiceRequestStateStageFailed"] = "ModifyServiceRequestStateStageFailed";
63
63
  })(DefaultModifyServiceRequestStageKeys = exports.DefaultModifyServiceRequestStageKeys || (exports.DefaultModifyServiceRequestStageKeys = {}));
64
+ /**
65
+ * Valid values for ModifyServiceRequest.FnoSendStatus
66
+ *
67
+ * Status of the modify request to FNO.
68
+ *
69
+ * @remarks Available options:
70
+ * - `NOT_SENT` - Not Sent
71
+ * - `SEND_FAILED` - Send Failed
72
+ * - `SEND_SUCCESSFUL` - Send Successful
73
+ */
74
+ var ModifyServiceRequestFnoSendStatus;
75
+ (function (ModifyServiceRequestFnoSendStatus) {
76
+ ModifyServiceRequestFnoSendStatus["NOT_SENT"] = "NOT_SENT";
77
+ ModifyServiceRequestFnoSendStatus["SEND_FAILED"] = "SEND_FAILED";
78
+ ModifyServiceRequestFnoSendStatus["SEND_SUCCESSFUL"] = "SEND_SUCCESSFUL";
79
+ })(ModifyServiceRequestFnoSendStatus = exports.ModifyServiceRequestFnoSendStatus || (exports.ModifyServiceRequestFnoSendStatus = {}));
80
+ /**
81
+ * Valid values for ModifyServiceRequest.IspSendStatus
82
+ *
83
+ * Status of the modify request to ISP (BNG Provision).
84
+ *
85
+ * @remarks Available options:
86
+ * - `NOT_SENT` - Not Sent
87
+ * - `SEND_FAILED` - Send Failed
88
+ * - `SEND_SUCCESSFUL` - Send Successful
89
+ */
90
+ var ModifyServiceRequestIspSendStatus;
91
+ (function (ModifyServiceRequestIspSendStatus) {
92
+ ModifyServiceRequestIspSendStatus["NOT_SENT"] = "NOT_SENT";
93
+ ModifyServiceRequestIspSendStatus["SEND_FAILED"] = "SEND_FAILED";
94
+ ModifyServiceRequestIspSendStatus["SEND_SUCCESSFUL"] = "SEND_SUCCESSFUL";
95
+ })(ModifyServiceRequestIspSendStatus = exports.ModifyServiceRequestIspSendStatus || (exports.ModifyServiceRequestIspSendStatus = {}));
64
96
  /**
65
97
  * Property keys for ModifyServiceRequest
66
98
  * Use these constants instead of string literals for type safety
67
99
  */
68
100
  var ModifyServiceRequestPropertyKeys;
69
101
  (function (ModifyServiceRequestPropertyKeys) {
70
- /** The ID of the service being modified */
71
- ModifyServiceRequestPropertyKeys["ServiceId"] = "ServiceId";
72
102
  /** Time that the modification completed on FNO side. */
73
103
  ModifyServiceRequestPropertyKeys["FnoCompletedAt"] = "FnoCompletedAt";
104
+ /** The ID of the service being modified */
105
+ ModifyServiceRequestPropertyKeys["ServiceId"] = "ServiceId";
74
106
  /** Time that the modification completed on ISP side. */
75
107
  ModifyServiceRequestPropertyKeys["IspCompletedAt"] = "IspCompletedAt";
108
+ /** The previous SKU being modified from (Used for Line Profile mapping) */
109
+ ModifyServiceRequestPropertyKeys["SkuPrevious"] = "SkuPrevious";
110
+ /** The next SKU being modified to (Used for Line Profile mapping) */
111
+ ModifyServiceRequestPropertyKeys["SkuNext"] = "SkuNext";
112
+ /** Status of the modify request to FNO. */
113
+ ModifyServiceRequestPropertyKeys["FnoSendStatus"] = "FnoSendStatus";
114
+ /** Status of the modify request to ISP (BNG Provision). */
115
+ ModifyServiceRequestPropertyKeys["IspSendStatus"] = "IspSendStatus";
76
116
  })(ModifyServiceRequestPropertyKeys = exports.ModifyServiceRequestPropertyKeys || (exports.ModifyServiceRequestPropertyKeys = {}));
77
117
  /**
78
118
  * ModifyServiceRequest entity from ServiceModule
@@ -23,6 +23,7 @@ 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 { ModifyServiceRequestProperties } from '../entities-v2/ModifyServiceRequest';
25
25
  import { CreateModifyServiceRequestProperties } from '../actions-v2/CreateModifyServiceRequestDto';
26
+ import { UpdateModifyServiceRequestProperties } from '../actions-v2/UpdateModifyServiceRequestDto';
26
27
  /** Valid entity types for ModifyServiceRequest */
27
28
  export declare type ModifyServiceRequestType = 'DEFAULT';
28
29
  /**
@@ -173,11 +174,38 @@ export declare class ModifyServiceRequestRecord<TProps = ModifyServiceRequestPro
173
174
  * const payload = record.createModifyServiceRequest({ ... }).dryRun();
174
175
  * ```
175
176
  */
176
- createModifyServiceRequest(properties?: CreateModifyServiceRequestProperties, options?: {
177
+ createModifyServiceRequest(properties: CreateModifyServiceRequestProperties, options?: {
177
178
  type?: string;
178
179
  journeyId?: string;
179
180
  stageKey?: string;
180
181
  }): ActionBuilder;
182
+ /**
183
+ * UpdateModifyServiceRequest
184
+ *
185
+ * Updates this ModifyServiceRequest record.
186
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
187
+ *
188
+ * @param propertiesOrOptions - Properties to update, or options object
189
+ * @param options - Optional settings (journeyId, stageKey)
190
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
191
+ * @throws Error if called on a new (unsaved) record
192
+ *
193
+ * @example
194
+ * ```typescript
195
+ * const record = await odinClient.modifyServiceRequests.get(id);
196
+ * await record.updateModifyServiceRequest({ ... }).execute();
197
+ *
198
+ * // Dry run (for debugging)
199
+ * const payload = record.updateModifyServiceRequest({ ... }).dryRun();
200
+ * ```
201
+ */
202
+ updateModifyServiceRequest(propertiesOrOptions?: UpdateModifyServiceRequestProperties | {
203
+ journeyId?: string;
204
+ stageKey?: string;
205
+ }, options?: {
206
+ journeyId?: string;
207
+ stageKey?: string;
208
+ }): ActionBuilder;
181
209
  }
182
210
  /** Type guard to check if an object is a ModifyServiceRequestRecord */
183
211
  export declare function isModifyServiceRequestRecord(obj: any): obj is ModifyServiceRequestRecord;
@@ -234,6 +234,46 @@ class ModifyServiceRequestRecord {
234
234
  };
235
235
  return new ActionBuilder(this._provider, 'ServiceModule', 'ModifyServiceRequest', payload, () => { this._pendingLinks = []; });
236
236
  }
237
+ // ============================================
238
+ // UPDATE ACTIONS (require existing record)
239
+ // ============================================
240
+ /**
241
+ * UpdateModifyServiceRequest
242
+ *
243
+ * Updates this ModifyServiceRequest record.
244
+ * Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
245
+ *
246
+ * @param propertiesOrOptions - Properties to update, or options object
247
+ * @param options - Optional settings (journeyId, stageKey)
248
+ * @returns ActionBuilder - call .execute() to update or .dryRun() for payload
249
+ * @throws Error if called on a new (unsaved) record
250
+ *
251
+ * @example
252
+ * ```typescript
253
+ * const record = await odinClient.modifyServiceRequests.get(id);
254
+ * await record.updateModifyServiceRequest({ ... }).execute();
255
+ *
256
+ * // Dry run (for debugging)
257
+ * const payload = record.updateModifyServiceRequest({ ... }).dryRun();
258
+ * ```
259
+ */
260
+ updateModifyServiceRequest(propertiesOrOptions, options) {
261
+ var _a;
262
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
263
+ throw new Error('updateModifyServiceRequest requires an existing record. Use accessor.get() first.');
264
+ let properties = {};
265
+ let opts = options;
266
+ if (propertiesOrOptions) {
267
+ if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
268
+ opts = propertiesOrOptions;
269
+ }
270
+ else {
271
+ properties = propertiesOrOptions;
272
+ }
273
+ }
274
+ const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateModifyServiceRequest', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
275
+ return new ActionBuilder(this._provider, 'ServiceModule', 'ModifyServiceRequest', payload, () => { this._pendingLinks = []; });
276
+ }
237
277
  }
238
278
  exports.ModifyServiceRequestRecord = ModifyServiceRequestRecord;
239
279
  /** Type guard to check if an object is a ModifyServiceRequestRecord */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d19n/youfibre-odin-sdk",
3
- "version": "2.0.232",
3
+ "version": "2.0.233-beta.0",
4
4
  "description": "",
5
5
  "author": "@d19n",
6
6
  "license": "UNLICENSED",