@d19n/youfibre-odin-sdk 1.0.358 → 1.0.359

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 (49) hide show
  1. package/README.md +2 -1
  2. package/dist/actions-v2/CreatePushNotificationDto.d.ts +36 -8
  3. package/dist/actions-v2/UpdatePushNotificationDto.d.ts +128 -0
  4. package/dist/actions-v2/UpdatePushNotificationDto.js +56 -0
  5. package/dist/api-sdk-v2/CaseApi.d.ts +2 -0
  6. package/dist/api-sdk-v2/CaseApi.js +6 -0
  7. package/dist/api-sdk-v2/ConversationApi.d.ts +2 -0
  8. package/dist/api-sdk-v2/ConversationApi.js +6 -0
  9. package/dist/api-sdk-v2/MessageApi.d.ts +2 -0
  10. package/dist/api-sdk-v2/MessageApi.js +6 -0
  11. package/dist/api-sdk-v2/PushNotificationApi.d.ts +6 -0
  12. package/dist/api-sdk-v2/PushNotificationApi.js +18 -0
  13. package/dist/db-sdk-v2/CaseDb.d.ts +2 -0
  14. package/dist/db-sdk-v2/CaseDb.js +6 -0
  15. package/dist/db-sdk-v2/ConversationDb.d.ts +2 -0
  16. package/dist/db-sdk-v2/ConversationDb.js +6 -0
  17. package/dist/db-sdk-v2/MessageDb.d.ts +2 -0
  18. package/dist/db-sdk-v2/MessageDb.js +6 -0
  19. package/dist/db-sdk-v2/PushNotificationDb.d.ts +6 -0
  20. package/dist/db-sdk-v2/PushNotificationDb.js +18 -0
  21. package/dist/entities-v2/Case.d.ts +7 -0
  22. package/dist/entities-v2/Case.js +5 -1
  23. package/dist/entities-v2/ChurnRequest.d.ts +25 -0
  24. package/dist/entities-v2/ChurnRequest.js +28 -1
  25. package/dist/entities-v2/ContractBuyOut.d.ts +45 -0
  26. package/dist/entities-v2/ContractBuyOut.js +48 -1
  27. package/dist/entities-v2/Conversation.d.ts +7 -0
  28. package/dist/entities-v2/Conversation.js +5 -1
  29. package/dist/entities-v2/Message.d.ts +7 -0
  30. package/dist/entities-v2/Message.js +5 -1
  31. package/dist/entities-v2/Order.d.ts +510 -510
  32. package/dist/entities-v2/Order.js +232 -232
  33. package/dist/entities-v2/Program.d.ts +33 -0
  34. package/dist/entities-v2/Program.js +36 -1
  35. package/dist/entities-v2/Project.d.ts +33 -0
  36. package/dist/entities-v2/Project.js +36 -1
  37. package/dist/entities-v2/PushNotification.d.ts +51 -0
  38. package/dist/entities-v2/PushNotification.js +23 -1
  39. package/dist/entities-v2/Task.d.ts +33 -0
  40. package/dist/entities-v2/Task.js +36 -1
  41. package/dist/records-v2/CaseRecord.d.ts +20 -0
  42. package/dist/records-v2/CaseRecord.js +33 -0
  43. package/dist/records-v2/ConversationRecord.d.ts +20 -0
  44. package/dist/records-v2/ConversationRecord.js +33 -0
  45. package/dist/records-v2/MessageRecord.d.ts +20 -0
  46. package/dist/records-v2/MessageRecord.js +33 -0
  47. package/dist/records-v2/PushNotificationRecord.d.ts +88 -0
  48. package/dist/records-v2/PushNotificationRecord.js +139 -0
  49. package/package.json +1 -1
package/README.md CHANGED
@@ -351,7 +351,7 @@ This SDK includes **163** entities across **12** modules.
351
351
 
352
352
  ## Actions
353
353
 
354
- This SDK includes **532** actions.
354
+ This SDK includes **533** actions.
355
355
 
356
356
  ### Action Types
357
357
 
@@ -1499,6 +1499,7 @@ This SDK includes **532** actions.
1499
1499
  | Action | Type | Event |
