@d19n/youfibre-odin-sdk 2.0.162 → 2.0.164

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -354,7 +354,7 @@ This SDK includes **166** entities across **12** modules.
354
354
 
355
355
  ## Actions
356
356
 
357
- This SDK includes **681** actions.
357
+ This SDK includes **682** actions.
358
358
 
359
359
  ### Action Types
360
360
 
@@ -1434,6 +1434,7 @@ This SDK includes **681** actions.
1434
1434
  |--------|------|-------|
1435
1435
  | `CreateInboundCallEvent` | CREATE | k1.t-hEOJjsDb.NotificationModule.TwilioCallEvent.Create.CreateInboundCallEvent |
1436
1436
  | `CreateOutboundCallEvent` | CREATE | k1.t-hEOJjsDb.NotificationModule.TwilioCallEvent.Create.CreateOutboundCallEvent |
1437
+ | `UpdateCallEventAfterProcessing` | UPDATE | k1.t-hEOJjsDb.NotificationModule.TwilioCallEvent.Update.UpdateCallEventAfterProcessing |
1437
1438
 
1438
1439
  #### InvoiceItem
1439
1440
 
@@ -22,66 +22,71 @@ export interface CreateInboundCallEventMessage extends OdinRecordCreatedEvent<Cr
22
22
  /**
23
23
  * Properties for CreateInboundCallEvent action
24
24
  *
25
- * @property Required fields: 7
26
- * @property Optional fields: 0
25
+ * @property Required fields: 5
26
+ * @property Optional fields: 3
27
27
  */
28
28
  export interface CreateInboundCallEventProperties {
29
29
  /**
30
- * Body
30
+ * WebhookSource
31
31
  *
32
- * Body of the request received from Twilio
33
- * @type {JSON}
32
+ * Source of the captured event
33
+ * @type {ENUM}
34
34
  * @required
35
35
  */
36
- Body: string;
36
+ WebhookSource: string;
37
37
  /**
38
- * CallId
38
+ * ReceivedAt
39
39
  *
40
- * Reference of the call record
41
- * @type {LOOKUP}
40
+ * Moment of storing the event in odin
41
+ * @type {DATE_TIME}
42
42
  * @required
43
43
  */
44
- CallId: string;
44
+ ReceivedAt: string;
45
45
  /**
46
- * CallSid
46
+ * Query
47
47
  *
48
- * Twilio id of the call
49
- * @type {TEXT}
48
+ * Query parameters of the request received from Twilio
49
+ * @type {JSON}
50
50
  * @required
51
51
  */
52
- CallSid: string;
52
+ Query: string;
53
53
  /**
54
- * Query
54
+ * Body
55
55
  *
56
- * Query parameters of the request received from Twilio
56
+ * Body of the request received from Twilio
57
57
  * @type {JSON}
58
58
  * @required
59
59
  */
60
- Query: string;
60
+ Body: string;
61
61
  /**
62
- * ReceivedAt
62
+ * ProcessingStatus
63
63
  *
64
- * Moment of storing the event in odin
65
- * @type {DATE_TIME}
64
+ * Processing status in background
65
+ * @type {ENUM}
66
66
  * @required
67
67
  */
68
- ReceivedAt: string;
68
+ ProcessingStatus: string;
69
69
  /**
70
- * Title
70
+ * CallId
71
71
  *
72
- * Title of twilio call event record
72
+ * Reference of the call record
73
+ * @type {LOOKUP}
74
+ */
75
+ CallId?: string | null;
76
+ /**
77
+ * CallSid
78
+ *
79
+ * Twilio id of the call
73
80
  * @type {TEXT}
74
- * @required
75
81
  */
76
- Title: string;
82
+ CallSid?: string | null;
77
83
  /**
78
- * WebhookSource
84
+ * Title
79
85
  *
80
- * Source of the captured event
81
- * @type {ENUM}
82
- * @required
86
+ * Title of twilio call event record
87
+ * @type {TEXT}
83
88
  */
84
- WebhookSource: string;
89
+ Title?: string | null;
85
90
  }
