@d19n/youfibre-odin-sdk 1.0.74 → 1.0.76

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.
@@ -14,31 +14,31 @@
14
14
 
15
15
  private sourceRecord: any;
16
16
 
17
- public readonly organization: DbRecordLinkManager;
18
- public readonly account: DbRecordLinkManager;
17
+ public readonly organization__contact: DbRecordLinkManager;
18
+ public readonly billingcontact: DbRecordLinkManager;
19
+ public readonly workorder__contact: DbRecordLinkManager;
20
+ public readonly order__contact: DbRecordLinkManager;
21
+ public readonly lead__contact: DbRecordLinkManager;
22
+ public readonly invoice__contact: DbRecordLinkManager;
23
+ public readonly commission__contact: DbRecordLinkManager;
24
+ public readonly contact__contact: DbRecordLinkManager;
25
+ public readonly onetouchswitch__contact: DbRecordLinkManager;
26
+ public readonly deactivationapproval__contact: DbRecordLinkManager;
27
+ public readonly orderremediationtask__contact: DbRecordLinkManager;
28
+ public readonly call__contact: DbRecordLinkManager;
29
+ public readonly fingerprint__contact: DbRecordLinkManager;
30
+ public readonly case__contact: DbRecordLinkManager;
31
+ public readonly email_contact: DbRecordLinkManager;
19
32
  public readonly activity: DbRecordLinkManager;
20
33
  public readonly note: DbRecordLinkManager;
21
- public readonly workorder: DbRecordLinkManager;
22
- public readonly order: DbRecordLinkManager;
23
- public readonly lead: DbRecordLinkManager;
24
34
  public readonly address: DbRecordLinkManager;
25
35
  public readonly smsmessage: DbRecordLinkManager;
26
- public readonly invoice: DbRecordLinkManager;
27
36
  public readonly billingrequest: DbRecordLinkManager;
28
37
  public readonly file: DbRecordLinkManager;
29
- public readonly commission: DbRecordLinkManager;
30
- public readonly contact: DbRecordLinkManager;
31
- public readonly onetouchswitch: DbRecordLinkManager;
32
38
  public readonly contactidentity: DbRecordLinkManager;
33
39
  public readonly paymentmethodrefund: DbRecordLinkManager;
34
- public readonly deactivationapproval: DbRecordLinkManager;
35
40
  public readonly phonenumber: DbRecordLinkManager;
36
- public readonly orderremediationtask: DbRecordLinkManager;
37
41
  public readonly appointment: DbRecordLinkManager;
38
- public readonly call: DbRecordLinkManager;
39
- public readonly fingerprint: DbRecordLinkManager;
40
- public readonly case: DbRecordLinkManager;
41
- public readonly email: DbRecordLinkManager;
42
42
  public readonly paymentmethod: DbRecordLinkManager;
