@d19n/youfibre-odin-sdk 2.0.168 → 2.0.169

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
@@ -1416,7 +1416,7 @@ This SDK includes **682** actions.
1416
1416
  | `CreateInboundCall` | CREATE | k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateInboundCall |
1417
1417
  | `CreateOutboundCall` | CREATE | k1.t-hEOJjsDb.NotificationModule.Call.Create.CreateOutboundCall |
1418
1418
  | `UpdateCallAnalytics` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallAnalytics |
1419
- | `UpdateCallInsights` | CREATE | k1.t-hEOJjsDb.NotificationModule.Call.Create.UpdateCallInsights |
1419
+ | `UpdateCallInsights` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallInsights |
1420
1420
  | `UpdateCallOnInboundCallAnswered` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallAnswered |
1421
1421
  | `UpdateCallOnInboundCallCompleted` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallCompleted |
1422
1422
  | `UpdateCallOnInboundCallRinging` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnInboundCallRinging |
@@ -1424,7 +1424,7 @@ This SDK includes **682** actions.
1424
1424
  | `UpdateCallOnOutboundCallAnswered` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnOutboundCallAnswered |
1425
1425
  | `UpdateCallOnOutboundCallCompleted` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnOutboundCallCompleted |
1426
1426
  | `UpdateCallOnOutboundDialAction` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnOutboundDialAction |
1427
- | `UpdateCallOnTaskCanceled` | CREATE | k1.t-hEOJjsDb.NotificationModule.Call.Create.UpdateCallOnTaskCanceled |
1427
+ | `UpdateCallOnTaskCanceled` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnTaskCanceled |
1428
1428
  | `UpdateCallOnTaskRouterAssign` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnTaskRouterAssign |
1429
1429
  | `UpdateCallTranscriptionUrl` | UPDATE | k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallTranscriptionUrl |
1430
1430
 