86
91
  /**
87
92
  * CreateInboundCallEvent
@@ -22,7 +22,7 @@ export interface CreateOrderKciMessage extends OdinRecordCreatedEvent<CreateOrde
22
22
  * Properties for CreateOrderKci action
23
23
  *
24
24
  * @property Required fields: 3
25
- * @property Optional fields: 5
25
+ * @property Optional fields: 8
26
26
  */
27
27
  export interface CreateOrderKciProperties {
28
28
  /**
@@ -101,7 +101,7 @@ export interface CreateOrderKciProperties {
101
101
  /**
102
102
  * Tenant Work Order Reference
103
103
  *
104
- * Raw YF WorkOrder uuid NET echoes on the KCI (dto.tenantWorkOrderReference). Persisted on every OrderKci so the KCI can be replayed.
104
+ * Raw YF WorkOrder uuid NET echoes on the KCI (dto.tenantWorkOrderReference). Persisted on every OrderKci so the KCI can be replayed against the correct WO.
105
105
  * @type {TEXT}
106
106
  */
107
107
  TenantWorkOrderReference?: string | null;
@@ -22,66 +22,71 @@ export interface CreateOutboundCallEventMessage extends OdinRecordCreatedEvent<C
22
22
  /**
23
23
  * Properties for CreateOutboundCallEvent action
24
24
  *
25
- * @property Required fields: 7
26
- * @property Optional fields: 0
25
+ * @property Required fields: 5
26
+ * @property Optional fields: 3
27
27
  */
28
28
  export interface CreateOutboundCallEventProperties {
29
29
  /**
30
- * Body
30
+ * WebhookSource
31
31
  *
32
- * Body of the request received from Twilio
33
- * @type {JSON}
32
+ * Source of the captured event
33
+ * @type {ENUM}
34
34
  * @required
35
35
  */
36
- Body: string;
36
+ WebhookSource: string;
37
37
  /**
38
- * CallId
38
+ * ReceivedAt
39
39
  *
40
- * Reference of the call record
41
- * @type {LOOKUP}
40
+ * Moment of storing the event in odin
41
+ * @type {DATE_TIME}
42
42
  * @required
43
43
  */
44
- CallId: string;
44
+ ReceivedAt: string;
45
45
  /**
46
- * CallSid
46
+ * Query
47
47
  *
48
- * Twilio id of the call
49
- * @type {TEXT}
48
+ * Query parameters of the request received from Twilio
49
+ * @type {JSON}
50
50
  * @required
51
51
  */
52
- CallSid: string;
52
+ Query: string;
53
53
  /**
54
- * Query
54
+ * Body
55
55
  *
56
- * Query parameters of the request received from Twilio
56
+ * Body of the request received from Twilio
57
57
  * @type {JSON}
58
58
  * @required
59
59
  */
60
- Query: string;
60
+ Body: string;
61
61
  /**
62
- * ReceivedAt
62
+ * ProcessingStatus
63
63
  *
64
- * Moment of storing the event in odin
65
- * @type {DATE_TIME}
64
+ * Processing status in background
65
+ * @type {ENUM}
66
66
  * @required
67
67
  */
68
- ReceivedAt: string;
68
+ ProcessingStatus: string;
69
69
  /**
70
- * Title
70
+ * CallId
71
71
  *
72
- * Title of twilio call event record
72
+ * Reference of the call record
73
+ * @type {LOOKUP}
74
+ */
75
+ CallId?: string | null;
76
+ /**
77
+ * CallSid
78
+ *
79
+ * Twilio id of the call
73
80
  * @type {TEXT}
74
- * @required
75
81
  */
76
- Title: string;
82
+ CallSid?: string | null;
77
83
  /**
78
- * WebhookSource
84
+ * Title
79
85
  *
80
- * Source of the captured event
81
- * @type {ENUM}
82
- * @required
86
+ * Title of twilio call event record
87
+ * @type {TEXT}
83
88
  */
84
- WebhookSource: string;
89
+ Title?: string | null;
85
90
  }
86
91
  /**
87
92
  * CreateOutboundCallEvent
@@ -0,0 +1,103 @@
1
+ /**
2
+ * UpdateCallEventAfterProcessing Action DTO
3
+ *
4
+ * Update call event after processing
5
+ *
6
+ * @module NotificationModule
7
+ * @entity TwilioCallEvent
8
+ * @actionKey UpdateCallEventAfterProcessing
9
+ * @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvent.Update.UpdateCallEventAfterProcessing
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 UpdateCallEventAfterProcessing updated events
16
+ *
17
+ * @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvent.Update.UpdateCallEventAfterProcessing
18
+ */
19
+ export interface UpdateCallEventAfterProcessingMessage extends OdinRecordUpdatedEvent<UpdateCallEventAfterProcessingDto, UpdateCallEventAfterProcessingProperties> {
20
+ }
21
+ /**
22
+ * Properties for UpdateCallEventAfterProcessing action
23
+ *
24
+ * @property Required fields: 3
25
+ * @property Optional fields: 2
26
+ */
27
+ export interface UpdateCallEventAfterProcessingProperties {
28
+ /**
29
+ * ProcessedAt
30
+ *
31
+ * Time of processing in odin system
32
+ * @type {DATE_TIME}
33
+ * @required
34
+ */
35
+ ProcessedAt: string;
36
+ /**
37
+ * ProcessingStatus
38
+ *
39
+ * Processing status in background
40
+ * @type {ENUM}
41
+ * @required
42
+ */
43
+ ProcessingStatus: string;
44
+ /**
45
+ * Title
46
+ *
47
+ * Title of twilio call event record
48
+ * @type {TEXT}
49
+ * @required
50
+ */
51
+ Title: string;
52
+ /**
53
+ * CallId
54
+ *
55
+ * Reference of the call record
56
+ * @type {LOOKUP}
57
+ */
58
+ CallId?: string | null;
59
+ /**
60
+ * CallSid
61
+ *
62
+ * Twilio id of the call
63
+ * @type {TEXT}
64
+ */
65
+ CallSid?: string | null;
66
+ }
67
+ /**
68
+ * UpdateCallEventAfterProcessing
69
+ *
70
+ * Update call event after processing
71
+ *
72
+ * @actionType UPDATE - Updates an existing TwilioCallEvent record
73
+ * @module NotificationModule
74
+ * @entity TwilioCallEvent
75
+ * @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvent.Update.UpdateCallEventAfterProcessing
76
+ * @permission schema.action.updatecalleventafterprocessing.trigger
77
+ * @benchmark This action is tracked for performance benchmarks
78
+ */
79
+ export declare class UpdateCallEventAfterProcessingDto extends OdinRecordUpdateDto<UpdateCallEventAfterProcessingProperties> {
80
+ /** Used by SDK generators to identify action type */
81
+ static readonly ACTION_TYPE = "UPDATE";
82
+ static readonly ACTION_KEY = "UpdateCallEventAfterProcessing";
83
+ static readonly MODULE_NAME = "NotificationModule";
84
+ static readonly ENTITIES: string[];
85
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.TwilioCallEvent.Update.UpdateCallEventAfterProcessing";
86
+ static readonly PERMISSION = "schema.action.updatecalleventafterprocessing.trigger";
87
+ /** Step metadata - entity this action targets */
88
+ static readonly STEP_ENTITY = "NotificationModule:TwilioCallEvent";
89
+ static readonly STEP_SCHEMA_ID = "52cc16be-2010-453f-a1c9-142ca95f9a54";
90
+ static readonly STEP_SCHEMA_ACTION_ID = "a019e00f-da19-4086-85e3-c299b671cf87";
91
+ static readonly AUTO_LINK_PARENT = false;
92
+ readonly actionName: string;
93
+ readonly schemaActionId: string;
94
+ readonly entity: string;
95
+ constructor(record: OdinRecord<any> | {
96
+ id: string;
97
+ entity: string;
98
+ type?: string;
99
+ }, properties: UpdateCallEventAfterProcessingProperties, options?: {
100
+ journeyId?: string;
101
+ stageKey?: string;
102
+ });
103
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /**
3
+ * UpdateCallEventAfterProcessing Action DTO
4
+ *
5
+ * Update call event after processing
6
+ *
7
+ * @module NotificationModule
8
+ * @entity TwilioCallEvent
9
+ * @actionKey UpdateCallEventAfterProcessing
10
+ * @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvent.Update.UpdateCallEventAfterProcessing
11
+ *
12
+ * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
+ */
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.UpdateCallEventAfterProcessingDto = void 0;
16
+ const core_1 = require("@d19n/odin-types/dist/core");
17
+ /**
18
+ * UpdateCallEventAfterProcessing
19
+ *
20
+ * Update call event after processing
21
+ *
22
+ * @actionType UPDATE - Updates an existing TwilioCallEvent record
23
+ * @module NotificationModule
24
+ * @entity TwilioCallEvent
25
+ * @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvent.Update.UpdateCallEventAfterProcessing
26
+ * @permission schema.action.updatecalleventafterprocessing.trigger
27
+ * @benchmark This action is tracked for performance benchmarks
28
+ */
29
+ class UpdateCallEventAfterProcessingDto 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 = 'UpdateCallEventAfterProcessing';
40
+ this.schemaActionId = 'a019e00f-da19-4086-85e3-c299b671cf87';
41
+ this.entity = 'NotificationModule:TwilioCallEvent';
42
+ }
43
+ }
44
+ exports.UpdateCallEventAfterProcessingDto = UpdateCallEventAfterProcessingDto;
45
+ /** Used by SDK generators to identify action type */
46
+ UpdateCallEventAfterProcessingDto.ACTION_TYPE = 'UPDATE';
47
+ UpdateCallEventAfterProcessingDto.ACTION_KEY = 'UpdateCallEventAfterProcessing';
48
+ UpdateCallEventAfterProcessingDto.MODULE_NAME = 'NotificationModule';
49
+ UpdateCallEventAfterProcessingDto.ENTITIES = ['TwilioCallEvent'];
50
+ UpdateCallEventAfterProcessingDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.TwilioCallEvent.Update.UpdateCallEventAfterProcessing';
51
+ UpdateCallEventAfterProcessingDto.PERMISSION = 'schema.action.updatecalleventafterprocessing.trigger';
52
+ /** Step metadata - entity this action targets */
53
+ UpdateCallEventAfterProcessingDto.STEP_ENTITY = 'NotificationModule:TwilioCallEvent';
54
+ UpdateCallEventAfterProcessingDto.STEP_SCHEMA_ID = '52cc16be-2010-453f-a1c9-142ca95f9a54';
55
+ UpdateCallEventAfterProcessingDto.STEP_SCHEMA_ACTION_ID = 'a019e00f-da19-4086-85e3-c299b671cf87';
56
+ UpdateCallEventAfterProcessingDto.AUTO_LINK_PARENT = false;
@@ -17,19 +17,19 @@ export declare class OfferApi extends ApiProvider {
17
17
  private readonly moduleName;
18
18
  private readonly entityName;
19
19
  private sourceRecord;
20
- private _lead?;
20
+ private _lead__offer?;
21
+ private _orderitem__offer?;
22
+ private _offer__offer?;
23
+ private _pricebook__offer?;
21
24
  private _discount?;
22
- private _orderitem?;
23
25
  private _product?;
24
- private _offer?;
25
- private _pricebook?;
26
26
  constructor(authParams?: OauthParams, authToken?: string);
27
- get lead(): ApiRecordLinkManager;
27
+ get lead__offer(): ApiRecordLinkManager;
28
+ get orderitem__offer(): ApiRecordLinkManager;
29
+ get offer__offer(): ApiRecordLinkManager;
30
+ get pricebook__offer(): ApiRecordLinkManager;
28
31
  get discount(): ApiRecordLinkManager;
29
- get orderitem(): ApiRecordLinkManager;
30
32
  get product(): ApiRecordLinkManager;
31
- get offer(): ApiRecordLinkManager;
32
- get pricebook(): ApiRecordLinkManager;
33
33
  setRecord(sourceRecord: any): void;
34
34
  schema(): Promise<import("@d19n/odin-types/dist/core").OdinSchema>;
35
35
  search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<OfferProperties>>>;
@@ -33,11 +33,29 @@ class OfferApi extends api_provider_1.ApiProvider {
33
33
  // LAZY-LOADED LINK MANAGERS (Public Getters)
34
34
  // ============================================
35
35
  // Usage remains identical: api.address.list(recordId)
36
- get lead() {
37
- if (!this._lead) {
38
- this._lead = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'ProductModule:Offer', 'CrmModule:Lead', 'Lead__Offer');
36
+ get lead__offer() {
37
+ if (!this._lead__offer) {
38
+ this._lead__offer = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'CrmModule:Lead', 'ProductModule:Offer', 'Lead__Offer');
39
39
  }
40
- return this._lead;
40
+ return this._lead__offer;
41
+ }
42
+ get orderitem__offer() {
43
+ if (!this._orderitem__offer) {
44
+ this._orderitem__offer = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'OrderModule:OrderItem', 'ProductModule:Offer', 'OrderItem__Offer');
45
+ }
46
+ return this._orderitem__offer;
47
+ }
48
+ get offer__offer() {
49
+ if (!this._offer__offer) {
50
+ this._offer__offer = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'ProductModule:Offer', 'ProductModule:Offer', 'Offer__Offer');
51
+ }
52
+ return this._offer__offer;
53
+ }
54
+ get pricebook__offer() {
55
+ if (!this._pricebook__offer) {
56
+ this._pricebook__offer = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'ProductModule:PriceBook', 'ProductModule:Offer', 'PriceBook__Offer');
57
+ }
58
+ return this._pricebook__offer;
41
59
  }
