@d19n/youfibre-odin-sdk 2.0.301 → 2.0.303

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.
@@ -45,7 +45,6 @@ export declare class ContactApi extends ApiProvider {
45
45
  private _email?;
46
46
  private _reward?;
47
47
  private _address?;
48
- private _contractbuyout?;
49
48
  private _workorder__contact?;
50
49
  private _workorder__alternative_contact?;
51
50
  private _impersonationtracker?;
@@ -53,6 +52,7 @@ export declare class ContactApi extends ApiProvider {
53
52
  private _affiliatecode?;
54
53
  private _order?;
55
54
  private _npssurvey?;
55
+ private _contractbuyout?;
56
56
  constructor(authParams?: OauthParams, authToken?: string);
57
57
  get note(): ApiRecordLinkManager;
58
58
  get lead(): ApiRecordLinkManager;
@@ -82,7 +82,6 @@ export declare class ContactApi extends ApiProvider {
82
82
  get email(): ApiRecordLinkManager;
83
83
  get reward(): ApiRecordLinkManager;
84
84
  get address(): ApiRecordLinkManager;
85
- get contractbuyout(): ApiRecordLinkManager;
86
85
  get workorder__contact(): ApiRecordLinkManager;
87
86
  get workorder__alternative_contact(): ApiRecordLinkManager;
88
87
  get impersonationtracker(): ApiRecordLinkManager;
@@ -90,6 +89,7 @@ export declare class ContactApi extends ApiProvider {
90
89
  get affiliatecode(): ApiRecordLinkManager;
91
90
  get order(): ApiRecordLinkManager;
92
91
  get npssurvey(): ApiRecordLinkManager;
92
+ get contractbuyout(): ApiRecordLinkManager;
93
93
  setRecord(sourceRecord: any): void;
94
94
  schema(): Promise<import("@d19n/odin-types/dist/core").OdinSchema>;
95
95
  search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<ContactProperties>>>;
@@ -201,12 +201,6 @@ class ContactApi extends api_provider_1.ApiProvider {
201
201
  }
202
202
  return this._address;
203
203
  }
204
- get contractbuyout() {
205
- if (!this._contractbuyout) {
206
- this._contractbuyout = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'CrmModule:Contact', 'OrderModule:ContractBuyOut', 'Contact__ContractBuyOut');
207
- }
208
- return this._contractbuyout;
209
- }
210
204
  get workorder__contact() {
211
205
  if (!this._workorder__contact) {
212
206
  this._workorder__contact = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'CrmModule:Contact', 'FieldServiceModule:WorkOrder', 'WorkOrder__Contact');
@@ -249,6 +243,12 @@ class ContactApi extends api_provider_1.ApiProvider {
249
243
  }
250
244
  return this._npssurvey;
251
245
  }
246
+ get contractbuyout() {
247
+ if (!this._contractbuyout) {
248
+ this._contractbuyout = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'CrmModule:Contact', 'OrderModule:ContractBuyOut', 'Contact__ContractBuyOut');
249
+ }
250
+ return this._contractbuyout;
251
+ }
252
252
  // ============================================
253
253
  // STANDARD METHODS (Unchanged API)
254
254
  // ============================================
@@ -21,19 +21,19 @@ export declare class ContractBuyOutApi extends ApiProvider {
21
21
  private _paymentmethod?;
22
22
  private _file?;
23
23
  private _order?;
24
- private _contact?;
25
24
  private _case?;
26
25
  private _user?;
27
26
  private _paymentmethodrefund?;
27
+ private _contact?;
28
28
  constructor(authParams?: OauthParams, authToken?: string);
29
29
  get note(): ApiRecordLinkManager;
30
30
  get paymentmethod(): ApiRecordLinkManager;
31
31
  get file(): ApiRecordLinkManager;
32
32
  get order(): ApiRecordLinkManager;
33
- get contact(): ApiRecordLinkManager;
34
33
  get case(): ApiRecordLinkManager;
35
34
  get user(): ApiRecordLinkManager;
36
35
  get paymentmethodrefund(): ApiRecordLinkManager;
36
+ get contact(): ApiRecordLinkManager;
37
37
  setRecord(sourceRecord: any): void;
38
38
  schema(): Promise<import("@d19n/odin-types/dist/core").OdinSchema>;
39
39
  search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<ContractBuyOutProperties>>>;
@@ -57,12 +57,6 @@ class ContractBuyOutApi extends api_provider_1.ApiProvider {
57
57
  }
58
58
  return this._order;
59
59
  }
60
- get contact() {
61
- if (!this._contact) {
62
- this._contact = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'OrderModule:ContractBuyOut', 'CrmModule:Contact', 'Contact__ContractBuyOut');
63
- }
64
- return this._contact;
65
- }
66
60
  get case() {
67
61
  if (!this._case) {
68
62
  this._case = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'OrderModule:ContractBuyOut', 'SupportModule:Case', 'Case__ContractBuyOut');
@@ -81,6 +75,12 @@ class ContractBuyOutApi extends api_provider_1.ApiProvider {
81
75
  }
82
76
  return this._paymentmethodrefund;
83
77
  }
78
+ get contact() {
79
+ if (!this._contact) {
80
+ this._contact = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'OrderModule:ContractBuyOut', 'CrmModule:Contact', 'Contact__ContractBuyOut');
81
+ }
82
+ return this._contact;
83
+ }
84
84
  // ============================================
85
85
  // STANDARD METHODS (Unchanged API)
86
86
  // ============================================