1500
1500
  |--------|------|-------|
1501
1501
  | `CreatePushNotification` | CREATE | k1.t-hEOJjsDb.NotificationModule.PushNotification.Create.CreatePushNotification |
1502
+ | `UpdatePushNotification` | UPDATE | k1.t-hEOJjsDb.NotificationModule.PushNotification.Update.UpdatePushNotification |
1502
1503
 
1503
1504
  #### OrderItem
1504
1505
 
@@ -22,9 +22,16 @@ export interface CreatePushNotificationMessage extends OdinRecordCreatedEvent<Cr
22
22
  * Properties for CreatePushNotification action
23
23
  *
24
24
  * @property Required fields: 0
25
- * @property Optional fields: 5
25
+ * @property Optional fields: 9
26
26
  */
27
27
  export interface CreatePushNotificationProperties {
28
+ /**
29
+ * Status
30
+ *
31
+ * Status of the notification
32
+ * @type {ENUM}
33
+ */
34
+ Status?: string | null;
28
35
  /**
29
36
  * Seen
30
37
  *
@@ -32,6 +39,13 @@ export interface CreatePushNotificationProperties {
32
39
  * @type {BOOLEAN}
33
40
  */
34
41
  Seen?: boolean | null;
42
+ /**
43
+ * Title
44
+ *
45
+ * Title of the notification (Communications - PushNotification)
46
+ * @type {TEXT}
47
+ */
48
+ Title?: string | null;
35
49
  /**
36
50
  * UserId
37
51
  *
@@ -40,12 +54,12 @@ export interface CreatePushNotificationProperties {
40
54
  */
41
55
  UserId?: string | null;
42
56
  /**
43
- * Title
57
+ * DeviceToken
44
58
  *
45
- * Title of the notification (Communications - PushNotification)
59
+ * Personal FCM Token (Communications - PushNotification)
46
60
  * @type {TEXT}
47
61
  */
48
- Title?: string | null;
62
+ DeviceToken?: string | null;
49
63
  /**
50
64
  * Message
51
65
  *
@@ -54,12 +68,26 @@ export interface CreatePushNotificationProperties {
54
68
  */
55
69
  Message?: string | null;
56
70
  /**
57
- * DeviceToken
71
+ * CaseId
58
72
  *
59
- * Personal FCM Token (Communications - PushNotification)
60
- * @type {TEXT}
73
+ * Case Id
74
+ * @type {LOOKUP}
61
75
  */
62
- DeviceToken?: string | null;
76
+ CaseId?: string | null;
77
+ /**
78
+ * ConversationId
79
+ *
80
+ * Id of related Conversation
81
+ * @type {LOOKUP}
82
+ */
83
+ ConversationId?: string | null;
84
+ /**
85
+ * MessageId
86
+ *
87
+ * Related Message
88
+ * @type {LOOKUP}
89
+ */
90
+ MessageId?: string | null;
63
91
  }
