@d19n/youfibre-odin-sdk 1.0.67 → 1.0.69

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.
Files changed (87) hide show
  1. package/dist/api-sdk-v2/MobileCountryRateApi.d.ts +35 -0
  2. package/dist/api-sdk-v2/MobileCountryRateApi.js +125 -0
  3. package/dist/api-sdk-v2/OrderApi.d.ts +13 -13
  4. package/dist/api-sdk-v2/OrderApi.js +13 -13
  5. package/dist/db-sdk-v2/ContactDb.d.ts +15 -15
  6. package/dist/db-sdk-v2/ContactDb.js +15 -15
  7. package/dist/db-sdk-v2/MobileCountryRateDb.d.ts +24 -0
  8. package/dist/db-sdk-v2/MobileCountryRateDb.js +102 -0
  9. package/dist/entities-v2/BillingAdjustment.d.ts +12 -12
  10. package/dist/entities-v2/BillingAdjustment.js +10 -10
  11. package/dist/entities-v2/Call.d.ts +3 -3
  12. package/dist/entities-v2/Call.js +1 -1
  13. package/dist/entities-v2/Case.d.ts +2 -0
  14. package/dist/entities-v2/Case.js +2 -0
  15. package/dist/entities-v2/ChangeReason.d.ts +2 -0
  16. package/dist/entities-v2/ChangeReason.js +2 -0
  17. package/dist/entities-v2/CollectionWorkOrder.d.ts +6 -4
  18. package/dist/entities-v2/CollectionWorkOrder.js +4 -2
  19. package/dist/entities-v2/Conversation.d.ts +5 -1
  20. package/dist/entities-v2/Conversation.js +2 -0
  21. package/dist/entities-v2/InspectionWorkOrder.d.ts +6 -4
  22. package/dist/entities-v2/InspectionWorkOrder.js +4 -2
  23. package/dist/entities-v2/InstallWorkOrder.d.ts +6 -4
  24. package/dist/entities-v2/InstallWorkOrder.js +4 -2
  25. package/dist/entities-v2/MobileConfiguration.d.ts +2 -1
  26. package/dist/entities-v2/MobileConfiguration.js +1 -0
  27. package/dist/entities-v2/MobileCountryRate.d.ts +70 -0
  28. package/dist/entities-v2/MobileCountryRate.js +38 -0
  29. package/dist/entities-v2/MsPendingEvent.d.ts +1 -0
  30. package/dist/entities-v2/MsPendingEvent.js +1 -0
  31. package/dist/entities-v2/OntReplacementApproval.d.ts +0 -1
  32. package/dist/entities-v2/Order.d.ts +126 -126
  33. package/dist/entities-v2/Order.js +72 -72
  34. package/dist/entities-v2/OutageCase.d.ts +2 -0
  35. package/dist/entities-v2/OutageCase.js +2 -0
  36. package/dist/entities-v2/OutcomeFormBlockageA55.d.ts +36 -36
  37. package/dist/entities-v2/OutcomeFormBlockageA55.js +36 -36
  38. package/dist/entities-v2/OutcomeFormRemediationRequiredReason.d.ts +2 -0
  39. package/dist/entities-v2/OutcomeFormRemediationRequiredReason.js +2 -0
  40. package/dist/entities-v2/PermissionToFail.d.ts +5 -1
  41. package/dist/entities-v2/PermissionToFail.js +2 -0
  42. package/dist/entities-v2/PrePullWorkOrder.d.ts +6 -4
  43. package/dist/entities-v2/PrePullWorkOrder.js +4 -2
  44. package/dist/entities-v2/RemediationRequiredReason.d.ts +2 -0
  45. package/dist/entities-v2/RemediationRequiredReason.js +2 -0
  46. package/dist/entities-v2/RemediationWorkOrder.d.ts +6 -4
  47. package/dist/entities-v2/RemediationWorkOrder.js +4 -2
  48. package/dist/entities-v2/SaCancelChangeReason.d.ts +1 -0
  49. package/dist/entities-v2/SaCancelChangeReason.js +1 -0
  50. package/dist/entities-v2/SaDelayChangeReason.d.ts +1 -0
  51. package/dist/entities-v2/SaDelayChangeReason.js +1 -0
  52. package/dist/entities-v2/ServiceWorkOrder.d.ts +6 -4
  53. package/dist/entities-v2/ServiceWorkOrder.js +4 -2
  54. package/dist/entities-v2/Visit.d.ts +60 -60
  55. package/dist/entities-v2/Visit.js +49 -49
  56. package/dist/types-v1/Types.d.ts +5 -4
  57. package/dist/types-v1/Types.js +5 -4
  58. package/package.json +2 -2
  59. package/src/api-sdk-v2/MobileCountryRateApi.ts +132 -0
  60. package/src/api-sdk-v2/OrderApi.ts +75 -75
  61. package/src/db-sdk-v2/ContactDb.ts +87 -87
  62. package/src/db-sdk-v2/MobileCountryRateDb.ts +113 -0
  63. package/src/entities-v2/BillingAdjustment.ts +16 -16
  64. package/src/entities-v2/Call.ts +3 -3
  65. package/src/entities-v2/Case.ts +2 -0
  66. package/src/entities-v2/ChangeReason.ts +2 -0
  67. package/src/entities-v2/CollectionWorkOrder.ts +4 -2
  68. package/src/entities-v2/Conversation.ts +6 -0
  69. package/src/entities-v2/InspectionWorkOrder.ts +4 -2
  70. package/src/entities-v2/InstallWorkOrder.ts +4 -2
  71. package/src/entities-v2/MobileConfiguration.ts +1 -0
  72. package/src/entities-v2/MobileCountryRate.ts +83 -0
  73. package/src/entities-v2/MsPendingEvent.ts +1 -0
  74. package/src/entities-v2/OntReplacementApproval.ts +0 -1
  75. package/src/entities-v2/Order.ts +184 -184
  76. package/src/entities-v2/OutageCase.ts +2 -0
  77. package/src/entities-v2/OutcomeFormBlockageA55.ts +45 -45
  78. package/src/entities-v2/OutcomeFormRemediationRequiredReason.ts +2 -0
  79. package/src/entities-v2/PermissionToFail.ts +6 -0
  80. package/src/entities-v2/PrePullWorkOrder.ts +4 -2
  81. package/src/entities-v2/RemediationRequiredReason.ts +2 -0
  82. package/src/entities-v2/RemediationWorkOrder.ts +4 -2
  83. package/src/entities-v2/SaCancelChangeReason.ts +1 -0
  84. package/src/entities-v2/SaDelayChangeReason.ts +1 -0
  85. package/src/entities-v2/ServiceWorkOrder.ts +4 -2
  86. package/src/entities-v2/Visit.ts +75 -75
  87. package/src/types-v1/Types.ts +5 -4