@@ -46,7 +46,7 @@ export interface UpdateAdditionalCareProperties {
46
46
  *
47
47
  * Is the customer medically dependant on their broadband (Sales - Contact)
48
48
  * @type {ENUM}
49
- * @visibleWhen AdditionalCareRequired = [true,"YES"]
49
+ * @visibleWhen AdditionalCareRequired = ["YES"]
50
50
  */
51
51
  MedicallyDependant?: string | null;
52
52
  /**
@@ -1,22 +1,22 @@
1
1
  /**
2
2
  * UpdateCallInsights Action DTO
3
3
  *
4
- * Updating call record with insights from Twilio
4
+ * Update call record with insights from Twilio
5
5
  *
6
6
  * @module NotificationModule
7
7
  * @entity Call
8
8
  * @actionKey UpdateCallInsights
9
- * @event k1.t-hEOJjsDb.NotificationModule.Call.Create.UpdateCallInsights
9
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallInsights
10
10
  *
11
11
  * AUTO-GENERATED - DO NOT EDIT DIRECTLY
12
12
  */
13
- import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/core';
13
+ import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
14
14
  /**
15
- * RabbitMQ message payload for UpdateCallInsights created events
15
+ * RabbitMQ message payload for UpdateCallInsights updated events
16
16
  *
17
- * @event k1.t-hEOJjsDb.NotificationModule.Call.Create.UpdateCallInsights
17
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallInsights
18
18
  */
19
- export interface UpdateCallInsightsMessage extends OdinRecordCreatedEvent<UpdateCallInsightsDto, UpdateCallInsightsProperties> {
19
+ export interface UpdateCallInsightsMessage extends OdinRecordUpdatedEvent<UpdateCallInsightsDto, UpdateCallInsightsProperties> {
20
20
  }
21
21
  /**
22
22
  * Properties for UpdateCallInsights action
@@ -36,32 +36,37 @@ export interface UpdateCallInsightsProperties {
36
36
  /**
37
37
  * UpdateCallInsights
38
38
  *
39
- * Updating call record with insights from Twilio
39
+ * Update call record with insights from Twilio
40
40
  *
41
- * @actionType CREATE - Creates a new Call record
41
+ * @actionType UPDATE - Updates an existing Call record
42
42
  * @module NotificationModule
43
43
  * @entity Call
44
- * @event k1.t-hEOJjsDb.NotificationModule.Call.Create.UpdateCallInsights
44
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallInsights
45
45
  * @permission schema.action.updatecallinsights.trigger
46
46
  * @benchmark This action is tracked for performance benchmarks
47
47
  */
48
- export declare class UpdateCallInsightsDto extends OdinRecordCreateDto<UpdateCallInsightsProperties> {
48
+ export declare class UpdateCallInsightsDto extends OdinRecordUpdateDto<UpdateCallInsightsProperties> {
49
49
  /** Used by SDK generators to identify action type */
50
- static readonly ACTION_TYPE = "CREATE";
50
+ static readonly ACTION_TYPE = "UPDATE";
51
51
  static readonly ACTION_KEY = "UpdateCallInsights";
52
52
  static readonly MODULE_NAME = "NotificationModule";
53
53
  static readonly ENTITIES: string[];
54
- static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.Call.Create.UpdateCallInsights";
54
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallInsights";
55
55
  static readonly PERMISSION = "schema.action.updatecallinsights.trigger";
56
56
  /** Step metadata - entity this action targets */
57
57
  static readonly STEP_ENTITY = "NotificationModule:Call";
58
58
  static readonly STEP_SCHEMA_ID = "e157f15c-6846-4bfb-bc92-aed4c4084e9f";
59
- static readonly STEP_SCHEMA_ACTION_ID = "b743deba-1f05-4933-962d-6cdecd1540c5";
60
- static readonly AUTO_LINK_PARENT = true;
59
+ static readonly STEP_SCHEMA_ACTION_ID = "88229e0b-35f6-4dcf-9597-430a9f3f6e15";
60
+ static readonly AUTO_LINK_PARENT = false;
61
61
  readonly actionName: string;
62
62
  readonly schemaActionId: string;
63
63
  readonly entity: string;
64
- constructor(properties: UpdateCallInsightsProperties, options?: {
64
+ constructor(record: OdinRecord<any> | {
65
+ id: string;
66
+ entity: string;
67
+ type?: string;
68
+ }, properties: UpdateCallInsightsProperties, options?: {
65
69
  journeyId?: string;
70
+ stageKey?: string;
66
71
  });
67
72
  }
@@ -2,12 +2,12 @@
2
2
  /**
3
3
  * UpdateCallInsights Action DTO
4
4
  *
5
- * Updating call record with insights from Twilio
5
+ * Update call record with insights from Twilio
6
6
  *
7
7
  * @module NotificationModule
8
8
  * @entity Call
9
9
  * @actionKey UpdateCallInsights
10
- * @event k1.t-hEOJjsDb.NotificationModule.Call.Create.UpdateCallInsights
10
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallInsights
11
11
  *
12
12
  * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
13
  */
@@ -17,38 +17,40 @@ const core_1 = require("@d19n/odin-types/dist/core");
17
17
  /**
18
18
  * UpdateCallInsights
19
19
  *
20
- * Updating call record with insights from Twilio
20
+ * Update call record with insights from Twilio
21
21
  *
22
- * @actionType CREATE - Creates a new Call record
22
+ * @actionType UPDATE - Updates an existing Call record
23
23
  * @module NotificationModule
24
24
  * @entity Call
25
- * @event k1.t-hEOJjsDb.NotificationModule.Call.Create.UpdateCallInsights
25
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallInsights
26
26
  * @permission schema.action.updatecallinsights.trigger
27
27
  * @benchmark This action is tracked for performance benchmarks
28
28
  */
29
- class UpdateCallInsightsDto extends core_1.OdinRecordCreateDto {
30
- constructor(properties, options) {
29
+ class UpdateCallInsightsDto extends core_1.OdinRecordUpdateDto {
30
+ constructor(record, properties, options) {
31
31
  super({
32
- entity: 'NotificationModule:Call',
33
- type: undefined,
32
+ id: record.id,
33
+ entity: record.entity,
34
+ type: record.type,
34
35
  properties,
35
36
  journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
37
+ stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
36
38
  });
37
39
  this.actionName = 'UpdateCallInsights';
38
- this.schemaActionId = 'b743deba-1f05-4933-962d-6cdecd1540c5';
40
+ this.schemaActionId = '88229e0b-35f6-4dcf-9597-430a9f3f6e15';
39
41
  this.entity = 'NotificationModule:Call';
40
42
  }
41
43
  }
42
44
  exports.UpdateCallInsightsDto = UpdateCallInsightsDto;
43
45
  /** Used by SDK generators to identify action type */
44
- UpdateCallInsightsDto.ACTION_TYPE = 'CREATE';
46
+ UpdateCallInsightsDto.ACTION_TYPE = 'UPDATE';
45
47
  UpdateCallInsightsDto.ACTION_KEY = 'UpdateCallInsights';
46
48
  UpdateCallInsightsDto.MODULE_NAME = 'NotificationModule';
47
49
  UpdateCallInsightsDto.ENTITIES = ['Call'];
48
- UpdateCallInsightsDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.Call.Create.UpdateCallInsights';
50
+ UpdateCallInsightsDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallInsights';
49
51
  UpdateCallInsightsDto.PERMISSION = 'schema.action.updatecallinsights.trigger';
50
52
  /** Step metadata - entity this action targets */
51
53
  UpdateCallInsightsDto.STEP_ENTITY = 'NotificationModule:Call';
52
54
  UpdateCallInsightsDto.STEP_SCHEMA_ID = 'e157f15c-6846-4bfb-bc92-aed4c4084e9f';
53
- UpdateCallInsightsDto.STEP_SCHEMA_ACTION_ID = 'b743deba-1f05-4933-962d-6cdecd1540c5';
54
- UpdateCallInsightsDto.AUTO_LINK_PARENT = true;
55
+ UpdateCallInsightsDto.STEP_SCHEMA_ACTION_ID = '88229e0b-35f6-4dcf-9597-430a9f3f6e15';
56
+ UpdateCallInsightsDto.AUTO_LINK_PARENT = false;
@@ -1,22 +1,22 @@
1
1
  /**
2
2
  * UpdateCallOnTaskCanceled Action DTO
3
3
  *
4
- * UpdateCallOnTaskCanceled
4
+ * Update call on task canceled
5
5
  *
6
6
  * @module NotificationModule
7
7
  * @entity Call
8
8
  * @actionKey UpdateCallOnTaskCanceled
9
- * @event k1.t-hEOJjsDb.NotificationModule.Call.Create.UpdateCallOnTaskCanceled
9
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnTaskCanceled
10
10
  *
11
11
  * AUTO-GENERATED - DO NOT EDIT DIRECTLY
12
12
  */
13
- import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/core';
13
+ import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
14
14
  /**
15
- * RabbitMQ message payload for UpdateCallOnTaskCanceled created events
15
+ * RabbitMQ message payload for UpdateCallOnTaskCanceled updated events
16
16
  *
17
- * @event k1.t-hEOJjsDb.NotificationModule.Call.Create.UpdateCallOnTaskCanceled
17
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnTaskCanceled
18
18
  */
19
- export interface UpdateCallOnTaskCanceledMessage extends OdinRecordCreatedEvent<UpdateCallOnTaskCanceledDto, UpdateCallOnTaskCanceledProperties> {
19
+ export interface UpdateCallOnTaskCanceledMessage extends OdinRecordUpdatedEvent<UpdateCallOnTaskCanceledDto, UpdateCallOnTaskCanceledProperties> {
20
20
  }
21
21
  /**
22
22
  * Properties for UpdateCallOnTaskCanceled action
@@ -37,30 +37,37 @@ export interface UpdateCallOnTaskCanceledProperties {
37
37
  /**
38
38
  * UpdateCallOnTaskCanceled
39
39
  *
40
- * @actionType CREATE - Creates a new Call record
40
+ * Update call on task canceled
41
+ *
42
+ * @actionType UPDATE - Updates an existing Call record
41
43
  * @module NotificationModule
42
44
  * @entity Call
43
- * @event k1.t-hEOJjsDb.NotificationModule.Call.Create.UpdateCallOnTaskCanceled
45
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnTaskCanceled
44
46
  * @permission schema.action.updatecallontaskcanceled.trigger
45
47
  * @benchmark This action is tracked for performance benchmarks
46
48
  */
47
- export declare class UpdateCallOnTaskCanceledDto extends OdinRecordCreateDto<UpdateCallOnTaskCanceledProperties> {
49
+ export declare class UpdateCallOnTaskCanceledDto extends OdinRecordUpdateDto<UpdateCallOnTaskCanceledProperties> {
48
50
  /** Used by SDK generators to identify action type */
49
- static readonly ACTION_TYPE = "CREATE";
51
+ static readonly ACTION_TYPE = "UPDATE";
50
52
  static readonly ACTION_KEY = "UpdateCallOnTaskCanceled";
51
53
  static readonly MODULE_NAME = "NotificationModule";
52
54
  static readonly ENTITIES: string[];
53
- static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.Call.Create.UpdateCallOnTaskCanceled";
55
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnTaskCanceled";
54
56
  static readonly PERMISSION = "schema.action.updatecallontaskcanceled.trigger";
55
57
  /** Step metadata - entity this action targets */
56
58
  static readonly STEP_ENTITY = "NotificationModule:Call";
57
59
  static readonly STEP_SCHEMA_ID = "e157f15c-6846-4bfb-bc92-aed4c4084e9f";
58
- static readonly STEP_SCHEMA_ACTION_ID = "7f8ddb83-6251-49d0-9c10-80a07d1a94e6";
59
- static readonly AUTO_LINK_PARENT = true;
60
+ static readonly STEP_SCHEMA_ACTION_ID = "3f3b7ec0-5883-4364-919e-6aa0a430bb31";
61
+ static readonly AUTO_LINK_PARENT = false;
60
62
  readonly actionName: string;
61
63
  readonly schemaActionId: string;
62
64
  readonly entity: string;
63
- constructor(properties: UpdateCallOnTaskCanceledProperties, options?: {
65
+ constructor(record: OdinRecord<any> | {
66
+ id: string;
67
+ entity: string;
68
+ type?: string;
69
+ }, properties: UpdateCallOnTaskCanceledProperties, options?: {
64
70
  journeyId?: string;
71
+ stageKey?: string;
65
72
  });
66
73
  }
@@ -2,12 +2,12 @@
2
2
  /**
3
3
  * UpdateCallOnTaskCanceled Action DTO
4
4
  *
5
- * UpdateCallOnTaskCanceled
5
+ * Update call on task canceled
6
6
  *
7
7
  * @module NotificationModule
8
8
  * @entity Call
9
9
  * @actionKey UpdateCallOnTaskCanceled
10
- * @event k1.t-hEOJjsDb.NotificationModule.Call.Create.UpdateCallOnTaskCanceled
10
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnTaskCanceled
11
11
  *
12
12
  * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
13
  */
@@ -17,36 +17,40 @@ const core_1 = require("@d19n/odin-types/dist/core");
17
17
  /**
18
18
  * UpdateCallOnTaskCanceled
19
19
  *
20
- * @actionType CREATE - Creates a new Call record
20
+ * Update call on task canceled
21
+ *
22
+ * @actionType UPDATE - Updates an existing Call record
21
23
  * @module NotificationModule
22
24
  * @entity Call
23
- * @event k1.t-hEOJjsDb.NotificationModule.Call.Create.UpdateCallOnTaskCanceled
25
+ * @event k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnTaskCanceled
24
26
  * @permission schema.action.updatecallontaskcanceled.trigger
25
27
  * @benchmark This action is tracked for performance benchmarks
26
28
  */
27
- class UpdateCallOnTaskCanceledDto extends core_1.OdinRecordCreateDto {
28
- constructor(properties, options) {
29
+ class UpdateCallOnTaskCanceledDto extends core_1.OdinRecordUpdateDto {
30
+ constructor(record, properties, options) {
29
31
  super({
30
- entity: 'NotificationModule:Call',
31
- type: undefined,
32
+ id: record.id,
33
+ entity: record.entity,
34
+ type: record.type,
32
35
  properties,
33
36
  journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
37
+ stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
34
38
  });
35
39
  this.actionName = 'UpdateCallOnTaskCanceled';
36
- this.schemaActionId = '7f8ddb83-6251-49d0-9c10-80a07d1a94e6';
40
+ this.schemaActionId = '3f3b7ec0-5883-4364-919e-6aa0a430bb31';
37
41
  this.entity = 'NotificationModule:Call';
38
42
  }
39
43
  }
40
44
  exports.UpdateCallOnTaskCanceledDto = UpdateCallOnTaskCanceledDto;
41
45
  /** Used by SDK generators to identify action type */
42
- UpdateCallOnTaskCanceledDto.ACTION_TYPE = 'CREATE';
46
+ UpdateCallOnTaskCanceledDto.ACTION_TYPE = 'UPDATE';
43
47
  UpdateCallOnTaskCanceledDto.ACTION_KEY = 'UpdateCallOnTaskCanceled';
44
48
  UpdateCallOnTaskCanceledDto.MODULE_NAME = 'NotificationModule';
45
49
  UpdateCallOnTaskCanceledDto.ENTITIES = ['Call'];
46
- UpdateCallOnTaskCanceledDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.Call.Create.UpdateCallOnTaskCanceled';
50
+ UpdateCallOnTaskCanceledDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.Call.Update.UpdateCallOnTaskCanceled';
47
51
  UpdateCallOnTaskCanceledDto.PERMISSION = 'schema.action.updatecallontaskcanceled.trigger';
48
52
  /** Step metadata - entity this action targets */
49
53
  UpdateCallOnTaskCanceledDto.STEP_ENTITY = 'NotificationModule:Call';
50
54
  UpdateCallOnTaskCanceledDto.STEP_SCHEMA_ID = 'e157f15c-6846-4bfb-bc92-aed4c4084e9f';
51
- UpdateCallOnTaskCanceledDto.STEP_SCHEMA_ACTION_ID = '7f8ddb83-6251-49d0-9c10-80a07d1a94e6';
52
- UpdateCallOnTaskCanceledDto.AUTO_LINK_PARENT = true;
55
+ UpdateCallOnTaskCanceledDto.STEP_SCHEMA_ACTION_ID = '3f3b7ec0-5883-4364-919e-6aa0a430bb31';
56
+ UpdateCallOnTaskCanceledDto.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?;
24
+ private _lead__offer?;
25
+ private _orderitem__offer?;
26
+ private _offer__offer?;
27
+ private _pricebook__offer?;
25
28
  private _discount?;
26
- private _orderitem?;
27
29
  private _product?;
28
- private _offer?;
29
- private _pricebook?;
30
30
  constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
31
- get lead(): DbRecordLinkManager;
31
+ get lead__offer(): DbRecordLinkManager;
32
+ get orderitem__offer(): DbRecordLinkManager;
33
+ get offer__offer(): DbRecordLinkManager;
34
+ get pricebook__offer(): DbRecordLinkManager;
32
35
  get discount(): DbRecordLinkManager;
33
- get orderitem(): DbRecordLinkManager;
34
36
  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,11 +38,29 @@ 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() {
42
- if (!this._lead) {
43
- this._lead = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'ProductModule:Offer', 'CrmModule:Lead', 'Lead__Offer');
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');
44
44
  }
45
- return this._lead;
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;
46
64
  }
47
65
  get discount() {
48
66
  if (!this._discount) {
@@ -50,30 +68,12 @@ class OfferDb extends db_provider_1.DbProvider {
50
68
  }
51
69
  return this._discount;
52
70
  }
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
- }
59
71
  get product() {
60
72
  if (!this._product) {
61
73
  this._product = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'ProductModule:Offer', 'ProductModule:Product', 'Offer__Product');
62
74
  }
63
75
  return this._product;
64
76
  }
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
  // ============================================
@@ -135,8 +135,6 @@ export declare enum CallLegPropertyKeys {
135
135
  TotalMuteTime = "TotalMuteTime",
136
136
  /** Data field for CallLeg records. Used by Communications team. */
137
137
  Direction = "Direction",
138
- /** Reference identifier for CallLeg relationships. Used for data integrity. */
139
- CallId = "CallId",
140
138
  /** Email of agent (for quick lookup) (Communications - CallLeg) */
141
139
  AgentEmail = "AgentEmail",
142
140
  /** UUID of parent leg if this is a child leg (Communications - CallLeg) */
@@ -150,7 +148,9 @@ export declare enum CallLegPropertyKeys {
150
148
  /** UUID of agent if this is an agent leg (Communications - CallLeg) */
151
149
  AgentId = "AgentId",
152
150
  /** Title of call leg */
153
- Title = "Title"
151
+ Title = "Title",
152
+ /** Reference identifier for CallLeg relationships. Used for data integrity. */
153
+ CallId = "CallId"
154
154
  }
155
155
  /**
156
156
  * Properties for CallLeg records
@@ -291,11 +291,6 @@ export interface CallLegProperties {
291
291
  * @enum {CallLegDirection}
292
292
  */
293
293
  Direction: CallLegDirection;
294
- /** Reference identifier for CallLeg relationships. Used for data integrity.
295
- *
296
- * @type {LOOKUP}
297
- */
298
- CallId: string;
299
294
  /** Email of agent (for quick lookup) (Communications - CallLeg)
300
295
  *
301
296
  * @type {TEXT}
@@ -331,6 +326,11 @@ export interface CallLegProperties {
331
326
  * @type {TEXT}
332
327
  */
333
328
  Title: string;
329
+ /** Reference identifier for CallLeg relationships. Used for data integrity.
330
+ *
331
+ * @type {LOOKUP}
332
+ */
333
+ CallId: string;
334
334
  }
335
335
  /**
336
336
  * CallLeg entity from NotificationModule
@@ -140,8 +140,6 @@ var CallLegPropertyKeys;
140
140
  CallLegPropertyKeys["TotalMuteTime"] = "TotalMuteTime";
141
141
  /** Data field for CallLeg records. Used by Communications team. */
142
142
  CallLegPropertyKeys["Direction"] = "Direction";
143
- /** Reference identifier for CallLeg relationships. Used for data integrity. */
144
- CallLegPropertyKeys["CallId"] = "CallId";
145
143
  /** Email of agent (for quick lookup) (Communications - CallLeg) */
146
144
  CallLegPropertyKeys["AgentEmail"] = "AgentEmail";
147
145
  /** UUID of parent leg if this is a child leg (Communications - CallLeg) */
@@ -156,6 +154,8 @@ var CallLegPropertyKeys;
156
154
  CallLegPropertyKeys["AgentId"] = "AgentId";
157
155
  /** Title of call leg */
158
156
  CallLegPropertyKeys["Title"] = "Title";
157
+ /** Reference identifier for CallLeg relationships. Used for data integrity. */
158
+ CallLegPropertyKeys["CallId"] = "CallId";
159
159
  })(CallLegPropertyKeys = exports.CallLegPropertyKeys || (exports.CallLegPropertyKeys = {}));
160
160
  /**
161
161
  * CallLeg entity from NotificationModule