64
92
  /**
65
93
  * CreatePushNotification
@@ -0,0 +1,128 @@
1
+ /**
2
+ * UpdatePushNotification Action DTO
3
+ *
4
+ * Update Push Notification
5
+ *
6
+ * @module NotificationModule
7
+ * @entity PushNotification
8
+ * @actionKey UpdatePushNotification
9
+ * @event k1.t-hEOJjsDb.NotificationModule.PushNotification.Update.UpdatePushNotification
10
+ *
11
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
12
+ */
13
+ import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
14
+ /**
15
+ * RabbitMQ message payload for UpdatePushNotification updated events
16
+ *
17
+ * @event k1.t-hEOJjsDb.NotificationModule.PushNotification.Update.UpdatePushNotification
18
+ */
19
+ export interface UpdatePushNotificationMessage extends OdinRecordUpdatedEvent<UpdatePushNotificationDto, UpdatePushNotificationProperties> {
20
+ }
21
+ /**
22
+ * Properties for UpdatePushNotification action
23
+ *
24
+ * @property Required fields: 0
25
+ * @property Optional fields: 9
26
+ */
27
+ export interface UpdatePushNotificationProperties {
28
+ /**
29
+ * MessageId
30
+ *
31
+ * Related Message
32
+ * @type {LOOKUP}
33
+ */
34
+ MessageId?: string | null;
35
+ /**
36
+ * ConversationId
37
+ *
38
+ * Id of related Conversation
39
+ * @type {LOOKUP}
40
+ */
41
+ ConversationId?: string | null;
42
+ /**
43
+ * CaseId
44
+ *
45
+ * Case Id
46
+ * @type {LOOKUP}
47
+ */
48
+ CaseId?: string | null;
49
+ /**
50
+ * Message
51
+ *
52
+ * Message in notification (Communications - PushNotification)
53
+ * @type {TEXT}
54
+ */
55
+ Message?: string | null;
56
+ /**
57
+ * DeviceToken
58
+ *
59
+ * Personal FCM Token (Communications - PushNotification)
60
+ * @type {TEXT}
61
+ */
62
+ DeviceToken?: string | null;
63
+ /**
64
+ * UserId
65
+ *
66
+ * Id of related customer (Communications - PushNotification)
67
+ * @type {LOOKUP}
68
+ */
69
+ UserId?: string | null;
70
+ /**
71
+ * Title
72
+ *
73
+ * Title of the notification (Communications - PushNotification)
74
+ * @type {TEXT}
75
+ */
76
+ Title?: string | null;
77
+ /**
78
+ * Seen
79
+ *
80
+ * User saw the notification ? (Communications - PushNotification)
81
+ * @type {BOOLEAN}
82
+ */
83
+ Seen?: boolean | null;
84
+ /**
85
+ * Status
86
+ *
87
+ * Status of the notification
88
+ * @type {ENUM}
89
+ */
90
+ Status?: string | null;
91
+ }
92
+ /**
93
+ * UpdatePushNotification
94
+ *
95
+ * Update Push Notification
96
+ *
97
+ * @actionType UPDATE - Updates an existing PushNotification record
98
+ * @module NotificationModule
99
+ * @entity PushNotification
100
+ * @event k1.t-hEOJjsDb.NotificationModule.PushNotification.Update.UpdatePushNotification
101
+ * @permission schema.action.updatepushnotification.trigger
102
+ * @benchmark This action is tracked for performance benchmarks
103
+ */
104
+ export declare class UpdatePushNotificationDto extends OdinRecordUpdateDto<UpdatePushNotificationProperties> {
105
+ /** Used by SDK generators to identify action type */
106
+ static readonly ACTION_TYPE = "UPDATE";
107
+ static readonly ACTION_KEY = "UpdatePushNotification";
108
+ static readonly MODULE_NAME = "NotificationModule";
109
+ static readonly ENTITIES: string[];
110
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.PushNotification.Update.UpdatePushNotification";
111
+ static readonly PERMISSION = "schema.action.updatepushnotification.trigger";
112
+ /** Step metadata - entity this action targets */
113
+ static readonly STEP_ENTITY = "NotificationModule:PushNotification";
114
+ static readonly STEP_SCHEMA_ID = "1ab6c541-3554-43c0-92ff-6533eb11f3de";
115
+ static readonly STEP_SCHEMA_ACTION_ID = "84e8aac8-ba19-4069-a1f0-e37204344f23";
116
+ static readonly AUTO_LINK_PARENT = false;
117
+ readonly actionName: string;
118
+ readonly schemaActionId: string;
119
+ readonly entity: string;
120
+ constructor(record: OdinRecord<any> | {
121
+ id: string;
122
+ entity: string;
123
+ type?: string;
124
+ }, properties: UpdatePushNotificationProperties, options?: {
125
+ journeyId?: string;
126
+ stageKey?: string;
127
+ });
128
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /**
3
+ * UpdatePushNotification Action DTO
4
+ *
5
+ * Update Push Notification
6
+ *
7
+ * @module NotificationModule
8
+ * @entity PushNotification
9
+ * @actionKey UpdatePushNotification
10
+ * @event k1.t-hEOJjsDb.NotificationModule.PushNotification.Update.UpdatePushNotification
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.UpdatePushNotificationDto = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * UpdatePushNotification
19
+ *
20
+ * Update Push Notification
21
+ *
22
+ * @actionType UPDATE - Updates an existing PushNotification record
23
+ * @module NotificationModule
24
+ * @entity PushNotification
25
+ * @event k1.t-hEOJjsDb.NotificationModule.PushNotification.Update.UpdatePushNotification
26
+ * @permission schema.action.updatepushnotification.trigger
27
+ * @benchmark This action is tracked for performance benchmarks
28
+ */
29
+ class UpdatePushNotificationDto extends core_1.OdinRecordUpdateDto {
30
+ constructor(record, properties, options) {
31
+ super({
32
+ id: record.id,
33
+ entity: record.entity,
34
+ type: record.type,
35
+ properties,
36
+ journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
37
+ stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
38
+ });
39
+ this.actionName = 'UpdatePushNotification';
40
+ this.schemaActionId = '84e8aac8-ba19-4069-a1f0-e37204344f23';
41
+ this.entity = 'NotificationModule:PushNotification';
42
+ }
43
+ }
44
+ exports.UpdatePushNotificationDto = UpdatePushNotificationDto;
45
+ /** Used by SDK generators to identify action type */
46
+ UpdatePushNotificationDto.ACTION_TYPE = 'UPDATE';
47
+ UpdatePushNotificationDto.ACTION_KEY = 'UpdatePushNotification';
48
+ UpdatePushNotificationDto.MODULE_NAME = 'NotificationModule';
49
+ UpdatePushNotificationDto.ENTITIES = ['PushNotification'];
50
+ UpdatePushNotificationDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.PushNotification.Update.UpdatePushNotification';
51
+ UpdatePushNotificationDto.PERMISSION = 'schema.action.updatepushnotification.trigger';
52
+ /** Step metadata - entity this action targets */
53
+ UpdatePushNotificationDto.STEP_ENTITY = 'NotificationModule:PushNotification';
54
+ UpdatePushNotificationDto.STEP_SCHEMA_ID = '1ab6c541-3554-43c0-92ff-6533eb11f3de';
55
+ UpdatePushNotificationDto.STEP_SCHEMA_ACTION_ID = '84e8aac8-ba19-4069-a1f0-e37204344f23';
56
+ UpdatePushNotificationDto.AUTO_LINK_PARENT = false;
@@ -42,6 +42,7 @@ export declare class CaseApi extends ApiProvider {
42
42
  private _contact?;
43
43
  private _address?;
44
44
  private _conversationfeedback?;
45
+ private _pushnotification?;
45
46
  constructor(authParams?: OauthParams, authToken?: string);
46
47
  get activitylog(): ApiRecordLinkManager;
47
48
  get caseowner(): ApiRecordLinkManager;
@@ -68,6 +69,7 @@ export declare class CaseApi extends ApiProvider {
68
69
  get contact(): ApiRecordLinkManager;
69
70
  get address(): ApiRecordLinkManager;
70
71
  get conversationfeedback(): ApiRecordLinkManager;
72
+ get pushnotification(): ApiRecordLinkManager;
71
73
  setRecord(sourceRecord: any): void;
72
74
  schema(): Promise<import("@d19n/odin-types/dist/core").OdinSchema>;
73
75
  search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<CaseProperties>>>;
@@ -183,6 +183,12 @@ class CaseApi extends api_provider_1.ApiProvider {
183
183
  }
184
184
  return this._conversationfeedback;
185
185
  }
186
+ get pushnotification() {
187
+ if (!this._pushnotification) {
188
+ this._pushnotification = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'SupportModule:Case', 'NotificationModule:PushNotification', 'Case__PushNotification');
189
+ }
190
+ return this._pushnotification;
191
+ }
186
192
  // ============================================
187
193
  // STANDARD METHODS (Unchanged API)
188
194
  // ============================================
@@ -20,10 +20,12 @@ export declare class ConversationApi extends ApiProvider {
20
20
  private _message?;
21
21
  private _case?;
22
22
  private _conversationfeedback?;
23
+ private _pushnotification?;
23
24
  constructor(authParams?: OauthParams, authToken?: string);
24
25
  get message(): ApiRecordLinkManager;
25
26
  get case(): ApiRecordLinkManager;
26
27
  get conversationfeedback(): ApiRecordLinkManager;
28
+ get pushnotification(): ApiRecordLinkManager;
27
29
  setRecord(sourceRecord: any): void;
28
30
  schema(): Promise<import("@d19n/odin-types/dist/core").OdinSchema>;
29
31
  search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<ConversationProperties>>>;
@@ -51,6 +51,12 @@ class ConversationApi extends api_provider_1.ApiProvider {
51
51
  }
52
52
  return this._conversationfeedback;
53
53
  }
54
+ get pushnotification() {
55
+ if (!this._pushnotification) {
56
+ this._pushnotification = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'NotificationModule:Conversation', 'NotificationModule:PushNotification', 'Conversation__PushNotification');
57
+ }
58
+ return this._pushnotification;
59
+ }
54
60
  // ============================================
