@d19n/youfibre-odin-sdk 1.0.48 → 1.0.49

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,211 +14,211 @@
14
14
 
15
15
  private sourceRecord: any;
16
16
 
17
- public readonly returnorder__order: DbRecordLinkManager;
18
- public readonly account__order: DbRecordLinkManager;
19
- public readonly splitorder__order: DbRecordLinkManager;
20
- public readonly churnrequest__order: DbRecordLinkManager;
21
- public readonly order__order: DbRecordLinkManager;
22
- public readonly picrequest__order: DbRecordLinkManager;
23
- public readonly paymentmethodrefund__order: DbRecordLinkManager;
24
- public readonly deactivationapproval__order: DbRecordLinkManager;
25
- public readonly orderremediationtask__order: DbRecordLinkManager;
26
- public readonly case__order: DbRecordLinkManager;
27
- public readonly lead_order: DbRecordLinkManager;
28
- public readonly onetouchswitch__order: DbRecordLinkManager;
17
+ public readonly returnorder: DbRecordLinkManager;
29
18
  public readonly address: DbRecordLinkManager;
30
19
  public readonly note: DbRecordLinkManager;
31
20
  public readonly contact: DbRecordLinkManager;
21
+ public readonly account: DbRecordLinkManager;
32
22
  public readonly discount: DbRecordLinkManager;
33
23
  public readonly orderitem: DbRecordLinkManager;
34
24
  public readonly billingadjustment: DbRecordLinkManager;
25
+ public readonly splitorder__order: DbRecordLinkManager;
26
+ public readonly order__splitorder: DbRecordLinkManager;
27
+ public readonly churnrequest: DbRecordLinkManager;
35
28
  public readonly commission: DbRecordLinkManager;
36
29
  public readonly file: DbRecordLinkManager;
37
30
  public readonly activity: DbRecordLinkManager;
31
+ public readonly order: DbRecordLinkManager;
32
+ public readonly picrequest: DbRecordLinkManager;
38
33
  public readonly smsmessage: DbRecordLinkManager;
34
+ public readonly paymentmethodrefund: DbRecordLinkManager;
39
35
  public readonly visit: DbRecordLinkManager;
40
36
  public readonly workorder: DbRecordLinkManager;
37
+ public readonly deactivationapproval: DbRecordLinkManager;
38
+ public readonly orderremediationtask: DbRecordLinkManager;
39
+ public readonly case: DbRecordLinkManager;
40
+ public readonly lead: DbRecordLinkManager;
41
41
  public readonly customerdeviceont: DbRecordLinkManager;
42
42
  public readonly customerdevicerouter: DbRecordLinkManager;
43
43
  public readonly appointment: DbRecordLinkManager;
44
44
  public readonly ordercheck: DbRecordLinkManager;
45
45
  public readonly invoice: DbRecordLinkManager;
46
- public readonly splitorder: DbRecordLinkManager;
47
46
  public readonly phonenumber: DbRecordLinkManager;
48
47
  public readonly contactidentity: DbRecordLinkManager;