42
60
  get discount() {
43
61
  if (!this._discount) {
@@ -45,30 +63,12 @@ class OfferApi extends api_provider_1.ApiProvider {
45
63
  }
46
64
  return this._discount;
47
65
  }
48
- get orderitem() {
49
- if (!this._orderitem) {
50
- this._orderitem = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'ProductModule:Offer', 'OrderModule:OrderItem', 'OrderItem__Offer');
51
- }
52
- return this._orderitem;
53
- }
54
66
  get product() {
55
67
  if (!this._product) {
56
68
  this._product = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'ProductModule:Offer', 'ProductModule:Product', 'Offer__Product');
57
69
  }
58
70
  return this._product;
59
71
  }
60
- get offer() {
61
- if (!this._offer) {
62
- this._offer = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'ProductModule:Offer', 'ProductModule:Offer', 'Offer__Offer');
63
- }
64
- return this._offer;
65
- }
66
- get pricebook() {
67
- if (!this._pricebook) {
68
- this._pricebook = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'ProductModule:Offer', 'ProductModule:PriceBook', 'PriceBook__Offer');
69
- }
70
- return this._pricebook;
71
- }
72
72
  // ============================================
73
73
  // STANDARD METHODS (Unchanged API)
74
74
  // ============================================
@@ -21,19 +21,19 @@ export declare class OfferDb extends DbProvider {
21
21
  private readonly moduleName;
22
22
  private readonly entityName;
23
23
  private sourceRecord;
24
- private _lead__offer?;
25
- private _orderitem__offer?;
26
- private _offer__offer?;
27
- private _pricebook__offer?;
24
+ private _lead?;
28
25
  private _discount?;
26
+ private _orderitem?;
29
27
  private _product?;
28
+ private _offer?;
29
+ private _pricebook?;
30
30
  constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
31
- get lead__offer(): DbRecordLinkManager;
32
- get orderitem__offer(): DbRecordLinkManager;
33
- get offer__offer(): DbRecordLinkManager;
34
- get pricebook__offer(): DbRecordLinkManager;
31
+ get lead(): DbRecordLinkManager;
35
32
  get discount(): DbRecordLinkManager;
33
+ get orderitem(): DbRecordLinkManager;
36
34
  get product(): DbRecordLinkManager;
35
+ get offer(): DbRecordLinkManager;
36
+ get pricebook(): DbRecordLinkManager;
37
37
  setRecord(sourceRecord: any): void;
38
38
  /**
39
39
  * Search records with manual pagination control
@@ -38,29 +38,11 @@ class OfferDb extends db_provider_1.DbProvider {
38
38
  // LAZY-LOADED LINK MANAGERS (Public Getters)
39
39
  // ============================================
40
40
  // Usage remains identical: db.address.list(recordId)
41
- get lead__offer() {
42
- if (!this._lead__offer) {
43
- this._lead__offer = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Lead', 'ProductModule:Offer', 'Lead__Offer');
41
+ get lead() {
42
+ if (!this._lead) {
43
+ this._lead = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'ProductModule:Offer', 'CrmModule:Lead', 'Lead__Offer');
44
44
  }
45
- return this._lead__offer;
46
- }
47
- get orderitem__offer() {
48
- if (!this._orderitem__offer) {
49
- this._orderitem__offer = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'OrderModule:OrderItem', 'ProductModule:Offer', 'OrderItem__Offer');
50
- }
51
- return this._orderitem__offer;
52
- }
53
- get offer__offer() {
54
- if (!this._offer__offer) {
55
- this._offer__offer = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'ProductModule:Offer', 'ProductModule:Offer', 'Offer__Offer');
56
- }
57
- return this._offer__offer;
58
- }
59
- get pricebook__offer() {
60
- if (!this._pricebook__offer) {
61
- this._pricebook__offer = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'ProductModule:PriceBook', 'ProductModule:Offer', 'PriceBook__Offer');
62
- }
63
- return this._pricebook__offer;
45
+ return this._lead;
64
46
  }
65
47
  get discount() {
66
48
  if (!this._discount) {
@@ -68,12 +50,30 @@ class OfferDb extends db_provider_1.DbProvider {
68
50
  }
69
51
  return this._discount;
70
52
  }
53
+ get orderitem() {
54
+ if (!this._orderitem) {
55
+ this._orderitem = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'ProductModule:Offer', 'OrderModule:OrderItem', 'OrderItem__Offer');
56
+ }
57
+ return this._orderitem;
58
+ }
71
59
  get product() {
72
60
  if (!this._product) {
73
61
  this._product = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'ProductModule:Offer', 'ProductModule:Product', 'Offer__Product');
74
62
  }
75
63
  return this._product;
76
64
  }
65
+ get offer() {
66
+ if (!this._offer) {
67
+ this._offer = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'ProductModule:Offer', 'ProductModule:Offer', 'Offer__Offer');
68
+ }
69
+ return this._offer;
70
+ }
71
+ get pricebook() {
72
+ if (!this._pricebook) {
73
+ this._pricebook = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'ProductModule:Offer', 'ProductModule:PriceBook', 'PriceBook__Offer');
74
+ }
75
+ return this._pricebook;
76
+ }
77
77
  // ============================================
78
78
  // STANDARD METHODS
79
79
  // ============================================
@@ -30,6 +30,8 @@ export declare enum DefaultChurnRequestStageNames {
30
30
  ToDo = "To-Do",
31
31
  /** In-Progress */
32
32
  InProgress = "In-Progress",
33
+ /** PendingCancellation */
34
+ PendingCancellation = "PendingCancellation",
33
35
  /** Done (success) */
34
36
  Done = "Done"
35
37
  }