55
61
  // STANDARD METHODS (Unchanged API)
56
62
  // ============================================
@@ -19,9 +19,11 @@ export declare class MessageApi extends ApiProvider {
19
19
  private sourceRecord;
20
20
  private _conversation?;
21
21
  private _file?;
22
+ private _pushnotification?;
22
23
  constructor(authParams?: OauthParams, authToken?: string);
23
24
  get conversation(): ApiRecordLinkManager;
24
25
  get file(): ApiRecordLinkManager;
26
+ get pushnotification(): ApiRecordLinkManager;
25
27
  setRecord(sourceRecord: any): void;
26
28
  schema(): Promise<import("@d19n/odin-types/dist/core").OdinSchema>;
27
29
  search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<MessageProperties>>>;
@@ -45,6 +45,12 @@ class MessageApi extends api_provider_1.ApiProvider {
45
45
  }
46
46
  return this._file;
47
47
  }
48
+ get pushnotification() {
49
+ if (!this._pushnotification) {
50
+ this._pushnotification = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'NotificationModule:Message', 'NotificationModule:PushNotification', 'Message__PushNotification');
51
+ }
52
+ return this._pushnotification;
53
+ }
48
54
  // ============================================
49
55
  // STANDARD METHODS (Unchanged API)
50
56
  // ============================================