@@ -0,0 +1,35 @@
1
+ import { OauthParams } from '@d19n/odin-sdk-generator/dist/api.interfaces';
2
+ import { ApiProvider } from '@d19n/odin-sdk-generator/dist/api.provider';
3
+ import { OdinSearchV2 } from '@d19n/odin-types/dist/interfaces/v2.db.interfaces';
4
+ import { OdinRecordCreateDto, OdinRecordUpdateDto } from '@d19n/odin-types/dist/dtos/odin.dtos';
5
+ export declare class MobileCountryRateApi extends ApiProvider {
6
+ protected readonly authToken?: string;
7
+ private readonly moduleName;
8
+ private readonly entityName;
9
+ private sourceRecord;
10
+ constructor(authParams?: OauthParams, authToken?: string);
11
+ setRecord(sourceRecord: any): void;
12
+ schema(): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinSchema>;
13
+ search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/api.interfaces").OdinSearchResponse<any>>;
14
+ searchAndPaginate(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/api.interfaces").OdinSearchResponse<any>>;
15
+ reIndex(body: {
16
+ id: string;
17
+ schemaId: string;
18
+ }[]): Promise<any>;
19
+ get(mobileCountryRateId: string): Promise<any>;
20
+ getMany(mobileCountryRateIds: string[]): Promise<any[]>;
21
+ upsert(upsertDto: OdinRecordCreateDto): Promise<any>;
22
+ upsertMany(upsertDtos: OdinRecordCreateDto[]): Promise<any[]>;
23
+ update(updateDto: OdinRecordUpdateDto): Promise<any>;
24
+ updateMany(updateDtos: OdinRecordUpdateDto[]): Promise<any[]>;
25
+ delete(mobileCountryRateId: string): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinDeleteResponse>;
26
+ deleteMany(mobileCountryRateIds: string[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinDeleteResponse[]>;
27
+ restore(mobileCountryRateIds: string[]): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinRestoreResponse[]>;
28
+ applyAction(actionName: string, dtos: any[]): Promise<any[]>;
29
+ getVersions(): Promise<{
30
+ [key: string]: Record<string, any>;
31
+ }>;
32
+ getRevisionTimeline(): Promise<{
33
+ [key: string]: Record<string, any>[];
34
+ }>;
35
+ }
@@ -0,0 +1,125 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.MobileCountryRateApi = void 0;
13
+ const api_provider_1 = require("@d19n/odin-sdk-generator/dist/api.provider");
14
+ class MobileCountryRateApi extends api_provider_1.ApiProvider {
15
+ constructor(authParams, authToken) {
16
+ super(authParams, authToken);
17
+ this.authToken = authToken;
18
+ this.moduleName = 'ServiceModule';
19
+ this.entityName = 'MobileCountryRate';
20
+ }
21
+ setRecord(sourceRecord) {
22
+ this.sourceRecord = sourceRecord;
23
+ }
24
+ schema() {
25
+ return __awaiter(this, void 0, void 0, function* () {
26
+ return yield this.getSchema(this.moduleName, this.entityName);
27
+ });
28
+ }
29
+ // Use this function when you want to search and handle all pagination on your own
30
+ search(params) {
31
+ return __awaiter(this, void 0, void 0, function* () {
32
+ return yield this._searchRecords(this.moduleName, this.entityName, params);
33
+ });
34
+ }
35
+ // Use this function when you want paginating through the results to be handled
36
+ searchAndPaginate(params) {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ return yield this._searchAllRecordsAndPaginate(this.moduleName, this.entityName, params);
39
+ });
40
+ }
41
+ // Use this function to re-index records in elastic search
42
+ reIndex(body) {
43
+ return __awaiter(this, void 0, void 0, function* () {
44
+ return yield this._reIndexRecords(body);
45
+ });
46
+ }
47
+ // Use this function when you want to return a single record
48
+ get(mobileCountryRateId) {
49
+ return __awaiter(this, void 0, void 0, function* () {
50
+ const res = yield this._getByPrimaryKey(this.moduleName, this.entityName, mobileCountryRateId);
51
+ this.setRecord(res);
52
+ return res;
53
+ });
54
+ }
55
+ // Use this function when you want to return many records by primaryKeys
56
+ getMany(mobileCountryRateIds) {
57
+ return __awaiter(this, void 0, void 0, function* () {
58
+ return yield this._getManyByPrimaryKey(this.moduleName, this.entityName, mobileCountryRateIds);
59
+ });
60
+ }
61
+ // Use this function when you want to upsert one record
62
+ upsert(upsertDto) {
63
+ return __awaiter(this, void 0, void 0, function* () {
64
+ const res = yield this._upsert(this.moduleName, this.entityName, [upsertDto]);
65
+ return res[0];
66
+ });
67
+ }
68
+ // Use this function when you want to upsert many records
69
+ upsertMany(upsertDtos) {
70
+ return __awaiter(this, void 0, void 0, function* () {
71
+ return yield this._upsert(this.moduleName, this.entityName, upsertDtos);
72
+ });
73
+ }
74
+ // Use this function when you want to update one record
75
+ update(updateDto) {
76
+ return __awaiter(this, void 0, void 0, function* () {
77
+ const res = yield this._update(this.moduleName, this.entityName, [updateDto]);
78
+ return res[0];
79
+ });
80
+ }
81
+ // Use this function when you want to update many records
82
+ updateMany(updateDtos) {
83
+ return __awaiter(this, void 0, void 0, function* () {
84
+ return yield this._update(this.moduleName, this.entityName, updateDtos);
85
+ });
86
+ }
87
+ // Use this function when you want to delete one record
88
+ delete(mobileCountryRateId) {
89
+ return __awaiter(this, void 0, void 0, function* () {
90
+ const res = yield this._delete(this.moduleName, this.entityName, [mobileCountryRateId]);
91
+ return res[0];
92
+ });
93
+ }
94
+ // Use this function when you want to delete many records
95
+ deleteMany(mobileCountryRateIds) {
96
+ return __awaiter(this, void 0, void 0, function* () {
97
+ return yield this._delete(this.moduleName, this.entityName, mobileCountryRateIds);
98
+ });
99
+ }
100
+ // Use this function when you want to restore one or many records
101
+ restore(mobileCountryRateIds) {
102
+ return __awaiter(this, void 0, void 0, function* () {
103
+ return yield this._restore(this.moduleName, this.entityName, mobileCountryRateIds);
104
+ });
105
+ }
106
+ // Use this function when you want to apply actions
107
+ applyAction(actionName, dtos) {
108
+ return __awaiter(this, void 0, void 0, function* () {
109
+ return yield this._applyAction(this.moduleName, this.entityName, actionName, dtos);
110
+ });
111
+ }
112
+ // Use this function when you want to return the versions for a single record
113
+ getVersions() {
114
+ return __awaiter(this, void 0, void 0, function* () {
115
+ return yield this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id);
116
+ });
117
+ }
118
+ // Use this function when you want to return the change history for a single record
119
+ getRevisionTimeline() {
120
+ return __awaiter(this, void 0, void 0, function* () {
121
+ return yield this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id);
122
+ });
123
+ }
124
+ }
125
+ exports.MobileCountryRateApi = MobileCountryRateApi;
@@ -8,38 +8,38 @@ export declare class OrderApi extends ApiProvider {
8
8
  private readonly moduleName;
9
9
  private readonly entityName;
10
10
  private sourceRecord;
11
- readonly returnorder: ApiRecordLinkManager;
11
+ readonly returnorder__order: ApiRecordLinkManager;
12
+ readonly account__order: ApiRecordLinkManager;
13
+ readonly splitorder__order: ApiRecordLinkManager;
14
+ readonly churnrequest__order: ApiRecordLinkManager;
15
+ readonly order__order: ApiRecordLinkManager;
16
+ readonly picrequest__order: ApiRecordLinkManager;
17
+ readonly paymentmethodrefund__order: ApiRecordLinkManager;
18
+ readonly deactivationapproval__order: ApiRecordLinkManager;
19
+ readonly orderremediationtask__order: ApiRecordLinkManager;
20
+ readonly case__order: ApiRecordLinkManager;
21
+ readonly lead_order: ApiRecordLinkManager;
22
+ readonly onetouchswitch__order: ApiRecordLinkManager;
12
23
  readonly address: ApiRecordLinkManager;
13
24
  readonly note: ApiRecordLinkManager;
14
25
  readonly contact: ApiRecordLinkManager;
15
- readonly account: ApiRecordLinkManager;
16
26
  readonly discount: ApiRecordLinkManager;
17
27
  readonly orderitem: ApiRecordLinkManager;
18
28
  readonly billingadjustment: ApiRecordLinkManager;
19
- readonly splitorder__order: ApiRecordLinkManager;
20
- readonly order__splitorder: ApiRecordLinkManager;
21
- readonly churnrequest: ApiRecordLinkManager;
22
29
  readonly commission: ApiRecordLinkManager;
23
30
  readonly file: ApiRecordLinkManager;
24
31
  readonly activity: ApiRecordLinkManager;
25
- readonly order: ApiRecordLinkManager;
26
- readonly picrequest: ApiRecordLinkManager;
27
32
  readonly smsmessage: ApiRecordLinkManager;
28
- readonly paymentmethodrefund: ApiRecordLinkManager;
29
33
  readonly visit: ApiRecordLinkManager;
30
34
  readonly workorder: ApiRecordLinkManager;
31
- readonly deactivationapproval: ApiRecordLinkManager;
32
- readonly orderremediationtask: ApiRecordLinkManager;
33
- readonly case: ApiRecordLinkManager;
34
- readonly lead: ApiRecordLinkManager;
35
35
  readonly customerdeviceont: ApiRecordLinkManager;
36
36
  readonly customerdevicerouter: ApiRecordLinkManager;
37
37
  readonly appointment: ApiRecordLinkManager;
38
38
  readonly ordercheck: ApiRecordLinkManager;
39
39
  readonly invoice: ApiRecordLinkManager;
40
+ readonly splitorder: ApiRecordLinkManager;
40
41
  readonly phonenumber: ApiRecordLinkManager;
41
42
  readonly contactidentity: ApiRecordLinkManager;
42
- readonly onetouchswitch: ApiRecordLinkManager;
43
43
  constructor(authParams?: OauthParams, authToken?: string);
44
44
  setRecord(sourceRecord: any): void;
45
45
  schema(): Promise<import("@d19n/odin-types/dist/types/odin.types").OdinSchema>;
@@ -18,38 +18,38 @@ class OrderApi extends api_provider_1.ApiProvider {
18
18
  this.authToken = authToken;
19
19
  this.moduleName = 'OrderModule';
20
20
  this.entityName = 'Order';
21
- this.returnorder = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'OrderModule:ReturnOrder', 'ReturnOrder__Order');
21
+ this.returnorder__order = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'OrderModule:Order', 'ReturnOrder__Order');
22
+ this.account__order = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'OrderModule:Order', 'Account__Order');
23
+ this.splitorder__order = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'OrderModule:Order', 'SplitOrder__Order');
24
+ this.churnrequest__order = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'OrderModule:Order', 'ChurnRequest__Order');
25
+ this.order__order = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'OrderModule:Order', 'Order__Order');
26
+ this.picrequest__order = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'OrderModule:Order', 'PICRequest__Order');
27
+ this.paymentmethodrefund__order = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'OrderModule:Order', 'PaymentMethodRefund__Order');
28
+ this.deactivationapproval__order = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'OrderModule:Order', 'DeactivationApproval__Order');
29
+ this.orderremediationtask__order = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'OrderModule:Order', 'OrderRemediationTask__Order');
30
+ this.case__order = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'OrderModule:Order', 'Case__Order');
31
+ this.lead_order = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'OrderModule:Order', 'Lead_Order');
32
+ this.onetouchswitch__order = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'OrderModule:Order', 'OneTouchSwitch__Order');
22
33
  this.address = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'CrmModule:Address', 'Order__Address');
