@d19n/youfibre-odin-sdk 1.0.265 → 1.0.267

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.
Files changed (41) hide show
  1. package/dist/actions-v2/CreateCaseForChatDto.d.ts +98 -37
  2. package/dist/actions-v2/CreateCaseForChatDto.js +19 -19
  3. package/dist/actions-v2/CreateConversationDto.d.ts +17 -2
  4. package/dist/actions-v2/CreateMessageDto.d.ts +40 -2
  5. package/dist/actions-v2/CreateSocialMediaCaseDto.d.ts +105 -0
  6. package/dist/actions-v2/CreateSocialMediaCaseDto.js +59 -0
  7. package/dist/db-sdk-v2/FileDb.d.ts +122 -122
  8. package/dist/db-sdk-v2/FileDb.js +247 -247
  9. package/dist/entities-v2/AfpInvoiceFile.d.ts +0 -5
  10. package/dist/entities-v2/AfpInvoiceFile.js +1 -3
  11. package/dist/entities-v2/AmcoUpdateWorkOrderStatusUpdate.d.ts +7 -0
  12. package/dist/entities-v2/AmcoUpdateWorkOrderStatusUpdate.js +2 -0
  13. package/dist/entities-v2/BillingAdjustment.d.ts +70 -70
  14. package/dist/entities-v2/BillingAdjustment.js +33 -33
  15. package/dist/entities-v2/Config.d.ts +8 -8
  16. package/dist/entities-v2/Config.js +4 -4
  17. package/dist/entities-v2/CsvFile.d.ts +0 -5
  18. package/dist/entities-v2/CsvFile.js +1 -3
  19. package/dist/entities-v2/EmailFile.d.ts +0 -5
  20. package/dist/entities-v2/EmailFile.js +1 -3
  21. package/dist/entities-v2/InvoiceFile.d.ts +0 -5
  22. package/dist/entities-v2/InvoiceFile.js +1 -3
  23. package/dist/entities-v2/NaProblemEvidenceFile.d.ts +0 -5
  24. package/dist/entities-v2/NaProblemEvidenceFile.js +1 -3
  25. package/dist/entities-v2/NaSolutionEvidenceFile.d.ts +0 -5
  26. package/dist/entities-v2/NaSolutionEvidenceFile.js +1 -3
  27. package/dist/entities-v2/OpenreachA55File.d.ts +0 -5
  28. package/dist/entities-v2/OpenreachA55File.js +1 -3
  29. package/dist/entities-v2/OtdrFile.d.ts +0 -5
  30. package/dist/entities-v2/OtdrFile.js +1 -3
  31. package/dist/entities-v2/Premise2.d.ts +0 -7
  32. package/dist/entities-v2/Premise2.js +0 -2
  33. package/dist/entities-v2/RoyalMailUpdateWorkOrderStatusUpdate.d.ts +7 -0
  34. package/dist/entities-v2/RoyalMailUpdateWorkOrderStatusUpdate.js +2 -0
  35. package/dist/entities-v2/ServiceAppointment.d.ts +1 -8
  36. package/dist/entities-v2/ServiceAppointment.js +0 -2
  37. package/dist/entities-v2/WorkOrderStatusUpdate.d.ts +7 -0
  38. package/dist/entities-v2/WorkOrderStatusUpdate.js +2 -0
  39. package/dist/records-v2/CaseRecord.d.ts +34 -3
  40. package/dist/records-v2/CaseRecord.js +45 -4
  41. package/package.json +1 -1
@@ -13,21 +13,20 @@
13
13
  */
