@d19n/youfibre-odin-sdk 2.0.235-beta.0 → 2.0.235-beta.2
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 +2 -1
- package/dist/actions-v2/UpdateOtsNotRequiredReasonDto.d.ts +70 -0
- package/dist/actions-v2/UpdateOtsNotRequiredReasonDto.js +54 -0
- package/dist/entities-v2/Contact.d.ts +1 -0
- package/dist/entities-v2/ContractBuyOut.d.ts +6 -6
- package/dist/entities-v2/ContractBuyOut.js +4 -4
- package/dist/entities-v2/Order.d.ts +38 -0
- package/dist/entities-v2/Order.js +35 -2
- package/dist/records-v2/OrderRecord.d.ts +28 -0
- package/dist/records-v2/OrderRecord.js +37 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -360,7 +360,7 @@ This SDK includes **172** entities across **12** modules.
|
|
|
360
360
|
|
|
361
361
|
## Actions
|
|
362
362
|
|
|
363
|
-
This SDK includes **
|
|
363
|
+
This SDK includes **752** actions.
|
|
364
364
|
|
|
365
365
|
### Action Types
|
|
366
366
|
|
|
@@ -407,6 +407,7 @@ This SDK includes **751** actions.
|
|
|
407
407
|
| `SetOrderDeactivateOnDate` | UPDATE | k1.t-hEOJjsDb.OrderModule.Order.Update.SetOrderDeactivateOnDate |
|
|
408
408
|
| `SetPendingAmcoWorkOrder` | UPDATE | k1.t-hEOJjsDb.OrderModule.Order.Update.SetPendingAmcoWorkOrder |
|
|
409
409
|
| `UpdateOrder` | UPDATE | k1.t-hEOJjsDb.OrderModule.Order.Update.UpdateOrder |
|
|
410
|
+
| `UpdateOtsNotRequiredReason` | UPDATE | k1.t-hEOJjsDb.OrderModule.Order.Update.UpdateOtsNotRequiredReason |
|
|
410
411
|
|
|
411
412
|
**ActivateRecontractOrder Target Stages:** `OrderStageActive`
|
|
412
413
|
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UpdateOtsNotRequiredReason Action DTO
|
|
3
|
+
*
|
|
4
|
+
* UpdateOtsNotRequiredReason
|
|
5
|
+
*
|
|
6
|
+
* @module OrderModule
|
|
7
|
+
* @entity Order
|
|
8
|
+
* @actionKey UpdateOtsNotRequiredReason
|
|
9
|
+
* @event k1.t-hEOJjsDb.OrderModule.Order.Update.UpdateOtsNotRequiredReason
|
|
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 UpdateOtsNotRequiredReason updated events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-hEOJjsDb.OrderModule.Order.Update.UpdateOtsNotRequiredReason
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdateOtsNotRequiredReasonMessage extends OdinRecordUpdatedEvent<UpdateOtsNotRequiredReasonDto, UpdateOtsNotRequiredReasonProperties> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for UpdateOtsNotRequiredReason action
|
|
23
|
+
*
|
|
24
|
+
* @property Required fields: 0
|
|
25
|
+
* @property Optional fields: 1
|
|
26
|
+
*/
|
|
27
|
+
export interface UpdateOtsNotRequiredReasonProperties {
|
|
28
|
+
/**
|
|
29
|
+
* OtsNotRequiredReason
|
|
30
|
+
*
|
|
31
|
+
* OtsNotRequiredReason
|
|
32
|
+
* @type {ENUM}
|
|
33
|
+
*/
|
|
34
|
+
OtsNotRequiredReason?: string | null;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* UpdateOtsNotRequiredReason
|
|
38
|
+
*
|
|
39
|
+
* @actionType UPDATE - Updates an existing Order record
|
|
40
|
+
* @module OrderModule
|
|
41
|
+
* @entity Order
|
|
42
|
+
* @event k1.t-hEOJjsDb.OrderModule.Order.Update.UpdateOtsNotRequiredReason
|
|
43
|
+
* @permission schema.action.updateotsnotrequiredreason.trigger
|
|
44
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
45
|
+
*/
|
|
46
|
+
export declare class UpdateOtsNotRequiredReasonDto extends OdinRecordUpdateDto<UpdateOtsNotRequiredReasonProperties> {
|
|
47
|
+
/** Used by SDK generators to identify action type */
|
|
48
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
49
|
+
static readonly ACTION_KEY = "UpdateOtsNotRequiredReason";
|
|
50
|
+
static readonly MODULE_NAME = "OrderModule";
|
|
51
|
+
static readonly ENTITIES: string[];
|
|
52
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.OrderModule.Order.Update.UpdateOtsNotRequiredReason";
|
|
53
|
+
static readonly PERMISSION = "schema.action.updateotsnotrequiredreason.trigger";
|
|
54
|
+
/** Step metadata - entity this action targets */
|
|
55
|
+
static readonly STEP_ENTITY = "OrderModule:Order";
|
|
56
|
+
static readonly STEP_SCHEMA_ID = "8ebd71fd-fedb-40fe-8d4e-83ef92d5a98b";
|
|
57
|
+
static readonly STEP_SCHEMA_ACTION_ID = "695a66e6-d2b0-4697-8def-b34e96ecc5e8";
|
|
58
|
+
static readonly AUTO_LINK_PARENT = false;
|
|
59
|
+
readonly actionName: string;
|
|
60
|
+
readonly schemaActionId: string;
|
|
61
|
+
readonly entity: string;
|
|
62
|
+
constructor(record: OdinRecord<any> | {
|
|
63
|
+
id: string;
|
|
64
|
+
entity: string;
|
|
65
|
+
type?: string;
|
|
66
|
+
}, properties: UpdateOtsNotRequiredReasonProperties, options?: {
|
|
67
|
+
journeyId?: string;
|
|
68
|
+
stageKey?: string;
|
|
69
|
+
});
|
|
70
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* UpdateOtsNotRequiredReason Action DTO
|
|
4
|
+
*
|
|
5
|
+
* UpdateOtsNotRequiredReason
|
|
6
|
+
*
|
|
7
|
+
* @module OrderModule
|
|
8
|
+
* @entity Order
|
|
9
|
+
* @actionKey UpdateOtsNotRequiredReason
|
|
10
|
+
* @event k1.t-hEOJjsDb.OrderModule.Order.Update.UpdateOtsNotRequiredReason
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.UpdateOtsNotRequiredReasonDto = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* UpdateOtsNotRequiredReason
|
|
19
|
+
*
|
|
20
|
+
* @actionType UPDATE - Updates an existing Order record
|
|
21
|
+
* @module OrderModule
|
|
22
|
+
* @entity Order
|
|
23
|
+
* @event k1.t-hEOJjsDb.OrderModule.Order.Update.UpdateOtsNotRequiredReason
|
|
24
|
+
* @permission schema.action.updateotsnotrequiredreason.trigger
|
|
25
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
26
|
+
*/
|
|
27
|
+
class UpdateOtsNotRequiredReasonDto 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 = 'UpdateOtsNotRequiredReason';
|
|
38
|
+
this.schemaActionId = '695a66e6-d2b0-4697-8def-b34e96ecc5e8';
|
|
39
|
+
this.entity = 'OrderModule:Order';
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.UpdateOtsNotRequiredReasonDto = UpdateOtsNotRequiredReasonDto;
|
|
43
|
+
/** Used by SDK generators to identify action type */
|
|
44
|
+
UpdateOtsNotRequiredReasonDto.ACTION_TYPE = 'UPDATE';
|
|
45
|
+
UpdateOtsNotRequiredReasonDto.ACTION_KEY = 'UpdateOtsNotRequiredReason';
|
|
46
|
+
UpdateOtsNotRequiredReasonDto.MODULE_NAME = 'OrderModule';
|
|
47
|
+
UpdateOtsNotRequiredReasonDto.ENTITIES = ['Order'];
|
|
48
|
+
UpdateOtsNotRequiredReasonDto.EVENT_NAME = 'k1.t-hEOJjsDb.OrderModule.Order.Update.UpdateOtsNotRequiredReason';
|
|
49
|
+
UpdateOtsNotRequiredReasonDto.PERMISSION = 'schema.action.updateotsnotrequiredreason.trigger';
|
|
50
|
+
/** Step metadata - entity this action targets */
|
|
51
|
+
UpdateOtsNotRequiredReasonDto.STEP_ENTITY = 'OrderModule:Order';
|
|
52
|
+
UpdateOtsNotRequiredReasonDto.STEP_SCHEMA_ID = '8ebd71fd-fedb-40fe-8d4e-83ef92d5a98b';
|
|
53
|
+
UpdateOtsNotRequiredReasonDto.STEP_SCHEMA_ACTION_ID = '695a66e6-d2b0-4697-8def-b34e96ecc5e8';
|
|
54
|
+
UpdateOtsNotRequiredReasonDto.AUTO_LINK_PARENT = false;
|
|
@@ -44,14 +44,14 @@ export declare enum DefaultContractBuyOutStageNames {
|
|
|
44
44
|
AdditionalApprovalRequired = "Additional Approval Required",
|
|
45
45
|
/** cbo approved */
|
|
46
46
|
Approved = "Approved",
|
|
47
|
+
/** When PMR is in Progress */
|
|
48
|
+
RefundProcessing = "Refund Processing",
|
|
47
49
|
/** refund processed (success) */
|
|
48
50
|
RefundProcessed = "Refund Processed",
|
|
49
51
|
/** cbo rejected (fail) */
|
|
50
52
|
Cancelled = "Cancelled",
|
|
51
53
|
/** When PMR Failed (fail) */
|
|
52
|
-
RefundFailed = "Refund Failed"
|
|
53
|
-
/** When PMR is in Progress */
|
|
54
|
-
RefundProcessing = "Refund Processing"
|
|
54
|
+
RefundFailed = "Refund Failed"
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
57
57
|
* Pipeline stage keys for DEFAULT ContractBuyOut
|
|
@@ -70,14 +70,14 @@ export declare enum DefaultContractBuyOutStageKeys {
|
|
|
70
70
|
CreditBuyOutStageAdditionalApprovalRequired = "CreditBuyOutStageAdditionalApprovalRequired",
|
|
71
71
|
/** cbo approved */
|
|
72
72
|
CreditBuyOutStageApproved = "CreditBuyOutStageApproved",
|
|
73
|
+
/** When PMR is in Progress */
|
|
74
|
+
CreatedStageRefundProcessing = "CreatedStageRefundProcessing",
|
|
73
75
|
/** refund processed */
|
|
74
76
|
CreditBuyOutStageRefundProcessed = "CreditBuyOutStageRefundProcessed",
|
|
75
77
|
/** cbo rejected */
|
|
76
78
|
CreditBuyOutStageCancelled = "CreditBuyOutStageCancelled",
|
|
77
79
|
/** When PMR Failed */
|
|
78
|
-
CreatedStageRefundFailed = "CreatedStageRefundFailed"
|
|
79
|
-
/** When PMR is in Progress */
|
|
80
|
-
CreatedStageRefundProcessing = "CreatedStageRefundProcessing"
|
|
80
|
+
CreatedStageRefundFailed = "CreatedStageRefundFailed"
|
|
81
81
|
}
|
|
82
82
|
/**
|
|
83
83
|
* Valid values for ContractBuyOut.PreviousProvider
|
|
@@ -41,14 +41,14 @@ var DefaultContractBuyOutStageNames;
|
|
|
41
41
|
DefaultContractBuyOutStageNames["AdditionalApprovalRequired"] = "Additional Approval Required";
|
|
42
42
|
/** cbo approved */
|
|
43
43
|
DefaultContractBuyOutStageNames["Approved"] = "Approved";
|
|
44
|
+
/** When PMR is in Progress */
|
|
45
|
+
DefaultContractBuyOutStageNames["RefundProcessing"] = "Refund Processing";
|
|
44
46
|
/** refund processed (success) */
|
|
45
47
|
DefaultContractBuyOutStageNames["RefundProcessed"] = "Refund Processed";
|
|
46
48
|
/** cbo rejected (fail) */
|
|
47
49
|
DefaultContractBuyOutStageNames["Cancelled"] = "Cancelled";
|
|
48
50
|
/** When PMR Failed (fail) */
|
|
49
51
|
DefaultContractBuyOutStageNames["RefundFailed"] = "Refund Failed";
|
|
50
|
-
/** When PMR is in Progress */
|
|
51
|
-
DefaultContractBuyOutStageNames["RefundProcessing"] = "Refund Processing";
|
|
52
52
|
})(DefaultContractBuyOutStageNames = exports.DefaultContractBuyOutStageNames || (exports.DefaultContractBuyOutStageNames = {}));
|
|
53
53
|
/**
|
|
54
54
|
* Pipeline stage keys for DEFAULT ContractBuyOut
|
|
@@ -68,14 +68,14 @@ var DefaultContractBuyOutStageKeys;
|
|
|
68
68
|
DefaultContractBuyOutStageKeys["CreditBuyOutStageAdditionalApprovalRequired"] = "CreditBuyOutStageAdditionalApprovalRequired";
|
|
69
69
|
/** cbo approved */
|
|
70
70
|
DefaultContractBuyOutStageKeys["CreditBuyOutStageApproved"] = "CreditBuyOutStageApproved";
|
|
71
|
+
/** When PMR is in Progress */
|
|
72
|
+
DefaultContractBuyOutStageKeys["CreatedStageRefundProcessing"] = "CreatedStageRefundProcessing";
|
|
71
73
|
/** refund processed */
|
|
72
74
|
DefaultContractBuyOutStageKeys["CreditBuyOutStageRefundProcessed"] = "CreditBuyOutStageRefundProcessed";
|
|
73
75
|
/** cbo rejected */
|
|
74
76
|
DefaultContractBuyOutStageKeys["CreditBuyOutStageCancelled"] = "CreditBuyOutStageCancelled";
|
|
75
77
|
/** When PMR Failed */
|
|
76
78
|
DefaultContractBuyOutStageKeys["CreatedStageRefundFailed"] = "CreatedStageRefundFailed";
|
|
77
|
-
/** When PMR is in Progress */
|
|
78
|
-
DefaultContractBuyOutStageKeys["CreatedStageRefundProcessing"] = "CreatedStageRefundProcessing";
|
|
79
79
|
})(DefaultContractBuyOutStageKeys = exports.DefaultContractBuyOutStageKeys || (exports.DefaultContractBuyOutStageKeys = {}));
|
|
80
80
|
/**
|
|
81
81
|
* Valid values for ContractBuyOut.PreviousProvider
|
|
@@ -293,6 +293,36 @@ export declare enum OrderBatteryPackRequired {
|
|
|
293
293
|
NO = "NO",
|
|
294
294
|
YES = "YES"
|
|
295
295
|
}
|
|
296
|
+
/**
|
|
297
|
+
* Valid values for Order.OtsNotRequiredReason
|
|
298
|
+
*
|
|
299
|
+
* OtsNotRequiredReason
|
|
300
|
+
*
|
|
301
|
+
* @remarks Available options:
|
|
302
|
+
* - `2_LINES_KEEPING_EXISTING_PROVIDER` - 2 Lines Keeping Existing Provider
|
|
303
|
+
* - `CURRENT_ACCOUNT_IN_DIFFERENT_NAME` - Current Account In Different Name
|
|
304
|
+
* - `CURRENTLY_HAS_BUSINESS_LINE` - Currently Has Business Line
|
|
305
|
+
* - `EXISTING_YOUFIBRE_BRSK_CUSTOMER_MOVING_HOME` - Existing YouFibre/Brsk Customer Moving Home
|
|
306
|
+
* - `HAS_4G_5G_SERVICE` - Has 4G/5G Service
|
|
307
|
+
* - `NEW_PROPERTY` - New Property
|
|
308
|
+
* - `CURRENT_PROVIDER_ALREADY_CANCELLED` - New Provider Already Cancelled
|
|
309
|
+
* - `NEW_TENANT` - New Tenant
|
|
310
|
+
* - `NO_CURRENT_PROVIDER` - No Current Provider
|
|
311
|
+
* - `PRE_WIRED_ADDRESS` - Pre Wired Address
|
|
312
|
+
* - `TRANSFER_OF_OWNERSHIP` - Transfer Of Ownership
|
|
313
|
+
*/
|
|
314
|
+
export declare enum OrderOtsNotRequiredReason {
|
|
315
|
+
CURRENT_ACCOUNT_IN_DIFFERENT_NAME = "CURRENT_ACCOUNT_IN_DIFFERENT_NAME",
|
|
316
|
+
CURRENTLY_HAS_BUSINESS_LINE = "CURRENTLY_HAS_BUSINESS_LINE",
|
|
317
|
+
EXISTING_YOU_FIBRE_BRSK_CUSTOMER_MOVING_HOME = "EXISTING_YOUFIBRE_BRSK_CUSTOMER_MOVING_HOME",
|
|
318
|
+
HAS_4_G_5_G_SERVICE = "HAS_4G_5G_SERVICE",
|
|
319
|
+
NEW_PROPERTY = "NEW_PROPERTY",
|
|
320
|
+
NEW_PROVIDER_ALREADY_CANCELLED = "CURRENT_PROVIDER_ALREADY_CANCELLED",
|
|
321
|
+
NEW_TENANT = "NEW_TENANT",
|
|
322
|
+
NO_CURRENT_PROVIDER = "NO_CURRENT_PROVIDER",
|
|
323
|
+
PRE_WIRED_ADDRESS = "PRE_WIRED_ADDRESS",
|
|
324
|
+
TRANSFER_OF_OWNERSHIP = "TRANSFER_OF_OWNERSHIP"
|
|
325
|
+
}
|
|
296
326
|
/**
|
|
297
327
|
* Valid values for Order.ActivationStatus
|
|
298
328
|
*
|
|
@@ -515,6 +545,8 @@ export declare enum OrderPropertyKeys {
|
|
|
515
545
|
BatteryPackRequired = "BatteryPackRequired",
|
|
516
546
|
/** LegacyBrskOtsData */
|
|
517
547
|
LegacyBrskOtsData = "LegacyBrskOtsData",
|
|
548
|
+
/** OtsNotRequiredReason */
|
|
549
|
+
OtsNotRequiredReason = "OtsNotRequiredReason",
|
|
518
550
|
/** One Touch Switch reference number */
|
|
519
551
|
ExternalReferenceOts = "ExternalReferenceOts",
|
|
520
552
|
/** status of the order (must be activated for billing) (Sales - Order) */
|
|
@@ -1121,6 +1153,12 @@ export interface OrderProperties {
|
|
|
1121
1153
|
* @type {JSON}
|
|
1122
1154
|
*/
|
|
1123
1155
|
LegacyBrskOtsData: string;
|
|
1156
|
+
/** OtsNotRequiredReason
|
|
1157
|
+
*
|
|
1158
|
+
* @type {ENUM}
|
|
1159
|
+
* @enum {OrderOtsNotRequiredReason}
|
|
1160
|
+
*/
|
|
1161
|
+
OtsNotRequiredReason: OrderOtsNotRequiredReason;
|
|
1124
1162
|
/** One Touch Switch reference number
|
|
1125
1163
|
*
|
|
1126
1164
|
* @type {TEXT}
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
* Generated from Odin schema definition
|
|
13
13
|
*/
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.
|
|
16
|
-
exports.ROUTING_KEY_LINK_ORDER_MODIFY_SERVICE_REQUEST_DELETED = exports.ROUTING_KEY_LINK_ORDER_MODIFY_SERVICE_REQUEST_CREATED = exports.ROUTING_KEY_LINK_ORDER_INVOICE_DELETED = exports.ROUTING_KEY_LINK_ORDER_INVOICE_CREATED = exports.ROUTING_KEY_LINK_ORDER_ACTIVITY_LOG_DELETED = exports.ROUTING_KEY_LINK_ORDER_ACTIVITY_LOG_CREATED = exports.ROUTING_KEY_LINK_ORDER_ACTIVITY_DELETED = exports.ROUTING_KEY_LINK_ORDER_ACTIVITY_CREATED = exports.ROUTING_KEY_LINK_ORDER_ORDER_CHECK_DELETED = exports.ROUTING_KEY_LINK_ORDER_ORDER_CHECK_CREATED = exports.ROUTING_KEY_LINK_ORDER_CUSTOMER_DEVICE_ONT_DELETED = exports.ROUTING_KEY_LINK_ORDER_CUSTOMER_DEVICE_ONT_CREATED = exports.ROUTING_KEY_LINK_ORDER_WORK_ORDER_DELETED = exports.ROUTING_KEY_LINK_ORDER_WORK_ORDER_CREATED = exports.ROUTING_KEY_LINK_ORDER_VISIT_DELETED = exports.ROUTING_KEY_LINK_ORDER_VISIT_CREATED = exports.ROUTING_KEY_LINK_ORDER_COMMISSION_DELETED = exports.ROUTING_KEY_LINK_ORDER_COMMISSION_CREATED = exports.ROUTING_KEY_LINK_ORDER_ORDER_KCI_DELETED = exports.ROUTING_KEY_LINK_ORDER_ORDER_KCI_CREATED = exports.ROUTING_KEY_LINK_ORDER_REFERRAL_DELETED = exports.ROUTING_KEY_LINK_ORDER_REFERRAL_CREATED = exports.ROUTING_KEY_LINK_ORDER_CONTRACT_BUY_OUT_DELETED = exports.ROUTING_KEY_LINK_ORDER_CONTRACT_BUY_OUT_CREATED = exports.ROUTING_KEY_LINK_ORDER_CONTACT_IDENTITY_DELETED = exports.ROUTING_KEY_LINK_ORDER_CONTACT_IDENTITY_CREATED = void 0;
|
|
15
|
+
exports.ROUTING_KEY_LINK_ORDER_APPOINTMENT_CREATED = exports.ROUTING_KEY_LINK_ORDER_CUSTOMER_DEVICE_ROUTER_DELETED = exports.ROUTING_KEY_LINK_ORDER_CUSTOMER_DEVICE_ROUTER_CREATED = exports.ROUTING_KEY_LINK_ORDER_SMS_MESSAGE_DELETED = exports.ROUTING_KEY_LINK_ORDER_SMS_MESSAGE_CREATED = exports.ROUTING_KEY_LINK_ORDER_ORDER_DELETED = exports.ROUTING_KEY_LINK_ORDER_ORDER_CREATED = exports.ROUTING_KEY_LINK_ORDER_FILE_DELETED = exports.ROUTING_KEY_LINK_ORDER_FILE_CREATED = exports.ROUTING_KEY_LINK_ORDER_ORDER_ITEM_DELETED = exports.ROUTING_KEY_LINK_ORDER_ORDER_ITEM_CREATED = exports.ROUTING_KEY_LINK_ORDER_BILLING_ADJUSTMENT_DELETED = exports.ROUTING_KEY_LINK_ORDER_BILLING_ADJUSTMENT_CREATED = exports.ROUTING_KEY_LINK_ORDER_PUSH_NOTIFICATION_DELETED = exports.ROUTING_KEY_LINK_ORDER_PUSH_NOTIFICATION_CREATED = exports.ROUTING_KEY_LINK_ORDER_DISCOUNT_DELETED = exports.ROUTING_KEY_LINK_ORDER_DISCOUNT_CREATED = exports.ROUTING_KEY_LINK_ORDER_ADDRESS_DELETED = exports.ROUTING_KEY_LINK_ORDER_ADDRESS_CREATED = exports.ROUTING_KEY_LINK_ORDER_CONTACT_DELETED = exports.ROUTING_KEY_LINK_ORDER_CONTACT_CREATED = exports.ROUTING_KEY_LINK_ORDER_PHONE_NUMBER_DELETED = exports.ROUTING_KEY_LINK_ORDER_PHONE_NUMBER_CREATED = exports.ROUTING_KEY_LINK_ORDER_NOTE_DELETED = exports.ROUTING_KEY_LINK_ORDER_NOTE_CREATED = exports.ROUTING_KEY_ORDER_DEFAULT_DELETED = exports.ROUTING_KEY_ORDER_DEFAULT_UPDATED = exports.ROUTING_KEY_ORDER_DEFAULT_CREATED = exports.ROUTING_KEY_ORDER_DELETED = exports.ROUTING_KEY_ORDER_UPDATED = exports.ROUTING_KEY_ORDER_CREATED = exports.Order = exports.OrderPropertyKeys = exports.OrderActivationStatus = exports.OrderOtsNotRequiredReason = exports.OrderBatteryPackRequired = exports.OrderMobileCoverage = exports.OrderAltContactMethod = exports.OrderProvider = exports.OrderBillingTerms = exports.OrderDeactivationReason = exports.OrderDiscountType = exports.OrderWithholdCommissionReason = exports.OrderDiscountUnit = exports.OrderTrialUnit = exports.OrderContractType = exports.OrderCurrencyCode = exports.DefaultOrderStageKeys = exports.DefaultOrderStageNames = exports.OrderEntityTypes = void 0;
|
|
16
|
+
exports.ROUTING_KEY_LINK_ORDER_MODIFY_SERVICE_REQUEST_DELETED = exports.ROUTING_KEY_LINK_ORDER_MODIFY_SERVICE_REQUEST_CREATED = exports.ROUTING_KEY_LINK_ORDER_INVOICE_DELETED = exports.ROUTING_KEY_LINK_ORDER_INVOICE_CREATED = exports.ROUTING_KEY_LINK_ORDER_ACTIVITY_LOG_DELETED = exports.ROUTING_KEY_LINK_ORDER_ACTIVITY_LOG_CREATED = exports.ROUTING_KEY_LINK_ORDER_ACTIVITY_DELETED = exports.ROUTING_KEY_LINK_ORDER_ACTIVITY_CREATED = exports.ROUTING_KEY_LINK_ORDER_ORDER_CHECK_DELETED = exports.ROUTING_KEY_LINK_ORDER_ORDER_CHECK_CREATED = exports.ROUTING_KEY_LINK_ORDER_CUSTOMER_DEVICE_ONT_DELETED = exports.ROUTING_KEY_LINK_ORDER_CUSTOMER_DEVICE_ONT_CREATED = exports.ROUTING_KEY_LINK_ORDER_WORK_ORDER_DELETED = exports.ROUTING_KEY_LINK_ORDER_WORK_ORDER_CREATED = exports.ROUTING_KEY_LINK_ORDER_VISIT_DELETED = exports.ROUTING_KEY_LINK_ORDER_VISIT_CREATED = exports.ROUTING_KEY_LINK_ORDER_COMMISSION_DELETED = exports.ROUTING_KEY_LINK_ORDER_COMMISSION_CREATED = exports.ROUTING_KEY_LINK_ORDER_ORDER_KCI_DELETED = exports.ROUTING_KEY_LINK_ORDER_ORDER_KCI_CREATED = exports.ROUTING_KEY_LINK_ORDER_REFERRAL_DELETED = exports.ROUTING_KEY_LINK_ORDER_REFERRAL_CREATED = exports.ROUTING_KEY_LINK_ORDER_CONTRACT_BUY_OUT_DELETED = exports.ROUTING_KEY_LINK_ORDER_CONTRACT_BUY_OUT_CREATED = exports.ROUTING_KEY_LINK_ORDER_CONTACT_IDENTITY_DELETED = exports.ROUTING_KEY_LINK_ORDER_CONTACT_IDENTITY_CREATED = exports.ROUTING_KEY_LINK_ORDER_APPOINTMENT_DELETED = void 0;
|
|
17
17
|
const core_1 = require("@d19n/odin-types/dist/core");
|
|
18
18
|
/**
|
|
19
19
|
* Available types for Order records
|
|
@@ -275,6 +275,37 @@ var OrderBatteryPackRequired;
|
|
|
275
275
|
OrderBatteryPackRequired["NO"] = "NO";
|
|
276
276
|
OrderBatteryPackRequired["YES"] = "YES";
|
|
277
277
|
})(OrderBatteryPackRequired = exports.OrderBatteryPackRequired || (exports.OrderBatteryPackRequired = {}));
|
|
278
|
+
/**
|
|
279
|
+
* Valid values for Order.OtsNotRequiredReason
|
|
280
|
+
*
|
|
281
|
+
* OtsNotRequiredReason
|
|
282
|
+
*
|
|
283
|
+
* @remarks Available options:
|
|
284
|
+
* - `2_LINES_KEEPING_EXISTING_PROVIDER` - 2 Lines Keeping Existing Provider
|
|
285
|
+
* - `CURRENT_ACCOUNT_IN_DIFFERENT_NAME` - Current Account In Different Name
|
|
286
|
+
* - `CURRENTLY_HAS_BUSINESS_LINE` - Currently Has Business Line
|
|
287
|
+
* - `EXISTING_YOUFIBRE_BRSK_CUSTOMER_MOVING_HOME` - Existing YouFibre/Brsk Customer Moving Home
|
|
288
|
+
* - `HAS_4G_5G_SERVICE` - Has 4G/5G Service
|
|
289
|
+
* - `NEW_PROPERTY` - New Property
|
|
290
|
+
* - `CURRENT_PROVIDER_ALREADY_CANCELLED` - New Provider Already Cancelled
|
|
291
|
+
* - `NEW_TENANT` - New Tenant
|
|
292
|
+
* - `NO_CURRENT_PROVIDER` - No Current Provider
|
|
293
|
+
* - `PRE_WIRED_ADDRESS` - Pre Wired Address
|
|
294
|
+
* - `TRANSFER_OF_OWNERSHIP` - Transfer Of Ownership
|
|
295
|
+
*/
|
|
296
|
+
var OrderOtsNotRequiredReason;
|
|
297
|
+
(function (OrderOtsNotRequiredReason) {
|
|
298
|
+
OrderOtsNotRequiredReason["CURRENT_ACCOUNT_IN_DIFFERENT_NAME"] = "CURRENT_ACCOUNT_IN_DIFFERENT_NAME";
|
|
299
|
+
OrderOtsNotRequiredReason["CURRENTLY_HAS_BUSINESS_LINE"] = "CURRENTLY_HAS_BUSINESS_LINE";
|
|
300
|
+
OrderOtsNotRequiredReason["EXISTING_YOU_FIBRE_BRSK_CUSTOMER_MOVING_HOME"] = "EXISTING_YOUFIBRE_BRSK_CUSTOMER_MOVING_HOME";
|
|
301
|
+
OrderOtsNotRequiredReason["HAS_4_G_5_G_SERVICE"] = "HAS_4G_5G_SERVICE";
|
|
302
|
+
OrderOtsNotRequiredReason["NEW_PROPERTY"] = "NEW_PROPERTY";
|
|
303
|
+
OrderOtsNotRequiredReason["NEW_PROVIDER_ALREADY_CANCELLED"] = "CURRENT_PROVIDER_ALREADY_CANCELLED";
|
|
304
|
+
OrderOtsNotRequiredReason["NEW_TENANT"] = "NEW_TENANT";
|
|
305
|
+
OrderOtsNotRequiredReason["NO_CURRENT_PROVIDER"] = "NO_CURRENT_PROVIDER";
|
|
306
|
+
OrderOtsNotRequiredReason["PRE_WIRED_ADDRESS"] = "PRE_WIRED_ADDRESS";
|
|
307
|
+
OrderOtsNotRequiredReason["TRANSFER_OF_OWNERSHIP"] = "TRANSFER_OF_OWNERSHIP";
|
|
308
|
+
})(OrderOtsNotRequiredReason = exports.OrderOtsNotRequiredReason || (exports.OrderOtsNotRequiredReason = {}));
|
|
278
309
|
/**
|
|
279
310
|
* Valid values for Order.ActivationStatus
|
|
280
311
|
*
|
|
@@ -499,6 +530,8 @@ var OrderPropertyKeys;
|
|
|
499
530
|
OrderPropertyKeys["BatteryPackRequired"] = "BatteryPackRequired";
|
|
500
531
|
/** LegacyBrskOtsData */
|
|
501
532
|
OrderPropertyKeys["LegacyBrskOtsData"] = "LegacyBrskOtsData";
|
|
533
|
+
/** OtsNotRequiredReason */
|
|
534
|
+
OrderPropertyKeys["OtsNotRequiredReason"] = "OtsNotRequiredReason";
|
|
502
535
|
/** One Touch Switch reference number */
|
|
503
536
|
OrderPropertyKeys["ExternalReferenceOts"] = "ExternalReferenceOts";
|
|
504
537
|
/** status of the order (must be activated for billing) (Sales - Order) */
|
|
@@ -39,6 +39,7 @@ import { SetOrderCancelOnDateProperties } from '../actions-v2/SetOrderCancelOnDa
|
|
|
39
39
|
import { SetOrderDeactivateOnDateProperties } from '../actions-v2/SetOrderDeactivateOnDateDto';
|
|
40
40
|
import { SetPendingAmcoWorkOrderProperties } from '../actions-v2/SetPendingAmcoWorkOrderDto';
|
|
41
41
|
import { UpdateOrderProperties } from '../actions-v2/UpdateOrderDto';
|
|
42
|
+
import { UpdateOtsNotRequiredReasonProperties } from '../actions-v2/UpdateOtsNotRequiredReasonDto';
|
|
42
43
|
import { NoteRecord } from './NoteRecord';
|
|
43
44
|
import { LeadRecord } from './LeadRecord';
|
|
44
45
|
import { AccountRecord } from './AccountRecord';
|
|
@@ -2281,6 +2282,33 @@ export declare class OrderRecord<TProps = OrderProperties> {
|
|
|
2281
2282
|
journeyId?: string;
|
|
2282
2283
|
stageKey?: string;
|
|
2283
2284
|
}): ActionBuilder;
|
|
2285
|
+
/**
|
|
2286
|
+
* UpdateOtsNotRequiredReason
|
|
2287
|
+
*
|
|
2288
|
+
* Updates this Order record.
|
|
2289
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
2290
|
+
*
|
|
2291
|
+
* @param propertiesOrOptions - Properties to update, or options object
|
|
2292
|
+
* @param options - Optional settings (journeyId, stageKey)
|
|
2293
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
2294
|
+
* @throws Error if called on a new (unsaved) record
|
|
2295
|
+
*
|
|
2296
|
+
* @example
|
|
2297
|
+
* ```typescript
|
|
2298
|
+
* const record = await odinClient.orders.get(id);
|
|
2299
|
+
* await record.updateOtsNotRequiredReason({ ... }).execute();
|
|
2300
|
+
*
|
|
2301
|
+
* // Dry run (for debugging)
|
|
2302
|
+
* const payload = record.updateOtsNotRequiredReason({ ... }).dryRun();
|
|
2303
|
+
* ```
|
|
2304
|
+
*/
|
|
2305
|
+
updateOtsNotRequiredReason(propertiesOrOptions?: UpdateOtsNotRequiredReasonProperties | {
|
|
2306
|
+
journeyId?: string;
|
|
2307
|
+
stageKey?: string;
|
|
2308
|
+
}, options?: {
|
|
2309
|
+
journeyId?: string;
|
|
2310
|
+
stageKey?: string;
|
|
2311
|
+
}): ActionBuilder;
|
|
2284
2312
|
}
|
|
2285
2313
|
/** Type guard to check if an object is a OrderRecord */
|
|
2286
2314
|
export declare function isOrderRecord(obj: any): obj is OrderRecord;
|
|
@@ -3236,6 +3236,43 @@ class OrderRecord {
|
|
|
3236
3236
|
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateOrder', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
|
|
3237
3237
|
return new ActionBuilder(this._provider, 'OrderModule', 'Order', payload, () => { this._pendingLinks = []; });
|
|
3238
3238
|
}
|
|
3239
|
+
/**
|
|
3240
|
+
* UpdateOtsNotRequiredReason
|
|
3241
|
+
*
|
|
3242
|
+
* Updates this Order record.
|
|
3243
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
3244
|
+
*
|
|
3245
|
+
* @param propertiesOrOptions - Properties to update, or options object
|
|
3246
|
+
* @param options - Optional settings (journeyId, stageKey)
|
|
3247
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
3248
|
+
* @throws Error if called on a new (unsaved) record
|
|
3249
|
+
*
|
|
3250
|
+
* @example
|
|
3251
|
+
* ```typescript
|
|
3252
|
+
* const record = await odinClient.orders.get(id);
|
|
3253
|
+
* await record.updateOtsNotRequiredReason({ ... }).execute();
|
|
3254
|
+
*
|
|
3255
|
+
* // Dry run (for debugging)
|
|
3256
|
+
* const payload = record.updateOtsNotRequiredReason({ ... }).dryRun();
|
|
3257
|
+
* ```
|
|
3258
|
+
*/
|
|
3259
|
+
updateOtsNotRequiredReason(propertiesOrOptions, options) {
|
|
3260
|
+
var _a;
|
|
3261
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
3262
|
+
throw new Error('updateOtsNotRequiredReason requires an existing record. Use accessor.get() first.');
|
|
3263
|
+
let properties = {};
|
|
3264
|
+
let opts = options;
|
|
3265
|
+
if (propertiesOrOptions) {
|
|
3266
|
+
if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
|
|
3267
|
+
opts = propertiesOrOptions;
|
|
3268
|
+
}
|
|
3269
|
+
else {
|
|
3270
|
+
properties = propertiesOrOptions;
|
|
3271
|
+
}
|
|
3272
|
+
}
|
|
3273
|
+
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateOtsNotRequiredReason', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
|
|
3274
|
+
return new ActionBuilder(this._provider, 'OrderModule', 'Order', payload, () => { this._pendingLinks = []; });
|
|
3275
|
+
}
|
|
3239
3276
|
}
|
|
3240
3277
|
exports.OrderRecord = OrderRecord;
|
|
3241
3278
|
// ============================================
|