@@ -42,6 +44,8 @@ export declare enum DefaultChurnRequestStageKeys {
42
44
  ChurnRequestStageToDo = "ChurnRequestStageToDo",
43
45
  /** In-Progress */
44
46
  ChurnRequestStageInProgress = "ChurnRequestStageInProgress",
47
+ /** PendingCancellation */
48
+ ChurnRequestPipelineStagePendingCancellation = "ChurnRequestPipelineStagePendingCancellation",
45
49
  /** Done */
46
50
  ChurnRequestStageDone = "ChurnRequestStageDone"
47
51
  }
@@ -33,6 +33,8 @@ var DefaultChurnRequestStageNames;
33
33
  DefaultChurnRequestStageNames["ToDo"] = "To-Do";
34
34
  /** In-Progress */
35
35
  DefaultChurnRequestStageNames["InProgress"] = "In-Progress";
36
+ /** PendingCancellation */
37
+ DefaultChurnRequestStageNames["PendingCancellation"] = "PendingCancellation";
36
38
  /** Done (success) */
37
39
  DefaultChurnRequestStageNames["Done"] = "Done";
38
40
  })(DefaultChurnRequestStageNames = exports.DefaultChurnRequestStageNames || (exports.DefaultChurnRequestStageNames = {}));
@@ -46,6 +48,8 @@ var DefaultChurnRequestStageKeys;
46
48
  DefaultChurnRequestStageKeys["ChurnRequestStageToDo"] = "ChurnRequestStageToDo";