23
34
  this.note = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'SupportModule:Note', 'Order__Note');
24
35
  this.contact = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'CrmModule:Contact', 'Order__Contact');
25
- this.account = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'CrmModule:Account', 'Account__Order');
26
36
  this.discount = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'ProductModule:Discount', 'Order__Discount');
27
37
  this.orderitem = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'OrderModule:OrderItem', 'Order_OrderItem');
28
38
  this.billingadjustment = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'OrderModule:BillingAdjustment', 'Order__BillingAdjustment');
29
- this.splitorder__order = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'OrderModule:SplitOrder', 'SplitOrder__Order');
30
- this.order__splitorder = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'OrderModule:SplitOrder', 'Order__SplitOrder');
31
- this.churnrequest = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'OrderModule:ChurnRequest', 'ChurnRequest__Order');
32
39
  this.commission = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'BillingModule:Commission', 'Order__Commission');
33
40
  this.file = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'SchemaModule:File', 'Order__File');
34
41
  this.activity = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'SchemaModule:Activity', 'Order__Activity');
35
- this.order = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'OrderModule:Order', 'Order__Order');
36
- this.picrequest = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'OrderModule:PICRequest', 'PICRequest__Order');
37
42
  this.smsmessage = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'NotificationModule:SmsMessage', 'Order__SmsMessage');