@@ -19,9 +19,15 @@ export declare class PushNotificationApi extends ApiProvider {
19
19
  private sourceRecord;
20
20
  private _customerdeviceconfiguration?;
21
21
  private _user?;
22
+ private _message?;
23
+ private _conversation?;
24
+ private _case?;
22
25
  constructor(authParams?: OauthParams, authToken?: string);
23
26
  get customerdeviceconfiguration(): ApiRecordLinkManager;
24
27
  get user(): ApiRecordLinkManager;
28
+ get message(): ApiRecordLinkManager;
29
+ get conversation(): ApiRecordLinkManager;
30
+ get case(): ApiRecordLinkManager;
25
31
  setRecord(sourceRecord: any): void;
26
32
  schema(): Promise<import("@d19n/odin-types/dist/core").OdinSchema>;
27
33
  search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<PushNotificationProperties>>>;
@@ -45,6 +45,24 @@ class PushNotificationApi extends api_provider_1.ApiProvider {
45
45
  }
46
46
  return this._user;
47
47
  }
48
+ get message() {
49
+ if (!this._message) {
50
+ this._message = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'NotificationModule:PushNotification', 'NotificationModule:Message', 'Message__PushNotification');
51
+ }
52
+ return this._message;
53
+ }
54
+ get conversation() {
55
+ if (!this._conversation) {
56
+ this._conversation = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'NotificationModule:PushNotification', 'NotificationModule:Conversation', 'Conversation__PushNotification');
57
+ }
58
+ return this._conversation;
59
+ }
60
+ get case() {
61
+ if (!this._case) {
62
+ this._case = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'NotificationModule:PushNotification', 'SupportModule:Case', 'Case__PushNotification');
63
+ }
64
+ return this._case;
65
+ }
48
66
  // ============================================
49
67
  // STANDARD METHODS (Unchanged API)
50
68
  // ============================================
