@d19n/youfibre-odin-sdk 2.0.342 → 2.0.344
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 +26 -2
- package/dist/EntityRegistry.d.ts +4 -0
- package/dist/EntityRegistry.js +4 -0
- package/dist/OdinApiClient.d.ts +8 -0
- package/dist/OdinApiClient.js +16 -0
- package/dist/OdinDbClient.d.ts +8 -0
- package/dist/OdinDbClient.js +16 -0
- package/dist/accessors-v2/DocumentAccessor.d.ts +112 -0
- package/dist/accessors-v2/DocumentAccessor.js +191 -0
- package/dist/accessors-v2/DocumentProcessingAccessor.d.ts +112 -0
- package/dist/accessors-v2/DocumentProcessingAccessor.js +191 -0
- package/dist/accessors-v2/index.d.ts +2 -0
- package/dist/accessors-v2/index.js +7 -3
- package/dist/actions-v2/CreateAiRouteRequestDto.d.ts +1 -1
- package/dist/actions-v2/CreateChurnRequestDto.d.ts +2 -0
- package/dist/actions-v2/CreateChurnRequestDto.js +2 -0
- package/dist/actions-v2/CreateDocumentDto.d.ts +235 -0
- package/dist/actions-v2/CreateDocumentDto.js +57 -0
- package/dist/actions-v2/CreateDocumentProcessingDto.d.ts +192 -0
- package/dist/actions-v2/CreateDocumentProcessingDto.js +57 -0
- package/dist/actions-v2/CreateLeadSalesAppDto.d.ts +9 -17
- package/dist/actions-v2/UpdateDocumentDto.d.ts +236 -0
- package/dist/actions-v2/UpdateDocumentDto.js +59 -0
- package/dist/actions-v2/UpdateMessageReadByCustomerDto.d.ts +72 -0
- package/dist/actions-v2/UpdateMessageReadByCustomerDto.js +56 -0
- package/dist/api-sdk-v2/CommitmentApi.d.ts +48 -0
- package/dist/api-sdk-v2/CommitmentApi.js +155 -0
- package/dist/api-sdk-v2/ContractBuyOutApi.d.ts +2 -0
- package/dist/api-sdk-v2/ContractBuyOutApi.js +6 -0
- package/dist/api-sdk-v2/DocumentApi.d.ts +52 -0
- package/dist/api-sdk-v2/DocumentApi.js +167 -0
- package/dist/api-sdk-v2/DocumentProcessingApi.d.ts +50 -0
- package/dist/api-sdk-v2/DocumentProcessingApi.js +161 -0
- package/dist/api-sdk-v2/EquipmentReturnApi.d.ts +45 -0
- package/dist/api-sdk-v2/EquipmentReturnApi.js +151 -0
- package/dist/api-sdk-v2/EquipmentReturnItemApi.d.ts +45 -0
- package/dist/api-sdk-v2/EquipmentReturnItemApi.js +151 -0
- package/dist/api-sdk-v2/FileApi.d.ts +4 -0
- package/dist/api-sdk-v2/FileApi.js +12 -0
- package/dist/api-sdk-v2/OrderApi.d.ts +2 -0
- package/dist/api-sdk-v2/OrderApi.js +6 -0
- package/dist/db-accessors-v2/DocumentDbAccessor.d.ts +180 -0
- package/dist/db-accessors-v2/DocumentDbAccessor.js +265 -0
- package/dist/db-accessors-v2/DocumentProcessingDbAccessor.d.ts +180 -0
- package/dist/db-accessors-v2/DocumentProcessingDbAccessor.js +265 -0
- package/dist/db-accessors-v2/index.d.ts +2 -0
- package/dist/db-accessors-v2/index.js +7 -3
- package/dist/db-sdk-v2/CommitmentDb.d.ts +120 -0
- package/dist/db-sdk-v2/CommitmentDb.js +204 -0
- package/dist/db-sdk-v2/ContractBuyOutDb.d.ts +2 -0
- package/dist/db-sdk-v2/ContractBuyOutDb.js +6 -0
- package/dist/db-sdk-v2/DocumentDb.d.ts +124 -0
- package/dist/db-sdk-v2/DocumentDb.js +216 -0
- package/dist/db-sdk-v2/DocumentProcessingDb.d.ts +122 -0
- package/dist/db-sdk-v2/DocumentProcessingDb.js +210 -0
- package/dist/db-sdk-v2/EquipmentReturnDb.d.ts +117 -0
- package/dist/db-sdk-v2/EquipmentReturnDb.js +200 -0
- package/dist/db-sdk-v2/EquipmentReturnItemDb.d.ts +117 -0
- package/dist/db-sdk-v2/EquipmentReturnItemDb.js +200 -0
- package/dist/db-sdk-v2/FileDb.d.ts +4 -0
- package/dist/db-sdk-v2/FileDb.js +12 -0
- package/dist/db-sdk-v2/OrderDb.d.ts +2 -0
- package/dist/db-sdk-v2/OrderDb.js +6 -0
- package/dist/entities-v2/AiRouteRequest.d.ts +23 -11
- package/dist/entities-v2/AiRouteRequest.js +15 -3
- package/dist/entities-v2/Commitment.d.ts +154 -0
- package/dist/entities-v2/Commitment.js +115 -0
- package/dist/entities-v2/ContractBuyOut.d.ts +7 -0
- package/dist/entities-v2/ContractBuyOut.js +5 -1
- package/dist/entities-v2/Document.d.ts +1145 -0
- package/dist/entities-v2/Document.js +220 -0
- package/dist/entities-v2/DocumentProcessing.d.ts +272 -0
- package/dist/entities-v2/DocumentProcessing.js +156 -0
- package/dist/entities-v2/EquipmentReturn.d.ts +66 -0
- package/dist/entities-v2/EquipmentReturn.js +64 -0
- package/dist/entities-v2/EquipmentReturnItem.d.ts +66 -0
- package/dist/entities-v2/EquipmentReturnItem.js +64 -0
- package/dist/entities-v2/File.d.ts +81 -1
- package/dist/entities-v2/File.js +9 -1
- package/dist/entities-v2/Message.d.ts +27 -1
- package/dist/entities-v2/Message.js +2 -0
- package/dist/entities-v2/Order.d.ts +49 -8
- package/dist/entities-v2/Order.js +24 -4
- package/dist/entities-v2/YfStockCount.d.ts +197 -1
- package/dist/entities-v2/YfStockCount.js +28 -0
- package/dist/records-v2/ContractBuyOutRecord.d.ts +20 -0
- package/dist/records-v2/ContractBuyOutRecord.js +33 -0
- package/dist/records-v2/DocumentProcessingRecord.d.ts +227 -0
- package/dist/records-v2/DocumentProcessingRecord.js +315 -0
- package/dist/records-v2/DocumentRecord.d.ts +355 -0
- package/dist/records-v2/DocumentRecord.js +468 -0
- package/dist/records-v2/FileRecord.d.ts +59 -3
- package/dist/records-v2/FileRecord.js +83 -1
- package/dist/records-v2/MessageRecord.d.ts +28 -0
- package/dist/records-v2/MessageRecord.js +37 -0
- package/dist/records-v2/index.d.ts +2 -0
- package/dist/records-v2/index.js +10 -4
- package/package.json +1 -1
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EquipmentReturn Entity Definition
|
|
3
|
+
*
|
|
4
|
+
* One warehouse inspection of one returned parcel, against the collection or replacement work order that asked for it back. Holds the inspector, the notes and the verdict; the devices themselves are EquipmentReturnItem rows.
|
|
5
|
+
*
|
|
6
|
+
* @module FieldServiceModule
|
|
7
|
+
* @entity EquipmentReturn
|
|
8
|
+
* @schemaId d74a5bd0-d153-4dfb-ad8a-6c3233a3e0ce
|
|
9
|
+
*
|
|
10
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
11
|
+
* Generated from Odin schema definition
|
|
12
|
+
*/
|
|
13
|
+
import { OdinRecord } from '@d19n/odin-types/dist/core';
|
|
14
|
+
/**
|
|
15
|
+
* Available types for EquipmentReturn records
|
|
16
|
+
*/
|
|
17
|
+
export declare enum EquipmentReturnEntityTypes {
|
|
18
|
+
/** This is the default record type */
|
|
19
|
+
DEFAULT = "DEFAULT"
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Property keys for EquipmentReturn
|
|
23
|
+
* Use these constants instead of string literals for type safety
|
|
24
|
+
*/
|
|
25
|
+
export declare enum EquipmentReturnPropertyKeys {
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Properties for EquipmentReturn records
|
|
29
|
+
*
|
|
30
|
+
* @see FieldServiceModule:EquipmentReturn
|
|
31
|
+
*/
|
|
32
|
+
export interface EquipmentReturnProperties {
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* EquipmentReturn entity from FieldServiceModule
|
|
36
|
+
*
|
|
37
|
+
* One warehouse inspection of one returned parcel, against the collection or replacement work order that asked for it back. Holds the inspector, the notes and the verdict; the devices themselves are EquipmentReturnItem rows.
|
|
38
|
+
*
|
|
39
|
+
* @module FieldServiceModule
|
|
40
|
+
* @entity EquipmentReturn
|
|
41
|
+
* @schemaId d74a5bd0-d153-4dfb-ad8a-6c3233a3e0ce
|
|
42
|
+
* @recordPrefix EQR
|
|
43
|
+
* @capabilities searchable, updateable, undeletable, triggerable
|
|
44
|
+
*/
|
|
45
|
+
export declare class EquipmentReturn extends OdinRecord<EquipmentReturnProperties> {
|
|
46
|
+
entity: 'FieldServiceModule:EquipmentReturn';
|
|
47
|
+
type: EquipmentReturnEntityTypes;
|
|
48
|
+
schemaId: 'd74a5bd0-d153-4dfb-ad8a-6c3233a3e0ce';
|
|
49
|
+
properties: EquipmentReturnProperties;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* RabbitMQ routing keys for EquipmentReturn events
|
|
53
|
+
*/
|
|
54
|
+
export declare const ROUTING_KEY_EQUIPMENT_RETURN_CREATED = "FieldServiceModule.EquipmentReturn.SubDbRecordCreated";
|
|
55
|
+
export declare const ROUTING_KEY_EQUIPMENT_RETURN_UPDATED = "FieldServiceModule.EquipmentReturn.SubDbRecordUpdated";
|
|
56
|
+
export declare const ROUTING_KEY_EQUIPMENT_RETURN_DELETED = "FieldServiceModule.EquipmentReturn.SubDbRecordDeleted";
|
|
57
|
+
/**
|
|
58
|
+
* Type-specific routing keys for EquipmentReturn events
|
|
59
|
+
* Subscribe to these for events on specific entity types only
|
|
60
|
+
*/
|
|
61
|
+
/** This is the default record type created */
|
|
62
|
+
export declare const ROUTING_KEY_EQUIPMENT_RETURN_DEFAULT_CREATED = "FieldServiceModule.EquipmentReturn.DEFAULT.SubDbRecordCreated";
|
|
63
|
+
/** This is the default record type updated */
|
|
64
|
+
export declare const ROUTING_KEY_EQUIPMENT_RETURN_DEFAULT_UPDATED = "FieldServiceModule.EquipmentReturn.DEFAULT.SubDbRecordUpdated";
|
|
65
|
+
/** This is the default record type deleted */
|
|
66
|
+
export declare const ROUTING_KEY_EQUIPMENT_RETURN_DEFAULT_DELETED = "FieldServiceModule.EquipmentReturn.DEFAULT.SubDbRecordDeleted";
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* EquipmentReturn Entity Definition
|
|
4
|
+
*
|
|
5
|
+
* One warehouse inspection of one returned parcel, against the collection or replacement work order that asked for it back. Holds the inspector, the notes and the verdict; the devices themselves are EquipmentReturnItem rows.
|
|
6
|
+
*
|
|
7
|
+
* @module FieldServiceModule
|
|
8
|
+
* @entity EquipmentReturn
|
|
9
|
+
* @schemaId d74a5bd0-d153-4dfb-ad8a-6c3233a3e0ce
|
|
10
|
+
*
|
|
11
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
12
|
+
* Generated from Odin schema definition
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.ROUTING_KEY_EQUIPMENT_RETURN_DEFAULT_DELETED = exports.ROUTING_KEY_EQUIPMENT_RETURN_DEFAULT_UPDATED = exports.ROUTING_KEY_EQUIPMENT_RETURN_DEFAULT_CREATED = exports.ROUTING_KEY_EQUIPMENT_RETURN_DELETED = exports.ROUTING_KEY_EQUIPMENT_RETURN_UPDATED = exports.ROUTING_KEY_EQUIPMENT_RETURN_CREATED = exports.EquipmentReturn = exports.EquipmentReturnPropertyKeys = exports.EquipmentReturnEntityTypes = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* Available types for EquipmentReturn records
|
|
19
|
+
*/
|
|
20
|
+
var EquipmentReturnEntityTypes;
|
|
21
|
+
(function (EquipmentReturnEntityTypes) {
|
|
22
|
+
/** This is the default record type */
|
|
23
|
+
EquipmentReturnEntityTypes["DEFAULT"] = "DEFAULT";
|
|
24
|
+
})(EquipmentReturnEntityTypes = exports.EquipmentReturnEntityTypes || (exports.EquipmentReturnEntityTypes = {}));
|
|
25
|
+
/**
|
|
26
|
+
* Property keys for EquipmentReturn
|
|
27
|
+
* Use these constants instead of string literals for type safety
|
|
28
|
+
*/
|
|
29
|
+
var EquipmentReturnPropertyKeys;
|
|
30
|
+
(function (EquipmentReturnPropertyKeys) {
|
|
31
|
+
})(EquipmentReturnPropertyKeys = exports.EquipmentReturnPropertyKeys || (exports.EquipmentReturnPropertyKeys = {}));
|
|
32
|
+
/**
|
|
33
|
+
* EquipmentReturn entity from FieldServiceModule
|
|
34
|
+
*
|
|
35
|
+
* One warehouse inspection of one returned parcel, against the collection or replacement work order that asked for it back. Holds the inspector, the notes and the verdict; the devices themselves are EquipmentReturnItem rows.
|
|
36
|
+
*
|
|
37
|
+
* @module FieldServiceModule
|
|
38
|
+
* @entity EquipmentReturn
|
|
39
|
+
* @schemaId d74a5bd0-d153-4dfb-ad8a-6c3233a3e0ce
|
|
40
|
+
* @recordPrefix EQR
|
|
41
|
+
* @capabilities searchable, updateable, undeletable, triggerable
|
|
42
|
+
*/
|
|
43
|
+
class EquipmentReturn extends core_1.OdinRecord {
|
|
44
|
+
}
|
|
45
|
+
exports.EquipmentReturn = EquipmentReturn;
|
|
46
|
+
// ============================================
|
|
47
|
+
// RABBITMQ EVENT ROUTING KEYS
|
|
48
|
+
// ============================================
|
|
49
|
+
/**
|
|
50
|
+
* RabbitMQ routing keys for EquipmentReturn events
|
|
51
|
+
*/
|
|
52
|
+
exports.ROUTING_KEY_EQUIPMENT_RETURN_CREATED = 'FieldServiceModule.EquipmentReturn.SubDbRecordCreated';
|
|
53
|
+
exports.ROUTING_KEY_EQUIPMENT_RETURN_UPDATED = 'FieldServiceModule.EquipmentReturn.SubDbRecordUpdated';
|
|
54
|
+
exports.ROUTING_KEY_EQUIPMENT_RETURN_DELETED = 'FieldServiceModule.EquipmentReturn.SubDbRecordDeleted';
|
|
55
|
+
/**
|
|
56
|
+
* Type-specific routing keys for EquipmentReturn events
|
|
57
|
+
* Subscribe to these for events on specific entity types only
|
|
58
|
+
*/
|
|
59
|
+
/** This is the default record type created */
|
|
60
|
+
exports.ROUTING_KEY_EQUIPMENT_RETURN_DEFAULT_CREATED = 'FieldServiceModule.EquipmentReturn.DEFAULT.SubDbRecordCreated';
|
|
61
|
+
/** This is the default record type updated */
|
|
62
|
+
exports.ROUTING_KEY_EQUIPMENT_RETURN_DEFAULT_UPDATED = 'FieldServiceModule.EquipmentReturn.DEFAULT.SubDbRecordUpdated';
|
|
63
|
+
/** This is the default record type deleted */
|
|
64
|
+
exports.ROUTING_KEY_EQUIPMENT_RETURN_DEFAULT_DELETED = 'FieldServiceModule.EquipmentReturn.DEFAULT.SubDbRecordDeleted';
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EquipmentReturnItem Entity Definition
|
|
3
|
+
*
|
|
4
|
+
* One device on one EquipmentReturn: whether it came back and what grade it was given. Links to the device record, so no serial matching and no five-slot cap. A row is written for a device that did not come back too.
|
|
5
|
+
*
|
|
6
|
+
* @module FieldServiceModule
|
|
7
|
+
* @entity EquipmentReturnItem
|
|
8
|
+
* @schemaId bb475f2a-2770-452c-b8d9-09d2d4b7a8b1
|
|
9
|
+
*
|
|
10
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
11
|
+
* Generated from Odin schema definition
|
|
12
|
+
*/
|
|
13
|
+
import { OdinRecord } from '@d19n/odin-types/dist/core';
|
|
14
|
+
/**
|
|
15
|
+
* Available types for EquipmentReturnItem records
|
|
16
|
+
*/
|
|
17
|
+
export declare enum EquipmentReturnItemEntityTypes {
|
|
18
|
+
/** This is the default record type */
|
|
19
|
+
DEFAULT = "DEFAULT"
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Property keys for EquipmentReturnItem
|
|
23
|
+
* Use these constants instead of string literals for type safety
|
|
24
|
+
*/
|
|
25
|
+
export declare enum EquipmentReturnItemPropertyKeys {
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Properties for EquipmentReturnItem records
|
|
29
|
+
*
|
|
30
|
+
* @see FieldServiceModule:EquipmentReturnItem
|
|
31
|
+
*/
|
|
32
|
+
export interface EquipmentReturnItemProperties {
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* EquipmentReturnItem entity from FieldServiceModule
|
|
36
|
+
*
|
|
37
|
+
* One device on one EquipmentReturn: whether it came back and what grade it was given. Links to the device record, so no serial matching and no five-slot cap. A row is written for a device that did not come back too.
|
|
38
|
+
*
|
|
39
|
+
* @module FieldServiceModule
|
|
40
|
+
* @entity EquipmentReturnItem
|
|
41
|
+
* @schemaId bb475f2a-2770-452c-b8d9-09d2d4b7a8b1
|
|
42
|
+
* @recordPrefix EQRI
|
|
43
|
+
* @capabilities searchable, updateable, undeletable, triggerable
|
|
44
|
+
*/
|
|
45
|
+
export declare class EquipmentReturnItem extends OdinRecord<EquipmentReturnItemProperties> {
|
|
46
|
+
entity: 'FieldServiceModule:EquipmentReturnItem';
|
|
47
|
+
type: EquipmentReturnItemEntityTypes;
|
|
48
|
+
schemaId: 'bb475f2a-2770-452c-b8d9-09d2d4b7a8b1';
|
|
49
|
+
properties: EquipmentReturnItemProperties;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* RabbitMQ routing keys for EquipmentReturnItem events
|
|
53
|
+
*/
|
|
54
|
+
export declare const ROUTING_KEY_EQUIPMENT_RETURN_ITEM_CREATED = "FieldServiceModule.EquipmentReturnItem.SubDbRecordCreated";
|
|
55
|
+
export declare const ROUTING_KEY_EQUIPMENT_RETURN_ITEM_UPDATED = "FieldServiceModule.EquipmentReturnItem.SubDbRecordUpdated";
|
|
56
|
+
export declare const ROUTING_KEY_EQUIPMENT_RETURN_ITEM_DELETED = "FieldServiceModule.EquipmentReturnItem.SubDbRecordDeleted";
|
|
57
|
+
/**
|
|
58
|
+
* Type-specific routing keys for EquipmentReturnItem events
|
|
59
|
+
* Subscribe to these for events on specific entity types only
|
|
60
|
+
*/
|
|
61
|
+
/** This is the default record type created */
|
|
62
|
+
export declare const ROUTING_KEY_EQUIPMENT_RETURN_ITEM_DEFAULT_CREATED = "FieldServiceModule.EquipmentReturnItem.DEFAULT.SubDbRecordCreated";
|
|
63
|
+
/** This is the default record type updated */
|
|
64
|
+
export declare const ROUTING_KEY_EQUIPMENT_RETURN_ITEM_DEFAULT_UPDATED = "FieldServiceModule.EquipmentReturnItem.DEFAULT.SubDbRecordUpdated";
|
|
65
|
+
/** This is the default record type deleted */
|
|
66
|
+
export declare const ROUTING_KEY_EQUIPMENT_RETURN_ITEM_DEFAULT_DELETED = "FieldServiceModule.EquipmentReturnItem.DEFAULT.SubDbRecordDeleted";
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* EquipmentReturnItem Entity Definition
|
|
4
|
+
*
|
|
5
|
+
* One device on one EquipmentReturn: whether it came back and what grade it was given. Links to the device record, so no serial matching and no five-slot cap. A row is written for a device that did not come back too.
|
|
6
|
+
*
|
|
7
|
+
* @module FieldServiceModule
|
|
8
|
+
* @entity EquipmentReturnItem
|
|
9
|
+
* @schemaId bb475f2a-2770-452c-b8d9-09d2d4b7a8b1
|
|
10
|
+
*
|
|
11
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
12
|
+
* Generated from Odin schema definition
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.ROUTING_KEY_EQUIPMENT_RETURN_ITEM_DEFAULT_DELETED = exports.ROUTING_KEY_EQUIPMENT_RETURN_ITEM_DEFAULT_UPDATED = exports.ROUTING_KEY_EQUIPMENT_RETURN_ITEM_DEFAULT_CREATED = exports.ROUTING_KEY_EQUIPMENT_RETURN_ITEM_DELETED = exports.ROUTING_KEY_EQUIPMENT_RETURN_ITEM_UPDATED = exports.ROUTING_KEY_EQUIPMENT_RETURN_ITEM_CREATED = exports.EquipmentReturnItem = exports.EquipmentReturnItemPropertyKeys = exports.EquipmentReturnItemEntityTypes = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* Available types for EquipmentReturnItem records
|
|
19
|
+
*/
|
|
20
|
+
var EquipmentReturnItemEntityTypes;
|
|
21
|
+
(function (EquipmentReturnItemEntityTypes) {
|
|
22
|
+
/** This is the default record type */
|
|
23
|
+
EquipmentReturnItemEntityTypes["DEFAULT"] = "DEFAULT";
|
|
24
|
+
})(EquipmentReturnItemEntityTypes = exports.EquipmentReturnItemEntityTypes || (exports.EquipmentReturnItemEntityTypes = {}));
|
|
25
|
+
/**
|
|
26
|
+
* Property keys for EquipmentReturnItem
|
|
27
|
+
* Use these constants instead of string literals for type safety
|
|
28
|
+
*/
|
|
29
|
+
var EquipmentReturnItemPropertyKeys;
|
|
30
|
+
(function (EquipmentReturnItemPropertyKeys) {
|
|
31
|
+
})(EquipmentReturnItemPropertyKeys = exports.EquipmentReturnItemPropertyKeys || (exports.EquipmentReturnItemPropertyKeys = {}));
|
|
32
|
+
/**
|
|
33
|
+
* EquipmentReturnItem entity from FieldServiceModule
|
|
34
|
+
*
|
|
35
|
+
* One device on one EquipmentReturn: whether it came back and what grade it was given. Links to the device record, so no serial matching and no five-slot cap. A row is written for a device that did not come back too.
|
|
36
|
+
*
|
|
37
|
+
* @module FieldServiceModule
|
|
38
|
+
* @entity EquipmentReturnItem
|
|
39
|
+
* @schemaId bb475f2a-2770-452c-b8d9-09d2d4b7a8b1
|
|
40
|
+
* @recordPrefix EQRI
|
|
41
|
+
* @capabilities searchable, updateable, undeletable, triggerable
|
|
42
|
+
*/
|
|
43
|
+
class EquipmentReturnItem extends core_1.OdinRecord {
|
|
44
|
+
}
|
|
45
|
+
exports.EquipmentReturnItem = EquipmentReturnItem;
|
|
46
|
+
// ============================================
|
|
47
|
+
// RABBITMQ EVENT ROUTING KEYS
|
|
48
|
+
// ============================================
|
|
49
|
+
/**
|
|
50
|
+
* RabbitMQ routing keys for EquipmentReturnItem events
|
|
51
|
+
*/
|
|
52
|
+
exports.ROUTING_KEY_EQUIPMENT_RETURN_ITEM_CREATED = 'FieldServiceModule.EquipmentReturnItem.SubDbRecordCreated';
|
|
53
|
+
exports.ROUTING_KEY_EQUIPMENT_RETURN_ITEM_UPDATED = 'FieldServiceModule.EquipmentReturnItem.SubDbRecordUpdated';
|
|
54
|
+
exports.ROUTING_KEY_EQUIPMENT_RETURN_ITEM_DELETED = 'FieldServiceModule.EquipmentReturnItem.SubDbRecordDeleted';
|
|
55
|
+
/**
|
|
56
|
+
* Type-specific routing keys for EquipmentReturnItem events
|
|
57
|
+
* Subscribe to these for events on specific entity types only
|
|
58
|
+
*/
|
|
59
|
+
/** This is the default record type created */
|
|
60
|
+
exports.ROUTING_KEY_EQUIPMENT_RETURN_ITEM_DEFAULT_CREATED = 'FieldServiceModule.EquipmentReturnItem.DEFAULT.SubDbRecordCreated';
|
|
61
|
+
/** This is the default record type updated */
|
|
62
|
+
exports.ROUTING_KEY_EQUIPMENT_RETURN_ITEM_DEFAULT_UPDATED = 'FieldServiceModule.EquipmentReturnItem.DEFAULT.SubDbRecordUpdated';
|
|
63
|
+
/** This is the default record type deleted */
|
|
64
|
+
exports.ROUTING_KEY_EQUIPMENT_RETURN_ITEM_DEFAULT_DELETED = 'FieldServiceModule.EquipmentReturnItem.DEFAULT.SubDbRecordDeleted';
|
|
@@ -74,6 +74,8 @@ import { UgInProgressAuditProperties } from './UgInProgressAudit';
|
|
|
74
74
|
import { PgDirectDebitFileProperties } from './PgDirectDebitFile';
|
|
75
75
|
import { YfWifiSurveyProperties } from './YfWifiSurvey';
|
|
76
76
|
import { YfFieldVisitOutcomeFormProperties } from './YfFieldVisitOutcomeForm';
|
|
77
|
+
import { DocumentProperties } from './Document';
|
|
78
|
+
import { DocumentProcessingProperties } from './DocumentProcessing';
|
|
77
79
|
/**
|
|
78
80
|
* Available types for File records
|
|
79
81
|
*/
|
|
@@ -97,7 +99,9 @@ export declare enum FileEntityTypes {
|
|
|
97
99
|
/** Openreach A55 */
|
|
98
100
|
OPENREACH_A55 = "OPENREACH_A55",
|
|
99
101
|
/** OTDR evidence for L1 and L2 closures */
|
|
100
|
-
OTDR = "OTDR"
|
|
102
|
+
OTDR = "OTDR",
|
|
103
|
+
/** JSON detail of a document pipeline run, linked to its AiModule:DocumentProcessing row (e.g. per-question verdicts and reasons). */
|
|
104
|
+
PROCESSING_OUTPUT = "PROCESSING_OUTPUT"
|
|
101
105
|
}
|
|
102
106
|
/**
|
|
103
107
|
* Valid values for File.DataStore
|
|
@@ -822,6 +826,72 @@ export interface OtdrFileProperties {
|
|
|
822
826
|
*/
|
|
823
827
|
MetaData: string;
|
|
824
828
|
}
|
|
829
|
+
/**
|
|
830
|
+
* Properties for PROCESSING_OUTPUT File records
|
|
831
|
+
*
|
|
832
|
+
* @see SchemaModule:File
|
|
833
|
+
*/
|
|
834
|
+
export interface ProcessingOutputFileProperties {
|
|
835
|
+
/** the storage provider (Platform - File)
|
|
836
|
+
*
|
|
837
|
+
* @type {ENUM}
|
|
838
|
+
* @default AWS_S3
|
|
839
|
+
* @enum {FileDataStore}
|
|
840
|
+
*/
|
|
841
|
+
DataStore: FileDataStore;
|
|
842
|
+
/** the full url for the object in an S3 bucket (Platform - File)
|
|
843
|
+
*
|
|
844
|
+
* @type {TEXT}
|
|
845
|
+
* @default
|
|
846
|
+
*/
|
|
847
|
+
Url: string;
|
|
848
|
+
/** the object key for aws S3 (Platform - File)
|
|
849
|
+
*
|
|
850
|
+
* @type {TEXT}
|
|
851
|
+
* @default
|
|
852
|
+
*/
|
|
853
|
+
Key: string;
|
|
854
|
+
/** the bucket for aws S3 (Platform - File)
|
|
855
|
+
*
|
|
856
|
+
* @type {TEXT}
|
|
857
|
+
* @default
|
|
858
|
+
*/
|
|
859
|
+
Bucket: string;
|
|
860
|
+
/** the mimetype for the file (Platform - File)
|
|
861
|
+
*
|
|
862
|
+
* @type {TEXT}
|
|
863
|
+
* @default
|
|
864
|
+
*/
|
|
865
|
+
Mimetype: string;
|
|
866
|
+
/** longitude and latitude coordinates (Platform - File)
|
|
867
|
+
*
|
|
868
|
+
* @type {TEXT}
|
|
869
|
+
*/
|
|
870
|
+
Coordinates: string;
|
|
871
|
+
/** Image source - type of device (Platform - File)
|
|
872
|
+
*
|
|
873
|
+
* @type {ENUM}
|
|
874
|
+
* @enum {FileDevice}
|
|
875
|
+
* @hidden This field is hidden in the UI
|
|
876
|
+
*/
|
|
877
|
+
Device: FileDevice;
|
|
878
|
+
/** the category this file belongs to (Platform - File)
|
|
879
|
+
*
|
|
880
|
+
* @type {ENUM}
|
|
881
|
+
* @enum {FileCategory}
|
|
882
|
+
*/
|
|
883
|
+
Category: FileCategory;
|
|
884
|
+
/** the unique hash for the file (Platform - File)
|
|
885
|
+
*
|
|
886
|
+
* @type {TEXT}
|
|
887
|
+
*/
|
|
888
|
+
HashId: string;
|
|
889
|
+
/** metadata can store any JSON content (Platform - File)
|
|
890
|
+
*
|
|
891
|
+
* @type {JSON}
|
|
892
|
+
*/
|
|
893
|
+
MetaData: string;
|
|
894
|
+
}
|
|
825
895
|
/**
|
|
826
896
|
* File entity from SchemaModule
|
|
827
897
|
*
|
|
@@ -964,6 +1034,10 @@ export declare class File extends OdinRecord<FileProperties> {
|
|
|
964
1034
|
YfWifiSurvey: OdinLink<LinkedOdinRecord<YfWifiSurveyProperties>>;
|
|
965
1035
|
/** Linked YfFieldVisitOutcomeForm records (YfFieldVisitOutcomeForm__File) */
|
|
966
1036
|
YfFieldVisitOutcomeForm: OdinLink<LinkedOdinRecord<YfFieldVisitOutcomeFormProperties>>;
|
|
1037
|
+
/** Linked Document records (Document__File) */
|
|
1038
|
+
Document: OdinLink<LinkedOdinRecord<DocumentProperties>>;
|
|
1039
|
+
/** Linked DocumentProcessing records (DocumentProcessing__File) */
|
|
1040
|
+
DocumentProcessing: OdinLink<LinkedOdinRecord<DocumentProcessingProperties>>;
|
|
967
1041
|
}
|
|
968
1042
|
/**
|
|
969
1043
|
* RabbitMQ routing keys for File events
|
|
@@ -1035,6 +1109,12 @@ export declare const ROUTING_KEY_FILE_OTDR_CREATED = "SchemaModule.File.OTDR.Sub
|
|
|
1035
1109
|
export declare const ROUTING_KEY_FILE_OTDR_UPDATED = "SchemaModule.File.OTDR.SubDbRecordUpdated";
|
|
1036
1110
|
/** OTDR evidence for L1 and L2 closures deleted */
|
|
1037
1111
|
export declare const ROUTING_KEY_FILE_OTDR_DELETED = "SchemaModule.File.OTDR.SubDbRecordDeleted";
|
|
1112
|
+
/** JSON detail of a document pipeline run, linked to its AiModule:DocumentProcessing row (e.g. per-question verdicts and reasons). created */
|
|
1113
|
+
export declare const ROUTING_KEY_FILE_PROCESSING_OUTPUT_CREATED = "SchemaModule.File.PROCESSING_OUTPUT.SubDbRecordCreated";
|
|
1114
|
+
/** JSON detail of a document pipeline run, linked to its AiModule:DocumentProcessing row (e.g. per-question verdicts and reasons). updated */
|
|
1115
|
+
export declare const ROUTING_KEY_FILE_PROCESSING_OUTPUT_UPDATED = "SchemaModule.File.PROCESSING_OUTPUT.SubDbRecordUpdated";
|
|
1116
|
+
/** JSON detail of a document pipeline run, linked to its AiModule:DocumentProcessing row (e.g. per-question verdicts and reasons). deleted */
|
|
1117
|
+
export declare const ROUTING_KEY_FILE_PROCESSING_OUTPUT_DELETED = "SchemaModule.File.PROCESSING_OUTPUT.SubDbRecordDeleted";
|
|
1038
1118
|
/** Event: File__Note link created */
|
|
1039
1119
|
export declare const ROUTING_KEY_LINK_FILE_NOTE_CREATED = "SchemaModule.File.Note.SubDbRecordAssociationCreated";
|
|
1040
1120
|
/** Event: File__Note link deleted */
|
package/dist/entities-v2/File.js
CHANGED
|
@@ -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_LINK_FILE_NOTE_DELETED = exports.ROUTING_KEY_LINK_FILE_NOTE_CREATED = exports.ROUTING_KEY_FILE_OTDR_DELETED = exports.ROUTING_KEY_FILE_OTDR_UPDATED = exports.ROUTING_KEY_FILE_OTDR_CREATED = exports.ROUTING_KEY_FILE_OPENREACH_A55_DELETED = exports.ROUTING_KEY_FILE_OPENREACH_A55_UPDATED = exports.ROUTING_KEY_FILE_OPENREACH_A55_CREATED = exports.ROUTING_KEY_FILE_NA_SOLUTION_EVIDENCE_DELETED = exports.ROUTING_KEY_FILE_NA_SOLUTION_EVIDENCE_UPDATED = exports.ROUTING_KEY_FILE_NA_SOLUTION_EVIDENCE_CREATED = exports.ROUTING_KEY_FILE_NA_PROBLEM_EVIDENCE_DELETED = exports.ROUTING_KEY_FILE_NA_PROBLEM_EVIDENCE_UPDATED = exports.ROUTING_KEY_FILE_NA_PROBLEM_EVIDENCE_CREATED = exports.ROUTING_KEY_FILE_INVOICE_DELETED = exports.ROUTING_KEY_FILE_INVOICE_UPDATED = exports.ROUTING_KEY_FILE_INVOICE_CREATED = exports.ROUTING_KEY_FILE_EMAIL_DELETED = exports.ROUTING_KEY_FILE_EMAIL_UPDATED = exports.ROUTING_KEY_FILE_EMAIL_CREATED = exports.ROUTING_KEY_FILE_DEFAULT_DELETED = exports.ROUTING_KEY_FILE_DEFAULT_UPDATED = exports.ROUTING_KEY_FILE_DEFAULT_CREATED = exports.ROUTING_KEY_FILE_CSV_DELETED = exports.ROUTING_KEY_FILE_CSV_UPDATED = exports.ROUTING_KEY_FILE_CSV_CREATED = exports.ROUTING_KEY_FILE_CBO_FINAL_BILL_DELETED = exports.ROUTING_KEY_FILE_CBO_FINAL_BILL_UPDATED = exports.ROUTING_KEY_FILE_CBO_FINAL_BILL_CREATED = exports.ROUTING_KEY_FILE_AFP_INVOICE_DELETED = exports.ROUTING_KEY_FILE_AFP_INVOICE_UPDATED = exports.ROUTING_KEY_FILE_AFP_INVOICE_CREATED = exports.ROUTING_KEY_FILE_DELETED = exports.ROUTING_KEY_FILE_UPDATED = exports.ROUTING_KEY_FILE_CREATED = exports.File = exports.FilePropertyKeys = exports.FileCategory = exports.FileDevice = exports.FileDataStore = exports.FileEntityTypes = void 0;
|
|
15
|
+
exports.ROUTING_KEY_LINK_FILE_NOTE_DELETED = exports.ROUTING_KEY_LINK_FILE_NOTE_CREATED = exports.ROUTING_KEY_FILE_PROCESSING_OUTPUT_DELETED = exports.ROUTING_KEY_FILE_PROCESSING_OUTPUT_UPDATED = exports.ROUTING_KEY_FILE_PROCESSING_OUTPUT_CREATED = exports.ROUTING_KEY_FILE_OTDR_DELETED = exports.ROUTING_KEY_FILE_OTDR_UPDATED = exports.ROUTING_KEY_FILE_OTDR_CREATED = exports.ROUTING_KEY_FILE_OPENREACH_A55_DELETED = exports.ROUTING_KEY_FILE_OPENREACH_A55_UPDATED = exports.ROUTING_KEY_FILE_OPENREACH_A55_CREATED = exports.ROUTING_KEY_FILE_NA_SOLUTION_EVIDENCE_DELETED = exports.ROUTING_KEY_FILE_NA_SOLUTION_EVIDENCE_UPDATED = exports.ROUTING_KEY_FILE_NA_SOLUTION_EVIDENCE_CREATED = exports.ROUTING_KEY_FILE_NA_PROBLEM_EVIDENCE_DELETED = exports.ROUTING_KEY_FILE_NA_PROBLEM_EVIDENCE_UPDATED = exports.ROUTING_KEY_FILE_NA_PROBLEM_EVIDENCE_CREATED = exports.ROUTING_KEY_FILE_INVOICE_DELETED = exports.ROUTING_KEY_FILE_INVOICE_UPDATED = exports.ROUTING_KEY_FILE_INVOICE_CREATED = exports.ROUTING_KEY_FILE_EMAIL_DELETED = exports.ROUTING_KEY_FILE_EMAIL_UPDATED = exports.ROUTING_KEY_FILE_EMAIL_CREATED = exports.ROUTING_KEY_FILE_DEFAULT_DELETED = exports.ROUTING_KEY_FILE_DEFAULT_UPDATED = exports.ROUTING_KEY_FILE_DEFAULT_CREATED = exports.ROUTING_KEY_FILE_CSV_DELETED = exports.ROUTING_KEY_FILE_CSV_UPDATED = exports.ROUTING_KEY_FILE_CSV_CREATED = exports.ROUTING_KEY_FILE_CBO_FINAL_BILL_DELETED = exports.ROUTING_KEY_FILE_CBO_FINAL_BILL_UPDATED = exports.ROUTING_KEY_FILE_CBO_FINAL_BILL_CREATED = exports.ROUTING_KEY_FILE_AFP_INVOICE_DELETED = exports.ROUTING_KEY_FILE_AFP_INVOICE_UPDATED = exports.ROUTING_KEY_FILE_AFP_INVOICE_CREATED = exports.ROUTING_KEY_FILE_DELETED = exports.ROUTING_KEY_FILE_UPDATED = exports.ROUTING_KEY_FILE_CREATED = exports.File = exports.FilePropertyKeys = exports.FileCategory = exports.FileDevice = exports.FileDataStore = exports.FileEntityTypes = void 0;
|
|
16
16
|
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
17
|
/**
|
|
18
18
|
* Available types for File records
|
|
@@ -39,6 +39,8 @@ var FileEntityTypes;
|
|
|
39
39
|
FileEntityTypes["OPENREACH_A55"] = "OPENREACH_A55";
|
|
40
40
|
/** OTDR evidence for L1 and L2 closures */
|
|
41
41
|
FileEntityTypes["OTDR"] = "OTDR";
|
|
42
|
+
/** JSON detail of a document pipeline run, linked to its AiModule:DocumentProcessing row (e.g. per-question verdicts and reasons). */
|
|
43
|
+
FileEntityTypes["PROCESSING_OUTPUT"] = "PROCESSING_OUTPUT";
|
|
42
44
|
})(FileEntityTypes = exports.FileEntityTypes || (exports.FileEntityTypes = {}));
|
|
43
45
|
/**
|
|
44
46
|
* Valid values for File.DataStore
|
|
@@ -194,6 +196,12 @@ exports.ROUTING_KEY_FILE_OTDR_CREATED = 'SchemaModule.File.OTDR.SubDbRecordCreat
|
|
|
194
196
|
exports.ROUTING_KEY_FILE_OTDR_UPDATED = 'SchemaModule.File.OTDR.SubDbRecordUpdated';
|
|
195
197
|
/** OTDR evidence for L1 and L2 closures deleted */
|
|
196
198
|
exports.ROUTING_KEY_FILE_OTDR_DELETED = 'SchemaModule.File.OTDR.SubDbRecordDeleted';
|
|
199
|
+
/** JSON detail of a document pipeline run, linked to its AiModule:DocumentProcessing row (e.g. per-question verdicts and reasons). created */
|
|
200
|
+
exports.ROUTING_KEY_FILE_PROCESSING_OUTPUT_CREATED = 'SchemaModule.File.PROCESSING_OUTPUT.SubDbRecordCreated';
|
|
201
|
+
/** JSON detail of a document pipeline run, linked to its AiModule:DocumentProcessing row (e.g. per-question verdicts and reasons). updated */
|
|
202
|
+
exports.ROUTING_KEY_FILE_PROCESSING_OUTPUT_UPDATED = 'SchemaModule.File.PROCESSING_OUTPUT.SubDbRecordUpdated';
|
|
203
|
+
/** JSON detail of a document pipeline run, linked to its AiModule:DocumentProcessing row (e.g. per-question verdicts and reasons). deleted */
|
|
204
|
+
exports.ROUTING_KEY_FILE_PROCESSING_OUTPUT_DELETED = 'SchemaModule.File.PROCESSING_OUTPUT.SubDbRecordDeleted';
|
|
197
205
|
/** Event: File__Note link created */
|
|
198
206
|
exports.ROUTING_KEY_LINK_FILE_NOTE_CREATED = 'SchemaModule.File.Note.SubDbRecordAssociationCreated';
|
|
199
207
|
/** Event: File__Note link deleted */
|
|
@@ -64,7 +64,9 @@ export declare enum MessagePropertyKeys {
|
|
|
64
64
|
/** Who receive the message (if needed) (Communications - Message) */
|
|
65
65
|
To = "To",
|
|
66
66
|
/** Who sent the message (Communications - Message) */
|
|
67
|
-
From = "From"
|
|
67
|
+
From = "From",
|
|
68
|
+
/** Has the customer read this message in the app? Set to false when an agent or system message is written to an in-app chat, and to true when the app reports it read (PORTAPP-3306). Messages written before this column existed have no value, and no value counts as read — only an explicit false raises the unread badge. */
|
|
69
|
+
IsReadByCustomer = "IsReadByCustomer"
|
|
68
70
|
}
|
|
69
71
|
/**
|
|
70
72
|
* Properties for Message records
|
|
@@ -118,6 +120,12 @@ export interface MessageProperties {
|
|
|
118
120
|
* @type {TEXT}
|
|
119
121
|
*/
|
|
120
122
|
From: string;
|
|
123
|
+
/** Has the customer read this message in the app? Set to false when an agent or system message is written to an in-app chat, and to true when the app reports it read (PORTAPP-3306). Messages written before this column existed have no value, and no value counts as read — only an explicit false raises the unread badge.
|
|
124
|
+
*
|
|
125
|
+
* @type {BOOLEAN}
|
|
126
|
+
* @default
|
|
127
|
+
*/
|
|
128
|
+
IsReadByCustomer: boolean;
|
|
121
129
|
}
|
|
122
130
|
/**
|
|
123
131
|
* Properties for CLOSE Message records
|
|
@@ -171,6 +179,12 @@ export interface CloseMessageProperties {
|
|
|
171
179
|
* @type {TEXT}
|
|
172
180
|
*/
|
|
173
181
|
From: string;
|
|
182
|
+
/** Has the customer read this message in the app? Set to false when an agent or system message is written to an in-app chat, and to true when the app reports it read (PORTAPP-3306). Messages written before this column existed have no value, and no value counts as read — only an explicit false raises the unread badge.
|
|
183
|
+
*
|
|
184
|
+
* @type {BOOLEAN}
|
|
185
|
+
* @default
|
|
186
|
+
*/
|
|
187
|
+
IsReadByCustomer: boolean;
|
|
174
188
|
}
|
|
175
189
|
/**
|
|
176
190
|
* Properties for EVENT Message records
|
|
@@ -224,6 +238,12 @@ export interface EventMessageProperties {
|
|
|
224
238
|
* @type {TEXT}
|
|
225
239
|
*/
|
|
226
240
|
From: string;
|
|
241
|
+
/** Has the customer read this message in the app? Set to false when an agent or system message is written to an in-app chat, and to true when the app reports it read (PORTAPP-3306). Messages written before this column existed have no value, and no value counts as read — only an explicit false raises the unread badge.
|
|
242
|
+
*
|
|
243
|
+
* @type {BOOLEAN}
|
|
244
|
+
* @default
|
|
245
|
+
*/
|
|
246
|
+
IsReadByCustomer: boolean;
|
|
227
247
|
}
|
|
228
248
|
/**
|
|
229
249
|
* Properties for NUDGE Message records
|
|
@@ -277,6 +297,12 @@ export interface NudgeMessageProperties {
|
|
|
277
297
|
* @type {TEXT}
|
|
278
298
|
*/
|
|
279
299
|
From: string;
|
|
300
|
+
/** Has the customer read this message in the app? Set to false when an agent or system message is written to an in-app chat, and to true when the app reports it read (PORTAPP-3306). Messages written before this column existed have no value, and no value counts as read — only an explicit false raises the unread badge.
|
|
301
|
+
*
|
|
302
|
+
* @type {BOOLEAN}
|
|
303
|
+
* @default
|
|
304
|
+
*/
|
|
305
|
+
IsReadByCustomer: boolean;
|
|
280
306
|
}
|
|
281
307
|
/**
|
|
282
308
|
* Message entity from NotificationModule
|
|
@@ -68,6 +68,8 @@ var MessagePropertyKeys;
|
|
|
68
68
|
MessagePropertyKeys["To"] = "To";
|
|
69
69
|
/** Who sent the message (Communications - Message) */
|
|
70
70
|
MessagePropertyKeys["From"] = "From";
|
|
71
|
+
/** Has the customer read this message in the app? Set to false when an agent or system message is written to an in-app chat, and to true when the app reports it read (PORTAPP-3306). Messages written before this column existed have no value, and no value counts as read — only an explicit false raises the unread badge. */
|
|
72
|
+
MessagePropertyKeys["IsReadByCustomer"] = "IsReadByCustomer";
|
|
71
73
|
})(MessagePropertyKeys = exports.MessagePropertyKeys || (exports.MessagePropertyKeys = {}));
|
|
72
74
|
/**
|
|
73
75
|
* Message entity from NotificationModule
|
|
@@ -51,6 +51,7 @@ import { RecontractProperties } from './Recontract';
|
|
|
51
51
|
import { DataIssueProperties } from './DataIssue';
|
|
52
52
|
import { WorkOrderProperties } from './WorkOrder';
|
|
53
53
|
import { EmailProperties } from './Email';
|
|
54
|
+
import { CommitmentProperties } from './Commitment';
|
|
54
55
|
/**
|
|
55
56
|
* Available types for Order records
|
|
56
57
|
*/
|
|
@@ -377,6 +378,19 @@ export declare enum OrderBatteryBackupAnswersSource {
|
|
|
377
378
|
CUSTOMER_APP = "CUSTOMER_APP",
|
|
378
379
|
CUSTOMER_PORTAL = "CUSTOMER_PORTAL"
|
|
379
380
|
}
|
|
381
|
+
/**
|
|
382
|
+
* Valid values for Order.FulfillmentState
|
|
383
|
+
*
|
|
384
|
+
* Derived from the commitment set: OPEN while any commitment is Pending or Breached, SETTLED when none is. Written only by the commitment lifecycle.
|
|
385
|
+
*
|
|
386
|
+
* @remarks Available options:
|
|
387
|
+
* - `OPEN` - Open
|
|
388
|
+
* - `SETTLED` - Settled
|
|
389
|
+
*/
|
|
390
|
+
export declare enum OrderFulfillmentState {
|
|
391
|
+
OPEN = "OPEN",
|
|
392
|
+
SETTLED = "SETTLED"
|
|
393
|
+
}
|
|
380
394
|
/**
|
|
381
395
|
* Property keys for Order
|
|
382
396
|
* Use these constants instead of string literals for type safety
|
|
@@ -562,8 +576,6 @@ export declare enum OrderPropertyKeys {
|
|
|
562
576
|
CashbackApprovalDate = "CashbackApprovalDate",
|
|
563
577
|
/** Supplier-committed fulfillment date carried on COMMITTED KCI (per yf-kci-effect-bridge.ts#provide-committed). Stamped onto YF Order via walker-driven receiveKci PROPERTY_WRITE. */
|
|
564
578
|
CommittedDate = "CommittedDate",
|
|
565
|
-
/** Used when restarting an existing service, allows the customer to specify what date is used for the RequestedCompletionDate on the supplier-side START order. Used for when a customer is technically able to start receiving service. */
|
|
566
|
-
RequestedActivationDate = "RequestedActivationDate",
|
|
567
579
|
/** Whether a customer already has a battery pack from YouFibre or not */
|
|
568
580
|
BatteryPackProvided = "BatteryPackProvided",
|
|
569
581
|
/** I have read and confirm receipt of the Contract Summary. I consent to the Privacy Policy and acknowledge receipt of the T&Cs. (Sales - Contact) */
|
|
@@ -593,7 +605,15 @@ export declare enum OrderPropertyKeys {
|
|
|
593
605
|
/** 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
606
|
BatteryBackupAnswersSource = "BatteryBackupAnswersSource",
|
|
595
607
|
/** The day this order was deactivated. Cleared when the order goes back to Active, and kept when it goes on to Cancelled. Empty means the order is not deactivated. Not to be confused with DeactivateOnDate, which is a scheduled instruction and is cleared once it is acted on. */
|
|
596
|
-
DeactivationDate = "DeactivationDate"
|
|
608
|
+
DeactivationDate = "DeactivationDate",
|
|
609
|
+
/** Used when restarting an existing service, allows the customer to specify what date is used for the RequestedCompletionDate on the supplier-side START order. Used for when a customer is technically able to start receiving service. */
|
|
610
|
+
RequestedActivationDate = "RequestedActivationDate",
|
|
611
|
+
/** Derived from the commitment set: OPEN while any commitment is Pending or Breached, SETTLED when none is. Written only by the commitment lifecycle. */
|
|
612
|
+
FulfillmentState = "FulfillmentState",
|
|
613
|
+
/** How many commitments are Pending or Breached. Written only by the lifecycle. */
|
|
614
|
+
OpenCommitmentCount = "OpenCommitmentCount",
|
|
615
|
+
/** The next commitment to fall due. What a "what is about to breach" query sorts on, without walking every commitment. Written only by the lifecycle. */
|
|
616
|
+
EarliestDueAt = "EarliestDueAt"
|
|
597
617
|
}
|
|
598
618
|
/**
|
|
599
619
|
* Properties for Order records
|
|
@@ -1162,11 +1182,6 @@ export interface OrderProperties {
|
|
|
1162
1182
|
* @type {DATE}
|
|
1163
1183
|
*/
|
|
1164
1184
|
CommittedDate: string;
|
|
1165
|
-
/** Used when restarting an existing service, allows the customer to specify what date is used for the RequestedCompletionDate on the supplier-side START order. Used for when a customer is technically able to start receiving service.
|
|
1166
|
-
*
|
|
1167
|
-
* @type {DATE}
|
|
1168
|
-
*/
|
|
1169
|
-
RequestedActivationDate: string;
|
|
1170
1185
|
/** Whether a customer already has a battery pack from YouFibre or not
|
|
1171
1186
|
*
|
|
1172
1187
|
* @type {BOOLEAN}
|
|
@@ -1257,6 +1272,30 @@ export interface OrderProperties {
|
|
|
1257
1272
|
* @default
|
|
1258
1273
|
*/
|
|
1259
1274
|
DeactivationDate: string;
|
|
1275
|
+
/** Used when restarting an existing service, allows the customer to specify what date is used for the RequestedCompletionDate on the supplier-side START order. Used for when a customer is technically able to start receiving service.
|
|
1276
|
+
*
|
|
1277
|
+
* @type {DATE}
|
|
1278
|
+
*/
|
|
1279
|
+
RequestedActivationDate: string;
|
|
1280
|
+
/** Derived from the commitment set: OPEN while any commitment is Pending or Breached, SETTLED when none is. Written only by the commitment lifecycle.
|
|
1281
|
+
*
|
|
1282
|
+
* @type {ENUM}
|
|
1283
|
+
* @default
|
|
1284
|
+
* @enum {OrderFulfillmentState}
|
|
1285
|
+
*/
|
|
1286
|
+
FulfillmentState: OrderFulfillmentState;
|
|
1287
|
+
/** How many commitments are Pending or Breached. Written only by the lifecycle.
|
|
1288
|
+
*
|
|
1289
|
+
* @type {NUMBER}
|
|
1290
|
+
* @default
|
|
1291
|
+
*/
|
|
1292
|
+
OpenCommitmentCount: number;
|
|
1293
|
+
/** The next commitment to fall due. What a "what is about to breach" query sorts on, without walking every commitment. Written only by the lifecycle.
|
|
1294
|
+
*
|
|
1295
|
+
* @type {DATE_TIME}
|
|
1296
|
+
* @default
|
|
1297
|
+
*/
|
|
1298
|
+
EarliestDueAt: string;
|
|
1260
1299
|
}
|
|
1261
1300
|
/**
|
|
1262
1301
|
* Order entity from OrderModule
|
|
@@ -1357,6 +1396,8 @@ export declare class Order extends OdinRecord<OrderProperties> {
|
|
|
1357
1396
|
WorkOrder: OdinLink<LinkedOdinRecord<WorkOrderProperties>>;
|
|
1358
1397
|
/** Linked Email records (Order__Email) */
|
|
1359
1398
|
Email: OdinLink<LinkedOdinRecord<EmailProperties>>;
|
|
1399
|
+
/** Linked Commitment records (Commitment__Order) */
|
|
1400
|
+
Commitment: OdinLink<LinkedOdinRecord<CommitmentProperties>>;
|
|
1360
1401
|
}
|
|
1361
1402
|
/**
|
|
1362
1403
|
* RabbitMQ routing keys for Order events
|