47
49
  /** In-Progress */
48
50
  DefaultChurnRequestStageKeys["ChurnRequestStageInProgress"] = "ChurnRequestStageInProgress";
51
+ /** PendingCancellation */
52
+ DefaultChurnRequestStageKeys["ChurnRequestPipelineStagePendingCancellation"] = "ChurnRequestPipelineStagePendingCancellation";
49
53
  /** Done */
50
54
  DefaultChurnRequestStageKeys["ChurnRequestStageDone"] = "ChurnRequestStageDone";
51
55
  })(DefaultChurnRequestStageKeys = exports.DefaultChurnRequestStageKeys || (exports.DefaultChurnRequestStageKeys = {}));
@@ -768,6 +768,8 @@ export declare class File extends OdinRecord<FileProperties> {
768
768
  type: FileEntityTypes;
769
769
  schemaId: '74510906-4af8-479c-862e-04a1bae015d7';
770
770
  properties: FileProperties;
771
+ /** Linked File records (ServiceVisitAudit__File) */
772
+ File: OdinLink<LinkedOdinRecord<FileProperties>>;
771
773
  /** Linked ServiceVisitAudit records (ServiceVisitAudit__File) */
772
774
  ServiceVisitAudit: OdinLink<LinkedOdinRecord<ServiceVisitAuditProperties>>;
773
775
  /** Linked BlockageA55 records (BlockageA55_File) */
@@ -955,6 +957,10 @@ export declare const ROUTING_KEY_FILE_OTDR_CREATED = "SchemaModule.File.OTDR.Sub
955
957
  export declare const ROUTING_KEY_FILE_OTDR_UPDATED = "SchemaModule.File.OTDR.SubDbRecordUpdated";
956
958
  /** OTDR evidence for L1 and L2 closures deleted */
957
959
  export declare const ROUTING_KEY_FILE_OTDR_DELETED = "SchemaModule.File.OTDR.SubDbRecordDeleted";
960
+ /** Event: ServiceVisitAudit__File link created */
961
+ export declare const ROUTING_KEY_LINK_SERVICE_VISIT_AUDIT_FILE_CREATED = "SchemaModule.File.File.SubDbRecordAssociationCreated";
962
+ /** Event: ServiceVisitAudit__File link deleted */
963
+ export declare const ROUTING_KEY_LINK_SERVICE_VISIT_AUDIT_FILE_DELETED = "SchemaModule.File.File.SubDbRecordAssociationDeleted";
958
964
  /** Event: File__Note link created */
959
965
  export declare const ROUTING_KEY_LINK_FILE_NOTE_CREATED = "SchemaModule.File.Note.SubDbRecordAssociationCreated";
960
966
  /** Event: File__Note link deleted */