43
43
  constructor(principal: any, dbService: any) {
44
44
  super(principal, dbService);
@@ -46,180 +46,180 @@
46
46
  this.principal = principal;
47
47
  this.dbService = dbService;
48
48
 
49
- this.organization = new DbRecordLinkManager(
49
+ this.organization__contact = new DbRecordLinkManager(
50
50
  this.principal,
51
51
  this.dbService,
52
52
  'CrmModule:Contact',
53
- 'CrmModule:Organization',
53
+ 'CrmModule:Contact',
54
54
  'Organization__Contact'
55
55
  );
56
- this.account = new DbRecordLinkManager(
56
+ this.billingcontact = new DbRecordLinkManager(
57
57
  this.principal,
58
58
  this.dbService,
59
59
  'CrmModule:Contact',
60
- 'CrmModule:Account',
60
+ 'CrmModule:Contact',
61
61
  'BillingContact'
62
62
  );
63
- this.activity = new DbRecordLinkManager(
63
+ this.workorder__contact = new DbRecordLinkManager(
64
64
  this.principal,
65
65
  this.dbService,
66
66
  'CrmModule:Contact',
67
- 'SchemaModule:Activity',
68
- 'Contact__Activity'
67
+ 'CrmModule:Contact',
68
+ 'WorkOrder__Contact'
69
69
  );
70
- this.note = new DbRecordLinkManager(
70
+ this.order__contact = new DbRecordLinkManager(
71
71
  this.principal,
72
72
  this.dbService,
73
73
  'CrmModule:Contact',
74
- 'SupportModule:Note',
75
- 'Contact__Note'
74
+ 'CrmModule:Contact',
75
+ 'Order__Contact'
76
76
  );
77
- this.workorder = new DbRecordLinkManager(
77
+ this.lead__contact = new DbRecordLinkManager(
78
78
  this.principal,
79
79
  this.dbService,
80
80
  'CrmModule:Contact',
81
- 'FieldServiceModule:WorkOrder',
82
- 'WorkOrder__Contact'
81
+ 'CrmModule:Contact',
82
+ 'Lead__Contact'
83
83
  );
84
- this.order = new DbRecordLinkManager(
84
+ this.invoice__contact = new DbRecordLinkManager(
85
85
  this.principal,
86
86
  this.dbService,
87
87
  'CrmModule:Contact',
88
- 'OrderModule:Order',
89
- 'Order__Contact'
88
+ 'CrmModule:Contact',
89
+ 'Invoice__Contact'
90
90
  );
91
- this.lead = new DbRecordLinkManager(
91
+ this.commission__contact = new DbRecordLinkManager(
92
92
  this.principal,
93
93
  this.dbService,
94
94
  'CrmModule:Contact',
95
- 'CrmModule:Lead',
96
- 'Lead__Contact'
95
+ 'CrmModule:Contact',
96
+ 'Commission__Contact'
97
97
  );
98
- this.address = new DbRecordLinkManager(
98
+ this.contact__contact = new DbRecordLinkManager(
99
99
  this.principal,
100
100
  this.dbService,
101
101
  'CrmModule:Contact',
102
- 'CrmModule:Address',
103
- 'Contact__Address'
102
+ 'CrmModule:Contact',
103
+ 'Contact__Contact'
104
104
  );
105
- this.smsmessage = new DbRecordLinkManager(
105
+ this.onetouchswitch__contact = new DbRecordLinkManager(
106
106
  this.principal,
107
107
  this.dbService,
108
108
  'CrmModule:Contact',
109
- 'NotificationModule:SmsMessage',
110
- 'Contact__SmsMessage'
109
+ 'CrmModule:Contact',
110
+ 'OneTouchSwitch__Contact'
111
111
  );
112
- this.invoice = new DbRecordLinkManager(
112
+ this.deactivationapproval__contact = new DbRecordLinkManager(
113
113
  this.principal,
114
114
  this.dbService,
115
115
  'CrmModule:Contact',
116
- 'BillingModule:Invoice',
117
- 'Invoice__Contact'
116
+ 'CrmModule:Contact',
117
+ 'DeactivationApproval__Contact'
118
118
  );
119
- this.billingrequest = new DbRecordLinkManager(
119
+ this.orderremediationtask__contact = new DbRecordLinkManager(
120
120
  this.principal,
121
121
  this.dbService,
122
122
  'CrmModule:Contact',
123
- 'BillingModule:BillingRequest',
124
- 'Contact__BillingRequest'
123
+ 'CrmModule:Contact',
124
+ 'OrderRemediationTask__Contact'
125
125
  );
126
- this.file = new DbRecordLinkManager(
126
+ this.call__contact = new DbRecordLinkManager(
127
127
  this.principal,
128
128
  this.dbService,
129
129
  'CrmModule:Contact',
130
- 'SchemaModule:File',
131
- 'Contact__File'
130
+ 'CrmModule:Contact',
131
+ 'Call__Contact'
132
132
  );
133
- this.commission = new DbRecordLinkManager(
133
+ this.fingerprint__contact = new DbRecordLinkManager(
134
134
  this.principal,
135
135
  this.dbService,
136
136
  'CrmModule:Contact',
137
- 'BillingModule:Commission',
138
- 'Commission__Contact'
137
+ 'CrmModule:Contact',
138
+ 'Fingerprint__Contact'
139
139
  );
140
- this.contact = new DbRecordLinkManager(
140
+ this.case__contact = new DbRecordLinkManager(
141
141
  this.principal,
142
142
  this.dbService,
143
143
  'CrmModule:Contact',
144
144
  'CrmModule:Contact',
145
- 'Contact__Contact'
145
+ 'Case__Contact'
146
146
  );
147
- this.onetouchswitch = new DbRecordLinkManager(
147
+ this.email_contact = new DbRecordLinkManager(
148
148
  this.principal,
149
149
  this.dbService,
150
150
  'CrmModule:Contact',
151
- 'OrderModule:OneTouchSwitch',
152
- 'OneTouchSwitch__Contact'
151
+ 'CrmModule:Contact',
152
+ 'Email_Contact'
153
153
  );
154
- this.contactidentity = new DbRecordLinkManager(
154
+ this.activity = new DbRecordLinkManager(
155
155
  this.principal,
156
156
  this.dbService,
157
157
  'CrmModule:Contact',
158
- 'CrmModule:ContactIdentity',
159
- 'Contact__ContactIdentity'
158
+ 'SchemaModule:Activity',
159
+ 'Contact__Activity'
160
160
  );
161
- this.paymentmethodrefund = new DbRecordLinkManager(
161
+ this.note = new DbRecordLinkManager(
162
162
  this.principal,
163
163
  this.dbService,
164
164
  'CrmModule:Contact',
165
- 'BillingModule:PaymentMethodRefund',
166
- 'Contact__PaymentMethodRefund'
165
+ 'SupportModule:Note',
166
+ 'Contact__Note'
167
167
  );
168
- this.deactivationapproval = new DbRecordLinkManager(
168
+ this.address = new DbRecordLinkManager(
169
169
  this.principal,
170
170
  this.dbService,
171
171
  'CrmModule:Contact',
172
- 'OrderModule:DeactivationApproval',
173
- 'DeactivationApproval__Contact'
172
+ 'CrmModule:Address',
173
+ 'Contact__Address'
174
174
  );
175
- this.phonenumber = new DbRecordLinkManager(
175
+ this.smsmessage = new DbRecordLinkManager(
176
176
  this.principal,
177
177
  this.dbService,
178
178
  'CrmModule:Contact',
179
- 'CrmModule:PhoneNumber',
180
- 'Contact__PhoneNumber'
179
+ 'NotificationModule:SmsMessage',
180
+ 'Contact__SmsMessage'
181
181
  );
182
- this.orderremediationtask = new DbRecordLinkManager(
182
+ this.billingrequest = new DbRecordLinkManager(
183
183
  this.principal,
184
184
  this.dbService,
185
185
  'CrmModule:Contact',
186
- 'OrderModule:OrderRemediationTask',
187
- 'OrderRemediationTask__Contact'
186
+ 'BillingModule:BillingRequest',
187
+ 'Contact__BillingRequest'
188
188
  );
189
- this.appointment = new DbRecordLinkManager(
189
+ this.file = new DbRecordLinkManager(
190
190
  this.principal,
191
191
  this.dbService,
192
192
  'CrmModule:Contact',
193
- 'CrmModule:Appointment',
194
- 'Contact__Appointment'
193
+ 'SchemaModule:File',
194
+ 'Contact__File'
195
195
  );
196
- this.call = new DbRecordLinkManager(
196
+ this.contactidentity = new DbRecordLinkManager(
197
197
  this.principal,
198
198
  this.dbService,
199
199
  'CrmModule:Contact',
200
- 'NotificationModule:Call',
201
- 'Call__Contact'
200
+ 'CrmModule:ContactIdentity',
201
+ 'Contact__ContactIdentity'
202
202
  );
203
- this.fingerprint = new DbRecordLinkManager(
203
+ this.paymentmethodrefund = new DbRecordLinkManager(
204
204
  this.principal,
205
205
  this.dbService,
206
206
  'CrmModule:Contact',
207
- 'CrmModule:Fingerprint',
208
- 'Fingerprint__Contact'
207
+ 'BillingModule:PaymentMethodRefund',
208
+ 'Contact__PaymentMethodRefund'
209
209
  );
210
- this.case = new DbRecordLinkManager(
210
+ this.phonenumber = new DbRecordLinkManager(
211
211
  this.principal,
212
212
  this.dbService,
213
213
  'CrmModule:Contact',
214
- 'SupportModule:Case',
215
- 'Case__Contact'
214
+ 'CrmModule:PhoneNumber',
215
+ 'Contact__PhoneNumber'
216
216
  );
217
- this.email = new DbRecordLinkManager(
217
+ this.appointment = new DbRecordLinkManager(
218
218
  this.principal,
219
219
  this.dbService,
220
220
  'CrmModule:Contact',
221
- 'NotificationModule:Email',
222
- 'Email_Contact'
221
+ 'CrmModule:Appointment',
222
+ 'Contact__Appointment'
223
223
  );
224
224
  this.paymentmethod = new DbRecordLinkManager(
225
225
  this.principal,
@@ -22,14 +22,14 @@
22
22
  public readonly contact: DbRecordLinkManager;
23
23
  public readonly commission: DbRecordLinkManager;
24
24
  public readonly file: DbRecordLinkManager;
25
- public readonly workorder: DbRecordLinkManager;
26
- public readonly crmdataset: DbRecordLinkManager;
25
+ public readonly workorder__lead: DbRecordLinkManager;
26
+ public readonly crmdataset__lead: DbRecordLinkManager;
27
+ public readonly call__lead: DbRecordLinkManager;
28
+ public readonly fingerprint__lead: DbRecordLinkManager;
27
29
  public readonly visit: DbRecordLinkManager;
28
30
  public readonly appointment: DbRecordLinkManager;
29
- public readonly call: DbRecordLinkManager;
30
31
  public readonly order: DbRecordLinkManager;
31
32
  public readonly address: DbRecordLinkManager;
32
- public readonly fingerprint: DbRecordLinkManager;
33
33
  constructor(principal: any, dbService: any) {
34
34
  super(principal, dbService);
35
35
 
@@ -92,20 +92,34 @@
92
92
  'SchemaModule:File',
93
93
  'Lead__File'
94
94
  );
95
- this.workorder = new DbRecordLinkManager(
95
+ this.workorder__lead = new DbRecordLinkManager(
96
96
  this.principal,
97
97
  this.dbService,
98
98
  'CrmModule:Lead',
99
- 'FieldServiceModule:WorkOrder',
99
+ 'CrmModule:Lead',
100
100
  'WorkOrder__Lead'
101
101
  );
102
- this.crmdataset = new DbRecordLinkManager(
102
+ this.crmdataset__lead = new DbRecordLinkManager(
103
103
  this.principal,
104
104
  this.dbService,
105
105
  'CrmModule:Lead',
106
- 'CrmModule:CrmDataset',
106
+ 'CrmModule:Lead',
107
107
  'CrmDataset__Lead'
108
108
  );
109
+ this.call__lead = new DbRecordLinkManager(
110
+ this.principal,
111
+ this.dbService,
112
+ 'CrmModule:Lead',
113
+ 'CrmModule:Lead',
114
+ 'Call__Lead'
115
+ );
116
+ this.fingerprint__lead = new DbRecordLinkManager(
117
+ this.principal,
118
+ this.dbService,
119
+ 'CrmModule:Lead',
120
+ 'CrmModule:Lead',
121
+ 'Fingerprint__Lead'
122
+ );
109
123
  this.visit = new DbRecordLinkManager(
110
124
  this.principal,
111
125
  this.dbService,
@@ -120,13 +134,6 @@
120
134
  'CrmModule:Appointment',
121
135
  'Lead_Appointment'
122
136
  );
123
- this.call = new DbRecordLinkManager(
124
- this.principal,
125
- this.dbService,
126
- 'CrmModule:Lead',
127
- 'NotificationModule:Call',
128
- 'Call__Lead'
129
- );
130
137
  this.order = new DbRecordLinkManager(
131
138
  this.principal,
132
139
  this.dbService,
@@ -141,13 +148,6 @@
141
148
  'CrmModule:Address',
142
149
  'Lead_Address'
143
150
  );
144
- this.fingerprint = new DbRecordLinkManager(
145
- this.principal,
146
- this.dbService,
147
- 'CrmModule:Lead',
148
- 'CrmModule:Fingerprint',
149
- 'Fingerprint__Lead'
150
- );
151
151
  }
152
152
 
153
153
 
@@ -11,10 +11,6 @@ export enum BillingAdjustmentEntityTypes {
11
11
  DEFAULT = 'DEFAULT',
12
12
  }
13
13
 
14
- export enum BillingAdjustmentDiscountType {
15
- AMOUNT = 'AMOUNT',
16
- PERCENT = 'PERCENT',
17
- }
18
14
  export enum BillingAdjustmentReason {
19
15
  BILLING_DATE_CHANGE = 'BILLING_DATE_CHANGE',
20
16
  BILLING_DAY_ADJUSMENT_LEGACY = 'BILLING_DAY_ADJUSTMENT',
@@ -30,28 +26,32 @@ export enum BillingAdjustmentReason {
30
26
  RETENTION_DEAL = 'RETENTION_DEAL',
31
27
  SALES_MISSELLING_ADJUSTMENT = 'SALES_MISSELLING_ADJUSTMENT',
32
28
  }
29
+ export enum BillingAdjustmentDiscountType {
30
+ AMOUNT = 'AMOUNT',
31
+ PERCENT = 'PERCENT',
32
+ }
33
33
 
34
34
  export enum BillingAdjustmentPropertyKeys {
35
- Description = 'Description',
36
- DiscountLength = 'DiscountLength',
37
- DiscountType = 'DiscountType',
38
- DiscountValue = 'DiscountValue',
39
35
  FreePeriodLength = 'FreePeriodLength',
40
36
  Reason = 'Reason',
37
+ DiscountValue = 'DiscountValue',
38
+ DiscountLength = 'DiscountLength',
39
+ DiscountType = 'DiscountType',
40
+ Description = 'Description',
41
41
  }
42
42
  export interface BillingAdjustmentProperties {
43
- //Describe why this billing adjustment being applied
44
- Description: string
45
- //the length of the discount
46
- DiscountLength: number
47
- //the type of discount
48
- DiscountType: BillingAdjustmentDiscountType
49
- //the value of the discount to be applied
50
- DiscountValue: number
51
43
  //The number of future invoices that should be free of charge
52
44
  FreePeriodLength?: number
53
45
  //the billing adjustment reason
54
46
  Reason: BillingAdjustmentReason
47
+ //the value of the discount to be applied
48
+ DiscountValue: number
49
+ //the length of the discount
50
+ DiscountLength: number
51
+ //the type of discount
52
+ DiscountType: BillingAdjustmentDiscountType
53
+ //Describe why this billing adjustment being applied
54
+ Description: string
55
55
  }
56
56
  export interface BillingAdjustment {
57
57
  id: string