48
+ public readonly onetouchswitch: DbRecordLinkManager;
49
49
  constructor(principal: any, dbService: any) {
50
50
  super(principal, dbService);
51
51
 
52
52
  this.principal = principal;
53
53
  this.dbService = dbService;
54
54
 
55
- this.returnorder__order = new DbRecordLinkManager(
55
+ this.returnorder = new DbRecordLinkManager(
56
56
  this.principal,
57
57
  this.dbService,
58
58
  'OrderModule:Order',
59
- 'OrderModule:Order',
59
+ 'OrderModule:ReturnOrder',
60
60
  'ReturnOrder__Order'
61
61
  );
62
- this.account__order = new DbRecordLinkManager(
62
+ this.address = new DbRecordLinkManager(
63
63
  this.principal,
64
64
  this.dbService,
65
65
  'OrderModule:Order',
66
- 'OrderModule:Order',
67
- 'Account__Order'
66
+ 'CrmModule:Address',
67
+ 'Order__Address'
68
68
  );
69
- this.splitorder__order = new DbRecordLinkManager(
69
+ this.note = new DbRecordLinkManager(
70
70
  this.principal,
71
71
  this.dbService,
72
72
  'OrderModule:Order',
73
- 'OrderModule:Order',
74
- 'SplitOrder__Order'
73
+ 'SupportModule:Note',
74
+ 'Order__Note'
75
75
  );
76
- this.churnrequest__order = new DbRecordLinkManager(
76
+ this.contact = new DbRecordLinkManager(
77
77
  this.principal,
78
78
  this.dbService,
79
79
  'OrderModule:Order',
80
- 'OrderModule:Order',
81
- 'ChurnRequest__Order'
80
+ 'CrmModule:Contact',
81
+ 'Order__Contact'
82
82
  );
83
- this.order__order = new DbRecordLinkManager(
83
+ this.account = new DbRecordLinkManager(
84
84
  this.principal,
85
85
  this.dbService,
86
86
  'OrderModule:Order',
87
- 'OrderModule:Order',
88
- 'Order__Order'
87
+ 'CrmModule:Account',
88
+ 'Account__Order'
89
89
  );
90
- this.picrequest__order = new DbRecordLinkManager(
90
+ this.discount = new DbRecordLinkManager(
91
91
  this.principal,
92
92
  this.dbService,
93
93
  'OrderModule:Order',
94
- 'OrderModule:Order',
95
- 'PICRequest__Order'
94
+ 'ProductModule:Discount',
95
+ 'Order__Discount'
96
96
  );
97
- this.paymentmethodrefund__order = new DbRecordLinkManager(
97
+ this.orderitem = new DbRecordLinkManager(
98
98
  this.principal,
99
99
  this.dbService,
100
100
  'OrderModule:Order',
101
- 'OrderModule:Order',
102
- 'PaymentMethodRefund__Order'
101
+ 'OrderModule:OrderItem',
102
+ 'Order_OrderItem'
103
103
  );
104
- this.deactivationapproval__order = new DbRecordLinkManager(
104
+ this.billingadjustment = new DbRecordLinkManager(
105
105
  this.principal,
106
106
  this.dbService,
107
107
  'OrderModule:Order',
108
- 'OrderModule:Order',
109
- 'DeactivationApproval__Order'
108
+ 'OrderModule:BillingAdjustment',
109
+ 'Order__BillingAdjustment'
110
110
  );
111
- this.orderremediationtask__order = new DbRecordLinkManager(
111
+ this.splitorder__order = new DbRecordLinkManager(
112
112
  this.principal,
113
113
  this.dbService,
114
114
  'OrderModule:Order',
115
- 'OrderModule:Order',
116
- 'OrderRemediationTask__Order'
115
+ 'OrderModule:SplitOrder',
116
+ 'SplitOrder__Order'
117
117
  );
118
- this.case__order = new DbRecordLinkManager(
118
+ this.order__splitorder = new DbRecordLinkManager(
119
119
  this.principal,
120
120
  this.dbService,
121
121
  'OrderModule:Order',
122
- 'OrderModule:Order',
123
- 'Case__Order'
122
+ 'OrderModule:SplitOrder',
123
+ 'Order__SplitOrder'
124
124
  );
125
- this.lead_order = new DbRecordLinkManager(
125
+ this.churnrequest = new DbRecordLinkManager(
126
126
  this.principal,
127
127
  this.dbService,
128
128
  'OrderModule:Order',
129
- 'OrderModule:Order',
130
- 'Lead_Order'
129
+ 'OrderModule:ChurnRequest',
130
+ 'ChurnRequest__Order'
131
131
  );
132
- this.onetouchswitch__order = new DbRecordLinkManager(
132
+ this.commission = new DbRecordLinkManager(
133
133
  this.principal,
134
134
  this.dbService,
135
135
  'OrderModule:Order',
136
- 'OrderModule:Order',
137
- 'OneTouchSwitch__Order'
136
+ 'BillingModule:Commission',
137
+ 'Order__Commission'
138
138
  );
139
- this.address = new DbRecordLinkManager(
139
+ this.file = new DbRecordLinkManager(
140
140
  this.principal,
141
141
  this.dbService,
142
142
  'OrderModule:Order',
143
- 'CrmModule:Address',
144
- 'Order__Address'
143
+ 'SchemaModule:File',
144
+ 'Order__File'
145
145
  );
146
- this.note = new DbRecordLinkManager(
146
+ this.activity = new DbRecordLinkManager(
147
147
  this.principal,
148
148
  this.dbService,
149
149
  'OrderModule:Order',
150
- 'SupportModule:Note',
151
- 'Order__Note'
150
+ 'SchemaModule:Activity',
151
+ 'Order__Activity'
152
152
  );
153
- this.contact = new DbRecordLinkManager(
153
+ this.order = new DbRecordLinkManager(
154
154
  this.principal,
155
155
  this.dbService,
156
156
  'OrderModule:Order',
157
- 'CrmModule:Contact',
158
- 'Order__Contact'
157
+ 'OrderModule:Order',
158
+ 'Order__Order'
159
159
  );
160
- this.discount = new DbRecordLinkManager(
160
+ this.picrequest = new DbRecordLinkManager(
161
161
  this.principal,
162
162
  this.dbService,
163
163
  'OrderModule:Order',
164
- 'ProductModule:Discount',
165
- 'Order__Discount'
164
+ 'OrderModule:PICRequest',
165
+ 'PICRequest__Order'
166
166
  );
167
- this.orderitem = new DbRecordLinkManager(
167
+ this.smsmessage = new DbRecordLinkManager(
168
168
  this.principal,
169
169
  this.dbService,
170
170
  'OrderModule:Order',
171
- 'OrderModule:OrderItem',
172
- 'Order_OrderItem'
171
+ 'NotificationModule:SmsMessage',
172
+ 'Order__SmsMessage'
173
173
  );
174
- this.billingadjustment = new DbRecordLinkManager(
174
+ this.paymentmethodrefund = new DbRecordLinkManager(
175
175
  this.principal,
176
176
  this.dbService,
177
177
  'OrderModule:Order',
178
- 'OrderModule:BillingAdjustment',
179
- 'Order__BillingAdjustment'
178
+ 'BillingModule:PaymentMethodRefund',
179
+ 'PaymentMethodRefund__Order'
180
180
  );
181
- this.commission = new DbRecordLinkManager(
181
+ this.visit = new DbRecordLinkManager(
182
182
  this.principal,
183
183
  this.dbService,
184
184
  'OrderModule:Order',
185
- 'BillingModule:Commission',
186
- 'Order__Commission'
185
+ 'CrmModule:Visit',
186
+ 'Order__Visit'
187
187
  );
188
- this.file = new DbRecordLinkManager(
188
+ this.workorder = new DbRecordLinkManager(
189
189
  this.principal,
190
190
  this.dbService,
191
191
  'OrderModule:Order',
192
- 'SchemaModule:File',
193
- 'Order__File'
192
+ 'FieldServiceModule:WorkOrder',
193
+ 'Order__WorkOrder'
194
194
  );
195
- this.activity = new DbRecordLinkManager(
195
+ this.deactivationapproval = new DbRecordLinkManager(
196
196
  this.principal,
197
197
  this.dbService,
198
198
  'OrderModule:Order',
199
- 'SchemaModule:Activity',
200
- 'Order__Activity'
199
+ 'OrderModule:DeactivationApproval',
200
+ 'DeactivationApproval__Order'
201
201
  );
202
- this.smsmessage = new DbRecordLinkManager(
202
+ this.orderremediationtask = new DbRecordLinkManager(
203
203
  this.principal,
204
204
  this.dbService,
205
205
  'OrderModule:Order',
206
- 'NotificationModule:SmsMessage',
207
- 'Order__SmsMessage'
206
+ 'OrderModule:OrderRemediationTask',
207
+ 'OrderRemediationTask__Order'
208
208
  );
209
- this.visit = new DbRecordLinkManager(
209
+ this.case = new DbRecordLinkManager(
210
210
  this.principal,
211
211
  this.dbService,
212
212
  'OrderModule:Order',
213
- 'CrmModule:Visit',
214
- 'Order__Visit'
213
+ 'SupportModule:Case',
214
+ 'Case__Order'
215
215
  );
216
- this.workorder = new DbRecordLinkManager(
216
+ this.lead = new DbRecordLinkManager(
217
217
  this.principal,
218
218
  this.dbService,
219
219
  'OrderModule:Order',
220
- 'FieldServiceModule:WorkOrder',
221
- 'Order__WorkOrder'
220
+ 'CrmModule:Lead',
221
+ 'Lead_Order'
222
222
  );
223
223
  this.customerdeviceont = new DbRecordLinkManager(
224
224
  this.principal,
@@ -255,13 +255,6 @@
255
255
  'BillingModule:Invoice',
256
256
  'Order__Invoice'
257
257
  );
258
- this.splitorder = new DbRecordLinkManager(
259
- this.principal,
260
- this.dbService,
261
- 'OrderModule:Order',
262
- 'OrderModule:SplitOrder',
263
- 'Order__SplitOrder'
264
- );
265
258
  this.phonenumber = new DbRecordLinkManager(
266
259
  this.principal,
267
260
  this.dbService,
@@ -276,6 +269,13 @@
276
269
  'CrmModule:ContactIdentity',
277
270
  'Order__ContactIdentity'
278
271
  );
272
+ this.onetouchswitch = new DbRecordLinkManager(
273
+ this.principal,
274
+ this.dbService,
275
+ 'OrderModule:Order',
276
+ 'OrderModule:OneTouchSwitch',
277
+ 'OneTouchSwitch__Order'
278
+ );
279
279
  }
280
280
 
281
281
 
@@ -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
@@ -32,26 +32,26 @@ export enum CreditNoteReason {
32
32
  }
33
33
 
34
34
  export enum CreditNotePropertyKeys {
35
- Status = 'Status',
36
35
  Amount = 'Amount',
37
36
  Description = 'Description',
38
37
  InvoiceRef = 'InvoiceRef',
39
- ReasonCode = 'ReasonCode',
40
38
  Reason = 'Reason',
39
+ ReasonCode = 'ReasonCode',
40
+ Status = 'Status',
41
41
  }
42
42
  export interface CreditNoteProperties {
43
- //credit note status
44
- Status?: string
45
43
  //amount of the credit note
46
44
  Amount: number
47
45
  //description of the credit note
48
46
  Description: string
49
47
  //the record # of the invoice
50
48
  InvoiceRef?: string
51
- //reason code
52
- ReasonCode?: string
53
49
  //credit note reason
54
50
  Reason: CreditNoteReason
51
+ //reason code
52
+ ReasonCode?: string
53
+ //credit note status
54
+ Status?: string
55
55
  }
56
56
  export interface CreditNote {
57
57
  id: string
@@ -13,6 +13,7 @@ export enum MobileConfigurationStatus {
13
13
  FAILED_ACTIVATION = 'FAILED_ACTIVATION',
14
14
  FAILED_DEACTIVATION = 'FAILED_DEACTIVATION',
15
15
  FAILED_UPDATE_MSISDN = 'FAILED_UPDATE_MSISDN',
16
+ FAILED_UPDATE_SERVICES = 'FAILED_UPDATE_SERVICES',
16
17
  FAILED_UPDATE_USIM = 'FAILED_UPDATE_USIM',
17
18
  PAIRED = 'PAIRED',
18
19
  PENDING_ACTIVATION = 'PENDING_ACTIVATION',
@@ -324,6 +324,7 @@ export enum OrderPropertyKeys {
324
324
  isLocked: boolean
325
325
  links: {id: string, title: string[], entity: string}
326
326
  properties: OrderProperties,
327
+ Order: OdinLink<LinkedOdinRecord<OrderProperties>>,
327
328
  ReturnOrder: OdinLink<LinkedOdinRecord<ReturnOrderProperties>>,
328
329
  Address: OdinLink<LinkedOdinRecord<AddressProperties>>,
329
330
  Note: OdinLink<LinkedOdinRecord<NoteProperties>>,
@@ -337,7 +338,6 @@ export enum OrderPropertyKeys {
337
338
  Commission: OdinLink<LinkedOdinRecord<CommissionProperties>>,
338
339
  File: OdinLink<LinkedOdinRecord<FileProperties>>,
339
340
  Activity: OdinLink<LinkedOdinRecord<ActivityProperties>>,
340
- Order: OdinLink<LinkedOdinRecord<OrderProperties>>,
341
341
  PICRequest: OdinLink<LinkedOdinRecord<PICRequestProperties>>,
342
342
  SmsMessage: OdinLink<LinkedOdinRecord<SmsMessageProperties>>,
343
343
  PaymentMethodRefund: OdinLink<LinkedOdinRecord<PaymentMethodRefundProperties>>,
@@ -102,12 +102,12 @@ export enum OdinEntities {
102
102
  VENDOR = 'ProductModule:Vendor',
103
103
  BILLING_REQUEST = 'BillingModule:BillingRequest',
104
104
  CREDIT_NOTE = 'BillingModule:CreditNote',
105
+ MOBILE_CONFIGURATION = 'ServiceModule:MobileConfiguration',
105
106
  ORDER_ITEM = 'OrderModule:OrderItem',
106
107
  NETWORK_DEVICE = 'ServiceModule:NetworkDevice',
107
108
  CUSTOMER_DEVICE_ROUTER = 'ServiceModule:CustomerDeviceRouter',
108
109
  ONE_TOUCH_SWITCH = 'OrderModule:OneTouchSwitch',
109
110
  YF_STOCK_COUNT = 'FieldServiceModule:YfStockCount',
110
- MOBILE_CONFIGURATION = 'ServiceModule:MobileConfiguration',
111
111
  EMAIL = 'NotificationModule:Email',
112
112
  QUEUE = 'SupportModule:Queue',
113
113
  SERVICE_VISIT_AUDIT = 'FieldServiceModule:ServiceVisitAudit',