@d19n/youfibre-odin-sdk 2.0.337 → 2.0.339
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 +4 -2
- package/dist/actions-v2/CreateCollectionAmcoWorkOrderDto.d.ts +1 -1
- package/dist/actions-v2/CreateCollectionAmcoWorkOrderFromOrderDto.d.ts +1 -1
- package/dist/actions-v2/CreateDispatchAmcoWorkOrderDto.d.ts +1 -1
- package/dist/actions-v2/CreateDispatchAmcoWorkOrderFromOrderDto.d.ts +1 -1
- package/dist/actions-v2/CreateInstallDayBeforeWifiEducationDto.d.ts +72 -0
- package/dist/actions-v2/CreateLeadSalesAppDto.d.ts +1 -1
- package/dist/actions-v2/UpdateAppointmentSalesAppDto.d.ts +129 -0
- package/dist/actions-v2/UpdateAppointmentSalesAppDto.js +56 -0
- package/dist/api-sdk-v2/AiRouteRequestApi.d.ts +45 -0
- package/dist/api-sdk-v2/AiRouteRequestApi.js +151 -0
- package/dist/db-sdk-v2/AiRouteRequestDb.d.ts +117 -0
- package/dist/db-sdk-v2/AiRouteRequestDb.js +200 -0
- package/dist/entities-v2/AiRouteRequest.d.ts +248 -0
- package/dist/entities-v2/AiRouteRequest.js +162 -0
- package/dist/entities-v2/Appointment.d.ts +16 -16
- package/dist/entities-v2/Appointment.js +4 -4
- package/dist/entities-v2/Lead.d.ts +2 -0
- package/dist/entities-v2/Lead.js +2 -0
- package/dist/entities-v2/Order.d.ts +23 -1
- package/dist/entities-v2/Order.js +18 -2
- package/dist/entities-v2/WorkOrder.d.ts +23 -19
- package/dist/entities-v2/WorkOrder.js +6 -2
- package/dist/records-v2/AppointmentRecord.d.ts +28 -0
- package/dist/records-v2/AppointmentRecord.js +40 -0
- package/package.json +1 -1
|
@@ -46,8 +46,6 @@ var AppointmentPropertyKeys;
|
|
|
46
46
|
AppointmentPropertyKeys["Longitude"] = "Longitude";
|
|
47
47
|
/** email address (Sales - Appointment) */
|
|
48
48
|
AppointmentPropertyKeys["EmailAddress"] = "EmailAddress";
|
|
49
|
-
/** Contact information field for Appointment. Used by Sales team for communication. */
|
|
50
|
-
AppointmentPropertyKeys["Address"] = "Address";
|
|
51
49
|
/** Reference identifier for Appointment relationships. Used for data integrity. */
|
|
52
50
|
AppointmentPropertyKeys["AddressId"] = "AddressId";
|
|
53
51
|
/** Contact information field for Appointment. Used by Sales team for communication. */
|
|
@@ -58,8 +56,6 @@ var AppointmentPropertyKeys;
|
|
|
58
56
|
AppointmentPropertyKeys["ImportId"] = "ImportId";
|
|
59
57
|
/** Date field for Appointment records. Used by Sales team. */
|
|
60
58
|
AppointmentPropertyKeys["Date"] = "Date";
|
|
61
|
-
/** The title of the appointment (Sales - Appointment) */
|
|
62
|
-
AppointmentPropertyKeys["MeetingTitle"] = "MeetingTitle";
|
|
63
59
|
/** Additional appointment information (Sales - Appointment) */
|
|
64
60
|
AppointmentPropertyKeys["Comment"] = "Comment";
|
|
65
61
|
/** Display name/title for Appointment records. Primary identifier for Sales team. */
|
|
@@ -68,6 +64,10 @@ var AppointmentPropertyKeys;
|
|
|
68
64
|
AppointmentPropertyKeys["LastName"] = "LastName";
|
|
69
65
|
/** Appointment type (Sales - Appointment) */
|
|
70
66
|
AppointmentPropertyKeys["Type"] = "Type";
|
|
67
|
+
/** Contact information field for Appointment. Used by Sales team for communication. */
|
|
68
|
+
AppointmentPropertyKeys["Address"] = "Address";
|
|
69
|
+
/** The title of the appointment (Sales - Appointment) */
|
|
70
|
+
AppointmentPropertyKeys["MeetingTitle"] = "MeetingTitle";
|
|
71
71
|
})(AppointmentPropertyKeys = exports.AppointmentPropertyKeys || (exports.AppointmentPropertyKeys = {}));
|
|
72
72
|
/**
|
|
73
73
|
* Appointment entity from CrmModule
|
|
@@ -78,6 +78,7 @@ export declare enum DefaultLeadStageKeys {
|
|
|
78
78
|
* - `FIELDSALES` - Field sales
|
|
79
79
|
* - `GBVS`
|
|
80
80
|
* - `NETOMNIA` - Netomnia
|
|
81
|
+
* - `ODIN_MOBILE_APP` - Odin Mobile App
|
|
81
82
|
* - `PAN_MONY` - PAN-MONY
|
|
82
83
|
* - `PHONE` - Phone
|
|
83
84
|
* - `REFERRAL` - Referral
|
|
@@ -93,6 +94,7 @@ export declare enum LeadSource {
|
|
|
93
94
|
FIELD_SALES = "FIELDSALES",
|
|
94
95
|
GBVS = "GBVS",
|
|
95
96
|
NETOMNIA = "NETOMNIA",
|
|
97
|
+
ODIN_MOBILE_APP = "ODIN_MOBILE_APP",
|
|
96
98
|
PAN_MONY = "PAN_MONY",
|
|
97
99
|
PHONE = "PHONE",
|
|
98
100
|
REFERRAL = "REFERRAL",
|
package/dist/entities-v2/Lead.js
CHANGED
|
@@ -68,6 +68,7 @@ var DefaultLeadStageKeys;
|
|
|
68
68
|
* - `FIELDSALES` - Field sales
|
|
69
69
|
* - `GBVS`
|
|
70
70
|
* - `NETOMNIA` - Netomnia
|
|
71
|
+
* - `ODIN_MOBILE_APP` - Odin Mobile App
|
|
71
72
|
* - `PAN_MONY` - PAN-MONY
|
|
72
73
|
* - `PHONE` - Phone
|
|
73
74
|
* - `REFERRAL` - Referral
|
|
@@ -84,6 +85,7 @@ var LeadSource;
|
|
|
84
85
|
LeadSource["FIELD_SALES"] = "FIELDSALES";
|
|
85
86
|
LeadSource["GBVS"] = "GBVS";
|
|
86
87
|
LeadSource["NETOMNIA"] = "NETOMNIA";
|
|
88
|
+
LeadSource["ODIN_MOBILE_APP"] = "ODIN_MOBILE_APP";
|
|
87
89
|
LeadSource["PAN_MONY"] = "PAN_MONY";
|
|
88
90
|
LeadSource["PHONE"] = "PHONE";
|
|
89
91
|
LeadSource["REFERRAL"] = "REFERRAL";
|
|
@@ -364,6 +364,19 @@ export declare enum OrderActivationStatus {
|
|
|
364
364
|
PROVISIONING = "PROVISIONING",
|
|
365
365
|
SUSPENDED = "SUSPENDED"
|
|
366
366
|
}
|
|
367
|
+
/**
|
|
368
|
+
* Valid values for Order.BatteryBackupAnswersSource
|
|
369
|
+
*
|
|
370
|
+
* Front end that last saved the battery backup answers. Set by the customer portal API, copied to the dispatch work order Source by the orders module, then cleared (PORTAPP-3276).
|
|
371
|
+
*
|
|
372
|
+
* @remarks Available options:
|
|
373
|
+
* - `CUSTOMER_APP` - Customer App
|
|
374
|
+
* - `CUSTOMER_PORTAL` - Customer Portal
|
|
375
|
+
*/
|
|
376
|
+
export declare enum OrderBatteryBackupAnswersSource {
|
|
377
|
+
CUSTOMER_APP = "CUSTOMER_APP",
|
|
378
|
+
CUSTOMER_PORTAL = "CUSTOMER_PORTAL"
|
|
379
|
+
}
|
|
367
380
|
/**
|
|
368
381
|
* Property keys for Order
|
|
369
382
|
* Use these constants instead of string literals for type safety
|
|
@@ -576,7 +589,9 @@ export declare enum OrderPropertyKeys {
|
|
|
576
589
|
/** Date the order was recontracted (in place). Discriminator + event date. */
|
|
577
590
|
RecontractDate = "RecontractDate",
|
|
578
591
|
/** status of the order (must be activated for billing) (Sales - Order) */
|
|
579
|
-
ActivationStatus = "ActivationStatus"
|
|
592
|
+
ActivationStatus = "ActivationStatus",
|
|
593
|
+
/** Front end that last saved the battery backup answers. Set by the customer portal API, copied to the dispatch work order Source by the orders module, then cleared (PORTAPP-3276). */
|
|
594
|
+
BatteryBackupAnswersSource = "BatteryBackupAnswersSource"
|
|
580
595
|
}
|
|
581
596
|
/**
|
|
582
597
|
* Properties for Order records
|
|
@@ -1227,6 +1242,13 @@ export interface OrderProperties {
|
|
|
1227
1242
|
* @hidden This field is hidden in the UI
|
|
1228
1243
|
*/
|
|
1229
1244
|
ActivationStatus: OrderActivationStatus;
|
|
1245
|
+
/** Front end that last saved the battery backup answers. Set by the customer portal API, copied to the dispatch work order Source by the orders module, then cleared (PORTAPP-3276).
|
|
1246
|
+
*
|
|
1247
|
+
* @type {ENUM}
|
|
1248
|
+
* @default
|
|
1249
|
+
* @enum {OrderBatteryBackupAnswersSource}
|
|
1250
|
+
*/
|
|
1251
|
+
BatteryBackupAnswersSource: OrderBatteryBackupAnswersSource;
|
|
1230
1252
|
}
|
|
1231
1253
|
/**
|
|
1232
1254
|
* Order entity from OrderModule
|
|
@@ -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_EMAIL_DELETED = exports.ROUTING_KEY_LINK_ORDER_EMAIL_CREATED = exports.ROUTING_KEY_LINK_ORDER_WORK_ORDER_DELETED = exports.ROUTING_KEY_LINK_ORDER_WORK_ORDER_CREATED = exports.ROUTING_KEY_LINK_ORDER_CONTACT_DELETED = exports.ROUTING_KEY_LINK_ORDER_CONTACT_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_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_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.OrderBatteryBackupAnswersSource = exports.OrderActivationStatus = exports.OrderSupplierOrderType = 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_EMAIL_DELETED = exports.ROUTING_KEY_LINK_ORDER_EMAIL_CREATED = exports.ROUTING_KEY_LINK_ORDER_WORK_ORDER_DELETED = exports.ROUTING_KEY_LINK_ORDER_WORK_ORDER_CREATED = exports.ROUTING_KEY_LINK_ORDER_CONTACT_DELETED = exports.ROUTING_KEY_LINK_ORDER_CONTACT_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_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
|
|
@@ -346,6 +346,20 @@ var OrderActivationStatus;
|
|
|
346
346
|
OrderActivationStatus["PROVISIONING"] = "PROVISIONING";
|
|
347
347
|
OrderActivationStatus["SUSPENDED"] = "SUSPENDED";
|
|
348
348
|
})(OrderActivationStatus = exports.OrderActivationStatus || (exports.OrderActivationStatus = {}));
|
|
349
|
+
/**
|
|
350
|
+
* Valid values for Order.BatteryBackupAnswersSource
|
|
351
|
+
*
|
|
352
|
+
* Front end that last saved the battery backup answers. Set by the customer portal API, copied to the dispatch work order Source by the orders module, then cleared (PORTAPP-3276).
|
|
353
|
+
*
|
|
354
|
+
* @remarks Available options:
|
|
355
|
+
* - `CUSTOMER_APP` - Customer App
|
|
356
|
+
* - `CUSTOMER_PORTAL` - Customer Portal
|
|
357
|
+
*/
|
|
358
|
+
var OrderBatteryBackupAnswersSource;
|
|
359
|
+
(function (OrderBatteryBackupAnswersSource) {
|
|
360
|
+
OrderBatteryBackupAnswersSource["CUSTOMER_APP"] = "CUSTOMER_APP";
|
|
361
|
+
OrderBatteryBackupAnswersSource["CUSTOMER_PORTAL"] = "CUSTOMER_PORTAL";
|
|
362
|
+
})(OrderBatteryBackupAnswersSource = exports.OrderBatteryBackupAnswersSource || (exports.OrderBatteryBackupAnswersSource = {}));
|
|
349
363
|
/**
|
|
350
364
|
* Property keys for Order
|
|
351
365
|
* Use these constants instead of string literals for type safety
|
|
@@ -560,6 +574,8 @@ var OrderPropertyKeys;
|
|
|
560
574
|
OrderPropertyKeys["RecontractDate"] = "RecontractDate";
|
|
561
575
|
/** status of the order (must be activated for billing) (Sales - Order) */
|
|
562
576
|
OrderPropertyKeys["ActivationStatus"] = "ActivationStatus";
|
|
577
|
+
/** Front end that last saved the battery backup answers. Set by the customer portal API, copied to the dispatch work order Source by the orders module, then cleared (PORTAPP-3276). */
|
|
578
|
+
OrderPropertyKeys["BatteryBackupAnswersSource"] = "BatteryBackupAnswersSource";
|
|
563
579
|
})(OrderPropertyKeys = exports.OrderPropertyKeys || (exports.OrderPropertyKeys = {}));
|
|
564
580
|
/**
|
|
565
581
|
* Order entity from OrderModule
|
|
@@ -1399,15 +1399,19 @@ export declare enum WorkOrderPreventableWorkOrder {
|
|
|
1399
1399
|
/**
|
|
1400
1400
|
* Valid values for WorkOrder.Source
|
|
1401
1401
|
*
|
|
1402
|
-
*
|
|
1402
|
+
* Source of WO creation
|
|
1403
1403
|
*
|
|
1404
1404
|
* @remarks Available options:
|
|
1405
|
+
* - `AGENT` - Agent
|
|
1405
1406
|
* - `CUSTOMER_APP` - Customer App
|
|
1406
1407
|
* - `CUSTOMER_PORTAL` - Customer Portal
|
|
1408
|
+
* - `ODIN_SYSTEM` - Odin System
|
|
1407
1409
|
*/
|
|
1408
1410
|
export declare enum WorkOrderSource {
|
|
1411
|
+
AGENT = "AGENT",
|
|
1409
1412
|
CUSTOMER_APP = "CUSTOMER_APP",
|
|
1410
|
-
CUSTOMER_PORTAL = "CUSTOMER_PORTAL"
|
|
1413
|
+
CUSTOMER_PORTAL = "CUSTOMER_PORTAL",
|
|
1414
|
+
ODIN_SYSTEM = "ODIN_SYSTEM"
|
|
1411
1415
|
}
|
|
1412
1416
|
/**
|
|
1413
1417
|
* Property keys for WorkOrder
|
|
@@ -1688,7 +1692,7 @@ export declare enum WorkOrderPropertyKeys {
|
|
|
1688
1692
|
EquipmentChargeBreakdown = "EquipmentChargeBreakdown",
|
|
1689
1693
|
/** JSON list of the CustomerDeviceRouter / CustomerDevice record ids the agent ticked when creating a replacement. The Delivered mint supersedes exactly these and links them to the work order for collection (PORTAPP-3260). */
|
|
1690
1694
|
ReplacedDeviceIds = "ReplacedDeviceIds",
|
|
1691
|
-
/**
|
|
1695
|
+
/** Source of WO creation */
|
|
1692
1696
|
Source = "Source"
|
|
1693
1697
|
}
|
|
1694
1698
|
/**
|
|
@@ -2495,7 +2499,7 @@ export interface WorkOrderProperties {
|
|
|
2495
2499
|
* @default
|
|
2496
2500
|
*/
|
|
2497
2501
|
ReplacedDeviceIds: string;
|
|
2498
|
-
/**
|
|
2502
|
+
/** Source of WO creation
|
|
2499
2503
|
*
|
|
2500
2504
|
* @type {ENUM}
|
|
2501
2505
|
* @default
|
|
@@ -3307,7 +3311,7 @@ export interface CollectionWorkOrderProperties {
|
|
|
3307
3311
|
* @default
|
|
3308
3312
|
*/
|
|
3309
3313
|
ReplacedDeviceIds: string;
|
|
3310
|
-
/**
|
|
3314
|
+
/** Source of WO creation
|
|
3311
3315
|
*
|
|
3312
3316
|
* @type {ENUM}
|
|
3313
3317
|
* @default
|
|
@@ -4119,7 +4123,7 @@ export interface CollectionAmcoWorkOrderProperties {
|
|
|
4119
4123
|
* @default
|
|
4120
4124
|
*/
|
|
4121
4125
|
ReplacedDeviceIds: string;
|
|
4122
|
-
/**
|
|
4126
|
+
/** Source of WO creation
|
|
4123
4127
|
*
|
|
4124
4128
|
* @type {ENUM}
|
|
4125
4129
|
* @default
|
|
@@ -4931,7 +4935,7 @@ export interface DispatchAmcoWorkOrderProperties {
|
|
|
4931
4935
|
* @default
|
|
4932
4936
|
*/
|
|
4933
4937
|
ReplacedDeviceIds: string;
|
|
4934
|
-
/**
|
|
4938
|
+
/** Source of WO creation
|
|
4935
4939
|
*
|
|
4936
4940
|
* @type {ENUM}
|
|
4937
4941
|
* @default
|
|
@@ -5743,7 +5747,7 @@ export interface FinanceWorkOrderProperties {
|
|
|
5743
5747
|
* @default
|
|
5744
5748
|
*/
|
|
5745
5749
|
ReplacedDeviceIds: string;
|
|
5746
|
-
/**
|
|
5750
|
+
/** Source of WO creation
|
|
5747
5751
|
*
|
|
5748
5752
|
* @type {ENUM}
|
|
5749
5753
|
* @default
|
|
@@ -6555,7 +6559,7 @@ export interface InspectionWorkOrderProperties {
|
|
|
6555
6559
|
* @default
|
|
6556
6560
|
*/
|
|
6557
6561
|
ReplacedDeviceIds: string;
|
|
6558
|
-
/**
|
|
6562
|
+
/** Source of WO creation
|
|
6559
6563
|
*
|
|
6560
6564
|
* @type {ENUM}
|
|
6561
6565
|
* @default
|
|
@@ -7367,7 +7371,7 @@ export interface InstallWorkOrderProperties {
|
|
|
7367
7371
|
* @default
|
|
7368
7372
|
*/
|
|
7369
7373
|
ReplacedDeviceIds: string;
|
|
7370
|
-
/**
|
|
7374
|
+
/** Source of WO creation
|
|
7371
7375
|
*
|
|
7372
7376
|
* @type {ENUM}
|
|
7373
7377
|
* @default
|
|
@@ -8179,7 +8183,7 @@ export interface InstallBusinessWorkOrderProperties {
|
|
|
8179
8183
|
* @default
|
|
8180
8184
|
*/
|
|
8181
8185
|
ReplacedDeviceIds: string;
|
|
8182
|
-
/**
|
|
8186
|
+
/** Source of WO creation
|
|
8183
8187
|
*
|
|
8184
8188
|
* @type {ENUM}
|
|
8185
8189
|
* @default
|
|
@@ -8991,7 +8995,7 @@ export interface InstallServiceWorkOrderProperties {
|
|
|
8991
8995
|
* @default
|
|
8992
8996
|
*/
|
|
8993
8997
|
ReplacedDeviceIds: string;
|
|
8994
|
-
/**
|
|
8998
|
+
/** Source of WO creation
|
|
8995
8999
|
*
|
|
8996
9000
|
* @type {ENUM}
|
|
8997
9001
|
* @default
|
|
@@ -9803,7 +9807,7 @@ export interface NetworkAdjustmentWorkOrderProperties {
|
|
|
9803
9807
|
* @default
|
|
9804
9808
|
*/
|
|
9805
9809
|
ReplacedDeviceIds: string;
|
|
9806
|
-
/**
|
|
9810
|
+
/** Source of WO creation
|
|
9807
9811
|
*
|
|
9808
9812
|
* @type {ENUM}
|
|
9809
9813
|
* @default
|
|
@@ -10615,7 +10619,7 @@ export interface PlanningWorkOrderProperties {
|
|
|
10615
10619
|
* @default
|
|
10616
10620
|
*/
|
|
10617
10621
|
ReplacedDeviceIds: string;
|
|
10618
|
-
/**
|
|
10622
|
+
/** Source of WO creation
|
|
10619
10623
|
*
|
|
10620
10624
|
* @type {ENUM}
|
|
10621
10625
|
* @default
|
|
@@ -11427,7 +11431,7 @@ export interface PrePullWorkOrderProperties {
|
|
|
11427
11431
|
* @default
|
|
11428
11432
|
*/
|
|
11429
11433
|
ReplacedDeviceIds: string;
|
|
11430
|
-
/**
|
|
11434
|
+
/** Source of WO creation
|
|
11431
11435
|
*
|
|
11432
11436
|
* @type {ENUM}
|
|
11433
11437
|
* @default
|
|
@@ -12239,7 +12243,7 @@ export interface RemediationWorkOrderProperties {
|
|
|
12239
12243
|
* @default
|
|
12240
12244
|
*/
|
|
12241
12245
|
ReplacedDeviceIds: string;
|
|
12242
|
-
/**
|
|
12246
|
+
/** Source of WO creation
|
|
12243
12247
|
*
|
|
12244
12248
|
* @type {ENUM}
|
|
12245
12249
|
* @default
|
|
@@ -13051,7 +13055,7 @@ export interface ReplacementAmcoWorkOrderProperties {
|
|
|
13051
13055
|
* @default
|
|
13052
13056
|
*/
|
|
13053
13057
|
ReplacedDeviceIds: string;
|
|
13054
|
-
/**
|
|
13058
|
+
/** Source of WO creation
|
|
13055
13059
|
*
|
|
13056
13060
|
* @type {ENUM}
|
|
13057
13061
|
* @default
|
|
@@ -13863,7 +13867,7 @@ export interface ServiceWorkOrderProperties {
|
|
|
13863
13867
|
* @default
|
|
13864
13868
|
*/
|
|
13865
13869
|
ReplacedDeviceIds: string;
|
|
13866
|
-
/**
|
|
13870
|
+
/** Source of WO creation
|
|
13867
13871
|
*
|
|
13868
13872
|
* @type {ENUM}
|
|
13869
13873
|
* @default
|
|
@@ -14675,7 +14679,7 @@ export interface WayleaveWorkOrderProperties {
|
|
|
14675
14679
|
* @default
|
|
14676
14680
|
*/
|
|
14677
14681
|
ReplacedDeviceIds: string;
|
|
14678
|
-
/**
|
|
14682
|
+
/** Source of WO creation
|
|
14679
14683
|
*
|
|
14680
14684
|
* @type {ENUM}
|
|
14681
14685
|
* @default
|
|
@@ -1399,16 +1399,20 @@ var WorkOrderPreventableWorkOrder;
|
|
|
1399
1399
|
/**
|
|
1400
1400
|
* Valid values for WorkOrder.Source
|
|
1401
1401
|
*
|
|
1402
|
-
*
|
|
1402
|
+
* Source of WO creation
|
|
1403
1403
|
*
|
|
1404
1404
|
* @remarks Available options:
|
|
1405
|
+
* - `AGENT` - Agent
|
|
1405
1406
|
* - `CUSTOMER_APP` - Customer App
|
|
1406
1407
|
* - `CUSTOMER_PORTAL` - Customer Portal
|
|
1408
|
+
* - `ODIN_SYSTEM` - Odin System
|
|
1407
1409
|
*/
|
|
1408
1410
|
var WorkOrderSource;
|
|
1409
1411
|
(function (WorkOrderSource) {
|
|
1412
|
+
WorkOrderSource["AGENT"] = "AGENT";
|
|
1410
1413
|
WorkOrderSource["CUSTOMER_APP"] = "CUSTOMER_APP";
|
|
1411
1414
|
WorkOrderSource["CUSTOMER_PORTAL"] = "CUSTOMER_PORTAL";
|
|
1415
|
+
WorkOrderSource["ODIN_SYSTEM"] = "ODIN_SYSTEM";
|
|
1412
1416
|
})(WorkOrderSource = exports.WorkOrderSource || (exports.WorkOrderSource = {}));
|
|
1413
1417
|
/**
|
|
1414
1418
|
* Property keys for WorkOrder
|
|
@@ -1690,7 +1694,7 @@ var WorkOrderPropertyKeys;
|
|
|
1690
1694
|
WorkOrderPropertyKeys["EquipmentChargeBreakdown"] = "EquipmentChargeBreakdown";
|
|
1691
1695
|
/** JSON list of the CustomerDeviceRouter / CustomerDevice record ids the agent ticked when creating a replacement. The Delivered mint supersedes exactly these and links them to the work order for collection (PORTAPP-3260). */
|
|
1692
1696
|
WorkOrderPropertyKeys["ReplacedDeviceIds"] = "ReplacedDeviceIds";
|
|
1693
|
-
/**
|
|
1697
|
+
/** Source of WO creation */
|
|
1694
1698
|
WorkOrderPropertyKeys["Source"] = "Source";
|
|
1695
1699
|
})(WorkOrderPropertyKeys = exports.WorkOrderPropertyKeys || (exports.WorkOrderPropertyKeys = {}));
|
|
1696
1700
|
/**
|
|
@@ -22,6 +22,7 @@ import { IOdinProvider } from '@d19n/odin-sdk-generator/dist/odin-sdk-types';
|
|
|
22
22
|
import { RecordLinkManager } from '@d19n/odin-sdk-generator/dist/record-link-manager';
|
|
23
23
|
import { AppointmentProperties } from '../entities-v2/Appointment';
|
|
24
24
|
import { CreateAppointmentProperties } from '../actions-v2/CreateAppointmentDto';
|
|
25
|
+
import { UpdateAppointmentSalesAppProperties } from '../actions-v2/UpdateAppointmentSalesAppDto';
|
|
25
26
|
import { FileRecord } from './FileRecord';
|
|
26
27
|
import { NoteRecord } from './NoteRecord';
|
|
27
28
|
import { LeadRecord } from './LeadRecord';
|
|
@@ -301,6 +302,33 @@ export declare class AppointmentRecord<TProps = AppointmentProperties> {
|
|
|
301
302
|
journeyId?: string;
|
|
302
303
|
stageKey?: string;
|
|
303
304
|
}): ActionBuilder;
|
|
305
|
+
/**
|
|
306
|
+
* UpdateAppointmentSalesApp
|
|
307
|
+
*
|
|
308
|
+
* Updates this Appointment record.
|
|
309
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
310
|
+
*
|
|
311
|
+
* @param propertiesOrOptions - Properties to update, or options object
|
|
312
|
+
* @param options - Optional settings (journeyId, stageKey)
|
|
313
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
314
|
+
* @throws Error if called on a new (unsaved) record
|
|
315
|
+
*
|
|
316
|
+
* @example
|
|
317
|
+
* ```typescript
|
|
318
|
+
* const record = await odinClient.appointments.get(id);
|
|
319
|
+
* await record.updateAppointmentSalesApp({ ... }).execute();
|
|
320
|
+
*
|
|
321
|
+
* // Dry run (for debugging)
|
|
322
|
+
* const payload = record.updateAppointmentSalesApp({ ... }).dryRun();
|
|
323
|
+
* ```
|
|
324
|
+
*/
|
|
325
|
+
updateAppointmentSalesApp(propertiesOrOptions?: UpdateAppointmentSalesAppProperties | {
|
|
326
|
+
journeyId?: string;
|
|
327
|
+
stageKey?: string;
|
|
328
|
+
}, options?: {
|
|
329
|
+
journeyId?: string;
|
|
330
|
+
stageKey?: string;
|
|
331
|
+
}): ActionBuilder;
|
|
304
332
|
}
|
|
305
333
|
/** Type guard to check if an object is a AppointmentRecord */
|
|
306
334
|
export declare function isAppointmentRecord(obj: any): obj is AppointmentRecord;
|
|
@@ -433,6 +433,46 @@ class AppointmentRecord {
|
|
|
433
433
|
};
|
|
434
434
|
return new ActionBuilder(this._provider, 'CrmModule', 'Appointment', payload, () => { this._pendingLinks = []; });
|
|
435
435
|
}
|
|
436
|
+
// ============================================
|
|
437
|
+
// UPDATE ACTIONS (require existing record)
|
|
438
|
+
// ============================================
|
|
439
|
+
/**
|
|
440
|
+
* UpdateAppointmentSalesApp
|
|
441
|
+
*
|
|
442
|
+
* Updates this Appointment record.
|
|
443
|
+
* Returns an ActionBuilder - call .execute() to update or .dryRun() for debugging.
|
|
444
|
+
*
|
|
445
|
+
* @param propertiesOrOptions - Properties to update, or options object
|
|
446
|
+
* @param options - Optional settings (journeyId, stageKey)
|
|
447
|
+
* @returns ActionBuilder - call .execute() to update or .dryRun() for payload
|
|
448
|
+
* @throws Error if called on a new (unsaved) record
|
|
449
|
+
*
|
|
450
|
+
* @example
|
|
451
|
+
* ```typescript
|
|
452
|
+
* const record = await odinClient.appointments.get(id);
|
|
453
|
+
* await record.updateAppointmentSalesApp({ ... }).execute();
|
|
454
|
+
*
|
|
455
|
+
* // Dry run (for debugging)
|
|
456
|
+
* const payload = record.updateAppointmentSalesApp({ ... }).dryRun();
|
|
457
|
+
* ```
|
|
458
|
+
*/
|
|
459
|
+
updateAppointmentSalesApp(propertiesOrOptions, options) {
|
|
460
|
+
var _a;
|
|
461
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
462
|
+
throw new Error('updateAppointmentSalesApp requires an existing record. Use accessor.get() first.');
|
|
463
|
+
let properties = {};
|
|
464
|
+
let opts = options;
|
|
465
|
+
if (propertiesOrOptions) {
|
|
466
|
+
if ('journeyId' in propertiesOrOptions || 'stageKey' in propertiesOrOptions) {
|
|
467
|
+
opts = propertiesOrOptions;
|
|
468
|
+
}
|
|
469
|
+
else {
|
|
470
|
+
properties = propertiesOrOptions;
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
const payload = Object.assign({ id: this._record.id, entity: this._record.entity, type: this._record.type, actionName: 'UpdateAppointmentSalesApp', properties, associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined }, opts);
|
|
474
|
+
return new ActionBuilder(this._provider, 'CrmModule', 'Appointment', payload, () => { this._pendingLinks = []; });
|
|
475
|
+
}
|
|
436
476
|
}
|
|
437
477
|
exports.AppointmentRecord = AppointmentRecord;
|
|
438
478
|
// ============================================
|