38
- this.paymentmethodrefund = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'BillingModule:PaymentMethodRefund', 'PaymentMethodRefund__Order');
39
43
  this.visit = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'CrmModule:Visit', 'Order__Visit');
40
44
  this.workorder = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'FieldServiceModule:WorkOrder', 'Order__WorkOrder');
41
- this.deactivationapproval = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'OrderModule:DeactivationApproval', 'DeactivationApproval__Order');
42
- this.orderremediationtask = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'OrderModule:OrderRemediationTask', 'OrderRemediationTask__Order');
43
- this.case = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'SupportModule:Case', 'Case__Order');
44
- this.lead = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'CrmModule:Lead', 'Lead_Order');
45
45
  this.customerdeviceont = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'ServiceModule:CustomerDeviceOnt', 'Order__CustomerDeviceOnt');
46
46
  this.customerdevicerouter = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'ServiceModule:CustomerDeviceRouter', 'Order__CustomerDeviceRouter');
47
47
  this.appointment = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'CrmModule:Appointment', 'Order__Appointment');
48
48
  this.ordercheck = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'ServiceModule:OrderCheck', 'Order__OrderCheck');
49
49
  this.invoice = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'BillingModule:Invoice', 'Order__Invoice');
50
+ this.splitorder = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'OrderModule:SplitOrder', 'Order__SplitOrder');
50
51
  this.phonenumber = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'CrmModule:PhoneNumber', 'Order__PhoneNumber');
51
52
  this.contactidentity = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'CrmModule:ContactIdentity', 'Order__ContactIdentity');
52
- this.onetouchswitch = new api_record_link_manager_1.ApiRecordLinkManager('OrderModule:Order', 'OrderModule:OneTouchSwitch', 'OneTouchSwitch__Order');
53
53
  }