@@ -46,6 +46,7 @@ export declare class CaseDb extends DbProvider {
46
46
  private _contact?;
47
47
  private _address?;
48
48
  private _conversationfeedback?;
49
+ private _pushnotification?;
49
50
  constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
50
51
  get activitylog(): DbRecordLinkManager;
51
52
  get caseowner(): DbRecordLinkManager;
@@ -72,6 +73,7 @@ export declare class CaseDb extends DbProvider {
72
73
  get contact(): DbRecordLinkManager;
73
74
  get address(): DbRecordLinkManager;
74
75
  get conversationfeedback(): DbRecordLinkManager;
76
+ get pushnotification(): DbRecordLinkManager;
75
77
  setRecord(sourceRecord: any): void;
76
78
  /**
77
79
  * Search records with manual pagination control
@@ -188,6 +188,12 @@ class CaseDb extends db_provider_1.DbProvider {
188
188
  }
189
189
  return this._conversationfeedback;
190
190
  }
191
+ get pushnotification() {
192
+ if (!this._pushnotification) {
193
+ this._pushnotification = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'SupportModule:Case', 'NotificationModule:PushNotification', 'Case__PushNotification');
194
+ }
195
+ return this._pushnotification;
196
+ }
191
197
  // ============================================
192
198
  // STANDARD METHODS
193
199
  // ============================================
@@ -24,10 +24,12 @@ export declare class ConversationDb extends DbProvider {
24
24
  private _message?;
25
25
  private _case?;
26
26
  private _conversationfeedback?;
27
+ private _pushnotification?;
27
28
  constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
28
29
  get message(): DbRecordLinkManager;
29
30
  get case(): DbRecordLinkManager;
30
31
  get conversationfeedback(): DbRecordLinkManager;
32
+ get pushnotification(): DbRecordLinkManager;
31
33
  setRecord(sourceRecord: any): void;
32
34
  /**
33
35
  * Search records with manual pagination control
@@ -56,6 +56,12 @@ class ConversationDb extends db_provider_1.DbProvider {
56
56
  }
57
57
  return this._conversationfeedback;
58
58
  }
59
+ get pushnotification() {
60
+ if (!this._pushnotification) {
61
+ this._pushnotification = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'NotificationModule:Conversation', 'NotificationModule:PushNotification', 'Conversation__PushNotification');
62
+ }
63
+ return this._pushnotification;
64
+ }
59
65
  // ============================================
60
66
  // STANDARD METHODS
61
67
  // ============================================
@@ -23,9 +23,11 @@ export declare class MessageDb extends DbProvider {
23
23
  private sourceRecord;
24
24
  private _conversation?;
25
25
  private _file?;
26
+ private _pushnotification?;
26
27
  constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
27
28
  get conversation(): DbRecordLinkManager;
28
29
  get file(): DbRecordLinkManager;
30
+ get pushnotification(): DbRecordLinkManager;
29
31
  setRecord(sourceRecord: any): void;
30
32
  /**
31
33
  * Search records with manual pagination control
@@ -50,6 +50,12 @@ class MessageDb extends db_provider_1.DbProvider {
50
50
  }
51
51
  return this._file;
52
52
  }
53
+ get pushnotification() {
54
+ if (!this._pushnotification) {
55
+ this._pushnotification = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'NotificationModule:Message', 'NotificationModule:PushNotification', 'Message__PushNotification');
56
+ }
57
+ return this._pushnotification;
58
+ }
53
59
  // ============================================
54
60
  // STANDARD METHODS
55
61
  // ============================================
@@ -23,9 +23,15 @@ export declare class PushNotificationDb extends DbProvider {
23
23
  private sourceRecord;
24
24
  private _customerdeviceconfiguration?;
25
25
  private _user?;
26
+ private _message?;
27
+ private _conversation?;
28
+ private _case?;
26
29
  constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
27
30
  get customerdeviceconfiguration(): DbRecordLinkManager;
28
31
  get user(): DbRecordLinkManager;
32
+ get message(): DbRecordLinkManager;
33
+ get conversation(): DbRecordLinkManager;
34
+ get case(): DbRecordLinkManager;
29
35
  setRecord(sourceRecord: any): void;
30
36
  /**
31
37
  * Search records with manual pagination control
@@ -50,6 +50,24 @@ class PushNotificationDb extends db_provider_1.DbProvider {
50
50
  }
51
51
  return this._user;
52
52
  }
53
+ get message() {
54
+ if (!this._message) {
55
+ this._message = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'NotificationModule:PushNotification', 'NotificationModule:Message', 'Message__PushNotification');
56
+ }
57
+ return this._message;
58
+ }
59
+ get conversation() {
60
+ if (!this._conversation) {
61
+ this._conversation = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'NotificationModule:PushNotification', 'NotificationModule:Conversation', 'Conversation__PushNotification');
62
+ }
63
+ return this._conversation;
64
+ }
65
+ get case() {
66
+ if (!this._case) {
67
+ this._case = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'NotificationModule:PushNotification', 'SupportModule:Case', 'Case__PushNotification');
68
+ }
69
+ return this._case;
70
+ }
53
71
  // ============================================
54
72
  // STANDARD METHODS
55
73
  // ============================================
@@ -31,6 +31,7 @@ import { QueueChangeProperties } from './QueueChange';
31
31
  import { ContactProperties } from './Contact';
32
32
  import { AddressProperties } from './Address';
33
33
  import { ConversationFeedbackProperties } from './ConversationFeedback';
34
+ import { PushNotificationProperties } from './PushNotification';
34
35
  /**
35
36
  * Available types for Case records
36
37
  */
@@ -1889,6 +1890,8 @@ export declare class Case extends OdinRecord<CaseProperties> {
1889
1890
  Address: OdinLink<LinkedOdinRecord<AddressProperties>>;
1890
1891
  /** Linked ConversationFeedback records (Conversation_Case) */
1891
1892
  ConversationFeedback: OdinLink<LinkedOdinRecord<ConversationFeedbackProperties>>;
1893
+ /** Linked PushNotification records (Case__PushNotification) */
1894
+ PushNotification: OdinLink<LinkedOdinRecord<PushNotificationProperties>>;
1892
1895
  }
1893
1896
  /**
1894
1897
  * RabbitMQ routing keys for Case events
@@ -1976,3 +1979,7 @@ export declare const ROUTING_KEY_LINK_CASE_CONTACT_DELETED = "SupportModule.Case
1976
1979
  export declare const ROUTING_KEY_LINK_CASE_ADDRESS_CREATED = "SupportModule.Case.Address.SubDbRecordAssociationCreated";
1977
1980
  /** Event: Case__Address link deleted */
1978
1981
  export declare const ROUTING_KEY_LINK_CASE_ADDRESS_DELETED = "SupportModule.Case.Address.SubDbRecordAssociationDeleted";
1982
+ /** Event: Case__PushNotification link created */
1983
+ export declare const ROUTING_KEY_LINK_CASE_PUSH_NOTIFICATION_CREATED = "SupportModule.Case.PushNotification.SubDbRecordAssociationCreated";
1984
+ /** Event: Case__PushNotification link deleted */
1985
+ export declare const ROUTING_KEY_LINK_CASE_PUSH_NOTIFICATION_DELETED = "SupportModule.Case.PushNotification.SubDbRecordAssociationDeleted";
@@ -13,7 +13,7 @@
13
13
  */
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  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_LINK_CASE_ACTIVITY_LOG_DELETED = exports.ROUTING_KEY_LINK_CASE_ACTIVITY_LOG_CREATED = exports.ROUTING_KEY_CASE_OUTAGE_DELETED = exports.ROUTING_KEY_CASE_OUTAGE_UPDATED = exports.ROUTING_KEY_CASE_OUTAGE_CREATED = exports.ROUTING_KEY_CASE_DEFAULT_DELETED = exports.ROUTING_KEY_CASE_DEFAULT_UPDATED = exports.ROUTING_KEY_CASE_DEFAULT_CREATED = exports.ROUTING_KEY_CASE_DELETED = exports.ROUTING_KEY_CASE_UPDATED = exports.ROUTING_KEY_CASE_CREATED = exports.Case = exports.CasePropertyKeys = exports.CaseCsatResolutionReason = exports.CaseCsatAgentReason = exports.CasePrimaryExceptionReason = exports.CasePrimaryException = exports.CaseComplaint = exports.CaseFormalComplaint = exports.CaseConversationStatus = exports.CaseCategory = exports.CaseProblem = exports.CaseSource = exports.CaseImpact = exports.CaseCsatReason = exports.CaseDpaCustomerType = exports.CaseSubCategory = exports.CaseReasonForReview = exports.CaseDpaCustomerCategory = exports.CaseBlockedReason = exports.CaseChannel = exports.CaseSla = exports.CaseOrigin = exports.CaseDeprecated = exports.CaseBusinessArea = exports.OutageCaseStageKeys = exports.OutageCaseStageNames = exports.DefaultCaseStageKeys = exports.DefaultCaseStageNames = exports.CaseEntityTypes = void 0;
16
- exports.ROUTING_KEY_LINK_CASE_ADDRESS_DELETED = 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_CASE_DELETED = exports.ROUTING_KEY_LINK_CASE_CASE_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 = void 0;
16
+ exports.ROUTING_KEY_LINK_CASE_PUSH_NOTIFICATION_DELETED = exports.ROUTING_KEY_LINK_CASE_PUSH_NOTIFICATION_CREATED = exports.ROUTING_KEY_LINK_CASE_ADDRESS_DELETED = 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_CASE_DELETED = exports.ROUTING_KEY_LINK_CASE_CASE_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 = void 0;
17
17
  const core_1 = require("@d19n/odin-types/dist/core");
18
18
  /**
19
19
  * Available types for Case records
@@ -996,3 +996,7 @@ exports.ROUTING_KEY_LINK_CASE_CONTACT_DELETED = 'SupportModule.Case.Contact.SubD
996
996
  exports.ROUTING_KEY_LINK_CASE_ADDRESS_CREATED = 'SupportModule.Case.Address.SubDbRecordAssociationCreated';
997
997
  /** Event: Case__Address link deleted */
998
998
  exports.ROUTING_KEY_LINK_CASE_ADDRESS_DELETED = 'SupportModule.Case.Address.SubDbRecordAssociationDeleted';
999
+ /** Event: Case__PushNotification link created */
1000
+ exports.ROUTING_KEY_LINK_CASE_PUSH_NOTIFICATION_CREATED = 'SupportModule.Case.PushNotification.SubDbRecordAssociationCreated';
1001
+ /** Event: Case__PushNotification link deleted */
1002
+ exports.ROUTING_KEY_LINK_CASE_PUSH_NOTIFICATION_DELETED = 'SupportModule.Case.PushNotification.SubDbRecordAssociationDeleted';
@@ -20,6 +20,31 @@ export declare enum ChurnRequestEntityTypes {
20
20
  /** This is the default record type */
21
21
  DEFAULT = "DEFAULT"
22
22
  }
23
+ /**
24
+ * Pipeline stage names for DEFAULT ChurnRequest
25
+ * Pipeline: Churn Request Pipeline
26
+ * Churn Request Pipeline
27
+ */
28
+ export declare enum DefaultChurnRequestStageNames {
29
+ /** To-Do (default) */
30
+ ToDo = "To-Do",
31
+ /** In-Progress */
32
+ InProgress = "In-Progress",
33
+ /** Done (success) */
34
+ Done = "Done"
35
+ }
36
+ /**
37
+ * Pipeline stage keys for DEFAULT ChurnRequest
38
+ * Use these keys when transitioning between stages
39
+ */
40
+ export declare enum DefaultChurnRequestStageKeys {
41
+ /** To-Do */
42
+ ChurnRequestStageToDo = "ChurnRequestStageToDo",
43
+ /** In-Progress */
44
+ ChurnRequestStageInProgress = "ChurnRequestStageInProgress",
45
+ /** Done */
46
+ ChurnRequestStageDone = "ChurnRequestStageDone"
47
+ }
23
48
  /**
24
49
  * Valid values for ChurnRequest.Outcome
25
50
  *