@d19n/youfibre-odin-sdk 2.0.383 → 2.0.385
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 +23 -1
- package/dist/EntityRegistry.d.ts +2 -0
- package/dist/EntityRegistry.js +2 -0
- package/dist/OdinApiClient.d.ts +4 -0
- package/dist/OdinApiClient.js +8 -0
- package/dist/OdinDbClient.d.ts +4 -0
- package/dist/OdinDbClient.js +8 -0
- package/dist/accessors-v2/TaskAccessor.d.ts +112 -0
- package/dist/accessors-v2/TaskAccessor.js +191 -0
- package/dist/accessors-v2/index.d.ts +1 -0
- package/dist/accessors-v2/index.js +3 -1
- package/dist/actions-v2/MoveTaskToDoneDto.d.ts +67 -0
- package/dist/actions-v2/MoveTaskToDoneDto.js +59 -0
- package/dist/actions-v2/MoveTaskToInProgressDto.d.ts +67 -0
- package/dist/actions-v2/MoveTaskToInProgressDto.js +59 -0
- package/dist/actions-v2/MoveTaskToOnHoldDto.d.ts +67 -0
- package/dist/actions-v2/MoveTaskToOnHoldDto.js +59 -0
- package/dist/actions-v2/MoveTaskToStopDto.d.ts +67 -0
- package/dist/actions-v2/MoveTaskToStopDto.js +59 -0
- package/dist/actions-v2/MoveTaskToTodoDto.d.ts +67 -0
- package/dist/actions-v2/MoveTaskToTodoDto.js +59 -0
- package/dist/actions-v2/UpdateAddressAvailabilityChecksDto.d.ts +79 -0
- package/dist/actions-v2/UpdateAddressAvailabilityChecksDto.js +56 -0
- package/dist/actions-v2/UpdateCustomerDeviceTvDeviceDto.d.ts +84 -0
- package/dist/actions-v2/UpdateCustomerDeviceTvDeviceDto.js +61 -0
- package/dist/api-sdk-v2/RouterPingSnapshotApi.d.ts +2 -2
- package/dist/api-sdk-v2/RouterPingSnapshotApi.js +4 -4
- package/dist/db-accessors-v2/TaskDbAccessor.d.ts +180 -0
- package/dist/db-accessors-v2/TaskDbAccessor.js +265 -0
- package/dist/db-accessors-v2/index.d.ts +1 -0
- package/dist/db-accessors-v2/index.js +3 -1
- package/dist/db-sdk-v2/RouterPingSnapshotDb.d.ts +2 -2
- package/dist/db-sdk-v2/RouterPingSnapshotDb.js +4 -4
- package/dist/entities-v2/Address.d.ts +17 -1
- package/dist/entities-v2/Address.js +4 -0
- package/dist/entities-v2/CustomerDevice.d.ts +21 -1
- package/dist/entities-v2/CustomerDevice.js +2 -0
- package/dist/entities-v2/Order.d.ts +727 -727
- package/dist/entities-v2/Order.js +358 -358
- package/dist/entities-v2/OrderItem.d.ts +5 -1
- package/dist/entities-v2/OrderItem.js +5 -1
- package/dist/entities-v2/RouterPingSnapshot.d.ts +0 -6
- package/dist/entities-v2/RouterPingSnapshot.js +1 -5
- package/dist/records-v2/AddressRecord.d.ts +28 -0
- package/dist/records-v2/AddressRecord.js +37 -0
- package/dist/records-v2/CustomerDeviceRecord.d.ts +28 -0
- package/dist/records-v2/CustomerDeviceRecord.js +37 -0
- package/dist/records-v2/NoteRecord.d.ts +20 -0
- package/dist/records-v2/NoteRecord.js +33 -0
- package/dist/records-v2/TaskRecord.d.ts +283 -0
- package/dist/records-v2/TaskRecord.js +370 -0
- package/dist/records-v2/index.d.ts +1 -0
- package/dist/records-v2/index.js +5 -2
- package/package.json +1 -1
|
@@ -38,11 +38,11 @@ class RouterPingSnapshotDb extends db_provider_1.DbProvider {
|
|
|
38
38
|
// LAZY-LOADED LINK MANAGERS (Public Getters)
|
|
39
39
|
// ============================================
|
|
40
40
|
// Usage remains identical: db.address.list(recordId)
|
|
41
|
-
get
|
|
42
|
-
if (!this.
|
|
43
|
-
this.
|
|
41
|
+
get routerpingsnapshot() {
|
|
42
|
+
if (!this._routerpingsnapshot) {
|
|
43
|
+
this._routerpingsnapshot = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'ServiceModule:RouterPingSnapshot', 'ServiceModule:RouterPingSnapshot', 'CustomerDeviceRouter__RouterPingSnapshot');
|
|
44
44
|
}
|
|
45
|
-
return this.
|
|
45
|
+
return this._routerpingsnapshot;
|
|
46
46
|
}
|
|
47
47
|
// ============================================
|
|
48
48
|
// STANDARD METHODS
|
|
@@ -209,7 +209,11 @@ export declare enum AddressPropertyKeys {
|
|
|
209
209
|
/** Type of address (Shipping, Billing) (Sales - Address) */
|
|
210
210
|
Type = "Type",
|
|
211
211
|
/** the latitude of the property (replaces the misspelled Latititude, CORE-1402) */
|
|
212
|
-
Latitude = "Latitude"
|
|
212
|
+
Latitude = "Latitude",
|
|
213
|
+
/** Availability checks on this address from the website, Uswitch and PowerAltNet in the last 90 days: [{ at, source, route }]. Older entries are dropped on the next check (ORD-666). */
|
|
214
|
+
AvailabilityChecks = "AvailabilityChecks",
|
|
215
|
+
/** When this address was last checked for availability by the website, Uswitch or PowerAltNet (ORD-666). */
|
|
216
|
+
LastAvailabilityCheckAt = "LastAvailabilityCheckAt"
|
|
213
217
|
}
|
|
214
218
|
/**
|
|
215
219
|
* Properties for Address records
|
|
@@ -610,6 +614,18 @@ export interface AddressProperties {
|
|
|
610
614
|
* @hidden This field is hidden in the UI
|
|
611
615
|
*/
|
|
612
616
|
Latitude: string;
|
|
617
|
+
/** Availability checks on this address from the website, Uswitch and PowerAltNet in the last 90 days: [{ at, source, route }]. Older entries are dropped on the next check (ORD-666).
|
|
618
|
+
*
|
|
619
|
+
* @type {JSON}
|
|
620
|
+
* @default
|
|
621
|
+
*/
|
|
622
|
+
AvailabilityChecks: string;
|
|
623
|
+
/** When this address was last checked for availability by the website, Uswitch or PowerAltNet (ORD-666).
|
|
624
|
+
*
|
|
625
|
+
* @type {DATE_TIME}
|
|
626
|
+
* @default
|
|
627
|
+
*/
|
|
628
|
+
LastAvailabilityCheckAt: string;
|
|
613
629
|
}
|
|
614
630
|
/**
|
|
615
631
|
* Address entity from CrmModule
|
|
@@ -192,6 +192,10 @@ var AddressPropertyKeys;
|
|
|
192
192
|
AddressPropertyKeys["Type"] = "Type";
|
|
193
193
|
/** the latitude of the property (replaces the misspelled Latititude, CORE-1402) */
|
|
194
194
|
AddressPropertyKeys["Latitude"] = "Latitude";
|
|
195
|
+
/** Availability checks on this address from the website, Uswitch and PowerAltNet in the last 90 days: [{ at, source, route }]. Older entries are dropped on the next check (ORD-666). */
|
|
196
|
+
AddressPropertyKeys["AvailabilityChecks"] = "AvailabilityChecks";
|
|
197
|
+
/** When this address was last checked for availability by the website, Uswitch or PowerAltNet (ORD-666). */
|
|
198
|
+
AddressPropertyKeys["LastAvailabilityCheckAt"] = "LastAvailabilityCheckAt";
|
|
195
199
|
})(AddressPropertyKeys = exports.AddressPropertyKeys || (exports.AddressPropertyKeys = {}));
|
|
196
200
|
/**
|
|
197
201
|
* Address entity from CrmModule
|
|
@@ -49,7 +49,9 @@ export declare enum CustomerDevicePropertyKeys {
|
|
|
49
49
|
/** Serial Number */
|
|
50
50
|
SerialNumber = "SerialNumber",
|
|
51
51
|
/** Which TV box this is: the original BetterTV box (V1) or the Pleio box (V2) (PORTAPP-3405). */
|
|
52
|
-
Version = "Version"
|
|
52
|
+
Version = "Version",
|
|
53
|
+
/** Set automatically from the device type, MAC and serial, e.g. "TV - AA:BB:CC:DD:EE:FF (SN123)". Do not type it: every device save rewrites it. */
|
|
54
|
+
Name = "Name"
|
|
53
55
|
}
|
|
54
56
|
/**
|
|
55
57
|
* Properties for CustomerDevice records
|
|
@@ -74,6 +76,12 @@ export interface CustomerDeviceProperties {
|
|
|
74
76
|
* @enum {CustomerDeviceVersion}
|
|
75
77
|
*/
|
|
76
78
|
Version: CustomerDeviceVersion;
|
|
79
|
+
/** Set automatically from the device type, MAC and serial, e.g. "TV - AA:BB:CC:DD:EE:FF (SN123)". Do not type it: every device save rewrites it.
|
|
80
|
+
*
|
|
81
|
+
* @type {TEXT}
|
|
82
|
+
* @default
|
|
83
|
+
*/
|
|
84
|
+
Name: string;
|
|
77
85
|
}
|
|
78
86
|
/**
|
|
79
87
|
* Properties for BATTERY CustomerDevice records
|
|
@@ -98,6 +106,12 @@ export interface BatteryCustomerDeviceProperties {
|
|
|
98
106
|
* @enum {CustomerDeviceVersion}
|
|
99
107
|
*/
|
|
100
108
|
Version: CustomerDeviceVersion;
|
|
109
|
+
/** Set automatically from the device type, MAC and serial, e.g. "TV - AA:BB:CC:DD:EE:FF (SN123)". Do not type it: every device save rewrites it.
|
|
110
|
+
*
|
|
111
|
+
* @type {TEXT}
|
|
112
|
+
* @default
|
|
113
|
+
*/
|
|
114
|
+
Name: string;
|
|
101
115
|
}
|
|
102
116
|
/**
|
|
103
117
|
* Properties for TV_DEVICE CustomerDevice records
|
|
@@ -122,6 +136,12 @@ export interface TvDeviceCustomerDeviceProperties {
|
|
|
122
136
|
* @enum {CustomerDeviceVersion}
|
|
123
137
|
*/
|
|
124
138
|
Version: CustomerDeviceVersion;
|
|
139
|
+
/** Set automatically from the device type, MAC and serial, e.g. "TV - AA:BB:CC:DD:EE:FF (SN123)". Do not type it: every device save rewrites it.
|
|
140
|
+
*
|
|
141
|
+
* @type {TEXT}
|
|
142
|
+
* @default
|
|
143
|
+
*/
|
|
144
|
+
Name: string;
|
|
125
145
|
}
|
|
126
146
|
/**
|
|
127
147
|
* CustomerDevice entity from ServiceModule
|
|
@@ -52,6 +52,8 @@ var CustomerDevicePropertyKeys;
|
|
|
52
52
|
CustomerDevicePropertyKeys["SerialNumber"] = "SerialNumber";
|
|
53
53
|
/** Which TV box this is: the original BetterTV box (V1) or the Pleio box (V2) (PORTAPP-3405). */
|
|
54
54
|
CustomerDevicePropertyKeys["Version"] = "Version";
|
|
55
|
+
/** Set automatically from the device type, MAC and serial, e.g. "TV - AA:BB:CC:DD:EE:FF (SN123)". Do not type it: every device save rewrites it. */
|
|
56
|
+
CustomerDevicePropertyKeys["Name"] = "Name";
|
|
55
57
|
})(CustomerDevicePropertyKeys = exports.CustomerDevicePropertyKeys || (exports.CustomerDevicePropertyKeys = {}));
|
|
56
58
|
/**
|
|
57
59
|
* CustomerDevice entity from ServiceModule
|