14
14
  import { OdinRecord, OdinRecordCreateDto, OdinRecordUpdateDto, OdinRecordUpdatedEvent, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/core';
15
15
  /**
16
- * Properties for CreateCase action
16
+ * Properties for CreateSocialMediaCase action
17
17
  *
18
- * @property Required fields: 2
19
- * @property Optional fields: 6
18
+ * @property Required fields: 5
19
+ * @property Optional fields: 0
20
20
  */
21
- export interface CreateCaseProperties {
21
+ export interface CreateSocialMediaCaseProperties {
22
22
  /**
23
- * Sub Category
23
+ * Channel
24
24
  *
25
- * SubCategory (Customer Service - Case)
25
+ * the channel from the source (Customer Service - Case)
26
26
  * @type {ENUM}
27
27
  * @required
28
- * @visibleWhen Category = ["*"]
29
28
  */
30
- SubCategory: string;
29
+ Channel: string;
31
30
  /**
32
31
  * Subject
33
32
  *
@@ -37,62 +36,71 @@ export interface CreateCaseProperties {
37
36
  */
38
37
  Subject: string;
39
38
  /**
40
- * Channel
39
+ * Description
41
40
  *
42
- * the channel from the source (Customer Service - Case)
43
- * @type {ENUM}
44
- * @default EMAIL
41
+ * Describe the issue being experienced (Customer Service - Case)
42
+ * @type {TEXT_LONG}
43
+ * @required
45
44
  */
46
- Channel?: string;
45
+ Description: string;
47
46
  /**
48
- * Category
47
+ * SocialMediaExternalId
49
48
  *
50
- * Data field for Case records. Used by Customer Service team.
51
- * @type {ENUM}
49
+ * This id represents the id receved from social media platforms for a user (Customer Service - Case)
50
+ * @type {TEXT}
51
+ * @required
52
+ */
53
+ SocialMediaExternalId: string;
54
+ /**
55
+ * ContactId
56
+ *
57
+ * Reference identifier for Case relationships. Used for data integrity.
58
+ * @type {LOOKUP}
59
+ * @required
52
60
  */
53
- Category?: string;
61
+ ContactId: string;
54
62
  }
55
63
  /**
56
- * CreateCase
64
+ * CreateSocialMediaCase
57
65
  *
58
- * create a case
66
+ * Creates a case coming from social media channels
59
67
  *
60
68
  * @actionType CREATE - Creates a new Case record
61
69
  * @module SupportModule
62
70
  * @entity Case
63
- * @event SupportModule.Case.Create.CreateCase
64
- * @permission schema.action.createcase.trigger
65
- * @category LIFECYCLE
71
+ * @entityType DEFAULT (Default)
72
+ * @event SocialMediaCaseCreated
73
+ * @permission schema.action.createsocialmediacase.trigger
66
74
  * @benchmark This action is tracked for performance benchmarks
67
- * @benchmarkTags case, customer-service, record-creation
68
75
  */
69
- export declare class CreateCaseDto extends OdinRecordCreateDto<CreateCaseProperties> {
76
+ export declare class CreateSocialMediaCaseDto extends OdinRecordCreateDto<CreateSocialMediaCaseProperties> {
70
77
  /** Used by SDK generators to identify action type */
71
78
  static readonly ACTION_TYPE = "CREATE";
72
- static readonly ACTION_KEY = "CreateCase";
79
+ static readonly ACTION_KEY = "CreateSocialMediaCase";
73
80
  static readonly MODULE_NAME = "SupportModule";
74
81
  static readonly ENTITIES: string[];
75
- static readonly EVENT_NAME = "SupportModule.Case.Create.CreateCase";
76
- static readonly PERMISSION = "schema.action.createcase.trigger";
82
+ static readonly ENTITY_TYPE = "DEFAULT";
83
+ static readonly EVENT_NAME = "SocialMediaCaseCreated";
84
+ static readonly PERMISSION = "schema.action.createsocialmediacase.trigger";
77
85
  readonly actionName: string;
78
86
  readonly schemaActionId: string;
79
87
  readonly entity: string;
80
- constructor(properties: CreateCaseProperties, options?: {
88
+ constructor(properties: CreateSocialMediaCaseProperties, options?: {
81
89
  journeyId?: string;
82
90
  });
83
91
  }
84
92
  /**
85
- * RabbitMQ message payload for CreateCase created events
93
+ * RabbitMQ message payload for CreateSocialMediaCase created events
86
94
  *
87
- * @event SupportModule.Case.Create.CreateCase
95
+ * @event SocialMediaCaseCreated
88
96
  */
89
- export interface CreateCaseMessage extends OdinRecordCreatedEvent<CreateCaseDto, CreateCaseProperties> {
97
+ export interface CreateSocialMediaCaseMessage extends OdinRecordCreatedEvent<CreateSocialMediaCaseDto, CreateSocialMediaCaseProperties> {
90
98
  }
91
99
  /**
92
100
  * Properties for CreateConversation action
93
101
  *
94
- * @property Required fields: 1
95
- * @property Optional fields: 2
102
+ * @property Required fields: 0
103
+ * @property Optional fields: 5
96
104
  */
97
105
  export interface CreateConversationProperties {
98
106
  /**
@@ -107,8 +115,23 @@ export interface CreateConversationProperties {
107
115
  *
108
116
  * the status of the conversation (Communications - Conversation)
109
117
  * @type {ENUM}
118
+ * @default CREATED
110
119
  */
111
120
  Status?: string;
121
+ /**
122
+ * ExternalId
123
+ *
124
+ * Unique External ID (Conversation SID / Conversation ID) (Communications - Conversation)
125
+ * @type {TEXT}
126
+ */
127
+ ExternalId?: string;
128
+ /**
129
+ * Source
130
+ *
131
+ * Source for the conversaion (TWILIO, TRUSTPILOT, and other possible provider) (Communications - Conversation)
132
+ * @type {ENUM}
133
+ */
134
+ Source?: string;
112
135
  }
113
136
  /**
114
137
  * CreateConversation
@@ -149,8 +172,8 @@ export interface CreateConversationMessage extends OdinRecordCreatedEvent<Create
149
172
  /**
150
173
  * Properties for CreateMessage action
151
174
  *
152
- * @property Required fields: 1
153
- * @property Optional fields: 0
175
+ * @property Required fields: 4
176
+ * @property Optional fields: 2
154
177
  */
155
178
  export interface CreateMessageProperties {
156
179
  /**
@@ -161,6 +184,44 @@ export interface CreateMessageProperties {
161
184
  * @required
162
185
  */
163
186
  Body: string;
187
+ /**
188
+ * SenderType
189
+ *
190
+ * sender type (Communications - Message)
191
+ * @type {ENUM}
192
+ * @required
193
+ */
194
+ SenderType: string;
195
+ /**
196
+ * From
197
+ *
198
+ * Who sent the message (Communications - Message)
199
+ * @type {TEXT}
200
+ * @required
201
+ */
202
+ From: string;
203
+ /**
204
+ * To
205
+ *
206
+ * Who receive the message (if needed) (Communications - Message)
207
+ * @type {TEXT}
208
+ * @required
209
+ */
210
+ To: string;
211
+ /**
212
+ * ExternalId
213
+ *
214
+ * External ID of the message (Communications - Message)
215
+ * @type {TEXT}
216
+ */
217
+ ExternalId?: string;
218
+ /**
219
+ * Files
220
+ *
221
+ * Attachments of the message (Communications - Message)
222
+ * @type {FILE_MULTIPLE}
223
+ */
224
+ Files?: undefined;
164
225
  }
165
226
  /**
166
227
  * CreateMessage
@@ -199,7 +260,7 @@ export declare class CreateMessageDto extends OdinRecordCreateDto<CreateMessageP
199
260
  export interface CreateMessageMessage extends OdinRecordCreatedEvent<CreateMessageDto, CreateMessageProperties> {
200
261
  }
201
262
  declare type StepClassMap = {
202
- CreateCaseDto: CreateCaseDto;
263
+ CreateSocialMediaCaseDto: CreateSocialMediaCaseDto;
203
264
  CreateConversationDto: CreateConversationDto;
204
265
  CreateMessageDto: CreateMessageDto;
205
266
  };
@@ -249,7 +310,7 @@ export declare class CreateCaseForChatDto extends OdinRecordUpdateDto<Record<str
249
310
  journeyId?: string;
250
311
  });
251
312
  /** Step classes that can be used with this action */
252
- static readonly stepClasses: readonly ["CreateCaseDto", "CreateConversationDto", "CreateMessageDto"];
313
+ static readonly stepClasses: readonly ["CreateSocialMediaCaseDto", "CreateConversationDto", "CreateMessageDto"];
253
314
  steps: StepClassMap[(typeof CreateCaseForChatDto.stepClasses)[number]][];
254
315
  }
255
316
  /**
@@ -13,43 +13,43 @@
13
13
  * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.ROUTING_KEY_CHAT_CASE_CREATED = exports.CreateCaseForChatDto = exports.CreateMessageDto = exports.CreateConversationDto = exports.CreateCaseDto = void 0;
16
+ exports.ROUTING_KEY_CHAT_CASE_CREATED = exports.CreateCaseForChatDto = exports.CreateMessageDto = exports.CreateConversationDto = exports.CreateSocialMediaCaseDto = void 0;
17
17
  const core_1 = require("@d19n/odin-types/dist/core");
18
18
  /**
19
- * CreateCase
19
+ * CreateSocialMediaCase
20
20
  *
21
- * create a case
21
+ * Creates a case coming from social media channels
22
22
  *
23
23
  * @actionType CREATE - Creates a new Case record
24
24
  * @module SupportModule
25
25
  * @entity Case
26
- * @event SupportModule.Case.Create.CreateCase
27
- * @permission schema.action.createcase.trigger
28
- * @category LIFECYCLE
26
+ * @entityType DEFAULT (Default)
27
+ * @event SocialMediaCaseCreated
28
+ * @permission schema.action.createsocialmediacase.trigger
29
29
  * @benchmark This action is tracked for performance benchmarks
30
- * @benchmarkTags case, customer-service, record-creation
31
30
  */
32
- class CreateCaseDto extends core_1.OdinRecordCreateDto {
31
+ class CreateSocialMediaCaseDto extends core_1.OdinRecordCreateDto {
33
32
  constructor(properties, options) {
34
33
  super({
35
34
  entity: 'SupportModule:Case',
36
- type: undefined,
35
+ type: 'DEFAULT',
37
36
  properties,
38
37
  journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
39
38
  });
40
- this.actionName = 'CreateCase';
41
- this.schemaActionId = '4fd9f78b-0d8f-414e-96cf-aedf37b36d23';
39
+ this.actionName = 'CreateSocialMediaCase';
40
+ this.schemaActionId = '00ec5203-891a-4378-8a2b-20330e3e0fd5';
42
41
  this.entity = 'SupportModule:Case';
43
42
  }
44
43
  }
45
- exports.CreateCaseDto = CreateCaseDto;
44
+ exports.CreateSocialMediaCaseDto = CreateSocialMediaCaseDto;
46
45
  /** Used by SDK generators to identify action type */
47
- CreateCaseDto.ACTION_TYPE = 'CREATE';
48
- CreateCaseDto.ACTION_KEY = 'CreateCase';
49
- CreateCaseDto.MODULE_NAME = 'SupportModule';
50
- CreateCaseDto.ENTITIES = ['Case'];
51
- CreateCaseDto.EVENT_NAME = 'SupportModule.Case.Create.CreateCase';
52
- CreateCaseDto.PERMISSION = 'schema.action.createcase.trigger';
46
+ CreateSocialMediaCaseDto.ACTION_TYPE = 'CREATE';
47
+ CreateSocialMediaCaseDto.ACTION_KEY = 'CreateSocialMediaCase';
48
+ CreateSocialMediaCaseDto.MODULE_NAME = 'SupportModule';
49
+ CreateSocialMediaCaseDto.ENTITIES = ['Case'];
50
+ CreateSocialMediaCaseDto.ENTITY_TYPE = 'DEFAULT';
51
+ CreateSocialMediaCaseDto.EVENT_NAME = 'SocialMediaCaseCreated';
52
+ CreateSocialMediaCaseDto.PERMISSION = 'schema.action.createsocialmediacase.trigger';
53
53
  /**
54
54
  * CreateConversation
55
55
  *
@@ -157,7 +157,7 @@ CreateCaseForChatDto.ENTITY_TYPE = 'DEFAULT';
157
157
  CreateCaseForChatDto.EVENT_NAME = 'ChatCaseCreated';
158
158
  CreateCaseForChatDto.PERMISSION = 'schema.action.createcaseforchat.trigger';
159
159
  /** Step classes that can be used with this action */
160
- CreateCaseForChatDto.stepClasses = ['CreateCaseDto', 'CreateConversationDto', 'CreateMessageDto'];
160
+ CreateCaseForChatDto.stepClasses = ['CreateSocialMediaCaseDto', 'CreateConversationDto', 'CreateMessageDto'];
161
161
  /**
162
162
  * RabbitMQ routing key for CreateCaseForChat events
163
163
  *
@@ -14,8 +14,8 @@ import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/di
14
14
  /**
15
15
  * Properties for CreateConversation action
16
16
  *
17
- * @property Required fields: 1
18
- * @property Optional fields: 2
17
+ * @property Required fields: 0
18
+ * @property Optional fields: 5
19
19
  */
20
20
  export interface CreateConversationProperties {
21
21
  /**
@@ -30,8 +30,23 @@ export interface CreateConversationProperties {
30
30
  *
31
31
  * the status of the conversation (Communications - Conversation)
32
32
  * @type {ENUM}
33
+ * @default CREATED
33
34
  */
34
35
  Status?: string;
36
+ /**
37
+ * ExternalId
38
+ *
39
+ * Unique External ID (Conversation SID / Conversation ID) (Communications - Conversation)
40
+ * @type {TEXT}
41
+ */
42
+ ExternalId?: string;
43
+ /**
44
+ * Source
45
+ *
46
+ * Source for the conversaion (TWILIO, TRUSTPILOT, and other possible provider) (Communications - Conversation)
47
+ * @type {ENUM}
48
+ */
49
+ Source?: string;
35
50
  }
36
51
  /**
37
52
  * CreateConversation
@@ -15,8 +15,8 @@ import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/di
15
15
  /**
16
16
  * Properties for CreateMessage action
17
17
  *
18
- * @property Required fields: 1
19
- * @property Optional fields: 0
18
+ * @property Required fields: 4
19
+ * @property Optional fields: 2
20
20
  */
21
21
  export interface CreateMessageProperties {
22
22
  /**
@@ -27,6 +27,44 @@ export interface CreateMessageProperties {
27
27
  * @required
28
28
  */
29
29
  Body: string;
30
+ /**
31
+ * SenderType
32
+ *
33
+ * sender type (Communications - Message)
34
+ * @type {ENUM}
35
+ * @required
36
+ */
37
+ SenderType: string;
38
+ /**
39
+ * From
40
+ *
41
+ * Who sent the message (Communications - Message)
42
+ * @type {TEXT}
43
+ * @required
44
+ */
45
+ From: string;
46
+ /**
47
+ * To
48
+ *
49
+ * Who receive the message (if needed) (Communications - Message)
50
+ * @type {TEXT}
51
+ * @required
52
+ */
53
+ To: string;
54
+ /**
55
+ * ExternalId
56
+ *
57
+ * External ID of the message (Communications - Message)
58
+ * @type {TEXT}
59
+ */
60
+ ExternalId?: string;
61
+ /**
62
+ * Files
63
+ *
64
+ * Attachments of the message (Communications - Message)
65
+ * @type {FILE_MULTIPLE}
66
+ */
67
+ Files?: undefined;
30
68
  }
31
69
  /**
32
70
  * CreateMessage
@@ -0,0 +1,105 @@
1
+ /**
2
+ * CreateSocialMediaCase Action DTO
3
+ *
4
+ * Creates a case coming from social media channels
5
+ *
6
+ * @module SupportModule
7
+ * @entity Case
8
+ * @entityType DEFAULT
9
+ * @actionKey CreateSocialMediaCase
10
+ * @event SocialMediaCaseCreated
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/core';
15
+ /**
16
+ * Properties for CreateSocialMediaCase action
17
+ *
18
+ * @property Required fields: 5
19
+ * @property Optional fields: 0
20
+ */
21
+ export interface CreateSocialMediaCaseProperties {
22
+ /**
23
+ * Channel
24
+ *
25
+ * the channel from the source (Customer Service - Case)
26
+ * @type {ENUM}
27
+ * @required
28
+ */
29
+ Channel: string;
30
+ /**
31
+ * Subject
32
+ *
33
+ * Data field for Case records. Used by Customer Service team.
34
+ * @type {TEXT}
35
+ * @required
36
+ */
37
+ Subject: string;
38
+ /**
39
+ * Description
40
+ *
41
+ * Describe the issue being experienced (Customer Service - Case)
42
+ * @type {TEXT_LONG}
43
+ * @required
44
+ */
45
+ Description: string;
46
+ /**
47
+ * SocialMediaExternalId
48
+ *
49
+ * This id represents the id receved from social media platforms for a user (Customer Service - Case)
50
+ * @type {TEXT}
51
+ * @required
52
+ */
53
+ SocialMediaExternalId: string;
54
+ /**
55
+ * ContactId
56
+ *
57
+ * Reference identifier for Case relationships. Used for data integrity.
58
+ * @type {LOOKUP}
59
+ * @required
60
+ */
61
+ ContactId: string;
62
+ }
63
+ /**
64
+ * CreateSocialMediaCase
65
+ *
66
+ * Creates a case coming from social media channels
67
+ *
68
+ * @actionType CREATE - Creates a new Case record
69
+ * @module SupportModule
70
+ * @entity Case
71
+ * @entityType DEFAULT (Default)
72
+ * @event SocialMediaCaseCreated
73
+ * @permission schema.action.createsocialmediacase.trigger
74
+ * @benchmark This action is tracked for performance benchmarks
75
+ */
76
+ export declare class CreateSocialMediaCaseDto extends OdinRecordCreateDto<CreateSocialMediaCaseProperties> {
77
+ /** Used by SDK generators to identify action type */
78
+ static readonly ACTION_TYPE = "CREATE";
79
+ static readonly ACTION_KEY = "CreateSocialMediaCase";
80
+ static readonly MODULE_NAME = "SupportModule";
81
+ static readonly ENTITIES: string[];
82
+ static readonly ENTITY_TYPE = "DEFAULT";
83
+ static readonly EVENT_NAME = "SocialMediaCaseCreated";
84
+ static readonly PERMISSION = "schema.action.createsocialmediacase.trigger";
85
+ readonly actionName: string;
86
+ readonly schemaActionId: string;
87
+ readonly entity: string;
88
+ constructor(properties: CreateSocialMediaCaseProperties, options?: {
89
+ journeyId?: string;
90
+ });
91
+ }
92
+ /**
93
+ * RabbitMQ message payload for CreateSocialMediaCase created events
94
+ *
95
+ * @event SocialMediaCaseCreated
96
+ */
97
+ export interface CreateSocialMediaCaseMessage extends OdinRecordCreatedEvent<CreateSocialMediaCaseDto, CreateSocialMediaCaseProperties> {
98
+ }
99
+ /**
100
+ * RabbitMQ routing key for CreateSocialMediaCase events
101
+ *
102
+ * Subscribe to this key to receive notifications when this action completes.
103
+ * @event SocialMediaCaseCreated
104
+ */
105
+ export declare const ROUTING_KEY_SOCIAL_MEDIA_CASE_CREATED = "SocialMediaCaseCreated";
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /**
3
+ * CreateSocialMediaCase Action DTO
4
+ *
5
+ * Creates a case coming from social media channels
6
+ *
7
+ * @module SupportModule
8
+ * @entity Case
9
+ * @entityType DEFAULT
10
+ * @actionKey CreateSocialMediaCase
11
+ * @event SocialMediaCaseCreated
12
+ *
13
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ROUTING_KEY_SOCIAL_MEDIA_CASE_CREATED = exports.CreateSocialMediaCaseDto = void 0;
17
+ const core_1 = require("@d19n/odin-types/dist/core");
18
+ /**
19
+ * CreateSocialMediaCase
20
+ *
21
+ * Creates a case coming from social media channels
22
+ *
23
+ * @actionType CREATE - Creates a new Case record
24
+ * @module SupportModule
25
+ * @entity Case
26
+ * @entityType DEFAULT (Default)
27
+ * @event SocialMediaCaseCreated
28
+ * @permission schema.action.createsocialmediacase.trigger
29
+ * @benchmark This action is tracked for performance benchmarks
30
+ */
31
+ class CreateSocialMediaCaseDto extends core_1.OdinRecordCreateDto {
32
+ constructor(properties, options) {
33
+ super({
34
+ entity: 'SupportModule:Case',
35
+ type: 'DEFAULT',
36
+ properties,
37
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
38
+ });
39
+ this.actionName = 'CreateSocialMediaCase';
40
+ this.schemaActionId = '00ec5203-891a-4378-8a2b-20330e3e0fd5';
41
+ this.entity = 'SupportModule:Case';
42
+ }
43
+ }
44
+ exports.CreateSocialMediaCaseDto = CreateSocialMediaCaseDto;
45
+ /** Used by SDK generators to identify action type */
46
+ CreateSocialMediaCaseDto.ACTION_TYPE = 'CREATE';
47
+ CreateSocialMediaCaseDto.ACTION_KEY = 'CreateSocialMediaCase';
48
+ CreateSocialMediaCaseDto.MODULE_NAME = 'SupportModule';
49
+ CreateSocialMediaCaseDto.ENTITIES = ['Case'];
50
+ CreateSocialMediaCaseDto.ENTITY_TYPE = 'DEFAULT';
51
+ CreateSocialMediaCaseDto.EVENT_NAME = 'SocialMediaCaseCreated';
52
+ CreateSocialMediaCaseDto.PERMISSION = 'schema.action.createsocialmediacase.trigger';
53
+ /**
54
+ * RabbitMQ routing key for CreateSocialMediaCase events
55
+ *
56
+ * Subscribe to this key to receive notifications when this action completes.
57
+ * @event SocialMediaCaseCreated
58
+ */
59
+ exports.ROUTING_KEY_SOCIAL_MEDIA_CASE_CREATED = 'SocialMediaCaseCreated';