@d19n/youfibre-odin-sdk 1.0.122 → 1.0.124-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions-v2/AssignCaseWithNoteFlowDto.d.ts +36 -0
- package/dist/actions-v2/AssignCaseWithNoteFlowDto.js +31 -0
- package/dist/actions-v2/CompleteRemediationWorkOrderFlowDto.d.ts +9 -29
- package/dist/actions-v2/CompleteServiceWorkOrderFlowDto.d.ts +21 -18
- package/dist/actions-v2/CreateInstallWorkOrderFlowDto.d.ts +29 -0
- package/dist/actions-v2/CreateInstallWorkOrderFlowDto.js +24 -0
- package/dist/actions-v2/CreateLinkedWorkOrderFlowDto.d.ts +13 -13
- package/dist/actions-v2/CreateLinkedWorkOrderFlowDto.js +12 -12
- package/dist/actions-v2/CreateNoteForCaseAssignmentDto.d.ts +13 -0
- package/dist/actions-v2/CreateNoteForCaseAssignmentDto.js +16 -0
- package/dist/actions-v2/CreateServiceWorkOrderFlowDto.d.ts +26 -0
- package/dist/actions-v2/CreateServiceWorkOrderFlowDto.js +24 -0
- package/dist/actions-v2/CreateTeamDto.d.ts +1 -0
- package/dist/actions-v2/EscalateCaseActionDto.d.ts +15 -0
- package/dist/actions-v2/EscalateCaseActionDto.js +12 -0
- package/dist/actions-v2/EscalateCaseTransitionDto.d.ts +37 -0
- package/dist/actions-v2/EscalateCaseTransitionDto.js +28 -0
- package/dist/actions-v2/MoveInstallWorkOrderToEnRouteDto.js +1 -1
- package/dist/actions-v2/UpdateCustomerDeviceOntDto.d.ts +2 -0
- package/dist/actions-v2/UpdateOrderDto.d.ts +1 -0
- package/dist/actions-v2/UpdateServiceScheduleDto.d.ts +1 -1
- package/dist/api-sdk-v2/NotificationTemplateApi.d.ts +36 -0
- package/dist/api-sdk-v2/NotificationTemplateApi.js +125 -0
- package/dist/db-sdk-v2/NotificationTemplateDb.d.ts +26 -0
- package/dist/db-sdk-v2/NotificationTemplateDb.js +108 -0
- package/dist/entities-v2/BundleProduct.d.ts +3 -3
- package/dist/entities-v2/BundleProduct.js +1 -1
- package/dist/entities-v2/Case.d.ts +3 -34
- package/dist/entities-v2/Case.js +3 -35
- package/dist/entities-v2/Contact.d.ts +1 -1
- package/dist/entities-v2/Contact.js +1 -1
- package/dist/entities-v2/CustomerDeviceOnt.d.ts +5 -1
- package/dist/entities-v2/CustomerDeviceOnt.js +2 -0
- package/dist/entities-v2/FinanceServiceAppointmentConfig.d.ts +1 -1
- package/dist/entities-v2/InspectionServiceAppointmentConfig.d.ts +1 -1
- package/dist/entities-v2/InstallServiceAppointmentConfig.d.ts +1 -1
- package/dist/entities-v2/InstallServiceServiceAppointmentConfig.d.ts +1 -1
- package/dist/entities-v2/InternetProduct.d.ts +3 -3
- package/dist/entities-v2/InternetProduct.js +1 -1
- package/dist/entities-v2/LaborProduct.d.ts +3 -3
- package/dist/entities-v2/LaborProduct.js +1 -1
- package/dist/entities-v2/LandlineProduct.d.ts +3 -3
- package/dist/entities-v2/LandlineProduct.js +1 -1
- package/dist/entities-v2/MeshProduct.d.ts +3 -3
- package/dist/entities-v2/MeshProduct.js +1 -1
- package/dist/entities-v2/MobileProduct.d.ts +3 -3
- package/dist/entities-v2/MobileProduct.js +1 -1
- package/dist/entities-v2/NetworkAdjustmentServiceAppointmentConfig.d.ts +1 -1
- package/dist/entities-v2/NotificationTemplate.d.ts +23 -0
- package/dist/entities-v2/NotificationTemplate.js +21 -0
- package/dist/entities-v2/OhAuditOfInstallation.d.ts +7 -7
- package/dist/entities-v2/OhAuditOfInstallation.js +7 -7
- package/dist/entities-v2/OutageCase.d.ts +2 -34
- package/dist/entities-v2/OutageCase.js +3 -35
- package/dist/entities-v2/OutcomeFormOhAuditOfInstallation.d.ts +7 -7
- package/dist/entities-v2/OutcomeFormOhAuditOfInstallation.js +7 -7
- package/dist/entities-v2/OutcomeFormRemediationOutcomeForm.d.ts +49 -66
- package/dist/entities-v2/OutcomeFormRemediationOutcomeForm.js +48 -46
- package/dist/entities-v2/OutcomeFormServiceVisitAudit.d.ts +55 -45
- package/dist/entities-v2/OutcomeFormServiceVisitAudit.js +58 -50
- package/dist/entities-v2/PlanningServiceAppointmentConfig.d.ts +1 -1
- package/dist/entities-v2/PrePullServiceAppointmentConfig.d.ts +1 -1
- package/dist/entities-v2/Product.d.ts +3 -3
- package/dist/entities-v2/Product.js +1 -1
- package/dist/entities-v2/RemediationOutcomeForm.d.ts +49 -66
- package/dist/entities-v2/RemediationOutcomeForm.js +48 -46
- package/dist/entities-v2/RemediationServiceAppointmentConfig.d.ts +1 -1
- package/dist/entities-v2/ServiceAppointmentConfig.d.ts +1 -1
- package/dist/entities-v2/ServiceServiceAppointmentConfig.d.ts +1 -1
- package/dist/entities-v2/ServiceVisitAudit.d.ts +55 -45
- package/dist/entities-v2/ServiceVisitAudit.js +58 -50
- package/dist/entities-v2/WayleaveServiceAppointmentConfig.d.ts +1 -1
- package/dist/types-v1/Types.d.ts +5 -4
- package/dist/types-v1/Types.js +5 -4
- package/package.json +3 -3
- package/src/actions-v2/AssignCaseWithNoteFlowDto.ts +68 -0
- package/src/actions-v2/CompleteRemediationWorkOrderFlowDto.ts +9 -29
- package/src/actions-v2/CompleteServiceWorkOrderFlowDto.ts +21 -18
- package/src/actions-v2/CreateInstallWorkOrderFlowDto.ts +57 -0
- package/src/actions-v2/CreateLinkedWorkOrderFlowDto.ts +21 -21
- package/src/actions-v2/CreateNoteForCaseAssignmentDto.ts +25 -0
- package/src/actions-v2/CreateServiceWorkOrderFlowDto.ts +54 -0
- package/src/actions-v2/CreateTeamDto.ts +1 -0
- package/src/actions-v2/EscalateCaseActionDto.ts +22 -0
- package/src/actions-v2/EscalateCaseTransitionDto.ts +65 -0
- package/src/actions-v2/MoveInstallWorkOrderToEnRouteDto.ts +1 -1
- package/src/actions-v2/UpdateCustomerDeviceOntDto.ts +2 -0
- package/src/actions-v2/UpdateOrderDto.ts +1 -0
- package/src/actions-v2/UpdateServiceScheduleDto.ts +1 -1
- package/src/api-sdk-v2/NotificationTemplateApi.ts +133 -0
- package/src/db-sdk-v2/NotificationTemplateDb.ts +119 -0
- package/src/entities-v2/BundleProduct.ts +3 -3
- package/src/entities-v2/Case.ts +3 -35
- package/src/entities-v2/Contact.ts +1 -1
- package/src/entities-v2/CustomerDeviceOnt.ts +6 -0
- package/src/entities-v2/FinanceServiceAppointmentConfig.ts +1 -1
- package/src/entities-v2/InspectionServiceAppointmentConfig.ts +1 -1
- package/src/entities-v2/InstallServiceAppointmentConfig.ts +1 -1
- package/src/entities-v2/InstallServiceServiceAppointmentConfig.ts +1 -1
- package/src/entities-v2/InternetProduct.ts +3 -3
- package/src/entities-v2/LaborProduct.ts +3 -3
- package/src/entities-v2/LandlineProduct.ts +3 -3
- package/src/entities-v2/MeshProduct.ts +3 -3
- package/src/entities-v2/MobileProduct.ts +3 -3
- package/src/entities-v2/NetworkAdjustmentServiceAppointmentConfig.ts +1 -1
- package/src/entities-v2/NotificationTemplate.ts +46 -0
- package/src/entities-v2/OhAuditOfInstallation.ts +7 -7
- package/src/entities-v2/OutageCase.ts +1 -35
- package/src/entities-v2/OutcomeFormOhAuditOfInstallation.ts +7 -7
- package/src/entities-v2/OutcomeFormRemediationOutcomeForm.ts +57 -92
- package/src/entities-v2/OutcomeFormServiceVisitAudit.ts +69 -56
- package/src/entities-v2/PlanningServiceAppointmentConfig.ts +1 -1
- package/src/entities-v2/PrePullServiceAppointmentConfig.ts +1 -1
- package/src/entities-v2/Product.ts +3 -3
- package/src/entities-v2/RemediationOutcomeForm.ts +57 -92
- package/src/entities-v2/RemediationServiceAppointmentConfig.ts +1 -1
- package/src/entities-v2/ServiceAppointmentConfig.ts +1 -1
- package/src/entities-v2/ServiceServiceAppointmentConfig.ts +1 -1
- package/src/entities-v2/ServiceVisitAudit.ts +69 -56
- package/src/entities-v2/WayleaveServiceAppointmentConfig.ts +1 -1
- package/src/types-v1/Types.ts +5 -4
- package/dist/actions-v2/UpdateAiCategoryDto.d.ts +0 -14
- package/dist/actions-v2/UpdateAiCategoryDto.js +0 -12
- package/dist/actions-v2/UpdateAiCategoryEnumDto.d.ts +0 -14
- package/dist/actions-v2/UpdateAiCategoryEnumDto.js +0 -12
- package/dist/actions-v2/UpdateAiSubCategoryDto.d.ts +0 -14
- package/dist/actions-v2/UpdateAiSubCategoryDto.js +0 -12
- package/dist/actions-v2/UpdateAiSubCategoryEnumDto.d.ts +0 -13
- package/dist/actions-v2/UpdateAiSubCategoryEnumDto.js +0 -12
- package/src/actions-v2/UpdateAiCategoryDto.ts +0 -21
- package/src/actions-v2/UpdateAiCategoryEnumDto.ts +0 -21
- package/src/actions-v2/UpdateAiSubCategoryDto.ts +0 -21
- package/src/actions-v2/UpdateAiSubCategoryEnumDto.ts +0 -20
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { OdinRecordUpdatedEvent, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/interfaces/rabbitmq.interfaces';
|
|
2
|
+
import { OdinRecordCreateDto, OdinRecordUpdateDto } from '@d19n/odin-types/dist/dtos/odin.dtos';
|
|
3
|
+
import { OdinRecord } from '@d19n/odin-types/dist/types/odin.types';
|
|
4
|
+
interface AssignCaseProperties {
|
|
5
|
+
OwnerId?: string;
|
|
6
|
+
TeamId?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class AssignCaseDto extends OdinRecordUpdateDto {
|
|
9
|
+
readonly actionName: string;
|
|
10
|
+
constructor(record: OdinRecord<any>, properties: AssignCaseProperties);
|
|
11
|
+
}
|
|
12
|
+
export interface AssignCaseMessage extends OdinRecordUpdatedEvent<AssignCaseDto, AssignCaseProperties> {
|
|
13
|
+
}
|
|
14
|
+
interface CreateNoteForCaseAssignmentProperties {
|
|
15
|
+
Body?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare class CreateNoteForCaseAssignmentDto extends OdinRecordCreateDto {
|
|
18
|
+
readonly actionName: string;
|
|
19
|
+
constructor(properties: CreateNoteForCaseAssignmentProperties);
|
|
20
|
+
}
|
|
21
|
+
export interface CreateNoteForCaseAssignmentMessage extends OdinRecordCreatedEvent<CreateNoteForCaseAssignmentDto, CreateNoteForCaseAssignmentProperties> {
|
|
22
|
+
}
|
|
23
|
+
declare type StepClassMap = {
|
|
24
|
+
AssignCaseDto: AssignCaseDto;
|
|
25
|
+
CreateNoteForCaseAssignmentDto: CreateNoteForCaseAssignmentDto;
|
|
26
|
+
};
|
|
27
|
+
export interface AssignCaseWithNoteFlowMessage extends OdinRecordUpdatedEvent<AssignCaseWithNoteFlowDto, {}> {
|
|
28
|
+
}
|
|
29
|
+
export declare class AssignCaseWithNoteFlowDto extends OdinRecordUpdateDto {
|
|
30
|
+
readonly actionName: string;
|
|
31
|
+
constructor(record: OdinRecord<any>);
|
|
32
|
+
static readonly stepClasses: readonly ["AssignCaseDto", "CreateNoteForCaseAssignmentDto"];
|
|
33
|
+
steps: StepClassMap[(typeof AssignCaseWithNoteFlowDto.stepClasses)[number]][];
|
|
34
|
+
}
|
|
35
|
+
export declare const ROUTING_KEY_ASSIGN_CASE_WITH_NOTE_FLOW = "AssignCaseWithNoteFlowEvent";
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ROUTING_KEY_ASSIGN_CASE_WITH_NOTE_FLOW = exports.AssignCaseWithNoteFlowDto = exports.CreateNoteForCaseAssignmentDto = exports.AssignCaseDto = void 0;
|
|
4
|
+
const odin_dtos_1 = require("@d19n/odin-types/dist/dtos/odin.dtos");
|
|
5
|
+
class AssignCaseDto extends odin_dtos_1.OdinRecordUpdateDto {
|
|
6
|
+
constructor(record, properties) {
|
|
7
|
+
super(record, properties);
|
|
8
|
+
this.actionName = 'AssignCase';
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.AssignCaseDto = AssignCaseDto;
|
|
12
|
+
class CreateNoteForCaseAssignmentDto extends odin_dtos_1.OdinRecordCreateDto {
|
|
13
|
+
constructor(properties) {
|
|
14
|
+
super({
|
|
15
|
+
entity: 'SupportModule:Note',
|
|
16
|
+
type: 'DEFAULT',
|
|
17
|
+
properties
|
|
18
|
+
});
|
|
19
|
+
this.actionName = 'CreateNoteForCaseAssignment';
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.CreateNoteForCaseAssignmentDto = CreateNoteForCaseAssignmentDto;
|
|
23
|
+
class AssignCaseWithNoteFlowDto extends odin_dtos_1.OdinRecordUpdateDto {
|
|
24
|
+
constructor(record) {
|
|
25
|
+
super(record, null);
|
|
26
|
+
this.actionName = 'AssignCaseWithNoteFlow';
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.AssignCaseWithNoteFlowDto = AssignCaseWithNoteFlowDto;
|
|
30
|
+
AssignCaseWithNoteFlowDto.stepClasses = ['AssignCaseDto', 'CreateNoteForCaseAssignmentDto'];
|
|
31
|
+
exports.ROUTING_KEY_ASSIGN_CASE_WITH_NOTE_FLOW = 'AssignCaseWithNoteFlowEvent';
|
|
@@ -4,36 +4,16 @@ import { OdinRecord } from '@d19n/odin-types/dist/types/odin.types';
|
|
|
4
4
|
interface RemediationOutcomeFormProperties {
|
|
5
5
|
IssuePerReportedReason: string;
|
|
6
6
|
RemRequirementLocated: string;
|
|
7
|
-
RemediationCompleted: string;
|
|
8
7
|
DeadCbt: string;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
Tfm002TrafficManagement?: number;
|
|
19
|
-
Blk001ClearStandardBlockage?: number;
|
|
20
|
-
Blk002ClearNextBlockage?: number;
|
|
21
|
-
Insblk001ClearBlockagePrivateHard?: number;
|
|
22
|
-
Insblk002ClearBlockagePrivateSoft?: number;
|
|
23
|
-
Tby001_5mOverlayTobyFw?: number;
|
|
24
|
-
Tby0025mOverlayTobyCw?: number;
|
|
25
|
-
Tby0035mOverlayTobySoft?: number;
|
|
26
|
-
Ovl001Overlay1mFw?: number;
|
|
27
|
-
Ovl002Overlay1mCw?: number;
|
|
28
|
-
Ovl003Overlay1mSoft?: number;
|
|
29
|
-
Ovp001Overlay5mPrivateHard?: number;
|
|
30
|
-
Ovp002Overlay1mPrivateHard?: number;
|
|
31
|
-
Ovp003Overlay1mPrivateSoft?: number;
|
|
32
|
-
Abt001Abort?: number;
|
|
33
|
-
Nta001NetworkAdjustment?: number;
|
|
34
|
-
Slt001GullySuckingHalfDay?: number;
|
|
35
|
-
Slt002GullySuckingDay?: number;
|
|
36
|
-
Tree01TreePruning?: number;
|
|
8
|
+
LightReadingBeforeWorkImage: undefined;
|
|
9
|
+
ClosureBeforeWorkImage: undefined;
|
|
10
|
+
ClosurePoiBeforeWorkImage: undefined;
|
|
11
|
+
OtdrReadings: undefined;
|
|
12
|
+
IssueCause: string;
|
|
13
|
+
ClosureAfterWorkImage: undefined;
|
|
14
|
+
ClosurePoiAfterWorkImage: undefined;
|
|
15
|
+
ActionsTaken: string;
|
|
16
|
+
EvidenceUploaded: string;
|
|
37
17
|
}
|
|
38
18
|
export declare class RemediationOutcomeFormDto extends OdinRecordCreateDto {
|
|
39
19
|
readonly actionName: string;
|
|
@@ -89,27 +89,30 @@ export declare class YfFieldServiceVisitAuditDto extends OdinRecordCreateDto {
|
|
|
89
89
|
export interface YfFieldServiceVisitAuditMessage extends OdinRecordCreatedEvent<YfFieldServiceVisitAuditDto, YfFieldServiceVisitAuditProperties> {
|
|
90
90
|
}
|
|
91
91
|
interface ServiceVisitAuditCreateProperties {
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
92
|
+
CbtLightReadingImage: undefined;
|
|
93
|
+
CbtReadingsWithingSpecification: string;
|
|
94
|
+
RemediationWorkRaised: string;
|
|
95
|
+
DamageToDropCable: string;
|
|
96
|
+
DropCableImage: undefined;
|
|
97
|
+
DropCableExplanation: string;
|
|
98
|
+
CtuVisibleDamage: string;
|
|
99
|
+
CtuDamageImage: undefined;
|
|
100
|
+
CtuDamageExplanation: string;
|
|
101
|
+
CtuWrappingToSpecification: string;
|
|
102
|
+
CtuWrappingToSpecificationImage: undefined;
|
|
103
|
+
OntLightReading: undefined;
|
|
104
|
+
OntLightReadingWithSpecification: string;
|
|
98
105
|
OntDamage: string;
|
|
106
|
+
OntDamageImage: undefined;
|
|
99
107
|
OntDamageExplanation: string;
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
FaultCause: string;
|
|
103
|
-
EquipmentSwapped: string;
|
|
104
|
-
WhatEquipmentWasSwapped: string;
|
|
105
|
-
OtherActionsTaken: string;
|
|
106
|
-
OtherActionsExplanation: string;
|
|
107
|
-
ResplicingReason: string;
|
|
108
|
+
IssueCause: string;
|
|
109
|
+
ReSpliceReason: string;
|
|
108
110
|
FaultResolved: string;
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
StepsTakenToResolution: string;
|
|
112
|
+
WiredSpeedTest: undefined;
|
|
113
|
+
WiFiSpeedTestNextToRouter: undefined;
|
|
114
|
+
WiFiSpeedTestFurtherPoint: undefined;
|
|
115
|
+
CtuWrappingToSpecificationExplanation?: string;
|
|
113
116
|
}
|
|
114
117
|
export declare class ServiceVisitAuditCreateDto extends OdinRecordCreateDto {
|
|
115
118
|
readonly actionName: string;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { OdinRecordUpdatedEvent, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/interfaces/rabbitmq.interfaces';
|
|
2
|
+
import { OdinRecordCreateDto, OdinRecordUpdateDto } from '@d19n/odin-types/dist/dtos/odin.dtos';
|
|
3
|
+
import { OdinRecord } from '@d19n/odin-types/dist/types/odin.types';
|
|
4
|
+
interface CreateInstallWorkOrderProperties {
|
|
5
|
+
EarlierAvailability?: boolean;
|
|
6
|
+
Provider?: string;
|
|
7
|
+
Description?: string;
|
|
8
|
+
IsVip?: boolean;
|
|
9
|
+
SlaDays?: number;
|
|
10
|
+
}
|
|
11
|
+
export declare class CreateInstallWorkOrderDto extends OdinRecordCreateDto {
|
|
12
|
+
readonly actionName: string;
|
|
13
|
+
constructor(properties: CreateInstallWorkOrderProperties);
|
|
14
|
+
}
|
|
15
|
+
export interface CreateInstallWorkOrderMessage extends OdinRecordCreatedEvent<CreateInstallWorkOrderDto, CreateInstallWorkOrderProperties> {
|
|
16
|
+
}
|
|
17
|
+
declare type StepClassMap = {
|
|
18
|
+
CreateInstallWorkOrderDto: CreateInstallWorkOrderDto;
|
|
19
|
+
};
|
|
20
|
+
export interface CreateInstallWorkOrderFlowMessage extends OdinRecordUpdatedEvent<CreateInstallWorkOrderFlowDto, {}> {
|
|
21
|
+
}
|
|
22
|
+
export declare class CreateInstallWorkOrderFlowDto extends OdinRecordUpdateDto {
|
|
23
|
+
readonly actionName: string;
|
|
24
|
+
constructor(record: OdinRecord<any>);
|
|
25
|
+
static readonly stepClasses: readonly ["CreateInstallWorkOrderDto"];
|
|
26
|
+
steps: StepClassMap[(typeof CreateInstallWorkOrderFlowDto.stepClasses)[number]][];
|
|
27
|
+
}
|
|
28
|
+
export declare const ROUTING_KEY_CREATE_INSTALL_WORK_ORDER_FLOW = "CreateInstallWorkOrderFlowEvent";
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ROUTING_KEY_CREATE_INSTALL_WORK_ORDER_FLOW = exports.CreateInstallWorkOrderFlowDto = exports.CreateInstallWorkOrderDto = void 0;
|
|
4
|
+
const odin_dtos_1 = require("@d19n/odin-types/dist/dtos/odin.dtos");
|
|
5
|
+
class CreateInstallWorkOrderDto extends odin_dtos_1.OdinRecordCreateDto {
|
|
6
|
+
constructor(properties) {
|
|
7
|
+
super({
|
|
8
|
+
entity: 'FieldServiceModule:WorkOrder',
|
|
9
|
+
type: 'INSTALL',
|
|
10
|
+
properties
|
|
11
|
+
});
|
|
12
|
+
this.actionName = 'CreateInstallWorkOrder';
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.CreateInstallWorkOrderDto = CreateInstallWorkOrderDto;
|
|
16
|
+
class CreateInstallWorkOrderFlowDto extends odin_dtos_1.OdinRecordUpdateDto {
|
|
17
|
+
constructor(record) {
|
|
18
|
+
super(record, null);
|
|
19
|
+
this.actionName = 'CreateInstallWorkOrderFlow';
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.CreateInstallWorkOrderFlowDto = CreateInstallWorkOrderFlowDto;
|
|
23
|
+
CreateInstallWorkOrderFlowDto.stepClasses = ['CreateInstallWorkOrderDto'];
|
|
24
|
+
exports.ROUTING_KEY_CREATE_INSTALL_WORK_ORDER_FLOW = 'CreateInstallWorkOrderFlowEvent';
|
|
@@ -1,19 +1,6 @@
|
|
|
1
1
|
import { OdinRecordUpdatedEvent, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/interfaces/rabbitmq.interfaces';
|
|
2
2
|
import { OdinRecordCreateDto, OdinRecordUpdateDto } from '@d19n/odin-types/dist/dtos/odin.dtos';
|
|
3
3
|
import { OdinRecord } from '@d19n/odin-types/dist/types/odin.types';
|
|
4
|
-
interface CreateInspectionWorkOrderProperties {
|
|
5
|
-
EarlierAvailability?: boolean;
|
|
6
|
-
Provider?: string;
|
|
7
|
-
Description?: string;
|
|
8
|
-
IsVip?: boolean;
|
|
9
|
-
SlaDays?: number;
|
|
10
|
-
}
|
|
11
|
-
export declare class CreateInspectionWorkOrderDto extends OdinRecordCreateDto {
|
|
12
|
-
readonly actionName: string;
|
|
13
|
-
constructor(properties: CreateInspectionWorkOrderProperties);
|
|
14
|
-
}
|
|
15
|
-
export interface CreateInspectionWorkOrderMessage extends OdinRecordCreatedEvent<CreateInspectionWorkOrderDto, CreateInspectionWorkOrderProperties> {
|
|
16
|
-
}
|
|
17
4
|
interface CreateFinanceWorkOrderProperties {
|
|
18
5
|
EarlierAvailability?: boolean;
|
|
19
6
|
Provider?: string;
|
|
@@ -103,6 +90,19 @@ export declare class CreateRemediationWorkOrderDto extends OdinRecordCreateDto {
|
|
|
103
90
|
}
|
|
104
91
|
export interface CreateRemediationWorkOrderMessage extends OdinRecordCreatedEvent<CreateRemediationWorkOrderDto, CreateRemediationWorkOrderProperties> {
|
|
105
92
|
}
|
|
93
|
+
interface CreateInspectionWorkOrderProperties {
|
|
94
|
+
EarlierAvailability?: boolean;
|
|
95
|
+
Provider?: string;
|
|
96
|
+
Description?: string;
|
|
97
|
+
IsVip?: boolean;
|
|
98
|
+
SlaDays?: number;
|
|
99
|
+
}
|
|
100
|
+
export declare class CreateInspectionWorkOrderDto extends OdinRecordCreateDto {
|
|
101
|
+
readonly actionName: string;
|
|
102
|
+
constructor(properties: CreateInspectionWorkOrderProperties);
|
|
103
|
+
}
|
|
104
|
+
export interface CreateInspectionWorkOrderMessage extends OdinRecordCreatedEvent<CreateInspectionWorkOrderDto, CreateInspectionWorkOrderProperties> {
|
|
105
|
+
}
|
|
106
106
|
declare type StepClassMap = {
|
|
107
107
|
CreateCollectionWorkOrderDto: CreateCollectionWorkOrderDto;
|
|
108
108
|
CreateFinanceWorkOrderDto: CreateFinanceWorkOrderDto;
|
|
@@ -1,18 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ROUTING_KEY_CREATE_LINKED_WORK_ORDER_FLOW = exports.CreateLinkedWorkOrderFlowDto = exports.CreateRemediationWorkOrderDto = exports.CreateCollectionWorkOrderDto = exports.CreatePrePullWorkOrderDto = exports.CreatePlanningWorkOrderDto = exports.CreateNetworkAdjustmentWorkOrderDto = exports.CreateInstallBusinessWorkOrderDto = exports.CreateFinanceWorkOrderDto =
|
|
3
|
+
exports.ROUTING_KEY_CREATE_LINKED_WORK_ORDER_FLOW = exports.CreateLinkedWorkOrderFlowDto = exports.CreateInspectionWorkOrderDto = exports.CreateRemediationWorkOrderDto = exports.CreateCollectionWorkOrderDto = exports.CreatePrePullWorkOrderDto = exports.CreatePlanningWorkOrderDto = exports.CreateNetworkAdjustmentWorkOrderDto = exports.CreateInstallBusinessWorkOrderDto = exports.CreateFinanceWorkOrderDto = void 0;
|
|
4
4
|
const odin_dtos_1 = require("@d19n/odin-types/dist/dtos/odin.dtos");
|
|
5
|
-
class CreateInspectionWorkOrderDto extends odin_dtos_1.OdinRecordCreateDto {
|
|
6
|
-
constructor(properties) {
|
|
7
|
-
super({
|
|
8
|
-
entity: 'FieldServiceModule:WorkOrder',
|
|
9
|
-
type: 'INSPECTION',
|
|
10
|
-
properties
|
|
11
|
-
});
|
|
12
|
-
this.actionName = 'CreateInspectionWorkOrder';
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.CreateInspectionWorkOrderDto = CreateInspectionWorkOrderDto;
|
|
16
5
|
class CreateFinanceWorkOrderDto extends odin_dtos_1.OdinRecordCreateDto {
|
|
17
6
|
constructor(properties) {
|
|
18
7
|
super({
|
|
@@ -90,6 +79,17 @@ class CreateRemediationWorkOrderDto extends odin_dtos_1.OdinRecordCreateDto {
|
|
|
90
79
|
}
|
|
91
80
|
}
|
|
92
81
|
exports.CreateRemediationWorkOrderDto = CreateRemediationWorkOrderDto;
|
|
82
|
+
class CreateInspectionWorkOrderDto extends odin_dtos_1.OdinRecordCreateDto {
|
|
83
|
+
constructor(properties) {
|
|
84
|
+
super({
|
|
85
|
+
entity: 'FieldServiceModule:WorkOrder',
|
|
86
|
+
type: 'INSPECTION',
|
|
87
|
+
properties
|
|
88
|
+
});
|
|
89
|
+
this.actionName = 'CreateInspectionWorkOrder';
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
exports.CreateInspectionWorkOrderDto = CreateInspectionWorkOrderDto;
|
|
93
93
|
class CreateLinkedWorkOrderFlowDto extends odin_dtos_1.OdinRecordUpdateDto {
|
|
94
94
|
constructor(record) {
|
|
95
95
|
super(record, null);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { OdinRecordCreatedEvent } from '@d19n/odin-types/dist/interfaces/rabbitmq.interfaces';
|
|
2
|
+
import { OdinRecordCreateDto } from '@d19n/odin-types/dist/dtos/odin.dtos';
|
|
3
|
+
interface CreateNoteForCaseAssignmentProperties {
|
|
4
|
+
Body?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare class CreateNoteForCaseAssignmentDto extends OdinRecordCreateDto {
|
|
7
|
+
readonly actionName: string;
|
|
8
|
+
constructor(properties: CreateNoteForCaseAssignmentProperties);
|
|
9
|
+
}
|
|
10
|
+
export interface CreateNoteForCaseAssignmentMessage extends OdinRecordCreatedEvent<CreateNoteForCaseAssignmentDto, CreateNoteForCaseAssignmentProperties> {
|
|
11
|
+
}
|
|
12
|
+
export declare const ROUTING_KEY_CREATE_NOTE_FOR_CASE_ASSIGNMENT = "CreateNoteForCaseAssignmentEvent";
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ROUTING_KEY_CREATE_NOTE_FOR_CASE_ASSIGNMENT = exports.CreateNoteForCaseAssignmentDto = void 0;
|
|
4
|
+
const odin_dtos_1 = require("@d19n/odin-types/dist/dtos/odin.dtos");
|
|
5
|
+
class CreateNoteForCaseAssignmentDto extends odin_dtos_1.OdinRecordCreateDto {
|
|
6
|
+
constructor(properties) {
|
|
7
|
+
super({
|
|
8
|
+
entity: 'SupportModule:Note',
|
|
9
|
+
type: 'DEFAULT',
|
|
10
|
+
properties
|
|
11
|
+
});
|
|
12
|
+
this.actionName = 'CreateNoteForCaseAssignment';
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.CreateNoteForCaseAssignmentDto = CreateNoteForCaseAssignmentDto;
|
|
16
|
+
exports.ROUTING_KEY_CREATE_NOTE_FOR_CASE_ASSIGNMENT = 'CreateNoteForCaseAssignmentEvent';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { OdinRecordUpdatedEvent, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/interfaces/rabbitmq.interfaces';
|
|
2
|
+
import { OdinRecordCreateDto, OdinRecordUpdateDto } from '@d19n/odin-types/dist/dtos/odin.dtos';
|
|
3
|
+
import { OdinRecord } from '@d19n/odin-types/dist/types/odin.types';
|
|
4
|
+
interface CreateServiceWorkOrderProperties {
|
|
5
|
+
ServiceCallReason: string;
|
|
6
|
+
CmCompletelyDown?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare class CreateServiceWorkOrderDto extends OdinRecordCreateDto {
|
|
9
|
+
readonly actionName: string;
|
|
10
|
+
constructor(properties: CreateServiceWorkOrderProperties);
|
|
11
|
+
}
|
|
12
|
+
export interface CreateServiceWorkOrderMessage extends OdinRecordCreatedEvent<CreateServiceWorkOrderDto, CreateServiceWorkOrderProperties> {
|
|
13
|
+
}
|
|
14
|
+
declare type StepClassMap = {
|
|
15
|
+
CreateServiceWorkOrderDto: CreateServiceWorkOrderDto;
|
|
16
|
+
};
|
|
17
|
+
export interface CreateServiceWorkOrderFlowMessage extends OdinRecordUpdatedEvent<CreateServiceWorkOrderFlowDto, {}> {
|
|
18
|
+
}
|
|
19
|
+
export declare class CreateServiceWorkOrderFlowDto extends OdinRecordUpdateDto {
|
|
20
|
+
readonly actionName: string;
|
|
21
|
+
constructor(record: OdinRecord<any>);
|
|
22
|
+
static readonly stepClasses: readonly ["CreateServiceWorkOrderDto"];
|
|
23
|
+
steps: StepClassMap[(typeof CreateServiceWorkOrderFlowDto.stepClasses)[number]][];
|
|
24
|
+
}
|
|
25
|
+
export declare const ROUTING_KEY_CREATE_SERVICE_WORK_ORDER_FLOW = "CreateServiceWorkOrderFlowEvent";
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ROUTING_KEY_CREATE_SERVICE_WORK_ORDER_FLOW = exports.CreateServiceWorkOrderFlowDto = exports.CreateServiceWorkOrderDto = void 0;
|
|
4
|
+
const odin_dtos_1 = require("@d19n/odin-types/dist/dtos/odin.dtos");
|
|
5
|
+
class CreateServiceWorkOrderDto extends odin_dtos_1.OdinRecordCreateDto {
|
|
6
|
+
constructor(properties) {
|
|
7
|
+
super({
|
|
8
|
+
entity: 'FieldServiceModule:WorkOrder',
|
|
9
|
+
type: 'SERVICE',
|
|
10
|
+
properties
|
|
11
|
+
});
|
|
12
|
+
this.actionName = 'CreateServiceWorkOrder';
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.CreateServiceWorkOrderDto = CreateServiceWorkOrderDto;
|
|
16
|
+
class CreateServiceWorkOrderFlowDto extends odin_dtos_1.OdinRecordUpdateDto {
|
|
17
|
+
constructor(record) {
|
|
18
|
+
super(record, null);
|
|
19
|
+
this.actionName = 'CreateServiceWorkOrderFlow';
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.CreateServiceWorkOrderFlowDto = CreateServiceWorkOrderFlowDto;
|
|
23
|
+
CreateServiceWorkOrderFlowDto.stepClasses = ['CreateServiceWorkOrderDto'];
|
|
24
|
+
exports.ROUTING_KEY_CREATE_SERVICE_WORK_ORDER_FLOW = 'CreateServiceWorkOrderFlowEvent';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { OdinRecordCreatedEvent } from '@d19n/odin-types/dist/interfaces/rabbitmq.interfaces';
|
|
2
2
|
import { OdinRecordCreateDto } from '@d19n/odin-types/dist/dtos/odin.dtos';
|
|
3
3
|
interface CreateTeamProperties {
|
|
4
|
+
SupportTeam: string;
|
|
4
5
|
Description?: string;
|
|
5
6
|
}
|
|
6
7
|
export declare class CreateTeamDto extends OdinRecordCreateDto {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/interfaces/rabbitmq.interfaces';
|
|
2
|
+
import { OdinRecordUpdateDto } from '@d19n/odin-types/dist/dtos/odin.dtos';
|
|
3
|
+
import { OdinRecord } from '@d19n/odin-types/dist/types/odin.types';
|
|
4
|
+
interface EscalateCaseActionProperties {
|
|
5
|
+
TeamId: string;
|
|
6
|
+
EscalationNote: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class EscalateCaseActionDto extends OdinRecordUpdateDto {
|
|
9
|
+
readonly actionName: string;
|
|
10
|
+
constructor(record: OdinRecord<any>, properties: EscalateCaseActionProperties);
|
|
11
|
+
}
|
|
12
|
+
export interface EscalateCaseActionMessage extends OdinRecordUpdatedEvent<EscalateCaseActionDto, EscalateCaseActionProperties> {
|
|
13
|
+
}
|
|
14
|
+
export declare const ROUTING_KEY_ESCALATE_CASE_ACTION = "EscalateCaseActionEvent";
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ROUTING_KEY_ESCALATE_CASE_ACTION = exports.EscalateCaseActionDto = void 0;
|
|
4
|
+
const odin_dtos_1 = require("@d19n/odin-types/dist/dtos/odin.dtos");
|
|
5
|
+
class EscalateCaseActionDto extends odin_dtos_1.OdinRecordUpdateDto {
|
|
6
|
+
constructor(record, properties) {
|
|
7
|
+
super(record, properties);
|
|
8
|
+
this.actionName = 'EscalateCaseAction';
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.EscalateCaseActionDto = EscalateCaseActionDto;
|
|
12
|
+
exports.ROUTING_KEY_ESCALATE_CASE_ACTION = 'EscalateCaseActionEvent';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/interfaces/rabbitmq.interfaces';
|
|
2
|
+
import { OdinRecordUpdateDto } from '@d19n/odin-types/dist/dtos/odin.dtos';
|
|
3
|
+
import { OdinRecord } from '@d19n/odin-types/dist/types/odin.types';
|
|
4
|
+
interface EscalateCaseActionProperties {
|
|
5
|
+
TeamId: string;
|
|
6
|
+
EscalationNote: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class EscalateCaseActionDto extends OdinRecordUpdateDto {
|
|
9
|
+
readonly actionName: string;
|
|
10
|
+
constructor(record: OdinRecord<any>, properties: EscalateCaseActionProperties);
|
|
11
|
+
}
|
|
12
|
+
export interface EscalateCaseActionMessage extends OdinRecordUpdatedEvent<EscalateCaseActionDto, EscalateCaseActionProperties> {
|
|
13
|
+
}
|
|
14
|
+
interface RemoveAssignmentFromCaseProperties {
|
|
15
|
+
OwnerId?: string;
|
|
16
|
+
}
|
|
17
|
+
export declare class RemoveAssignmentFromCaseDto extends OdinRecordUpdateDto {
|
|
18
|
+
readonly actionName: string;
|
|
19
|
+
constructor(record: OdinRecord<any>, properties: RemoveAssignmentFromCaseProperties);
|
|
20
|
+
}
|
|
21
|
+
export interface RemoveAssignmentFromCaseMessage extends OdinRecordUpdatedEvent<RemoveAssignmentFromCaseDto, RemoveAssignmentFromCaseProperties> {
|
|
22
|
+
}
|
|
23
|
+
declare type StepClassMap = {
|
|
24
|
+
EscalateCaseActionDto: EscalateCaseActionDto;
|
|
25
|
+
RemoveAssignmentFromCaseDto: RemoveAssignmentFromCaseDto;
|
|
26
|
+
};
|
|
27
|
+
export interface EscalateCaseTransitionMessage extends OdinRecordUpdatedEvent<EscalateCaseTransitionDto, {}> {
|
|
28
|
+
}
|
|
29
|
+
export declare class EscalateCaseTransitionDto extends OdinRecordUpdateDto {
|
|
30
|
+
readonly actionName: string;
|
|
31
|
+
readonly stageKey: string;
|
|
32
|
+
constructor(record: OdinRecord<any>);
|
|
33
|
+
static readonly stepClasses: readonly ["EscalateCaseActionDto", "RemoveAssignmentFromCaseDto"];
|
|
34
|
+
steps: StepClassMap[(typeof EscalateCaseTransitionDto.stepClasses)[number]][];
|
|
35
|
+
}
|
|
36
|
+
export declare const ROUTING_KEY_ESCALATE_CASE_TRANSITION = "EscalateCaseTransitionEvent";
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ROUTING_KEY_ESCALATE_CASE_TRANSITION = exports.EscalateCaseTransitionDto = exports.RemoveAssignmentFromCaseDto = exports.EscalateCaseActionDto = void 0;
|
|
4
|
+
const odin_dtos_1 = require("@d19n/odin-types/dist/dtos/odin.dtos");
|
|
5
|
+
class EscalateCaseActionDto extends odin_dtos_1.OdinRecordUpdateDto {
|
|
6
|
+
constructor(record, properties) {
|
|
7
|
+
super(record, properties);
|
|
8
|
+
this.actionName = 'EscalateCaseAction';
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
exports.EscalateCaseActionDto = EscalateCaseActionDto;
|
|
12
|
+
class RemoveAssignmentFromCaseDto extends odin_dtos_1.OdinRecordUpdateDto {
|
|
13
|
+
constructor(record, properties) {
|
|
14
|
+
super(record, properties);
|
|
15
|
+
this.actionName = 'RemoveAssignmentFromCase';
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.RemoveAssignmentFromCaseDto = RemoveAssignmentFromCaseDto;
|
|
19
|
+
class EscalateCaseTransitionDto extends odin_dtos_1.OdinRecordUpdateDto {
|
|
20
|
+
constructor(record) {
|
|
21
|
+
super(record, null);
|
|
22
|
+
this.actionName = 'EscalateCaseTransition';
|
|
23
|
+
this.stageKey = 'CaseDefaultStageEscalated';
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.EscalateCaseTransitionDto = EscalateCaseTransitionDto;
|
|
27
|
+
EscalateCaseTransitionDto.stepClasses = ['EscalateCaseActionDto', 'RemoveAssignmentFromCaseDto'];
|
|
28
|
+
exports.ROUTING_KEY_ESCALATE_CASE_TRANSITION = 'EscalateCaseTransitionEvent';
|
|
@@ -6,7 +6,7 @@ class MoveInstallWorkOrderToEnRouteDto extends odin_dtos_1.OdinRecordUpdateDto {
|
|
|
6
6
|
constructor(record) {
|
|
7
7
|
super(record, null);
|
|
8
8
|
this.actionName = 'MoveInstallWorkOrderToEnRoute';
|
|
9
|
-
this.stageKey = '
|
|
9
|
+
this.stageKey = 'CustomerWorkOrdersStageEnRoute';
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
exports.MoveInstallWorkOrderToEnRouteDto = MoveInstallWorkOrderToEnRouteDto;
|
|
@@ -11,6 +11,8 @@ interface UpdateCustomerDeviceOntProperties {
|
|
|
11
11
|
PonPort?: string;
|
|
12
12
|
OperStatus?: string;
|
|
13
13
|
LastCheckStatusDate?: Date;
|
|
14
|
+
StaticIpReboot?: string;
|
|
15
|
+
StaticIpRebootTime?: Date;
|
|
14
16
|
}
|
|
15
17
|
export declare class UpdateCustomerDeviceOntDto extends OdinRecordUpdateDto {
|
|
16
18
|
readonly actionName: string;
|
|
@@ -3,6 +3,7 @@ import { OdinRecordUpdateDto } from '@d19n/odin-types/dist/dtos/odin.dtos';
|
|
|
3
3
|
import { OdinRecord } from '@d19n/odin-types/dist/types/odin.types';
|
|
4
4
|
interface UpdateOrderProperties {
|
|
5
5
|
Provider?: string;
|
|
6
|
+
SubscriberId?: string;
|
|
6
7
|
}
|
|
7
8
|
export declare class UpdateOrderDto extends OdinRecordUpdateDto {
|
|
8
9
|
readonly actionName: string;
|
|
@@ -5,10 +5,10 @@ interface UpdateServiceScheduleProperties {
|
|
|
5
5
|
IsDefault: boolean;
|
|
6
6
|
AvailableFrom: Date;
|
|
7
7
|
Contractor: string;
|
|
8
|
-
RegionId: string;
|
|
9
8
|
ExPolygonId?: string;
|
|
10
9
|
Description?: string;
|
|
11
10
|
AvailableTo?: Date;
|
|
11
|
+
RegionId?: string;
|
|
12
12
|
BookingDelay?: number;
|
|
13
13
|
MaxAdvanceBooking?: number;
|
|
14
14
|
Priority?: number;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { OauthParams } from '@d19n/odin-sdk-generator/dist/api.interfaces';
|
|
2
|
+
import { ApiProvider } from '@d19n/odin-sdk-generator/dist/api.provider';
|
|
3
|
+
import { OdinSearchV2 } from '@d19n/odin-types/dist/interfaces/v2.db.interfaces';
|
|
4
|
+
import { OdinRecordCreateDto, OdinRecordUpdateDto } from '@d19n/odin-types/dist/dtos/odin.dtos';
|
|
5
|
+
import { NotificationTemplateProperties } from '../entities-v2/NotificationTemplate';
|
|
6
|
+
export declare class NotificationTemplateApi extends ApiProvider {
|
|
7
|
+
protected readonly authToken?: string;
|
|
8
|
+
private readonly moduleName;
|
|
9
|
+
private readonly entityName;
|
|
10
|
+
private sourceRecord;
|
|
11
|
+
constructor(authParams?: OauthParams, authToken?: string);
|
|
12
|
+
setRecord(sourceRecord: any): void;
|
|
13
|
+
schema(): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinSchema>;
|
|
14
|
+
search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/api.interfaces").OdinSearchResponse<import("@d19n/odin-types/dist/types/odin.types").OdinRecord<NotificationTemplateProperties>>>;
|
|
15
|
+
searchAndPaginate(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/api.interfaces").OdinSearchResponse<import("@d19n/odin-types/dist/types/odin.types").OdinRecord<NotificationTemplateProperties>>>;
|
|
16
|
+
reIndex(body: {
|
|
17
|
+
id: string;
|
|
18
|
+
schemaId: string;
|
|
19
|
+
}[]): Promise<any>;
|
|
20
|
+
get(notificationTemplateId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinRecord<NotificationTemplateProperties>>;
|
|
21
|
+
getMany(notificationTemplateIds: string[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinRecord<NotificationTemplateProperties>[]>;
|
|
22
|
+
upsert(upsertDto: OdinRecordCreateDto): Promise<import("@d19n/odin-types/dist/interfaces/v1.db.interfaces").IDbRecordCreateUpdateRes>;
|
|
23
|
+
upsertMany(upsertDtos: OdinRecordCreateDto[]): Promise<import("@d19n/odin-types/dist/interfaces/v1.db.interfaces").IDbRecordCreateUpdateRes[]>;
|
|
24
|
+
update(updateDto: OdinRecordUpdateDto): Promise<import("@d19n/odin-types/dist/interfaces/v1.db.interfaces").IDbRecordCreateUpdateRes>;
|
|
25
|
+
updateMany(updateDtos: OdinRecordUpdateDto[]): Promise<import("@d19n/odin-types/dist/interfaces/v1.db.interfaces").IDbRecordCreateUpdateRes[]>;
|
|
26
|
+
delete(notificationTemplateId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinDeleteResponse>;
|
|
27
|
+
deleteMany(notificationTemplateIds: string[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinDeleteResponse[]>;
|
|
28
|
+
restore(notificationTemplateIds: string[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinRestoreResponse[]>;
|
|
29
|
+
applyAction(dto: any): Promise<any[]>;
|
|
30
|
+
getVersions(): Promise<{
|
|
31
|
+
[key: string]: Record<string, any>;
|
|
32
|
+
}>;
|
|
33
|
+
getRevisionTimeline(): Promise<{
|
|
34
|
+
[key: string]: Record<string, any>[];
|
|
35
|
+
}>;
|
|
36
|
+
}
|