54
54
  setRecord(sourceRecord) {
55
55
  this.sourceRecord = sourceRecord;
@@ -8,31 +8,31 @@ export declare class ContactDb extends DbProvider {
8
8
  private readonly moduleName;
9
9
  private readonly entityName;
10
10
  private sourceRecord;
11
- readonly organization__contact: DbRecordLinkManager;
12
- readonly billingcontact: DbRecordLinkManager;
13
- readonly workorder__contact: DbRecordLinkManager;
14
- readonly order__contact: DbRecordLinkManager;
15
- readonly lead__contact: DbRecordLinkManager;
16
- readonly invoice__contact: DbRecordLinkManager;
17
- readonly commission__contact: DbRecordLinkManager;
18
- readonly contact__contact: DbRecordLinkManager;
19
- readonly onetouchswitch__contact: DbRecordLinkManager;
20
- readonly deactivationapproval__contact: DbRecordLinkManager;
21
- readonly orderremediationtask__contact: DbRecordLinkManager;
22
- readonly call__contact: DbRecordLinkManager;
23
- readonly fingerprint__contact: DbRecordLinkManager;
24
- readonly case__contact: DbRecordLinkManager;
25
- readonly email_contact: DbRecordLinkManager;
11
+ readonly organization: DbRecordLinkManager;
12
+ readonly account: DbRecordLinkManager;
26
13
  readonly activity: DbRecordLinkManager;
27
14
  readonly note: DbRecordLinkManager;
15
+ readonly workorder: DbRecordLinkManager;
16
+ readonly order: DbRecordLinkManager;
17
+ readonly lead: DbRecordLinkManager;
28
18
  readonly address: DbRecordLinkManager;
29
19
  readonly smsmessage: DbRecordLinkManager;
20
+ readonly invoice: DbRecordLinkManager;
30
21
  readonly billingrequest: DbRecordLinkManager;
31
22
  readonly file: DbRecordLinkManager;
23
+ readonly commission: DbRecordLinkManager;
24
+ readonly contact: DbRecordLinkManager;
25
+ readonly onetouchswitch: DbRecordLinkManager;
32
26
  readonly contactidentity: DbRecordLinkManager;
33
27
  readonly paymentmethodrefund: DbRecordLinkManager;
28
+ readonly deactivationapproval: DbRecordLinkManager;
34
29
  readonly phonenumber: DbRecordLinkManager;
30
+ readonly orderremediationtask: DbRecordLinkManager;
35
31
  readonly appointment: DbRecordLinkManager;
32
+ readonly call: DbRecordLinkManager;
33
+ readonly fingerprint: DbRecordLinkManager;
34
+ readonly case: DbRecordLinkManager;
35
+ readonly email: DbRecordLinkManager;
36
36
  readonly paymentmethod: DbRecordLinkManager;
37
37
  constructor(principal: any, dbService: any);
38
38
  setRecord(sourceRecord: any): void;
@@ -19,31 +19,31 @@ class ContactDb extends db_provider_1.DbProvider {
19
19
  this.entityName = 'Contact';
20
20
  this.principal = principal;
21
21
  this.dbService = dbService;
22
- this.organization__contact = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Contact', 'Organization__Contact');
23
- this.billingcontact = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Contact', 'BillingContact');
24
- this.workorder__contact = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Contact', 'WorkOrder__Contact');
25
- this.order__contact = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Contact', 'Order__Contact');
26
- this.lead__contact = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Contact', 'Lead__Contact');
27
- this.invoice__contact = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Contact', 'Invoice__Contact');
28
- this.commission__contact = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Contact', 'Commission__Contact');
29
- this.contact__contact = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Contact', 'Contact__Contact');
30
- this.onetouchswitch__contact = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Contact', 'OneTouchSwitch__Contact');
31
- this.deactivationapproval__contact = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Contact', 'DeactivationApproval__Contact');
32
- this.orderremediationtask__contact = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Contact', 'OrderRemediationTask__Contact');
33
- this.call__contact = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Contact', 'Call__Contact');
34
- this.fingerprint__contact = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Contact', 'Fingerprint__Contact');
35
- this.case__contact = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Contact', 'Case__Contact');
36
- this.email_contact = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Contact', 'Email_Contact');
22
+ this.organization = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Organization', 'Organization__Contact');
23
+ this.account = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Account', 'BillingContact');
37
24
  this.activity = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'SchemaModule:Activity', 'Contact__Activity');
38
25
  this.note = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'SupportModule:Note', 'Contact__Note');
26
+ this.workorder = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'FieldServiceModule:WorkOrder', 'WorkOrder__Contact');
27
+ this.order = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'OrderModule:Order', 'Order__Contact');
28
+ this.lead = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Lead', 'Lead__Contact');
39
29
  this.address = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Address', 'Contact__Address');
40
30
  this.smsmessage = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'NotificationModule:SmsMessage', 'Contact__SmsMessage');
31
+ this.invoice = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'BillingModule:Invoice', 'Invoice__Contact');
41
32
  this.billingrequest = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'BillingModule:BillingRequest', 'Contact__BillingRequest');
42
33
  this.file = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'SchemaModule:File', 'Contact__File');
34
+ this.commission = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'BillingModule:Commission', 'Commission__Contact');
35
+ this.contact = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Contact', 'Contact__Contact');
36
+ this.onetouchswitch = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'OrderModule:OneTouchSwitch', 'OneTouchSwitch__Contact');
43
37
  this.contactidentity = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:ContactIdentity', 'Contact__ContactIdentity');
