@d19n/youfibre-odin-sdk 1.0.140 → 1.0.141-beta.1
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/CreateCashbackRewardDto.d.ts +17 -0
- package/dist/actions-v2/CreateCashbackRewardDto.js +16 -0
- package/dist/api-sdk-v2/CaseApi.d.ts +5 -5
- package/dist/api-sdk-v2/CaseApi.js +7 -7
- package/dist/api-sdk-v2/OutageCaseApi.d.ts +5 -5
- package/dist/api-sdk-v2/OutageCaseApi.js +7 -7
- package/dist/entities-v2/OutageCase.d.ts +2 -4
- package/dist/entities-v2/OutageCase.js +2 -4
- package/package.json +1 -1
- package/src/actions-v2/CreateCashbackRewardDto.ts +29 -0
- package/src/api-sdk-v2/CaseApi.ts +47 -47
- package/src/api-sdk-v2/OutageCaseApi.ts +39 -39
- package/src/entities-v2/OutageCase.ts +2 -4
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { OdinRecordCreatedEvent } from '@d19n/odin-types/dist/interfaces/rabbitmq.interfaces';
|
|
2
|
+
import { OdinRecordCreateDto } from '@d19n/odin-types/dist/dtos/odin.dtos';
|
|
3
|
+
interface CreateCashbackRewardProperties {
|
|
4
|
+
Currency: number;
|
|
5
|
+
Amount: number;
|
|
6
|
+
ContactId: string;
|
|
7
|
+
CampaignId: string;
|
|
8
|
+
AffiliateCodeId: string;
|
|
9
|
+
}
|
|
10
|
+
export declare class CreateCashbackRewardDto extends OdinRecordCreateDto {
|
|
11
|
+
readonly actionName: string;
|
|
12
|
+
constructor(properties: CreateCashbackRewardProperties);
|
|
13
|
+
}
|
|
14
|
+
export interface CreateCashbackRewardMessage extends OdinRecordCreatedEvent<CreateCashbackRewardDto, CreateCashbackRewardProperties> {
|
|
15
|
+
}
|
|
16
|
+
export declare const ROUTING_KEY_CASHBACK_REWARD_CREATED = "CashbackRewardCreated";
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ROUTING_KEY_CASHBACK_REWARD_CREATED = exports.CreateCashbackRewardDto = void 0;
|
|
4
|
+
const odin_dtos_1 = require("@d19n/odin-types/dist/dtos/odin.dtos");
|
|
5
|
+
class CreateCashbackRewardDto extends odin_dtos_1.OdinRecordCreateDto {
|
|
6
|
+
constructor(properties) {
|
|
7
|
+
super({
|
|
8
|
+
entity: 'CrmModule:Reward',
|
|
9
|
+
type: 'CASHBACK',
|
|
10
|
+
properties
|
|
11
|
+
});
|
|
12
|
+
this.actionName = 'CreateCashbackReward';
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.CreateCashbackRewardDto = CreateCashbackRewardDto;
|
|
16
|
+
exports.ROUTING_KEY_CASHBACK_REWARD_CREATED = 'CashbackRewardCreated';
|
|
@@ -13,20 +13,20 @@ export declare class CaseApi extends ApiProvider {
|
|
|
13
13
|
readonly case__user: ApiRecordLinkManager;
|
|
14
14
|
readonly casecollaborators: ApiRecordLinkManager;
|
|
15
15
|
readonly followers: ApiRecordLinkManager;
|
|
16
|
-
readonly favourite_cases: ApiRecordLinkManager;
|
|
17
16
|
readonly outage__case: ApiRecordLinkManager;
|
|
17
|
+
readonly call__case: ApiRecordLinkManager;
|
|
18
|
+
readonly account__case: ApiRecordLinkManager;
|
|
19
|
+
readonly queue__case: ApiRecordLinkManager;
|
|
20
|
+
readonly case__case: ApiRecordLinkManager;
|
|
18
21
|
readonly outage: ApiRecordLinkManager;
|
|
22
|
+
readonly favourite_cases: ApiRecordLinkManager;
|
|
19
23
|
readonly smsmessage: ApiRecordLinkManager;
|
|
20
24
|
readonly email: ApiRecordLinkManager;
|
|
21
|
-
readonly call: ApiRecordLinkManager;
|
|
22
25
|
readonly contractbuyout: ApiRecordLinkManager;
|
|
23
26
|
readonly team: ApiRecordLinkManager;
|
|
24
27
|
readonly note: ApiRecordLinkManager;
|
|
25
|
-
readonly account: ApiRecordLinkManager;
|
|
26
28
|
readonly workorder: ApiRecordLinkManager;
|
|
27
|
-
readonly queue: ApiRecordLinkManager;
|
|
28
29
|
readonly conversation: ApiRecordLinkManager;
|
|
29
|
-
readonly case: ApiRecordLinkManager;
|
|
30
30
|
readonly file: ApiRecordLinkManager;
|
|
31
31
|
readonly caseaction: ApiRecordLinkManager;
|
|
32
32
|
readonly order: ApiRecordLinkManager;
|
|
@@ -22,20 +22,20 @@ class CaseApi extends api_provider_1.ApiProvider {
|
|
|
22
22
|
this.case__user = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'IdentityModule:User', 'Case__User');
|
|
23
23
|
this.casecollaborators = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'IdentityModule:User', 'CaseCollaborators');
|
|
24
24
|
this.followers = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'IdentityModule:User', 'followers');
|
|
25
|
-
this.
|
|
26
|
-
this.
|
|
27
|
-
this.
|
|
25
|
+
this.outage__case = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'ServiceModule:Outage', 'SupportModule:Case', 'Outage__Case');
|
|
26
|
+
this.call__case = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'NotificationModule:Call', 'SupportModule:Case', 'Call__Case');
|
|
27
|
+
this.account__case = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'CrmModule:Account', 'SupportModule:Case', 'Account__Case');
|
|
28
|
+
this.queue__case = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Queue', 'SupportModule:Case', 'Queue__Case');
|
|
29
|
+
this.case__case = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'SupportModule:Case', 'Case__Case');
|
|
30
|
+
this.outage = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'ServiceModule:Outage', 'SupportModule:Case', 'Outage');
|
|
31
|
+
this.favourite_cases = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'IdentityModule:User', 'SupportModule:Case', 'favourite_cases');
|
|
28
32
|
this.smsmessage = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'NotificationModule:SmsMessage', 'Case__SmsMessage');
|
|
29
33
|
this.email = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'NotificationModule:Email', 'Case__Email');
|
|
30
|
-
this.call = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'NotificationModule:Call', 'Call__Case');
|
|
31
34
|
this.contractbuyout = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'OrderModule:ContractBuyOut', 'Case__ContractBuyOut');
|
|
32
35
|
this.team = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'IdentityModule:Team', 'Case_Team');
|
|
33
36
|
this.note = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'SupportModule:Note', 'Case__Note');
|
|
34
|
-
this.account = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'CrmModule:Account', 'Account__Case');
|
|
35
37
|
this.workorder = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'FieldServiceModule:WorkOrder', 'Case__WorkOrder');
|
|
36
|
-
this.queue = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'SupportModule:Queue', 'Queue__Case');
|
|
37
38
|
this.conversation = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'NotificationModule:Conversation', 'Case_Conversation');
|
|
38
|
-
this.case = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'SupportModule:Case', 'Case__Case');
|
|
39
39
|
this.file = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'SchemaModule:File', 'Case__File');
|
|
40
40
|
this.caseaction = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'SupportModule:CaseAction', 'Case__CaseAction');
|
|
41
41
|
this.order = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'OrderModule:Order', 'Case__Order');
|
|
@@ -14,20 +14,20 @@ export declare class OutageCaseApi extends ApiProvider {
|
|
|
14
14
|
readonly case__user: ApiRecordLinkManager;
|
|
15
15
|
readonly casecollaborators: ApiRecordLinkManager;
|
|
16
16
|
readonly followers: ApiRecordLinkManager;
|
|
17
|
-
readonly favourite_cases: ApiRecordLinkManager;
|
|
18
17
|
readonly outage__case: ApiRecordLinkManager;
|
|
18
|
+
readonly call__case: ApiRecordLinkManager;
|
|
19
|
+
readonly account__case: ApiRecordLinkManager;
|
|
20
|
+
readonly queue__case: ApiRecordLinkManager;
|
|
21
|
+
readonly case__case: ApiRecordLinkManager;
|
|
19
22
|
readonly outage: ApiRecordLinkManager;
|
|
23
|
+
readonly favourite_cases: ApiRecordLinkManager;
|
|
20
24
|
readonly smsmessage: ApiRecordLinkManager;
|
|
21
25
|
readonly email: ApiRecordLinkManager;
|
|
22
|
-
readonly call: ApiRecordLinkManager;
|
|
23
26
|
readonly contractbuyout: ApiRecordLinkManager;
|
|
24
27
|
readonly team: ApiRecordLinkManager;
|
|
25
28
|
readonly note: ApiRecordLinkManager;
|
|
26
|
-
readonly account: ApiRecordLinkManager;
|
|
27
29
|
readonly workorder: ApiRecordLinkManager;
|
|
28
|
-
readonly queue: ApiRecordLinkManager;
|
|
29
30
|
readonly conversation: ApiRecordLinkManager;
|
|
30
|
-
readonly case: ApiRecordLinkManager;
|
|
31
31
|
readonly file: ApiRecordLinkManager;
|
|
32
32
|
readonly caseaction: ApiRecordLinkManager;
|
|
33
33
|
readonly order: ApiRecordLinkManager;
|
|
@@ -23,20 +23,20 @@ class OutageCaseApi extends api_provider_1.ApiProvider {
|
|
|
23
23
|
this.case__user = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'IdentityModule:User', 'Case__User');
|
|
24
24
|
this.casecollaborators = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'IdentityModule:User', 'CaseCollaborators');
|
|
25
25
|
this.followers = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'IdentityModule:User', 'followers');
|
|
26
|
-
this.
|
|
27
|
-
this.
|
|
28
|
-
this.
|
|
26
|
+
this.outage__case = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'SupportModule:Case', 'Outage__Case');
|
|
27
|
+
this.call__case = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'SupportModule:Case', 'Call__Case');
|
|
28
|
+
this.account__case = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'SupportModule:Case', 'Account__Case');
|
|
29
|
+
this.queue__case = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'SupportModule:Case', 'Queue__Case');
|
|
30
|
+
this.case__case = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'SupportModule:Case', 'Case__Case');
|
|
31
|
+
this.outage = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'SupportModule:Case', 'Outage');
|
|
32
|
+
this.favourite_cases = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'SupportModule:Case', 'favourite_cases');
|
|
29
33
|
this.smsmessage = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'NotificationModule:SmsMessage', 'Case__SmsMessage');
|
|
30
34
|
this.email = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'NotificationModule:Email', 'Case__Email');
|
|
31
|
-
this.call = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'NotificationModule:Call', 'Call__Case');
|
|
32
35
|
this.contractbuyout = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'OrderModule:ContractBuyOut', 'Case__ContractBuyOut');
|
|
33
36
|
this.team = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'IdentityModule:Team', 'Case_Team');
|
|
34
37
|
this.note = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'SupportModule:Note', 'Case__Note');
|
|
35
|
-
this.account = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'CrmModule:Account', 'Account__Case');
|
|
36
38
|
this.workorder = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'FieldServiceModule:WorkOrder', 'Case__WorkOrder');
|
|
37
|
-
this.queue = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'SupportModule:Queue', 'Queue__Case');
|
|
38
39
|
this.conversation = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'NotificationModule:Conversation', 'Case_Conversation');
|
|
39
|
-
this.case = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'SupportModule:Case', 'Case__Case');
|
|
40
40
|
this.file = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'SchemaModule:File', 'Case__File');
|
|
41
41
|
this.caseaction = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'SupportModule:CaseAction', 'Case__CaseAction');
|
|
42
42
|
this.order = new api_record_link_manager_1.ApiRecordLinkManager(authParams, 'SupportModule:Case', 'OrderModule:Order', 'Case__Order');
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { OdinRecord, OdinLink, LinkedOdinRecord } from '@d19n/odin-types/dist/types/odin.types';
|
|
2
2
|
import { UserProperties } from './User';
|
|
3
|
+
import { CaseProperties } from './Case';
|
|
3
4
|
import { OutageProperties } from './Outage';
|
|
4
5
|
import { SmsMessageProperties } from './SmsMessage';
|
|
5
6
|
import { EmailProperties } from './Email';
|
|
@@ -11,7 +12,6 @@ import { AccountProperties } from './Account';
|
|
|
11
12
|
import { WorkOrderProperties } from './WorkOrder';
|
|
12
13
|
import { QueueProperties } from './Queue';
|
|
13
14
|
import { ConversationProperties } from './Conversation';
|
|
14
|
-
import { CaseProperties } from './Case';
|
|
15
15
|
import { FileProperties } from './File';
|
|
16
16
|
import { CaseActionProperties } from './CaseAction';
|
|
17
17
|
import { OrderProperties } from './Order';
|
|
@@ -361,6 +361,7 @@ export declare class OutageCase extends OdinRecord<OutageCaseProperties> {
|
|
|
361
361
|
schemaId: 'be8173eb-269b-4a67-be0c-11ce6af5d561';
|
|
362
362
|
properties: OutageCaseProperties;
|
|
363
363
|
User: OdinLink<LinkedOdinRecord<UserProperties>>;
|
|
364
|
+
Case: OdinLink<LinkedOdinRecord<CaseProperties>>;
|
|
364
365
|
Outage: OdinLink<LinkedOdinRecord<OutageProperties>>;
|
|
365
366
|
SmsMessage: OdinLink<LinkedOdinRecord<SmsMessageProperties>>;
|
|
366
367
|
Email: OdinLink<LinkedOdinRecord<EmailProperties>>;
|
|
@@ -372,7 +373,6 @@ export declare class OutageCase extends OdinRecord<OutageCaseProperties> {
|
|
|
372
373
|
WorkOrder: OdinLink<LinkedOdinRecord<WorkOrderProperties>>;
|
|
373
374
|
Queue: OdinLink<LinkedOdinRecord<QueueProperties>>;
|
|
374
375
|
Conversation: OdinLink<LinkedOdinRecord<ConversationProperties>>;
|
|
375
|
-
Case: OdinLink<LinkedOdinRecord<CaseProperties>>;
|
|
376
376
|
File: OdinLink<LinkedOdinRecord<FileProperties>>;
|
|
377
377
|
CaseAction: OdinLink<LinkedOdinRecord<CaseActionProperties>>;
|
|
378
378
|
Order: OdinLink<LinkedOdinRecord<OrderProperties>>;
|
|
@@ -399,8 +399,6 @@ export declare const ROUTING_KEY_LINK_CASE_WORK_ORDER_CREATED = "SupportModule.C
|
|
|
399
399
|
export declare const ROUTING_KEY_LINK_CASE_WORK_ORDER_DELETED = "SupportModule.Case.WorkOrder.SubDbRecordAssociationDeleted";
|
|
400
400
|
export declare const ROUTING_KEY_LINK_CASE_CONVERSATION_CREATED = "SupportModule.Case.Conversation.SubDbRecordAssociationCreated";
|
|
401
401
|
export declare const ROUTING_KEY_LINK_CASE_CONVERSATION_DELETED = "SupportModule.Case.Conversation.SubDbRecordAssociationDeleted";
|
|
402
|
-
export declare const ROUTING_KEY_LINK_CASE_CASE_CREATED = "SupportModule.Case.Case.SubDbRecordAssociationCreated";
|
|
403
|
-
export declare const ROUTING_KEY_LINK_CASE_CASE_DELETED = "SupportModule.Case.Case.SubDbRecordAssociationDeleted";
|
|
404
402
|
export declare const ROUTING_KEY_LINK_CASE_FILE_CREATED = "SupportModule.Case.File.SubDbRecordAssociationCreated";
|
|
405
403
|
export declare const ROUTING_KEY_LINK_CASE_FILE_DELETED = "SupportModule.Case.File.SubDbRecordAssociationDeleted";
|
|
406
404
|
export declare const ROUTING_KEY_LINK_CASE_CASE_ACTION_CREATED = "SupportModule.Case.CaseAction.SubDbRecordAssociationCreated";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.ROUTING_KEY_LINK_CASE_ADDRESS_DELETED =
|
|
3
|
+
exports.ROUTING_KEY_LINK_CASE_ADDRESS_CREATED = exports.ROUTING_KEY_LINK_CASE_CONTACT_DELETED = exports.ROUTING_KEY_LINK_CASE_CONTACT_CREATED = exports.ROUTING_KEY_LINK_CASE_QUEUE_CHANGE_DELETED = exports.ROUTING_KEY_LINK_CASE_QUEUE_CHANGE_CREATED = exports.ROUTING_KEY_LINK_CASE_ORDER_DELETED = exports.ROUTING_KEY_LINK_CASE_ORDER_CREATED = exports.ROUTING_KEY_LINK_CASE_CASE_ACTION_DELETED = exports.ROUTING_KEY_LINK_CASE_CASE_ACTION_CREATED = exports.ROUTING_KEY_LINK_CASE_FILE_DELETED = exports.ROUTING_KEY_LINK_CASE_FILE_CREATED = exports.ROUTING_KEY_LINK_CASE_CONVERSATION_DELETED = exports.ROUTING_KEY_LINK_CASE_CONVERSATION_CREATED = exports.ROUTING_KEY_LINK_CASE_WORK_ORDER_DELETED = exports.ROUTING_KEY_LINK_CASE_WORK_ORDER_CREATED = exports.ROUTING_KEY_LINK_CASE_NOTE_DELETED = exports.ROUTING_KEY_LINK_CASE_NOTE_CREATED = exports.ROUTING_KEY_LINK_CASE_TEAM_DELETED = exports.ROUTING_KEY_LINK_CASE_TEAM_CREATED = exports.ROUTING_KEY_LINK_CASE_CONTRACT_BUY_OUT_DELETED = exports.ROUTING_KEY_LINK_CASE_CONTRACT_BUY_OUT_CREATED = exports.ROUTING_KEY_LINK_CASE_EMAIL_DELETED = exports.ROUTING_KEY_LINK_CASE_EMAIL_CREATED = exports.ROUTING_KEY_LINK_CASE_SMS_MESSAGE_DELETED = exports.ROUTING_KEY_LINK_CASE_SMS_MESSAGE_CREATED = exports.ROUTING_KEY_LINK_CASE_OWNER_DELETED = exports.ROUTING_KEY_LINK_CASE_OWNER_CREATED = exports.ROUTING_KEY_CASE_DELETED = exports.ROUTING_KEY_CASE_UPDATED = exports.ROUTING_KEY_CASE_CREATED = exports.OutageCase = exports.OutageCasePropertyKeys = exports.OutageCaseStageKeys = exports.OutageCaseStageNames = exports.OutageCaseCategory = exports.OutageCaseProblem = exports.OutageCaseSource = exports.OutageCaseConversationStatus = exports.OutageCaseImpact = exports.OutageCaseCsatReason = exports.OutageCaseSubCategory = exports.OutageCaseReasonForReview = exports.OutageCaseDpaCustomerCategory = exports.OutageCaseChannel = exports.OutageCaseBlockedReason = exports.OutageCaseDpaCustomerType = exports.OutageCaseBusinessArea = exports.OutageCaseSla = exports.OutageCaseDeprecated = exports.OutageCaseOrigin = void 0;
|
|
4
|
+
exports.ROUTING_KEY_LINK_CASE_ADDRESS_DELETED = void 0;
|
|
5
5
|
const odin_types_1 = require("@d19n/odin-types/dist/types/odin.types");
|
|
6
6
|
var OutageCaseOrigin;
|
|
7
7
|
(function (OutageCaseOrigin) {
|
|
@@ -309,8 +309,6 @@ exports.ROUTING_KEY_LINK_CASE_WORK_ORDER_CREATED = 'SupportModule.Case.WorkOrder
|
|
|
309
309
|
exports.ROUTING_KEY_LINK_CASE_WORK_ORDER_DELETED = 'SupportModule.Case.WorkOrder.SubDbRecordAssociationDeleted';
|
|
310
310
|
exports.ROUTING_KEY_LINK_CASE_CONVERSATION_CREATED = 'SupportModule.Case.Conversation.SubDbRecordAssociationCreated';
|
|
311
311
|
exports.ROUTING_KEY_LINK_CASE_CONVERSATION_DELETED = 'SupportModule.Case.Conversation.SubDbRecordAssociationDeleted';
|
|
312
|
-
exports.ROUTING_KEY_LINK_CASE_CASE_CREATED = 'SupportModule.Case.Case.SubDbRecordAssociationCreated';
|
|
313
|
-
exports.ROUTING_KEY_LINK_CASE_CASE_DELETED = 'SupportModule.Case.Case.SubDbRecordAssociationDeleted';
|
|
314
312
|
exports.ROUTING_KEY_LINK_CASE_FILE_CREATED = 'SupportModule.Case.File.SubDbRecordAssociationCreated';
|
|
315
313
|
exports.ROUTING_KEY_LINK_CASE_FILE_DELETED = 'SupportModule.Case.File.SubDbRecordAssociationDeleted';
|
|
316
314
|
exports.ROUTING_KEY_LINK_CASE_CASE_ACTION_CREATED = 'SupportModule.Case.CaseAction.SubDbRecordAssociationCreated';
|
package/package.json
CHANGED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { OdinRecordUpdatedEvent, OdinRecordCreatedEvent, OdinRecordDeletedEvent, OdinRecordLinkCreatedEvent } 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
|
+
// ODIN ACTION
|
|
5
|
+
// An Action is a single transaction that changes the properties of one or more objects.
|
|
6
|
+
interface CreateCashbackRewardProperties {
|
|
7
|
+
Currency: number,
|
|
8
|
+
Amount: number,
|
|
9
|
+
ContactId: string,
|
|
10
|
+
CampaignId: string,
|
|
11
|
+
AffiliateCodeId: string,
|
|
12
|
+
}
|
|
13
|
+
export class CreateCashbackRewardDto extends OdinRecordCreateDto {
|
|
14
|
+
public readonly actionName: string = 'CreateCashbackReward';
|
|
15
|
+
constructor(properties: CreateCashbackRewardProperties) {
|
|
16
|
+
super({
|
|
17
|
+
entity: 'CrmModule:Reward',
|
|
18
|
+
type: 'CASHBACK',
|
|
19
|
+
properties
|
|
20
|
+
})
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
export interface CreateCashbackRewardMessage extends OdinRecordCreatedEvent<CreateCashbackRewardDto, CreateCashbackRewardProperties> {}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export const ROUTING_KEY_CASHBACK_REWARD_CREATED = 'CashbackRewardCreated';
|
|
29
|
+
|
|
@@ -17,20 +17,20 @@
|
|
|
17
17
|
public readonly case__user: ApiRecordLinkManager;
|
|
18
18
|
public readonly casecollaborators: ApiRecordLinkManager;
|
|
19
19
|
public readonly followers: ApiRecordLinkManager;
|
|
20
|
-
public readonly favourite_cases: ApiRecordLinkManager;
|
|
21
20
|
public readonly outage__case: ApiRecordLinkManager;
|
|
21
|
+
public readonly call__case: ApiRecordLinkManager;
|
|
22
|
+
public readonly account__case: ApiRecordLinkManager;
|
|
23
|
+
public readonly queue__case: ApiRecordLinkManager;
|
|
24
|
+
public readonly case__case: ApiRecordLinkManager;
|
|
22
25
|
public readonly outage: ApiRecordLinkManager;
|
|
26
|
+
public readonly favourite_cases: ApiRecordLinkManager;
|
|
23
27
|
public readonly smsmessage: ApiRecordLinkManager;
|
|
24
28
|
public readonly email: ApiRecordLinkManager;
|
|
25
|
-
public readonly call: ApiRecordLinkManager;
|
|
26
29
|
public readonly contractbuyout: ApiRecordLinkManager;
|
|
27
30
|
public readonly team: ApiRecordLinkManager;
|
|
28
31
|
public readonly note: ApiRecordLinkManager;
|
|
29
|
-
public readonly account: ApiRecordLinkManager;
|
|
30
32
|
public readonly workorder: ApiRecordLinkManager;
|
|
31
|
-
public readonly queue: ApiRecordLinkManager;
|
|
32
33
|
public readonly conversation: ApiRecordLinkManager;
|
|
33
|
-
public readonly case: ApiRecordLinkManager;
|
|
34
34
|
public readonly file: ApiRecordLinkManager;
|
|
35
35
|
public readonly caseaction: ApiRecordLinkManager;
|
|
36
36
|
public readonly order: ApiRecordLinkManager;
|
|
@@ -41,47 +41,71 @@
|
|
|
41
41
|
super(authParams, authToken);
|
|
42
42
|
|
|
43
43
|
this.caseowner = new ApiRecordLinkManager(
|
|
44
|
-
|
|
45
|
-
'SupportModule:Case',
|
|
44
|
+
authParams,
|
|
45
|
+
'SupportModule:Case',
|
|
46
46
|
'IdentityModule:User',
|
|
47
47
|
'CaseOwner'
|
|
48
48
|
);
|
|
49
49
|
this.case__user = new ApiRecordLinkManager(
|
|
50
|
-
|
|
51
|
-
'SupportModule:Case',
|
|
50
|
+
authParams,
|
|
51
|
+
'SupportModule:Case',
|
|
52
52
|
'IdentityModule:User',
|
|
53
53
|
'Case__User'
|
|
54
54
|
);
|
|
55
55
|
this.casecollaborators = new ApiRecordLinkManager(
|
|
56
|
-
|
|
57
|
-
'SupportModule:Case',
|
|
56
|
+
authParams,
|
|
57
|
+
'SupportModule:Case',
|
|
58
58
|
'IdentityModule:User',
|
|
59
59
|
'CaseCollaborators'
|
|
60
60
|
);
|
|
61
61
|
this.followers = new ApiRecordLinkManager(
|
|
62
|
-
|
|
63
|
-
'SupportModule:Case',
|
|
62
|
+
authParams,
|
|
63
|
+
'SupportModule:Case',
|
|
64
64
|
'IdentityModule:User',
|
|
65
65
|
'followers'
|
|
66
66
|
);
|
|
67
|
-
this.favourite_cases = new ApiRecordLinkManager(
|
|
68
|
-
authParams,
|
|
69
|
-
'SupportModule:Case',
|
|
70
|
-
'IdentityModule:User',
|
|
71
|
-
'favourite_cases'
|
|
72
|
-
);
|
|
73
67
|
this.outage__case = new ApiRecordLinkManager(
|
|
74
|
-
|
|
75
|
-
'SupportModule:Case',
|
|
68
|
+
authParams,
|
|
76
69
|
'ServiceModule:Outage',
|
|
70
|
+
'SupportModule:Case',
|
|
77
71
|
'Outage__Case'
|
|
78
72
|
);
|
|
73
|
+
this.call__case = new ApiRecordLinkManager(
|
|
74
|
+
authParams,
|
|
75
|
+
'NotificationModule:Call',
|
|
76
|
+
'SupportModule:Case',
|
|
77
|
+
'Call__Case'
|
|
78
|
+
);
|
|
79
|
+
this.account__case = new ApiRecordLinkManager(
|
|
80
|
+
authParams,
|
|
81
|
+
'CrmModule:Account',
|
|
82
|
+
'SupportModule:Case',
|
|
83
|
+
'Account__Case'
|
|
84
|
+
);
|
|
85
|
+
this.queue__case = new ApiRecordLinkManager(
|
|
86
|
+
authParams,
|
|
87
|
+
'SupportModule:Queue',
|
|
88
|
+
'SupportModule:Case',
|
|
89
|
+
'Queue__Case'
|
|
90
|
+
);
|
|
91
|
+
this.case__case = new ApiRecordLinkManager(
|
|
92
|
+
authParams,
|
|
93
|
+
'SupportModule:Case',
|
|
94
|
+
'SupportModule:Case',
|
|
95
|
+
'Case__Case'
|
|
96
|
+
);
|
|
79
97
|
this.outage = new ApiRecordLinkManager(
|
|
80
|
-
|
|
81
|
-
'SupportModule:Case',
|
|
98
|
+
authParams,
|
|
82
99
|
'ServiceModule:Outage',
|
|
100
|
+
'SupportModule:Case',
|
|
83
101
|
'Outage'
|
|
84
102
|
);
|
|
103
|
+
this.favourite_cases = new ApiRecordLinkManager(
|
|
104
|
+
authParams,
|
|
105
|
+
'IdentityModule:User',
|
|
106
|
+
'SupportModule:Case',
|
|
107
|
+
'favourite_cases'
|
|
108
|
+
);
|
|
85
109
|
this.smsmessage = new ApiRecordLinkManager(
|
|
86
110
|
authParams,
|
|
87
111
|
'SupportModule:Case',
|
|
@@ -94,12 +118,6 @@
|
|
|
94
118
|
'NotificationModule:Email',
|
|
95
119
|
'Case__Email'
|
|
96
120
|
);
|
|
97
|
-
this.call = new ApiRecordLinkManager(
|
|
98
|
-
authParams,
|
|
99
|
-
'SupportModule:Case',
|
|
100
|
-
'NotificationModule:Call',
|
|
101
|
-
'Call__Case'
|
|
102
|
-
);
|
|
103
121
|
this.contractbuyout = new ApiRecordLinkManager(
|
|
104
122
|
authParams,
|
|
105
123
|
'SupportModule:Case',
|
|
@@ -118,36 +136,18 @@
|
|
|
118
136
|
'SupportModule:Note',
|
|
119
137
|
'Case__Note'
|
|
120
138
|
);
|
|
121
|
-
this.account = new ApiRecordLinkManager(
|
|
122
|
-
authParams,
|
|
123
|
-
'SupportModule:Case',
|
|
124
|
-
'CrmModule:Account',
|
|
125
|
-
'Account__Case'
|
|
126
|
-
);
|
|
127
139
|
this.workorder = new ApiRecordLinkManager(
|
|
128
140
|
authParams,
|
|
129
141
|
'SupportModule:Case',
|
|
130
142
|
'FieldServiceModule:WorkOrder',
|
|
131
143
|
'Case__WorkOrder'
|
|
132
144
|
);
|
|
133
|
-
this.queue = new ApiRecordLinkManager(
|
|
134
|
-
authParams,
|
|
135
|
-
'SupportModule:Case',
|
|
136
|
-
'SupportModule:Queue',
|
|
137
|
-
'Queue__Case'
|
|
138
|
-
);
|
|
139
145
|
this.conversation = new ApiRecordLinkManager(
|
|
140
146
|
authParams,
|
|
141
147
|
'SupportModule:Case',
|
|
142
148
|
'NotificationModule:Conversation',
|
|
143
149
|
'Case_Conversation'
|
|
144
150
|
);
|
|
145
|
-
this.case = new ApiRecordLinkManager(
|
|
146
|
-
authParams,
|
|
147
|
-
'SupportModule:Case',
|
|
148
|
-
'SupportModule:Case',
|
|
149
|
-
'Case__Case'
|
|
150
|
-
);
|
|
151
151
|
this.file = new ApiRecordLinkManager(
|
|
152
152
|
authParams,
|
|
153
153
|
'SupportModule:Case',
|
|
@@ -18,20 +18,20 @@
|
|
|
18
18
|
public readonly case__user: ApiRecordLinkManager;
|
|
19
19
|
public readonly casecollaborators: ApiRecordLinkManager;
|
|
20
20
|
public readonly followers: ApiRecordLinkManager;
|
|
21
|
-
public readonly favourite_cases: ApiRecordLinkManager;
|
|
22
21
|
public readonly outage__case: ApiRecordLinkManager;
|
|
22
|
+
public readonly call__case: ApiRecordLinkManager;
|
|
23
|
+
public readonly account__case: ApiRecordLinkManager;
|
|
24
|
+
public readonly queue__case: ApiRecordLinkManager;
|
|
25
|
+
public readonly case__case: ApiRecordLinkManager;
|
|
23
26
|
public readonly outage: ApiRecordLinkManager;
|
|
27
|
+
public readonly favourite_cases: ApiRecordLinkManager;
|
|
24
28
|
public readonly smsmessage: ApiRecordLinkManager;
|
|
25
29
|
public readonly email: ApiRecordLinkManager;
|
|
26
|
-
public readonly call: ApiRecordLinkManager;
|
|
27
30
|
public readonly contractbuyout: ApiRecordLinkManager;
|
|
28
31
|
public readonly team: ApiRecordLinkManager;
|
|
29
32
|
public readonly note: ApiRecordLinkManager;
|
|
30
|
-
public readonly account: ApiRecordLinkManager;
|
|
31
33
|
public readonly workorder: ApiRecordLinkManager;
|
|
32
|
-
public readonly queue: ApiRecordLinkManager;
|
|
33
34
|
public readonly conversation: ApiRecordLinkManager;
|
|
34
|
-
public readonly case: ApiRecordLinkManager;
|
|
35
35
|
public readonly file: ApiRecordLinkManager;
|
|
36
36
|
public readonly caseaction: ApiRecordLinkManager;
|
|
37
37
|
public readonly order: ApiRecordLinkManager;
|
|
@@ -65,24 +65,48 @@
|
|
|
65
65
|
'IdentityModule:User',
|
|
66
66
|
'followers'
|
|
67
67
|
);
|
|
68
|
-
this.favourite_cases = new ApiRecordLinkManager(
|
|
69
|
-
authParams,
|
|
70
|
-
'SupportModule:Case',
|
|
71
|
-
'IdentityModule:User',
|
|
72
|
-
'favourite_cases'
|
|
73
|
-
);
|
|
74
68
|
this.outage__case = new ApiRecordLinkManager(
|
|
75
|
-
|
|
69
|
+
authParams,
|
|
76
70
|
'SupportModule:Case',
|
|
77
|
-
'
|
|
71
|
+
'SupportModule:Case',
|
|
78
72
|
'Outage__Case'
|
|
79
73
|
);
|
|
74
|
+
this.call__case = new ApiRecordLinkManager(
|
|
75
|
+
authParams,
|
|
76
|
+
'SupportModule:Case',
|
|
77
|
+
'SupportModule:Case',
|
|
78
|
+
'Call__Case'
|
|
79
|
+
);
|
|
80
|
+
this.account__case = new ApiRecordLinkManager(
|
|
81
|
+
authParams,
|
|
82
|
+
'SupportModule:Case',
|
|
83
|
+
'SupportModule:Case',
|
|
84
|
+
'Account__Case'
|
|
85
|
+
);
|
|
86
|
+
this.queue__case = new ApiRecordLinkManager(
|
|
87
|
+
authParams,
|
|
88
|
+
'SupportModule:Case',
|
|
89
|
+
'SupportModule:Case',
|
|
90
|
+
'Queue__Case'
|
|
91
|
+
);
|
|
92
|
+
this.case__case = new ApiRecordLinkManager(
|
|
93
|
+
authParams,
|
|
94
|
+
'SupportModule:Case',
|
|
95
|
+
'SupportModule:Case',
|
|
96
|
+
'Case__Case'
|
|
97
|
+
);
|
|
80
98
|
this.outage = new ApiRecordLinkManager(
|
|
81
|
-
|
|
99
|
+
authParams,
|
|
82
100
|
'SupportModule:Case',
|
|
83
|
-
'
|
|
101
|
+
'SupportModule:Case',
|
|
84
102
|
'Outage'
|
|
85
103
|
);
|
|
104
|
+
this.favourite_cases = new ApiRecordLinkManager(
|
|
105
|
+
authParams,
|
|
106
|
+
'SupportModule:Case',
|
|
107
|
+
'SupportModule:Case',
|
|
108
|
+
'favourite_cases'
|
|
109
|
+
);
|
|
86
110
|
this.smsmessage = new ApiRecordLinkManager(
|
|
87
111
|
authParams,
|
|
88
112
|
'SupportModule:Case',
|
|
@@ -95,12 +119,6 @@
|
|
|
95
119
|
'NotificationModule:Email',
|
|
96
120
|
'Case__Email'
|
|
97
121
|
);
|
|
98
|
-
this.call = new ApiRecordLinkManager(
|
|
99
|
-
authParams,
|
|
100
|
-
'SupportModule:Case',
|
|
101
|
-
'NotificationModule:Call',
|
|
102
|
-
'Call__Case'
|
|
103
|
-
);
|
|
104
122
|
this.contractbuyout = new ApiRecordLinkManager(
|
|
105
123
|
authParams,
|
|
106
124
|
'SupportModule:Case',
|
|
@@ -119,36 +137,18 @@
|
|
|
119
137
|
'SupportModule:Note',
|
|
120
138
|
'Case__Note'
|
|
121
139
|
);
|
|
122
|
-
this.account = new ApiRecordLinkManager(
|
|
123
|
-
authParams,
|
|
124
|
-
'SupportModule:Case',
|
|
125
|
-
'CrmModule:Account',
|
|
126
|
-
'Account__Case'
|
|
127
|
-
);
|
|
128
140
|
this.workorder = new ApiRecordLinkManager(
|
|
129
141
|
authParams,
|
|
130
142
|
'SupportModule:Case',
|
|
131
143
|
'FieldServiceModule:WorkOrder',
|
|
132
144
|
'Case__WorkOrder'
|
|
133
145
|
);
|
|
134
|
-
this.queue = new ApiRecordLinkManager(
|
|
135
|
-
authParams,
|
|
136
|
-
'SupportModule:Case',
|
|
137
|
-
'SupportModule:Queue',
|
|
138
|
-
'Queue__Case'
|
|
139
|
-
);
|
|
140
146
|
this.conversation = new ApiRecordLinkManager(
|
|
141
147
|
authParams,
|
|
142
148
|
'SupportModule:Case',
|
|
143
149
|
'NotificationModule:Conversation',
|
|
144
150
|
'Case_Conversation'
|
|
145
151
|
);
|
|
146
|
-
this.case = new ApiRecordLinkManager(
|
|
147
|
-
authParams,
|
|
148
|
-
'SupportModule:Case',
|
|
149
|
-
'SupportModule:Case',
|
|
150
|
-
'Case__Case'
|
|
151
|
-
);
|
|
152
152
|
this.file = new ApiRecordLinkManager(
|
|
153
153
|
authParams,
|
|
154
154
|
'SupportModule:Case',
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
import { OdinRecordCreateDto, OdinRecordUpdateDto } from '@d19n/odin-types/dist/dtos/odin.dtos';
|
|
4
4
|
|
|
5
5
|
import { UserProperties } from './User';
|
|
6
|
+
import { CaseProperties } from './Case';
|
|
6
7
|
import { OutageProperties } from './Outage';
|
|
7
8
|
import { SmsMessageProperties } from './SmsMessage';
|
|
8
9
|
import { EmailProperties } from './Email';
|
|
@@ -14,7 +15,6 @@ import { AccountProperties } from './Account';
|
|
|
14
15
|
import { WorkOrderProperties } from './WorkOrder';
|
|
15
16
|
import { QueueProperties } from './Queue';
|
|
16
17
|
import { ConversationProperties } from './Conversation';
|
|
17
|
-
import { CaseProperties } from './Case';
|
|
18
18
|
import { FileProperties } from './File';
|
|
19
19
|
import { CaseActionProperties } from './CaseAction';
|
|
20
20
|
import { OrderProperties } from './Order';
|
|
@@ -445,6 +445,7 @@ export class OutageCase extends OdinRecord<OutageCaseProperties> {
|
|
|
445
445
|
schemaId: 'be8173eb-269b-4a67-be0c-11ce6af5d561';
|
|
446
446
|
properties: OutageCaseProperties;
|
|
447
447
|
User: OdinLink<LinkedOdinRecord<UserProperties>>;
|
|
448
|
+
Case: OdinLink<LinkedOdinRecord<CaseProperties>>;
|
|
448
449
|
Outage: OdinLink<LinkedOdinRecord<OutageProperties>>;
|
|
449
450
|
SmsMessage: OdinLink<LinkedOdinRecord<SmsMessageProperties>>;
|
|
450
451
|
Email: OdinLink<LinkedOdinRecord<EmailProperties>>;
|
|
@@ -456,7 +457,6 @@ export class OutageCase extends OdinRecord<OutageCaseProperties> {
|
|
|
456
457
|
WorkOrder: OdinLink<LinkedOdinRecord<WorkOrderProperties>>;
|
|
457
458
|
Queue: OdinLink<LinkedOdinRecord<QueueProperties>>;
|
|
458
459
|
Conversation: OdinLink<LinkedOdinRecord<ConversationProperties>>;
|
|
459
|
-
Case: OdinLink<LinkedOdinRecord<CaseProperties>>;
|
|
460
460
|
File: OdinLink<LinkedOdinRecord<FileProperties>>;
|
|
461
461
|
CaseAction: OdinLink<LinkedOdinRecord<CaseActionProperties>>;
|
|
462
462
|
Order: OdinLink<LinkedOdinRecord<OrderProperties>>;
|
|
@@ -488,8 +488,6 @@ export const ROUTING_KEY_LINK_CASE_WORK_ORDER_CREATED = 'SupportModule.Case.Work
|
|
|
488
488
|
export const ROUTING_KEY_LINK_CASE_WORK_ORDER_DELETED = 'SupportModule.Case.WorkOrder.SubDbRecordAssociationDeleted'
|
|
489
489
|
export const ROUTING_KEY_LINK_CASE_CONVERSATION_CREATED = 'SupportModule.Case.Conversation.SubDbRecordAssociationCreated'
|
|
490
490
|
export const ROUTING_KEY_LINK_CASE_CONVERSATION_DELETED = 'SupportModule.Case.Conversation.SubDbRecordAssociationDeleted'
|
|
491
|
-
export const ROUTING_KEY_LINK_CASE_CASE_CREATED = 'SupportModule.Case.Case.SubDbRecordAssociationCreated'
|
|
492
|
-
export const ROUTING_KEY_LINK_CASE_CASE_DELETED = 'SupportModule.Case.Case.SubDbRecordAssociationDeleted'
|
|
493
491
|
export const ROUTING_KEY_LINK_CASE_FILE_CREATED = 'SupportModule.Case.File.SubDbRecordAssociationCreated'
|
|
494
492
|
export const ROUTING_KEY_LINK_CASE_FILE_DELETED = 'SupportModule.Case.File.SubDbRecordAssociationDeleted'
|
|
495
493
|
export const ROUTING_KEY_LINK_CASE_CASE_ACTION_CREATED = 'SupportModule.Case.CaseAction.SubDbRecordAssociationCreated'
|