@@ -49,7 +49,6 @@ export declare class ContactDb extends DbProvider {
49
49
  private _email?;
50
50
  private _reward?;
51
51
  private _address?;
52
- private _contractbuyout?;
53
52
  private _workorder__contact?;
54
53
  private _workorder__alternative_contact?;
55
54
  private _impersonationtracker?;
@@ -57,6 +56,7 @@ export declare class ContactDb extends DbProvider {
57
56
  private _affiliatecode?;
58
57
  private _order?;
59
58
  private _npssurvey?;
59
+ private _contractbuyout?;
60
60
  constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
61
61
  get note(): DbRecordLinkManager;
62
62
  get lead(): DbRecordLinkManager;
@@ -86,7 +86,6 @@ export declare class ContactDb extends DbProvider {
86
86
  get email(): DbRecordLinkManager;
87
87
  get reward(): DbRecordLinkManager;
88
88
  get address(): DbRecordLinkManager;
89
- get contractbuyout(): DbRecordLinkManager;
90
89
  get workorder__contact(): DbRecordLinkManager;
91
90
  get workorder__alternative_contact(): DbRecordLinkManager;
92
91
  get impersonationtracker(): DbRecordLinkManager;
@@ -94,6 +93,7 @@ export declare class ContactDb extends DbProvider {
94
93
  get affiliatecode(): DbRecordLinkManager;
95
94
  get order(): DbRecordLinkManager;
96
95
  get npssurvey(): DbRecordLinkManager;
96
+ get contractbuyout(): DbRecordLinkManager;
97
97
  setRecord(sourceRecord: any): void;
98
98
  /**
99
99
  * Search records with manual pagination control
@@ -206,12 +206,6 @@ class ContactDb extends db_provider_1.DbProvider {
206
206
  }
207
207
  return this._address;
208
208
  }
209
- get contractbuyout() {
210
- if (!this._contractbuyout) {
211
- this._contractbuyout = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'OrderModule:ContractBuyOut', 'Contact__ContractBuyOut');
212
- }
213
- return this._contractbuyout;
214
- }
215
209
  get workorder__contact() {
216
210
  if (!this._workorder__contact) {
217
211
  this._workorder__contact = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'FieldServiceModule:WorkOrder', 'WorkOrder__Contact');
@@ -254,6 +248,12 @@ class ContactDb extends db_provider_1.DbProvider {
254
248
  }
255
249
  return this._npssurvey;
256
250
  }
251
+ get contractbuyout() {
252
+ if (!this._contractbuyout) {
253
+ this._contractbuyout = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'OrderModule:ContractBuyOut', 'Contact__ContractBuyOut');
254
+ }
255
+ return this._contractbuyout;
256
+ }
257
257
  // ============================================
258
258
  // STANDARD METHODS
259
259
  // ============================================
@@ -25,19 +25,19 @@ export declare class ContractBuyOutDb extends DbProvider {
25
25
  private _paymentmethod?;
26
26
  private _file?;
27
27
  private _order?;
28
- private _contact?;
29
28
  private _case?;
30
29
  private _user?;
31
30
  private _paymentmethodrefund?;
31
+ private _contact?;
32
32
  constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
33
33
  get note(): DbRecordLinkManager;
34
34
  get paymentmethod(): DbRecordLinkManager;
35
35
  get file(): DbRecordLinkManager;
36
36
  get order(): DbRecordLinkManager;
37
- get contact(): DbRecordLinkManager;
38
37
  get case(): DbRecordLinkManager;
39
38
  get user(): DbRecordLinkManager;
40
39
  get paymentmethodrefund(): DbRecordLinkManager;
40
+ get contact(): DbRecordLinkManager;
41
41
  setRecord(sourceRecord: any): void;
42
42
  /**
43
43
  * Search records with manual pagination control
@@ -62,12 +62,6 @@ class ContractBuyOutDb extends db_provider_1.DbProvider {
62
62
  }
63
63
  return this._order;
64
64
  }
65
- get contact() {
66
- if (!this._contact) {
67
- this._contact = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'OrderModule:ContractBuyOut', 'CrmModule:Contact', 'Contact__ContractBuyOut');
68
- }
69
- return this._contact;
70
- }
71
65
  get case() {
72
66
  if (!this._case) {
73
67
  this._case = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'OrderModule:ContractBuyOut', 'SupportModule:Case', 'Case__ContractBuyOut');
@@ -86,6 +80,12 @@ class ContractBuyOutDb extends db_provider_1.DbProvider {
86
80
  }
87
81
  return this._paymentmethodrefund;
88
82
  }
83
+ get contact() {
84
+ if (!this._contact) {
85
+ this._contact = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'OrderModule:ContractBuyOut', 'CrmModule:Contact', 'Contact__ContractBuyOut');
86
+ }
87
+ return this._contact;
88
+ }
89
89
  // ============================================
90
90
  // STANDARD METHODS
91
91
  // ============================================
@@ -62,6 +62,7 @@ export declare enum BillingAdjustmentProrationType {
62
62
  * - `CONTRACT_BUY_OUT` - Contract Buy Out
63
63
  * - `GOODWILL_GESTURE` - Goodwill Gesture
64
64
  * - `OUTAGE_COMPENSATION` - Outage Compensation
65
+ * - `PAYMENT_PLAN` - Payment Plan
65
66
  * - `PRICE_MATCH_ADJUSTMENT` - Price Match Adjustment
66
67
  * - `PRICE_MATCH_DEAL` - Price Match Deal
67
68
  * - `RECONTRACTING_ADJUSTMENT` - Recontracting Adjustment
@@ -78,6 +79,7 @@ export declare enum BillingAdjustmentReason {
78
79
  CONTRACT_BUY_OUT = "CONTRACT_BUY_OUT",
79
80
  GOODWILL_GESTURE = "GOODWILL_GESTURE",
80
81
  OUTAGE_COMPENSATION = "OUTAGE_COMPENSATION",
82
+ PAYMENT_PLAN = "PAYMENT_PLAN",
81
83
  PRICE_MATCH_ADJUSTMENT = "PRICE_MATCH_ADJUSTMENT",
82
84
  PRICE_MATCH_DEAL = "PRICE_MATCH_DEAL",
83
85
  RECONTRACTING_ADJUSTMENT = "RECONTRACTING_ADJUSTMENT",
@@ -64,6 +64,7 @@ var BillingAdjustmentProrationType;
64
64
  * - `CONTRACT_BUY_OUT` - Contract Buy Out
65
65
  * - `GOODWILL_GESTURE` - Goodwill Gesture
66
66
  * - `OUTAGE_COMPENSATION` - Outage Compensation
67
+ * - `PAYMENT_PLAN` - Payment Plan
67
68
  * - `PRICE_MATCH_ADJUSTMENT` - Price Match Adjustment
68
69
  * - `PRICE_MATCH_DEAL` - Price Match Deal
69
70
  * - `RECONTRACTING_ADJUSTMENT` - Recontracting Adjustment
@@ -81,6 +82,7 @@ var BillingAdjustmentReason;
81
82
  BillingAdjustmentReason["CONTRACT_BUY_OUT"] = "CONTRACT_BUY_OUT";
82
83
  BillingAdjustmentReason["GOODWILL_GESTURE"] = "GOODWILL_GESTURE";
83
84
  BillingAdjustmentReason["OUTAGE_COMPENSATION"] = "OUTAGE_COMPENSATION";
85
+ BillingAdjustmentReason["PAYMENT_PLAN"] = "PAYMENT_PLAN";
84
86
  BillingAdjustmentReason["PRICE_MATCH_ADJUSTMENT"] = "PRICE_MATCH_ADJUSTMENT";
85
87
  BillingAdjustmentReason["PRICE_MATCH_DEAL"] = "PRICE_MATCH_DEAL";
86
88
  BillingAdjustmentReason["RECONTRACTING_ADJUSTMENT"] = "RECONTRACTING_ADJUSTMENT";
@@ -37,13 +37,13 @@ import { PaymentMethodRefundProperties } from './PaymentMethodRefund';
37
37
  import { EmailProperties } from './Email';
38
38
  import { RewardProperties } from './Reward';
39
39
  import { AddressProperties } from './Address';
40
- import { ContractBuyOutProperties } from './ContractBuyOut';
41
40
  import { WorkOrderProperties } from './WorkOrder';
42
41
  import { ImpersonationTrackerProperties } from './ImpersonationTracker';
43
42
  import { AccountCreditProperties } from './AccountCredit';
44
43
  import { AffiliateCodeProperties } from './AffiliateCode';
45
44
  import { OrderProperties } from './Order';
46
45
  import { NpsSurveyProperties } from './NpsSurvey';
46
+ import { ContractBuyOutProperties } from './ContractBuyOut';
47
47
  /**
48
48
  * Available types for Contact records
49
49
  */
@@ -824,8 +824,6 @@ export declare class Contact extends OdinRecord<ContactProperties> {
824
824
  Reward: OdinLink<LinkedOdinRecord<RewardProperties>>;
825
825
  /** Linked Address records (Contact__Address) */
826
826
  Address: OdinLink<LinkedOdinRecord<AddressProperties>>;
827
- /** Linked ContractBuyOut records (Contact__ContractBuyOut) */
828
- ContractBuyOut: OdinLink<LinkedOdinRecord<ContractBuyOutProperties>>;
829
827
  /** Linked WorkOrder records (WorkOrder__Contact) */
830
828
  WorkOrder: OdinLink<LinkedOdinRecord<WorkOrderProperties>>;
831
829
  /** Linked ImpersonationTracker records (ImpersonationTracker__Contact) */
@@ -838,6 +836,8 @@ export declare class Contact extends OdinRecord<ContactProperties> {
838
836
  Order: OdinLink<LinkedOdinRecord<OrderProperties>>;
839
837
  /** Linked NpsSurvey records (Contact__NpsSurvey) */
840
838
  NpsSurvey: OdinLink<LinkedOdinRecord<NpsSurveyProperties>>;
839
+ /** Linked ContractBuyOut records (Contact__ContractBuyOut) */
840
+ ContractBuyOut: OdinLink<LinkedOdinRecord<ContractBuyOutProperties>>;
841
841
  }
842
842
  /**
843
843
  * RabbitMQ routing keys for Contact events
@@ -915,10 +915,6 @@ export declare const ROUTING_KEY_LINK_CONTACT_REWARD_DELETED = "CrmModule.Contac
915
915
  export declare const ROUTING_KEY_LINK_CONTACT_ADDRESS_CREATED = "CrmModule.Contact.Address.SubDbRecordAssociationCreated";
916
916
  /** Event: Contact__Address link deleted */
917
917
  export declare const ROUTING_KEY_LINK_CONTACT_ADDRESS_DELETED = "CrmModule.Contact.Address.SubDbRecordAssociationDeleted";
918
- /** Event: Contact__ContractBuyOut link created */
919
- export declare const ROUTING_KEY_LINK_CONTACT_CONTRACT_BUY_OUT_CREATED = "CrmModule.Contact.ContractBuyOut.SubDbRecordAssociationCreated";
920
- /** Event: Contact__ContractBuyOut link deleted */
921
- export declare const ROUTING_KEY_LINK_CONTACT_CONTRACT_BUY_OUT_DELETED = "CrmModule.Contact.ContractBuyOut.SubDbRecordAssociationDeleted";
922
918
  /** Event: Contact__AccountCredit link created */
923
919
  export declare const ROUTING_KEY_LINK_CONTACT_ACCOUNT_CREDIT_CREATED = "CrmModule.Contact.AccountCredit.SubDbRecordAssociationCreated";
924
920
  /** Event: Contact__AccountCredit link deleted */
@@ -931,3 +927,7 @@ export declare const ROUTING_KEY_LINK_CONTACT_AFFILIATE_CODES_DELETED = "CrmModu
931
927
  export declare const ROUTING_KEY_LINK_CONTACT_NPS_SURVEY_CREATED = "CrmModule.Contact.NpsSurvey.SubDbRecordAssociationCreated";
932
928
  /** Event: Contact__NpsSurvey link deleted */
933
929
  export declare const ROUTING_KEY_LINK_CONTACT_NPS_SURVEY_DELETED = "CrmModule.Contact.NpsSurvey.SubDbRecordAssociationDeleted";
930
+ /** Event: Contact__ContractBuyOut link created */
931
+ export declare const ROUTING_KEY_LINK_CONTACT_CONTRACT_BUY_OUT_CREATED = "CrmModule.Contact.ContractBuyOut.SubDbRecordAssociationCreated";
932
+ /** Event: Contact__ContractBuyOut link deleted */
933
+ export declare const ROUTING_KEY_LINK_CONTACT_CONTRACT_BUY_OUT_DELETED = "CrmModule.Contact.ContractBuyOut.SubDbRecordAssociationDeleted";
@@ -13,7 +13,7 @@
13
13
  */
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.ROUTING_KEY_LINK_CONTACT_ADDRESS_CREATED = exports.ROUTING_KEY_LINK_CONTACT_REWARD_DELETED = exports.ROUTING_KEY_LINK_CONTACT_REWARD_CREATED = exports.ROUTING_KEY_LINK_CONTACT_PAYMENT_METHOD_REFUND_DELETED = exports.ROUTING_KEY_LINK_CONTACT_PAYMENT_METHOD_REFUND_CREATED = exports.ROUTING_KEY_LINK_CONTACT_CONTACT_DELETED = exports.ROUTING_KEY_LINK_CONTACT_CONTACT_CREATED = exports.ROUTING_KEY_LINK_CONTACT_BILLING_REQUEST_DELETED = exports.ROUTING_KEY_LINK_CONTACT_BILLING_REQUEST_CREATED = exports.ROUTING_KEY_LINK_CONTACT_SMS_MESSAGE_DELETED = exports.ROUTING_KEY_LINK_CONTACT_SMS_MESSAGE_CREATED = exports.ROUTING_KEY_LINK_CONTACT_APPOINTMENT_DELETED = exports.ROUTING_KEY_LINK_CONTACT_APPOINTMENT_CREATED = exports.ROUTING_KEY_LINK_CONTACT_CONTACT_IDENTITY_DELETED = exports.ROUTING_KEY_LINK_CONTACT_CONTACT_IDENTITY_CREATED = exports.ROUTING_KEY_LINK_CONTACT_FILE_DELETED = exports.ROUTING_KEY_LINK_CONTACT_FILE_CREATED = exports.ROUTING_KEY_LINK_CONTACT_ACTIVITY_DELETED = exports.ROUTING_KEY_LINK_CONTACT_ACTIVITY_CREATED = exports.ROUTING_KEY_LINK_REFEREE_REFERRALS_DELETED = exports.ROUTING_KEY_LINK_REFEREE_REFERRALS_CREATED = exports.ROUTING_KEY_LINK_CONTACT_PUSH_NOTIFICATION_DELETED = exports.ROUTING_KEY_LINK_CONTACT_PUSH_NOTIFICATION_CREATED = exports.ROUTING_KEY_LINK_CONTACT_PHONE_NUMBER_DELETED = exports.ROUTING_KEY_LINK_CONTACT_PHONE_NUMBER_CREATED = exports.ROUTING_KEY_LINK_CONTACT_PAYMENT_METHOD_DELETED = exports.ROUTING_KEY_LINK_CONTACT_PAYMENT_METHOD_CREATED = exports.ROUTING_KEY_LINK_CONTACT_NOTE_DELETED = exports.ROUTING_KEY_LINK_CONTACT_NOTE_CREATED = exports.ROUTING_KEY_CONTACT_DEFAULT_DELETED = exports.ROUTING_KEY_CONTACT_DEFAULT_UPDATED = exports.ROUTING_KEY_CONTACT_DEFAULT_CREATED = exports.ROUTING_KEY_CONTACT_DELETED = exports.ROUTING_KEY_CONTACT_UPDATED = exports.ROUTING_KEY_CONTACT_CREATED = exports.Contact = exports.ContactPropertyKeys = exports.ContactWhitelistedTwilioQueue = exports.ContactHomeownerStatus = exports.ContactMedicallyDependant = exports.ContactAdditionalCareRequired = exports.ContactTelecareAlarm = exports.ContactAccountStatus = exports.ContactActivationSource = exports.ContactCurrentNetworkProvider = exports.ContactRole = exports.ContactPreviousProvider = exports.ContactPortalStatus = exports.ContactCurrentProvider = exports.ContactEntityTypes = void 0;
16
- exports.ROUTING_KEY_LINK_CONTACT_NPS_SURVEY_DELETED = exports.ROUTING_KEY_LINK_CONTACT_NPS_SURVEY_CREATED = exports.ROUTING_KEY_LINK_CONTACT_AFFILIATE_CODES_DELETED = exports.ROUTING_KEY_LINK_CONTACT_AFFILIATE_CODES_CREATED = exports.ROUTING_KEY_LINK_CONTACT_ACCOUNT_CREDIT_DELETED = exports.ROUTING_KEY_LINK_CONTACT_ACCOUNT_CREDIT_CREATED = exports.ROUTING_KEY_LINK_CONTACT_CONTRACT_BUY_OUT_DELETED = exports.ROUTING_KEY_LINK_CONTACT_CONTRACT_BUY_OUT_CREATED = exports.ROUTING_KEY_LINK_CONTACT_ADDRESS_DELETED = void 0;
16
+ exports.ROUTING_KEY_LINK_CONTACT_CONTRACT_BUY_OUT_DELETED = exports.ROUTING_KEY_LINK_CONTACT_CONTRACT_BUY_OUT_CREATED = exports.ROUTING_KEY_LINK_CONTACT_NPS_SURVEY_DELETED = exports.ROUTING_KEY_LINK_CONTACT_NPS_SURVEY_CREATED = exports.ROUTING_KEY_LINK_CONTACT_AFFILIATE_CODES_DELETED = exports.ROUTING_KEY_LINK_CONTACT_AFFILIATE_CODES_CREATED = exports.ROUTING_KEY_LINK_CONTACT_ACCOUNT_CREDIT_DELETED = exports.ROUTING_KEY_LINK_CONTACT_ACCOUNT_CREDIT_CREATED = exports.ROUTING_KEY_LINK_CONTACT_ADDRESS_DELETED = void 0;
17
17
  const core_1 = require("@d19n/odin-types/dist/core");
18
18
  /**
19
19
  * Available types for Contact records
@@ -467,10 +467,6 @@ exports.ROUTING_KEY_LINK_CONTACT_REWARD_DELETED = 'CrmModule.Contact.Reward.SubD
467
467
  exports.ROUTING_KEY_LINK_CONTACT_ADDRESS_CREATED = 'CrmModule.Contact.Address.SubDbRecordAssociationCreated';
468
468
  /** Event: Contact__Address link deleted */
469
469
  exports.ROUTING_KEY_LINK_CONTACT_ADDRESS_DELETED = 'CrmModule.Contact.Address.SubDbRecordAssociationDeleted';
470
- /** Event: Contact__ContractBuyOut link created */
471
- exports.ROUTING_KEY_LINK_CONTACT_CONTRACT_BUY_OUT_CREATED = 'CrmModule.Contact.ContractBuyOut.SubDbRecordAssociationCreated';
472
- /** Event: Contact__ContractBuyOut link deleted */
473
- exports.ROUTING_KEY_LINK_CONTACT_CONTRACT_BUY_OUT_DELETED = 'CrmModule.Contact.ContractBuyOut.SubDbRecordAssociationDeleted';
474
470
  /** Event: Contact__AccountCredit link created */
475
471
  exports.ROUTING_KEY_LINK_CONTACT_ACCOUNT_CREDIT_CREATED = 'CrmModule.Contact.AccountCredit.SubDbRecordAssociationCreated';
476
472
  /** Event: Contact__AccountCredit link deleted */
@@ -483,3 +479,7 @@ exports.ROUTING_KEY_LINK_CONTACT_AFFILIATE_CODES_DELETED = 'CrmModule.Contact.Af
483
479
  exports.ROUTING_KEY_LINK_CONTACT_NPS_SURVEY_CREATED = 'CrmModule.Contact.NpsSurvey.SubDbRecordAssociationCreated';
484
480
  /** Event: Contact__NpsSurvey link deleted */
485
481
  exports.ROUTING_KEY_LINK_CONTACT_NPS_SURVEY_DELETED = 'CrmModule.Contact.NpsSurvey.SubDbRecordAssociationDeleted';
482
+ /** Event: Contact__ContractBuyOut link created */
483
+ exports.ROUTING_KEY_LINK_CONTACT_CONTRACT_BUY_OUT_CREATED = 'CrmModule.Contact.ContractBuyOut.SubDbRecordAssociationCreated';
484
+ /** Event: Contact__ContractBuyOut link deleted */
485
+ exports.ROUTING_KEY_LINK_CONTACT_CONTRACT_BUY_OUT_DELETED = 'CrmModule.Contact.ContractBuyOut.SubDbRecordAssociationDeleted';
@@ -15,10 +15,10 @@ import { NoteProperties } from './Note';
15
15
  import { PaymentMethodProperties } from './PaymentMethod';
16
16
  import { FileProperties } from './File';
17
17
  import { OrderProperties } from './Order';
18
- import { ContactProperties } from './Contact';
19
18
  import { CaseProperties } from './Case';
20
19
  import { UserProperties } from './User';
21
20
  import { PaymentMethodRefundProperties } from './PaymentMethodRefund';
21
+ import { ContactProperties } from './Contact';
22
22
  /**
23
23
  * Available types for ContractBuyOut records
24
24
  */
@@ -288,14 +288,14 @@ export declare class ContractBuyOut extends OdinRecord<ContractBuyOutProperties>
288
288
  File: OdinLink<LinkedOdinRecord<FileProperties>>;
289
289
  /** Linked Order records (Order__ContractBuyOut) */
290
290
  Order: OdinLink<LinkedOdinRecord<OrderProperties>>;
291
- /** Linked Contact records (Contact__ContractBuyOut) */
292
- Contact: OdinLink<LinkedOdinRecord<ContactProperties>>;
293
291
  /** Linked Case records (Case__ContractBuyOut) */
294
292
  Case: OdinLink<LinkedOdinRecord<CaseProperties>>;
295
293
  /** Linked User records (ContractBuyOut__User) */
296
294
  User: OdinLink<LinkedOdinRecord<UserProperties>>;
297
295
  /** Linked PaymentMethodRefund records (ContractBuyOut__PaymentMethodRefund) */
298
296
  PaymentMethodRefund: OdinLink<LinkedOdinRecord<PaymentMethodRefundProperties>>;
297
+ /** Linked Contact records (Contact__ContractBuyOut) */
298
+ Contact: OdinLink<LinkedOdinRecord<ContactProperties>>;
299
299
  }
300
300
  /**
301
301
  * RabbitMQ routing keys for ContractBuyOut events
@@ -42,8 +42,8 @@ export declare enum CreditNoteEntityTypes {
42
42
  * - `ORDER_CONFIGURATION` - Order configuration
43
43
  * - `OTS_ORDER_CANCELLATION` - OTS Order Cancellation
44
44
  * - `PAYMENT_ERROR` - Payment Error
45
- * - `REFERRAL_REWARD` - Referral reward
46
- * - ... and 4 more
45
+ * - `PAYMENT_PLAN` - Payment Plan
46
+ * - ... and 5 more
47
47
  */
48
48
  export declare enum CreditNoteReason {
49
49
  BAD_DEBT_WRITE_OFF = "BAD_DEBT_WRITE_OFF",
@@ -60,6 +60,7 @@ export declare enum CreditNoteReason {
60
60
  ORDER_CONFIGURATION = "ORDER_CONFIGURATION",
61
61
  OTS_ORDER_CANCELLATION = "OTS_ORDER_CANCELLATION",
62
62
  PAYMENT_ERROR = "PAYMENT_ERROR",
63
+ PAYMENT_PLAN = "PAYMENT_PLAN",
63
64
  REFERRAL_REWARD = "REFERRAL_REWARD",
64
65
  RETENTION = "RETENTION",
65
66
  SALES_MIS_SOLD = "SALES_MISSOLD",
@@ -42,8 +42,8 @@ var CreditNoteEntityTypes;
42
42
  * - `ORDER_CONFIGURATION` - Order configuration
43
43
  * - `OTS_ORDER_CANCELLATION` - OTS Order Cancellation
44
44
  * - `PAYMENT_ERROR` - Payment Error
45
- * - `REFERRAL_REWARD` - Referral reward
46
- * - ... and 4 more
45
+ * - `PAYMENT_PLAN` - Payment Plan
46
+ * - ... and 5 more
47
47
  */
48
48
  var CreditNoteReason;
49
49
  (function (CreditNoteReason) {
@@ -61,6 +61,7 @@ var CreditNoteReason;
61
61
  CreditNoteReason["ORDER_CONFIGURATION"] = "ORDER_CONFIGURATION";
62
62
  CreditNoteReason["OTS_ORDER_CANCELLATION"] = "OTS_ORDER_CANCELLATION";
63
63
  CreditNoteReason["PAYMENT_ERROR"] = "PAYMENT_ERROR";
64
+ CreditNoteReason["PAYMENT_PLAN"] = "PAYMENT_PLAN";
64
65
  CreditNoteReason["REFERRAL_REWARD"] = "REFERRAL_REWARD";
65
66
  CreditNoteReason["RETENTION"] = "RETENTION";
66
67
  CreditNoteReason["SALES_MIS_SOLD"] = "SALES_MISSOLD";
@@ -183,7 +183,9 @@ export declare enum VoiceConfigurationPropertyKeys {
183
183
  /** phone number to port (Network Operations - VoiceConfiguration) */
184
184
  PhoneNumberToPort = "PhoneNumberToPort",
185
185
  /** the phone number provided by us to the customer (Network Operations - VoiceConfiguration) */
186
- IssuedPhoneNumber = "IssuedPhoneNumber"
186
+ IssuedPhoneNumber = "IssuedPhoneNumber",
187
+ /** Magrathea Port Date */
188
+ MagratheaPortDate = "MagratheaPortDate"
187
189
  }
188
190
  /**
189
191
  * Properties for VoiceConfiguration records
@@ -341,6 +343,11 @@ export interface VoiceConfigurationProperties {
341
343
  * @pii This field contains personally identifiable information
342
344
  */
343
345
  IssuedPhoneNumber: string;
346
+ /** Magrathea Port Date
347
+ *
348
+ * @type {DATE}
349
+ */
350
+ MagratheaPortDate: string;
344
351
  }
345
352
  /**
346
353
  * VoiceConfiguration entity from ServiceModule
@@ -189,6 +189,8 @@ var VoiceConfigurationPropertyKeys;
189
189
  VoiceConfigurationPropertyKeys["PhoneNumberToPort"] = "PhoneNumberToPort";
190
190
  /** the phone number provided by us to the customer (Network Operations - VoiceConfiguration) */
191
191
  VoiceConfigurationPropertyKeys["IssuedPhoneNumber"] = "IssuedPhoneNumber";
192
+ /** Magrathea Port Date */
193
+ VoiceConfigurationPropertyKeys["MagratheaPortDate"] = "MagratheaPortDate";
192
194
  })(VoiceConfigurationPropertyKeys = exports.VoiceConfigurationPropertyKeys || (exports.VoiceConfigurationPropertyKeys = {}));
193
195
  /**
194
196
  * VoiceConfiguration entity from ServiceModule
@@ -47,12 +47,12 @@ import { PaymentMethodRefundRecord } from './PaymentMethodRefundRecord';
47
47
  import { EmailRecord } from './EmailRecord';
48
48
  import { RewardRecord } from './RewardRecord';
49
49
  import { AddressRecord } from './AddressRecord';
50
- import { ContractBuyOutRecord } from './ContractBuyOutRecord';
51
50
  import { WorkOrderRecord } from './WorkOrderRecord';
52
51
  import { ImpersonationTrackerRecord } from './ImpersonationTrackerRecord';
53
52
  import { AccountCreditRecord } from './AccountCreditRecord';
54
53
  import { AffiliateCodeRecord } from './AffiliateCodeRecord';
55
54
  import { OrderRecord } from './OrderRecord';
55
+ import { ContractBuyOutRecord } from './ContractBuyOutRecord';
56
56
  /**
57
57
  * Builder for action execution with dryRun support
58
58
  *
@@ -198,12 +198,12 @@ export declare class ContactRecord<TProps = ContactProperties> {
198
198
  private _emails?;
199
199
  private _rewards?;
200
200
  private _addresses?;
201
- private _contractBuyOuts?;
202
201
  private _workOrders?;
203
202
  private _impersonationTrackers?;
204
203
  private _accountCredits?;
205
204
  private _affiliateCodes?;
206
205
  private _orders?;
206
+ private _contractBuyOuts?;
207
207
  /**
208
208
  * Create a record wrapper.
209
209
  * @param record - The underlying record, or null for create operations
@@ -609,24 +609,6 @@ export declare class ContactRecord<TProps = ContactProperties> {
609
609
  * ```
610
610
  */
611
611
  get addresses(): RecordLinkManager<AddressRecord, typeof ContactRecord['addressesLabels'][number]>;
612
- /** Valid labels for ContractBuyOut associations */
613
- static readonly contractBuyOutsLabels: readonly ["Contact__ContractBuyOut"];
614
- /**
615
- * Access linked ContractBuyOut records
616
- * @remarks Available labels: Contact__ContractBuyOut
617
- * @throws Error if called on a new (unsaved) record
618
- *
619
- * @example
620
- * ```typescript
621
- * // Get all linked ContractBuyOut records
622
- * const items = await record.contractBuyOuts.list();
623
- * const first = await record.contractBuyOuts.first();
624
- *
625
- * // Filter by label
626
- * const specific = await record.contractBuyOuts.first({ label: 'Contact__ContractBuyOut' });
627
- * ```
628
- */
629
- get contractBuyOuts(): RecordLinkManager<ContractBuyOutRecord, typeof ContactRecord['contractBuyOutsLabels'][number]>;
630
612
  /** Valid labels for WorkOrder associations */
631
613
  static readonly workOrdersLabels: readonly ["WorkOrder__Contact", "WorkOrder__Alternative_Contact"];
632
614
  /**
@@ -717,6 +699,24 @@ export declare class ContactRecord<TProps = ContactProperties> {
717
699
  * ```
718
700
  */
719
701
  get orders(): RecordLinkManager<OrderRecord, typeof ContactRecord['ordersLabels'][number]>;
702
+ /** Valid labels for ContractBuyOut associations */
703
+ static readonly contractBuyOutsLabels: readonly ["Contact__ContractBuyOut"];
704
+ /**
705
+ * Access linked ContractBuyOut records
706
+ * @remarks Available labels: Contact__ContractBuyOut
707
+ * @throws Error if called on a new (unsaved) record
708
+ *
709
+ * @example
710
+ * ```typescript
711
+ * // Get all linked ContractBuyOut records
712
+ * const items = await record.contractBuyOuts.list();
713
+ * const first = await record.contractBuyOuts.first();
714
+ *
715
+ * // Filter by label
716
+ * const specific = await record.contractBuyOuts.first({ label: 'Contact__ContractBuyOut' });
717
+ * ```
718
+ */
719
+ get contractBuyOuts(): RecordLinkManager<ContractBuyOutRecord, typeof ContactRecord['contractBuyOutsLabels'][number]>;
720
720
  /**
721
721
  * Queue a link to be created with the next action.
722
722
  * Works for both create and update actions.
@@ -50,12 +50,12 @@ const PaymentMethodRefundRecord_1 = require("./PaymentMethodRefundRecord");
50
50
  const EmailRecord_1 = require("./EmailRecord");
51
51
  const RewardRecord_1 = require("./RewardRecord");
52
52
  const AddressRecord_1 = require("./AddressRecord");
53
- const ContractBuyOutRecord_1 = require("./ContractBuyOutRecord");
54
53
  const WorkOrderRecord_1 = require("./WorkOrderRecord");
55
54
  const ImpersonationTrackerRecord_1 = require("./ImpersonationTrackerRecord");
56
55
  const AccountCreditRecord_1 = require("./AccountCreditRecord");
57
56
  const AffiliateCodeRecord_1 = require("./AffiliateCodeRecord");
58
57
  const OrderRecord_1 = require("./OrderRecord");
58
+ const ContractBuyOutRecord_1 = require("./ContractBuyOutRecord");
59
59
  /**
60
60
  * Builder for action execution with dryRun support
61
61
  *
@@ -901,36 +901,6 @@ class ContactRecord {
901
901
  }
902
902
  return this._addresses;
903
903
  }
904
- /**
905
- * Access linked ContractBuyOut records
906
- * @remarks Available labels: Contact__ContractBuyOut
907
- * @throws Error if called on a new (unsaved) record
908
- *
909
- * @example
910
- * ```typescript
911
- * // Get all linked ContractBuyOut records
912
- * const items = await record.contractBuyOuts.list();
913
- * const first = await record.contractBuyOuts.first();
914
- *
915
- * // Filter by label
916
- * const specific = await record.contractBuyOuts.first({ label: 'Contact__ContractBuyOut' });
917
- * ```
918
- */
919
- get contractBuyOuts() {
920
- var _a;
921
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
922
- throw new Error('Cannot access links on a new (unsaved) record');
923
- if (!this._contractBuyOuts) {
924
- this._contractBuyOuts = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
925
- sourceEntity: 'CrmModule:Contact',
926
- targetEntity: 'OrderModule:ContractBuyOut',
927
- targetModuleName: 'OrderModule',
928
- targetEntityName: 'ContractBuyOut',
929
- labels: ['Contact__ContractBuyOut'],
930
- }, ContractBuyOutRecord_1.ContractBuyOutRecord);
931
- }
932
- return this._contractBuyOuts;
933
- }
934
904
  /**
935
905
  * Access linked WorkOrder records
936
906
  * @remarks Available labels: WorkOrder__Contact, WorkOrder__Alternative_Contact
@@ -1081,6 +1051,36 @@ class ContactRecord {
1081
1051
  }
1082
1052
  return this._orders;
1083
1053
  }
1054
+ /**
1055
+ * Access linked ContractBuyOut records
1056
+ * @remarks Available labels: Contact__ContractBuyOut
1057
+ * @throws Error if called on a new (unsaved) record
1058
+ *
1059
+ * @example
1060
+ * ```typescript
1061
+ * // Get all linked ContractBuyOut records
1062
+ * const items = await record.contractBuyOuts.list();
1063
+ * const first = await record.contractBuyOuts.first();
1064
+ *
1065
+ * // Filter by label
1066
+ * const specific = await record.contractBuyOuts.first({ label: 'Contact__ContractBuyOut' });
1067
+ * ```
1068
+ */
1069
+ get contractBuyOuts() {
1070
+ var _a;
1071
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
1072
+ throw new Error('Cannot access links on a new (unsaved) record');
1073
+ if (!this._contractBuyOuts) {
1074
+ this._contractBuyOuts = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
1075
+ sourceEntity: 'CrmModule:Contact',
1076
+ targetEntity: 'OrderModule:ContractBuyOut',
1077
+ targetModuleName: 'OrderModule',
1078
+ targetEntityName: 'ContractBuyOut',
1079
+ labels: ['Contact__ContractBuyOut'],
1080
+ }, ContractBuyOutRecord_1.ContractBuyOutRecord);
1081
+ }
1082
+ return this._contractBuyOuts;
1083
+ }
1084
1084
  // ============================================
1085
1085
  // LINK MANAGEMENT
1086
1086
  // ============================================
@@ -1352,8 +1352,6 @@ ContactRecord.emailsLabels = ['Email_Contact'];
1352
1352
  ContactRecord.rewardsLabels = ['ContactReward'];
1353
1353
  /** Valid labels for Address associations */
1354
1354
  ContactRecord.addressesLabels = ['Contact__Address'];
1355
- /** Valid labels for ContractBuyOut associations */
1356
- ContactRecord.contractBuyOutsLabels = ['Contact__ContractBuyOut'];
1357
1355
  /** Valid labels for WorkOrder associations */
1358
1356
  ContactRecord.workOrdersLabels = ['WorkOrder__Contact', 'WorkOrder__Alternative_Contact'];
1359
1357
  /** Valid labels for ImpersonationTracker associations */
@@ -1364,6 +1362,8 @@ ContactRecord.accountCreditsLabels = ['Contact__AccountCredit'];
1364
1362
  ContactRecord.affiliateCodesLabels = ['ContactAffiliateCodes'];
1365
1363
  /** Valid labels for Order associations */
1366
1364
  ContactRecord.ordersLabels = ['Order__Contact'];
1365
+ /** Valid labels for ContractBuyOut associations */
1366
+ ContactRecord.contractBuyOutsLabels = ['Contact__ContractBuyOut'];
1367
1367
  /** Type guard to check if an object is a ContactRecord */
1368
1368
  function isContactRecord(obj) {
1369
1369
  return obj instanceof ContactRecord;
@@ -37,10 +37,10 @@ import { NoteRecord } from './NoteRecord';
37
37
  import { PaymentMethodRecord } from './PaymentMethodRecord';
38
38
  import { FileRecord } from './FileRecord';
39
39
  import { OrderRecord } from './OrderRecord';
40
- import { ContactRecord } from './ContactRecord';
41
40
  import { CaseRecord } from './CaseRecord';
42
41
  import { UserRecord } from './UserRecord';
43
42
  import { PaymentMethodRefundRecord } from './PaymentMethodRefundRecord';
43
+ import { ContactRecord } from './ContactRecord';
44
44
  /** Valid entity types for ContractBuyOut */
45
45
  export declare type ContractBuyOutType = 'DEFAULT';
46
46
  /**
@@ -234,10 +234,10 @@ export declare class ContractBuyOutRecord<TProps = ContractBuyOutProperties> {
234
234
  private _paymentMethods?;
235
235
  private _files?;
236
236
  private _orders?;
237
- private _contacts?;
238
237
  private _cases?;
239
238
  private _users?;
240
239
  private _paymentMethodRefunds?;
240
+ private _contacts?;
241
241
  /**
242
242
  * Create a record wrapper.
243
243
  * @param record - The underlying record, or null for create operations
@@ -353,24 +353,6 @@ export declare class ContractBuyOutRecord<TProps = ContractBuyOutProperties> {
353
353
  * ```
354
354
  */
355
355
  get orders(): RecordLinkManager<OrderRecord, typeof ContractBuyOutRecord['ordersLabels'][number]>;
356
- /** Valid labels for Contact associations */
357
- static readonly contactsLabels: readonly ["Contact__ContractBuyOut"];
358
- /**
359
- * Access linked Contact records
360
- * @remarks Available labels: Contact__ContractBuyOut
361
- * @throws Error if called on a new (unsaved) record
362
- *
363
- * @example
364
- * ```typescript
365
- * // Get all linked Contact records
366
- * const items = await record.contacts.list();
367
- * const first = await record.contacts.first();
368
- *
369
- * // Filter by label
370
- * const specific = await record.contacts.first({ label: 'Contact__ContractBuyOut' });
371
- * ```
372
- */
373
- get contacts(): RecordLinkManager<ContactRecord, typeof ContractBuyOutRecord['contactsLabels'][number]>;
374
356
  /** Valid labels for Case associations */
375
357
  static readonly casesLabels: readonly ["Case__ContractBuyOut"];
376
358
  /**
@@ -425,6 +407,24 @@ export declare class ContractBuyOutRecord<TProps = ContractBuyOutProperties> {
425
407
  * ```
426
408
  */
427
409
  get paymentMethodRefunds(): RecordLinkManager<PaymentMethodRefundRecord, typeof ContractBuyOutRecord['paymentMethodRefundsLabels'][number]>;
410
+ /** Valid labels for Contact associations */
411
+ static readonly contactsLabels: readonly ["Contact__ContractBuyOut"];
412
+ /**
413
+ * Access linked Contact records
414
+ * @remarks Available labels: Contact__ContractBuyOut
415
+ * @throws Error if called on a new (unsaved) record
416
+ *
417
+ * @example
418
+ * ```typescript
419
+ * // Get all linked Contact records
420
+ * const items = await record.contacts.list();
421
+ * const first = await record.contacts.first();
422
+ *
423
+ * // Filter by label
424
+ * const specific = await record.contacts.first({ label: 'Contact__ContractBuyOut' });
425
+ * ```
426
+ */
427
+ get contacts(): RecordLinkManager<ContactRecord, typeof ContractBuyOutRecord['contactsLabels'][number]>;
428
428
  /**
429
429
  * Queue a link to be created with the next action.
430
430
  * Works for both create and update actions.
@@ -36,10 +36,10 @@ const NoteRecord_1 = require("./NoteRecord");
36
36
  const PaymentMethodRecord_1 = require("./PaymentMethodRecord");
37
37
  const FileRecord_1 = require("./FileRecord");
38
38
  const OrderRecord_1 = require("./OrderRecord");
39
- const ContactRecord_1 = require("./ContactRecord");
40
39
  const CaseRecord_1 = require("./CaseRecord");
41
40
  const UserRecord_1 = require("./UserRecord");
42
41
  const PaymentMethodRefundRecord_1 = require("./PaymentMethodRefundRecord");
42
+ const ContactRecord_1 = require("./ContactRecord");
43
43
  /**
44
44
  * Builder for action execution with dryRun support
45
45
  *
@@ -507,36 +507,6 @@ class ContractBuyOutRecord {
507
507
  }
508
508
  return this._orders;
509
509
  }
510
- /**
511
- * Access linked Contact records
512
- * @remarks Available labels: Contact__ContractBuyOut
513
- * @throws Error if called on a new (unsaved) record
514
- *
515
- * @example
516
- * ```typescript
517
- * // Get all linked Contact records
518
- * const items = await record.contacts.list();
519
- * const first = await record.contacts.first();
520
- *
521
- * // Filter by label
522
- * const specific = await record.contacts.first({ label: 'Contact__ContractBuyOut' });
523
- * ```
524
- */
525
- get contacts() {
526
- var _a;
527
- if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
528
- throw new Error('Cannot access links on a new (unsaved) record');
529
- if (!this._contacts) {
530
- this._contacts = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
531
- sourceEntity: 'OrderModule:ContractBuyOut',
532
- targetEntity: 'CrmModule:Contact',
533
- targetModuleName: 'CrmModule',
534
- targetEntityName: 'Contact',
535
- labels: ['Contact__ContractBuyOut'],
536
- }, ContactRecord_1.ContactRecord);
537
- }
538
- return this._contacts;
539
- }
540
510
  /**
541
511
  * Access linked Case records
542
512
  * @remarks Available labels: Case__ContractBuyOut
@@ -627,6 +597,36 @@ class ContractBuyOutRecord {
627
597
  }
628
598
  return this._paymentMethodRefunds;
629
599
  }
600
+ /**
601
+ * Access linked Contact records
602
+ * @remarks Available labels: Contact__ContractBuyOut
603
+ * @throws Error if called on a new (unsaved) record
604
+ *
605
+ * @example
606
+ * ```typescript
607
+ * // Get all linked Contact records
608
+ * const items = await record.contacts.list();
609
+ * const first = await record.contacts.first();
610
+ *
611
+ * // Filter by label
612
+ * const specific = await record.contacts.first({ label: 'Contact__ContractBuyOut' });
613
+ * ```
614
+ */
615
+ get contacts() {
616
+ var _a;
617
+ if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
618
+ throw new Error('Cannot access links on a new (unsaved) record');
619
+ if (!this._contacts) {
620
+ this._contacts = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
621
+ sourceEntity: 'OrderModule:ContractBuyOut',
622
+ targetEntity: 'CrmModule:Contact',
623
+ targetModuleName: 'CrmModule',
624
+ targetEntityName: 'Contact',
625
+ labels: ['Contact__ContractBuyOut'],
626
+ }, ContactRecord_1.ContactRecord);
627
+ }
628
+ return this._contacts;
629
+ }
630
630
  // ============================================