44
38
  this.paymentmethodrefund = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'BillingModule:PaymentMethodRefund', 'Contact__PaymentMethodRefund');
39
+ this.deactivationapproval = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'OrderModule:DeactivationApproval', 'DeactivationApproval__Contact');
45
40
  this.phonenumber = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:PhoneNumber', 'Contact__PhoneNumber');
41
+ this.orderremediationtask = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'OrderModule:OrderRemediationTask', 'OrderRemediationTask__Contact');
46
42
  this.appointment = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Appointment', 'Contact__Appointment');
43
+ this.call = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'NotificationModule:Call', 'Call__Contact');
44
+ this.fingerprint = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'CrmModule:Fingerprint', 'Fingerprint__Contact');
45
+ this.case = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'SupportModule:Case', 'Case__Contact');
46
+ this.email = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'NotificationModule:Email', 'Email_Contact');
47
47
  this.paymentmethod = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'CrmModule:Contact', 'BillingModule:PaymentMethod', 'Contact__PaymentMethod');
48
48
  }
49
49
  setRecord(sourceRecord) {
@@ -0,0 +1,24 @@
1
+ import { DbProvider } from '@d19n/odin-sdk-generator/dist/db.provider';
2
+ import { OdinSearchV2 } from '@d19n/odin-types/dist/interfaces/v2.db.interfaces';
3
+ import { OdinRecordCreateDto, OdinRecordUpdateDto } from '@d19n/odin-types/dist/dtos/odin.dtos';
4
+ export declare class MobileCountryRateDb extends DbProvider {
5
+ protected readonly principal: any;
6
+ protected readonly dbService: any;
7
+ private readonly moduleName;
8
+ private readonly entityName;
9
+ private sourceRecord;
10
+ constructor(principal: any, dbService: any);
11
+ setRecord(sourceRecord: any): void;
12
+ searchRecords(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/db.interfaces").OdinSearchResponse<any>>;
13
+ searchAllRecordsAndPaginate(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/db.interfaces").OdinSearchResponse<any>>;
14
+ getByPrimaryKey(mobileCountryRateId: string): Promise<any>;
15
+ getVersions(): Promise<any>;
16
+ getRevisionTimeline(): Promise<any>;
17
+ getManyByPrimaryKey(mobileCountryRateIds: string[]): Promise<any[]>;
18
+ upsert(upsertDto: OdinRecordCreateDto): Promise<import("@d19n/odin-types/dist/interfaces/v1.db.interfaces").IDbRecordCreateUpdateRes>;
19
+ upsertMany(upsertDtos: OdinRecordCreateDto[]): Promise<import("@d19n/odin-types/dist/interfaces/v1.db.interfaces").IDbRecordCreateUpdateRes[]>;
20
+ update(updateDto: OdinRecordUpdateDto): Promise<import("@d19n/odin-types/dist/interfaces/v1.db.interfaces").IDbRecordCreateUpdateRes>;
21
+ updateMany(updateDtos: OdinRecordUpdateDto[]): Promise<import("@d19n/odin-types/dist/interfaces/v1.db.interfaces").IDbRecordCreateUpdateRes[]>;
22
+ delete(mobileCountryRateIds: string[]): Promise<import("@d19n/odin-types/dist/interfaces/v1.db.interfaces").DbRecordDeleted[]>;
23
+ restore(mobileCountryRateIds: string[]): Promise<import("@d19n/odin-types/dist/interfaces/v1.db.interfaces").DbRecordRestored[]>;
24
+ }
@@ -0,0 +1,102 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.MobileCountryRateDb = void 0;
13
+ const db_provider_1 = require("@d19n/odin-sdk-generator/dist/db.provider");
14
+ class MobileCountryRateDb extends db_provider_1.DbProvider {
15
+ constructor(principal, dbService) {
16
+ super(principal, dbService);
17
+ this.moduleName = 'ServiceModule';
18
+ this.entityName = 'MobileCountryRate';
19
+ this.principal = principal;
20
+ this.dbService = dbService;
21
+ }
22
+ setRecord(sourceRecord) {
23
+ this.sourceRecord = sourceRecord;
24
+ }
25
+ // Use this function when you want to search and handle all pagination on your own
26
+ searchRecords(params) {
27
+ return __awaiter(this, void 0, void 0, function* () {
28
+ return yield this._searchRecords(this.moduleName, this.entityName, params);
29
+ });
30
+ }
31
+ // Use this function when you want paginating through the results to be handled
32
+ searchAllRecordsAndPaginate(params) {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ return yield this._searchAllRecordsAndPaginate(this.moduleName, this.entityName, params);
35
+ });
36
+ }
37
+ // Use this function when you want to return a single record
38
+ getByPrimaryKey(mobileCountryRateId) {
39
+ return __awaiter(this, void 0, void 0, function* () {
40
+ const res = yield this._getByPrimaryKey(this.moduleName, this.entityName, mobileCountryRateId);
41
+ this.setRecord(res);
42
+ return res;
43
+ });
44
+ }
45
+ // Use this function when you want to return the versions for a single record
46
+ getVersions() {
47
+ return __awaiter(this, void 0, void 0, function* () {
48
+ return yield this._getVersions(this.moduleName, this.entityName, this.sourceRecord.id);
49
+ });
50
+ }
51
+ // Use this function when you want to return the change history for a single record
52
+ getRevisionTimeline() {
53
+ return __awaiter(this, void 0, void 0, function* () {
54
+ return yield this._getRevisionTimeline(this.moduleName, this.entityName, this.sourceRecord.id);
55
+ });
56
+ }
57
+ // Use this function when you want to return many records by primaryKeys
58
+ getManyByPrimaryKey(mobileCountryRateIds) {
59
+ return __awaiter(this, void 0, void 0, function* () {
60
+ return yield this._getManyByPrimaryKey(this.moduleName, this.entityName, mobileCountryRateIds);
61
+ });
62
+ }
63
+ // Use this function when you want to upsert one record
64
+ upsert(upsertDto) {
65
+ return __awaiter(this, void 0, void 0, function* () {
66
+ const res = yield this._upsert(this.moduleName, this.entityName, [upsertDto]);
67
+ return res[0];
68
+ });
69
+ }
70
+ // Use this function when you want to upsert many records
71
+ upsertMany(upsertDtos) {
72
+ return __awaiter(this, void 0, void 0, function* () {
73
+ return yield this._upsert(this.moduleName, this.entityName, upsertDtos);
74
+ });
75
+ }
76
+ // Use this function when you want to update one record
77
+ update(updateDto) {
78
+ return __awaiter(this, void 0, void 0, function* () {
79
+ const res = yield this._update(this.moduleName, this.entityName, [updateDto]);
80
+ return res[0];
81
+ });
82
+ }
83
+ // Use this function when you want to update many records
84
+ updateMany(updateDtos) {
85
+ return __awaiter(this, void 0, void 0, function* () {
86
+ return yield this._update(this.moduleName, this.entityName, updateDtos);
87
+ });
88
+ }
89
+ // Use this function when you want to delete one or many records
90
+ delete(mobileCountryRateIds) {
91
+ return __awaiter(this, void 0, void 0, function* () {
92
+ return yield this._delete(this.moduleName, this.entityName, mobileCountryRateIds);
93
+ });
94
+ }
95
+ // Use this function when you want to restore one or many records
96
+ restore(mobileCountryRateIds) {
97
+ return __awaiter(this, void 0, void 0, function* () {
98
+ return yield this._restore(this.moduleName, this.entityName, mobileCountryRateIds);
99
+ });
100
+ }
101
+ }
102
+ exports.MobileCountryRateDb = MobileCountryRateDb;
@@ -7,6 +7,10 @@ import { FileProperties } from './File';
7
7
  export declare enum BillingAdjustmentEntityTypes {
8
8
  DEFAULT = "DEFAULT"
9
9
  }
10
+ export declare enum BillingAdjustmentDiscountType {
11
+ AMOUNT = "AMOUNT",
12
+ PERCENT = "PERCENT"
13
+ }
10
14
  export declare enum BillingAdjustmentReason {
11
15
  BILLING_DATE_CHANGE = "BILLING_DATE_CHANGE",
12
16
  BILLING_DAY_ADJUSMENT_LEGACY = "BILLING_DAY_ADJUSTMENT",
@@ -22,25 +26,21 @@ export declare enum BillingAdjustmentReason {
22
26
  RETENTION_DEAL = "RETENTION_DEAL",
23
27
  SALES_MISSELLING_ADJUSTMENT = "SALES_MISSELLING_ADJUSTMENT"
24
28
  }
25
- export declare enum BillingAdjustmentDiscountType {
26
- AMOUNT = "AMOUNT",
27
- PERCENT = "PERCENT"
28
- }
29
29
  export declare enum BillingAdjustmentPropertyKeys {
30
- FreePeriodLength = "FreePeriodLength",
31
- Reason = "Reason",
32
- DiscountValue = "DiscountValue",
30
+ Description = "Description",
33
31
  DiscountLength = "DiscountLength",
34
32
  DiscountType = "DiscountType",
35
- Description = "Description"
33
+ DiscountValue = "DiscountValue",
34
+ FreePeriodLength = "FreePeriodLength",
35
+ Reason = "Reason"
36
36
  }
37
37
  export interface BillingAdjustmentProperties {
38
- FreePeriodLength?: number;
39
- Reason: BillingAdjustmentReason;
40
- DiscountValue: number;
38
+ Description: string;
41
39
  DiscountLength: number;
42
40
  DiscountType: BillingAdjustmentDiscountType;
43
- Description: string;
41
+ DiscountValue: number;
42
+ FreePeriodLength?: number;
43
+ Reason: BillingAdjustmentReason;
44
44
  }
45
45
  export interface BillingAdjustment {
46
46
  id: string;
@@ -1,11 +1,16 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UpdateBillingAdjustmentDto = exports.CreateBillingAdjustmentDto = exports.BillingAdjustmentPropertyKeys = exports.BillingAdjustmentDiscountType = exports.BillingAdjustmentReason = exports.BillingAdjustmentEntityTypes = void 0;
3
+ exports.UpdateBillingAdjustmentDto = exports.CreateBillingAdjustmentDto = exports.BillingAdjustmentPropertyKeys = exports.BillingAdjustmentReason = exports.BillingAdjustmentDiscountType = exports.BillingAdjustmentEntityTypes = void 0;
4
4
  const odin_dtos_1 = require("@d19n/odin-types/dist/dtos/odin.dtos");
5
5
  var BillingAdjustmentEntityTypes;
6
6
  (function (BillingAdjustmentEntityTypes) {
7
7
  BillingAdjustmentEntityTypes["DEFAULT"] = "DEFAULT";
8
8
  })(BillingAdjustmentEntityTypes || (exports.BillingAdjustmentEntityTypes = BillingAdjustmentEntityTypes = {}));
9
+ var BillingAdjustmentDiscountType;
10
+ (function (BillingAdjustmentDiscountType) {
11
+ BillingAdjustmentDiscountType["AMOUNT"] = "AMOUNT";
12
+ BillingAdjustmentDiscountType["PERCENT"] = "PERCENT";
13
+ })(BillingAdjustmentDiscountType || (exports.BillingAdjustmentDiscountType = BillingAdjustmentDiscountType = {}));
9
14
  var BillingAdjustmentReason;
10
15
  (function (BillingAdjustmentReason) {
11
16
  BillingAdjustmentReason["BILLING_DATE_CHANGE"] = "BILLING_DATE_CHANGE";
@@ -22,19 +27,14 @@ var BillingAdjustmentReason;
22
27
  BillingAdjustmentReason["RETENTION_DEAL"] = "RETENTION_DEAL";
23
28
  BillingAdjustmentReason["SALES_MISSELLING_ADJUSTMENT"] = "SALES_MISSELLING_ADJUSTMENT";
24
29
  })(BillingAdjustmentReason || (exports.BillingAdjustmentReason = BillingAdjustmentReason = {}));
25
- var BillingAdjustmentDiscountType;
26
- (function (BillingAdjustmentDiscountType) {
27
- BillingAdjustmentDiscountType["AMOUNT"] = "AMOUNT";
28
- BillingAdjustmentDiscountType["PERCENT"] = "PERCENT";
29
- })(BillingAdjustmentDiscountType || (exports.BillingAdjustmentDiscountType = BillingAdjustmentDiscountType = {}));
30
30
  var BillingAdjustmentPropertyKeys;
31
31
  (function (BillingAdjustmentPropertyKeys) {
32
- BillingAdjustmentPropertyKeys["FreePeriodLength"] = "FreePeriodLength";
33
- BillingAdjustmentPropertyKeys["Reason"] = "Reason";
34
- BillingAdjustmentPropertyKeys["DiscountValue"] = "DiscountValue";
32
+ BillingAdjustmentPropertyKeys["Description"] = "Description";
35
33
  BillingAdjustmentPropertyKeys["DiscountLength"] = "DiscountLength";
36
34
  BillingAdjustmentPropertyKeys["DiscountType"] = "DiscountType";
37
- BillingAdjustmentPropertyKeys["Description"] = "Description";
35
+ BillingAdjustmentPropertyKeys["DiscountValue"] = "DiscountValue";
36
+ BillingAdjustmentPropertyKeys["FreePeriodLength"] = "FreePeriodLength";
37
+ BillingAdjustmentPropertyKeys["Reason"] = "Reason";
38
38
  })(BillingAdjustmentPropertyKeys || (exports.BillingAdjustmentPropertyKeys = BillingAdjustmentPropertyKeys = {}));
39
39
  class CreateBillingAdjustmentDto extends odin_dtos_1.OdinRecordCreateDto {
40
40
  constructor() {
@@ -15,7 +15,6 @@ export declare enum CallPropertyKeys {
15
15
  ExternalParentCallId = "ExternalParentCallId",
16
16
  WorkOrderId = "WorkOrderId",
17
17
  Type = "Type",
18
- CallStatus = "CallStatus",
19
18
  UserId = "UserId",
20
19
  CaseId = "CaseId",
21
20
  From = "From",
@@ -25,7 +24,8 @@ export declare enum CallPropertyKeys {
25
24
  ParentCallSid = "ParentCallSid",
26
25
  ExternalId = "ExternalId",
27
26
  Source = "Source",
28
- Duration = "Duration"
27
+ Duration = "Duration",
28
+ CallStatus = "CallStatus"
29
29
  }
30
30
  export interface CallProperties {
31
31
  Channel?: string;
@@ -34,7 +34,6 @@ export interface CallProperties {
34
34
  ExternalParentCallId?: string;
35
35
  WorkOrderId?: string;
36
36
  Type?: string;
37
- CallStatus?: string;
38
37
  UserId?: string;
39
38
  CaseId?: string;
40
39
  From?: string;
@@ -45,6 +44,7 @@ export interface CallProperties {
45
44
  ExternalId: string;
46
45
  Source?: string;
47
46
  Duration?: string;
47
+ CallStatus?: string;
48
48
  }
49
49
  export interface Call {
50
50
  id: string;
@@ -14,7 +14,6 @@ var CallPropertyKeys;
14
14
  CallPropertyKeys["ExternalParentCallId"] = "ExternalParentCallId";
15
15
  CallPropertyKeys["WorkOrderId"] = "WorkOrderId";
16
16
  CallPropertyKeys["Type"] = "Type";
17
- CallPropertyKeys["CallStatus"] = "CallStatus";
18
17
  CallPropertyKeys["UserId"] = "UserId";
19
18
  CallPropertyKeys["CaseId"] = "CaseId";
20
19
  CallPropertyKeys["From"] = "From";
@@ -25,6 +24,7 @@ var CallPropertyKeys;
25
24
  CallPropertyKeys["ExternalId"] = "ExternalId";
26
25
  CallPropertyKeys["Source"] = "Source";
27
26
  CallPropertyKeys["Duration"] = "Duration";
27
+ CallPropertyKeys["CallStatus"] = "CallStatus";
28
28
  })(CallPropertyKeys || (exports.CallPropertyKeys = CallPropertyKeys = {}));
29
29
  class CreateCallDto extends odin_dtos_1.OdinRecordCreateDto {
30
30
  constructor() {