631
631
  // LINK MANAGEMENT
632
632
  // ============================================
@@ -1274,14 +1274,14 @@ ContractBuyOutRecord.paymentMethodsLabels = ['ContractBuyOut__PaymentMethod'];
1274
1274
  ContractBuyOutRecord.filesLabels = ['ContractBuyOut__File'];
1275
1275
  /** Valid labels for Order associations */
1276
1276
  ContractBuyOutRecord.ordersLabels = ['Order__ContractBuyOut'];
1277
- /** Valid labels for Contact associations */
1278
- ContractBuyOutRecord.contactsLabels = ['Contact__ContractBuyOut'];
1279
1277
  /** Valid labels for Case associations */
1280
1278
  ContractBuyOutRecord.casesLabels = ['Case__ContractBuyOut'];
1281
1279
  /** Valid labels for User associations */
1282
1280
  ContractBuyOutRecord.usersLabels = ['ContractBuyOut__User'];
1283
1281
  /** Valid labels for PaymentMethodRefund associations */
1284
1282
  ContractBuyOutRecord.paymentMethodRefundsLabels = ['ContractBuyOut__PaymentMethodRefund'];
1283
+ /** Valid labels for Contact associations */
1284
+ ContractBuyOutRecord.contactsLabels = ['Contact__ContractBuyOut'];
1285
1285
  /** Type guard to check if an object is a ContractBuyOutRecord */
1286
1286
  function isContractBuyOutRecord(obj) {
1287
1287
  return obj instanceof ContractBuyOutRecord;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d19n/youfibre-odin-sdk",
3
- "version": "2.0.301",
3
+ "version": "2.0.303",
4
4
  "description": "",
5
5
  "author": "@d19n",
6
6
  "license": "UNLICENSED",
@@ -44,7 +44,7 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@d19n/odin-sdk-generator": "^3.0.244",
47
- "@d19n/odin-types": "^3.0.42"
47
+ "@d19n/odin-types": "^3.1.0"
48
48
  },
49
49
  "scripts": {
50
50
  "test:wholesale-provider": "npx --yes tsx src/wholesale-provider/test/netomnia-provider.spec.ts && npx --yes tsx src/wholesale-provider/test/kci-effect-bridge.spec.ts",