@d19n/youfibre-odin-sdk 2.0.147 → 2.0.149

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 (51) hide show
  1. package/README.md +4 -4
  2. package/dist/EntityRegistry.d.ts +2 -2
  3. package/dist/EntityRegistry.js +2 -2
  4. package/dist/OdinApiClient.d.ts +4 -4
  5. package/dist/OdinApiClient.js +6 -6
  6. package/dist/OdinDbClient.d.ts +4 -4
  7. package/dist/OdinDbClient.js +6 -6
  8. package/dist/accessors-v2/{TwilioCallEventsAccessor.d.ts → TwilioCallEventAccessor.d.ts} +24 -24
  9. package/dist/accessors-v2/{TwilioCallEventsAccessor.js → TwilioCallEventAccessor.js} +21 -21
  10. package/dist/accessors-v2/index.d.ts +1 -1
  11. package/dist/accessors-v2/index.js +3 -3
  12. package/dist/actions-v2/CreateInboundCallEventDto.d.ts +18 -23
  13. package/dist/actions-v2/CreateInboundCallEventDto.js +14 -19
  14. package/dist/actions-v2/CreateOutboundCallEventDto.d.ts +26 -26
  15. package/dist/actions-v2/CreateOutboundCallEventDto.js +13 -13
  16. package/dist/actions-v2/CreateVoiceConfigurationDto.d.ts +14 -14
  17. package/dist/api-sdk-v2/CallApi.d.ts +2 -2
  18. package/dist/api-sdk-v2/CallApi.js +4 -4
  19. package/dist/api-sdk-v2/OfferApi.d.ts +8 -8
  20. package/dist/api-sdk-v2/OfferApi.js +22 -22
  21. package/dist/api-sdk-v2/{TwilioCallEventsApi.d.ts → TwilioCallEventApi.d.ts} +11 -11
  22. package/dist/api-sdk-v2/{TwilioCallEventsApi.js → TwilioCallEventApi.js} +17 -17
  23. package/dist/db-accessors-v2/{TwilioCallEventsDbAccessor.d.ts → TwilioCallEventDbAccessor.d.ts} +22 -22
  24. package/dist/db-accessors-v2/{TwilioCallEventsDbAccessor.js → TwilioCallEventDbAccessor.js} +21 -21
  25. package/dist/db-accessors-v2/index.d.ts +1 -1
  26. package/dist/db-accessors-v2/index.js +3 -3
  27. package/dist/db-sdk-v2/CallDb.d.ts +2 -2
  28. package/dist/db-sdk-v2/CallDb.js +4 -4
  29. package/dist/db-sdk-v2/OfferDb.d.ts +8 -8
  30. package/dist/db-sdk-v2/OfferDb.js +22 -22
  31. package/dist/db-sdk-v2/{TwilioCallEventsDb.d.ts → TwilioCallEventDb.d.ts} +15 -15
  32. package/dist/db-sdk-v2/{TwilioCallEventsDb.js → TwilioCallEventDb.js} +20 -20
  33. package/dist/entities-v2/Call.d.ts +5 -5
  34. package/dist/entities-v2/Call.js +2 -2
  35. package/dist/entities-v2/Offer.d.ts +6 -6
  36. package/dist/entities-v2/Offer.js +5 -5
  37. package/dist/entities-v2/TwilioCallEvent.d.ts +229 -0
  38. package/dist/entities-v2/TwilioCallEvent.js +103 -0
  39. package/dist/records-v2/CallRecord.d.ts +10 -10
  40. package/dist/records-v2/CallRecord.js +15 -15
  41. package/dist/records-v2/OfferRecord.d.ts +10 -70
  42. package/dist/records-v2/OfferRecord.js +17 -116
  43. package/dist/records-v2/ProductRecord.d.ts +3 -103
  44. package/dist/records-v2/ProductRecord.js +4 -169
  45. package/dist/records-v2/{TwilioCallEventsRecord.d.ts → TwilioCallEventRecord.d.ts} +22 -86
  46. package/dist/records-v2/{TwilioCallEventsRecord.js → TwilioCallEventRecord.js} +28 -92
  47. package/dist/records-v2/index.d.ts +1 -1
  48. package/dist/records-v2/index.js +4 -4
  49. package/package.json +1 -1
  50. package/dist/entities-v2/TwilioCallEvents.d.ts +0 -433
  51. package/dist/entities-v2/TwilioCallEvents.js +0 -135
@@ -4,9 +4,9 @@
4
4
  * Create outbound call event
5
5
  *
6
6
  * @module NotificationModule
7
- * @entity TwilioCallEvents
7
+ * @entity TwilioCallEvent
8
8
  * @actionKey CreateOutboundCallEvent
9
- * @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateOutboundCallEvent
9
+ * @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvent.Create.CreateOutboundCallEvent
10
10
  *
11
11
  * AUTO-GENERATED - DO NOT EDIT DIRECTLY
12
12
  */
@@ -14,7 +14,7 @@ import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/di
14
14
  /**
15
15
  * RabbitMQ message payload for CreateOutboundCallEvent created events
16
16
  *
17
- * @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateOutboundCallEvent
17
+ * @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvent.Create.CreateOutboundCallEvent
18
18
  */
19
19
  export interface CreateOutboundCallEventMessage extends OdinRecordCreatedEvent<CreateOutboundCallEventDto, CreateOutboundCallEventProperties> {
20
20
  }
@@ -25,6 +25,14 @@ export interface CreateOutboundCallEventMessage extends OdinRecordCreatedEvent<C
25
25
  * @property Optional fields: 0
26
26
  */
27
27
  export interface CreateOutboundCallEventProperties {
28
+ /**
29
+ * Body
30
+ *
31
+ * Body of the request received from Twilio
32
+ * @type {JSON}
33
+ * @required
34
+ */
35
+ Body: string;
28
36
  /**
29
37
  * CallId
30
38
  *
@@ -49,22 +57,6 @@ export interface CreateOutboundCallEventProperties {
49
57
  * @required
50
58
  */
51
59
  Query: string;
52
- /**
53
- * Body
54
- *
55
- * Body of the request received from Twilio
56
- * @type {JSON}
57
- * @required
58
- */
59
- Body: string;
60
- /**
61
- * WebhookSource
62
- *
63
- * Source of the captured event
64
- * @type {ENUM}
65
- * @required
66
- */
67
- WebhookSource: string;
68
60
  /**
69
61
  * ReceivedAt
70
62
  *
@@ -81,16 +73,24 @@ export interface CreateOutboundCallEventProperties {
81
73
  * @required
82
74
  */
83
75
  Title: string;
76
+ /**
77
+ * WebhookSource
78
+ *
79
+ * Source of the captured event
80
+ * @type {ENUM}
81
+ * @required
82
+ */
83
+ WebhookSource: string;
84
84
  }
85
85
  /**
86
86
  * CreateOutboundCallEvent
87
87
  *
88
88
  * Create outbound call event
89
89
  *
90
- * @actionType CREATE - Creates a new TwilioCallEvents record
90
+ * @actionType CREATE - Creates a new TwilioCallEvent record
91
91
  * @module NotificationModule
92
- * @entity TwilioCallEvents
93
- * @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateOutboundCallEvent
92
+ * @entity TwilioCallEvent
93
+ * @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvent.Create.CreateOutboundCallEvent
94
94
  * @permission schema.action.createoutboundcallevent.trigger
95
95
  * @benchmark This action is tracked for performance benchmarks
96
96
  */
@@ -100,12 +100,12 @@ export declare class CreateOutboundCallEventDto extends OdinRecordCreateDto<Crea
100
100
  static readonly ACTION_KEY = "CreateOutboundCallEvent";
101
101
  static readonly MODULE_NAME = "NotificationModule";
102
102
  static readonly ENTITIES: string[];
103
- static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateOutboundCallEvent";
103
+ static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.TwilioCallEvent.Create.CreateOutboundCallEvent";
104
104
  static readonly PERMISSION = "schema.action.createoutboundcallevent.trigger";
105
105
  /** Step metadata - entity this action targets */
106
- static readonly STEP_ENTITY = "NotificationModule:TwilioCallEvents";
107
- static readonly STEP_SCHEMA_ID = "dff5448f-59f1-42dd-b6c8-f6ab4789b447";
108
- static readonly STEP_SCHEMA_ACTION_ID = "f8f154c3-505d-4dab-b982-4c62e3e393c9";
106
+ static readonly STEP_ENTITY = "NotificationModule:TwilioCallEvent";
107
+ static readonly STEP_SCHEMA_ID = "52cc16be-2010-453f-a1c9-142ca95f9a54";
108
+ static readonly STEP_SCHEMA_ACTION_ID = "21783492-3b8c-4c65-ace1-16ef7891929e";
109
109
  static readonly AUTO_LINK_PARENT = true;
110
110
  readonly actionName: string;
111
111
  readonly schemaActionId: string;
@@ -5,9 +5,9 @@
5
5
  * Create outbound call event
6
6
  *
7
7
  * @module NotificationModule
8
- * @entity TwilioCallEvents
8
+ * @entity TwilioCallEvent
9
9
  * @actionKey CreateOutboundCallEvent
10
- * @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateOutboundCallEvent
10
+ * @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvent.Create.CreateOutboundCallEvent
11
11
  *
12
12
  * AUTO-GENERATED - DO NOT EDIT DIRECTLY
13
13
  */
@@ -19,24 +19,24 @@ const core_1 = require("@d19n/odin-types/dist/core");
19
19
  *
20
20
  * Create outbound call event
21
21
  *
22
- * @actionType CREATE - Creates a new TwilioCallEvents record
22
+ * @actionType CREATE - Creates a new TwilioCallEvent record
23
23
  * @module NotificationModule
24
- * @entity TwilioCallEvents
25
- * @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateOutboundCallEvent
24
+ * @entity TwilioCallEvent
25
+ * @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvent.Create.CreateOutboundCallEvent
26
26
  * @permission schema.action.createoutboundcallevent.trigger
27
27
  * @benchmark This action is tracked for performance benchmarks
28
28
  */
29
29
  class CreateOutboundCallEventDto extends core_1.OdinRecordCreateDto {
30
30
  constructor(properties, options) {
31
31
  super({
32
- entity: 'NotificationModule:TwilioCallEvents',
32
+ entity: 'NotificationModule:TwilioCallEvent',
33
33
  type: undefined,
34
34
  properties,
35
35
  journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
36
36
  });
37
37
  this.actionName = 'CreateOutboundCallEvent';
38
- this.schemaActionId = 'f8f154c3-505d-4dab-b982-4c62e3e393c9';
39
- this.entity = 'NotificationModule:TwilioCallEvents';
38
+ this.schemaActionId = '21783492-3b8c-4c65-ace1-16ef7891929e';
39
+ this.entity = 'NotificationModule:TwilioCallEvent';
40
40
  }
41
41
  }
42
42
  exports.CreateOutboundCallEventDto = CreateOutboundCallEventDto;
@@ -44,11 +44,11 @@ exports.CreateOutboundCallEventDto = CreateOutboundCallEventDto;
44
44
  CreateOutboundCallEventDto.ACTION_TYPE = 'CREATE';
45
45
  CreateOutboundCallEventDto.ACTION_KEY = 'CreateOutboundCallEvent';
46
46
  CreateOutboundCallEventDto.MODULE_NAME = 'NotificationModule';
47
- CreateOutboundCallEventDto.ENTITIES = ['TwilioCallEvents'];
48
- CreateOutboundCallEventDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.TwilioCallEvents.Create.CreateOutboundCallEvent';
47
+ CreateOutboundCallEventDto.ENTITIES = ['TwilioCallEvent'];
48
+ CreateOutboundCallEventDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.TwilioCallEvent.Create.CreateOutboundCallEvent';
49
49
  CreateOutboundCallEventDto.PERMISSION = 'schema.action.createoutboundcallevent.trigger';
50
50
  /** Step metadata - entity this action targets */
51
- CreateOutboundCallEventDto.STEP_ENTITY = 'NotificationModule:TwilioCallEvents';
52
- CreateOutboundCallEventDto.STEP_SCHEMA_ID = 'dff5448f-59f1-42dd-b6c8-f6ab4789b447';
53
- CreateOutboundCallEventDto.STEP_SCHEMA_ACTION_ID = 'f8f154c3-505d-4dab-b982-4c62e3e393c9';
51
+ CreateOutboundCallEventDto.STEP_ENTITY = 'NotificationModule:TwilioCallEvent';
52
+ CreateOutboundCallEventDto.STEP_SCHEMA_ID = '52cc16be-2010-453f-a1c9-142ca95f9a54';
53
+ CreateOutboundCallEventDto.STEP_SCHEMA_ACTION_ID = '21783492-3b8c-4c65-ace1-16ef7891929e';
54
54
  CreateOutboundCallEventDto.AUTO_LINK_PARENT = true;
@@ -25,13 +25,6 @@ export interface CreateVoiceConfigurationMessage extends OdinRecordCreatedEvent<
25
25
  * @property Optional fields: 21
26
26
  */
27
27
  export interface CreateVoiceConfigurationProperties {
28
- /**
29
- * NetworkServiceId
30
- *
31
- * NetworkServiceId (Network Operations - VoiceConfiguration)
32
- * @type {TEXT}
33
- */
34
- NetworkServiceId?: string | null;
35
28
  /**
36
29
  * IssuedPhoneNumberParts
37
30
  *
@@ -46,6 +39,13 @@ export interface CreateVoiceConfigurationProperties {
46
39
  * @type {JSON}
47
40
  */
48
41
  PhoneNumberToPortParts?: string | null;
42
+ /**
43
+ * OrderItemId
44
+ *
45
+ * OrderItemId (Network Operations - VoiceConfiguration)
46
+ * @type {LOOKUP}
47
+ */
48
+ OrderItemId?: string | null;
49
49
  /**
50
50
  * AuthorizedLOA
51
51
  *
@@ -53,6 +53,13 @@ export interface CreateVoiceConfigurationProperties {
53
53
  * @type {BOOLEAN}
54
54
  */
55
55
  AuthorizedLOA?: boolean | null;
56
+ /**
57
+ * NetworkServiceId
58
+ *
59
+ * NetworkServiceId (Network Operations - VoiceConfiguration)
60
+ * @type {TEXT}
61
+ */
62
+ NetworkServiceId?: string | null;
56
63
  /**
57
64
  * MagratheaOrderStatus
58
65
  *
@@ -166,13 +173,6 @@ export interface CreateVoiceConfigurationProperties {
166
173
  * @type {TEXT}
167
174
  */
168
175
  MagratheaOrderLastUpdate?: string | null;
169
- /**
170
- * OrderItemId
171
- *
172
- * OrderItemId (Network Operations - VoiceConfiguration)
173
- * @type {LOOKUP}
174
- */
175
- OrderItemId?: string | null;
176
176
  }
177
177
  /**
178
178
  * CreateVoiceConfiguration
@@ -27,7 +27,7 @@ export declare class CallApi extends ApiProvider {
27
27
  private _callevent?;
28
28
  private _case?;
29
29
  private _workorder?;
30
- private _twiliocallevents?;
30
+ private _twiliocallevent?;
31
31
  constructor(authParams?: OauthParams, authToken?: string);
32
32
  get lead(): ApiRecordLinkManager;
33
33
  get file(): ApiRecordLinkManager;
@@ -39,7 +39,7 @@ export declare class CallApi extends ApiProvider {
39
39
  get callevent(): ApiRecordLinkManager;
40
40
  get case(): ApiRecordLinkManager;
41
41
  get workorder(): ApiRecordLinkManager;
42
- get twiliocallevents(): ApiRecordLinkManager;
42
+ get twiliocallevent(): ApiRecordLinkManager;
43
43
  setRecord(sourceRecord: any): void;
44
44
  schema(): Promise<import("@d19n/odin-types/dist/core").OdinSchema>;
45
45
  search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<CallProperties>>>;
@@ -93,11 +93,11 @@ class CallApi extends api_provider_1.ApiProvider {
93
93
  }
94
94
  return this._workorder;
95
95
  }
96
- get twiliocallevents() {
97
- if (!this._twiliocallevents) {
98
- this._twiliocallevents = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'NotificationModule:Call', 'NotificationModule:TwilioCallEvents', 'Call__TwilioCallEvents');
96
+ get twiliocallevent() {
97
+ if (!this._twiliocallevent) {
98
+ this._twiliocallevent = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'NotificationModule:Call', 'NotificationModule:TwilioCallEvent', 'Call__TwilioCallEvents');
99
99
  }
100
- return this._twiliocallevents;
100
+ return this._twiliocallevent;
101
101
  }
102
102
  // ============================================
103
103
  // STANDARD METHODS (Unchanged API)
@@ -17,19 +17,19 @@ export declare class OfferApi extends ApiProvider {
17
17
  private readonly moduleName;
18
18
  private readonly entityName;
19
19
  private sourceRecord;
20
- private _lead?;
20
+ private _lead__offer?;
21
+ private _orderitem__offer?;
22
+ private _offer__offer?;
23
+ private _pricebook__offer?;
21
24
  private _discount?;
22
- private _orderitem?;
23
25
  private _product?;
24
- private _offer?;
25
- private _pricebook?;
26
26
  constructor(authParams?: OauthParams, authToken?: string);
27
- get lead(): ApiRecordLinkManager;
27
+ get lead__offer(): ApiRecordLinkManager;
28
+ get orderitem__offer(): ApiRecordLinkManager;
29
+ get offer__offer(): ApiRecordLinkManager;
30
+ get pricebook__offer(): ApiRecordLinkManager;
28
31
  get discount(): ApiRecordLinkManager;
29
- get orderitem(): ApiRecordLinkManager;
30
32
  get product(): ApiRecordLinkManager;
31
- get offer(): ApiRecordLinkManager;
32
- get pricebook(): ApiRecordLinkManager;
33
33
  setRecord(sourceRecord: any): void;
34
34
  schema(): Promise<import("@d19n/odin-types/dist/core").OdinSchema>;
35
35
  search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<OfferProperties>>>;
@@ -33,11 +33,29 @@ class OfferApi extends api_provider_1.ApiProvider {
33
33
  // LAZY-LOADED LINK MANAGERS (Public Getters)
34
34
  // ============================================
35
35
  // Usage remains identical: api.address.list(recordId)
36
- get lead() {
37
- if (!this._lead) {
38
- this._lead = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'ProductModule:Offer', 'CrmModule:Lead', 'Lead__Offer');
36
+ get lead__offer() {
37
+ if (!this._lead__offer) {
38
+ this._lead__offer = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'CrmModule:Lead', 'ProductModule:Offer', 'Lead__Offer');
39
39
  }
40
- return this._lead;
40
+ return this._lead__offer;
41
+ }
42
+ get orderitem__offer() {
43
+ if (!this._orderitem__offer) {
44
+ this._orderitem__offer = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'OrderModule:OrderItem', 'ProductModule:Offer', 'OrderItem__Offer');
45
+ }
46
+ return this._orderitem__offer;
47
+ }
48
+ get offer__offer() {
49
+ if (!this._offer__offer) {
50
+ this._offer__offer = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'ProductModule:Offer', 'ProductModule:Offer', 'Offer__Offer');
51
+ }
52
+ return this._offer__offer;
53
+ }
54
+ get pricebook__offer() {
55
+ if (!this._pricebook__offer) {
56
+ this._pricebook__offer = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'ProductModule:PriceBook', 'ProductModule:Offer', 'PriceBook__Offer');
57
+ }
58
+ return this._pricebook__offer;
41
59
  }
42
60
  get discount() {
43
61
  if (!this._discount) {
@@ -45,30 +63,12 @@ class OfferApi extends api_provider_1.ApiProvider {
45
63
  }
46
64
  return this._discount;
47
65
  }
48
- get orderitem() {
49
- if (!this._orderitem) {
50
- this._orderitem = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'ProductModule:Offer', 'OrderModule:OrderItem', 'OrderItem__Offer');
51
- }
52
- return this._orderitem;
53
- }
54
66
  get product() {
55
67
  if (!this._product) {
56
68
  this._product = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'ProductModule:Offer', 'ProductModule:Product', 'Offer__Product');
57
69
  }
58
70
  return this._product;
59
71
  }
60
- get offer() {
61
- if (!this._offer) {
62
- this._offer = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'ProductModule:Offer', 'ProductModule:Offer', 'Offer__Offer');
63
- }
64
- return this._offer;
65
- }
66
- get pricebook() {
67
- if (!this._pricebook) {
68
- this._pricebook = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'ProductModule:Offer', 'ProductModule:PriceBook', 'PriceBook__Offer');
69
- }
70
- return this._pricebook;
71
- }
72
72
  // ============================================
73
73
  // STANDARD METHODS (Unchanged API)
74
74
  // ============================================
@@ -2,17 +2,17 @@ import { OauthParams } from '@d19n/odin-sdk-generator/dist/odin-sdk-types';
2
2
  import { ApiProvider } from '@d19n/odin-sdk-generator/dist/api.provider';
3
3
  import { OdinSearchV2, OdinRecordCreateDto, OdinRecordUpdateDto } from '@d19n/odin-types/dist/core';
4
4
  import { ApiRecordLinkManager } from '@d19n/odin-sdk-generator/dist/api.record.link.manager';
5
- import { TwilioCallEventsProperties } from '../entities-v2/TwilioCallEvents';
5
+ import { TwilioCallEventProperties } from '../entities-v2/TwilioCallEvent';
6
6
  /**
7
7
  * @deprecated Use OdinApiClient.
8
8
  *
9
9
  * Migration:
10
- * - Old: new TwilioCallEventsApi(authParams).get(id)
11
- * - New: new odin.twiliocallevents.get(id)
10
+ * - Old: new TwilioCallEventApi(authParams).get(id)
11
+ * - New: new odin.twiliocallevent.get(id)
12
12
  *
13
13
  * The new OdinApiClient returns typed record wrappers with action methods.
14
14
  */
15
- export declare class TwilioCallEventsApi extends ApiProvider {
15
+ export declare class TwilioCallEventApi extends ApiProvider {
16
16
  protected readonly authToken?: string;
17
17
  private readonly moduleName;
18
18
  private readonly entityName;
@@ -22,21 +22,21 @@ export declare class TwilioCallEventsApi extends ApiProvider {
22
22
  get call(): ApiRecordLinkManager;
23
23
  setRecord(sourceRecord: any): void;
24
24
  schema(): Promise<import("@d19n/odin-types/dist/core").OdinSchema>;
25
- search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<TwilioCallEventsProperties>>>;
26
- searchAndPaginate(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<TwilioCallEventsProperties>>>;
25
+ search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<TwilioCallEventProperties>>>;
26
+ searchAndPaginate(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<TwilioCallEventProperties>>>;
27
27
  reIndex(body: {
28
28
  id: string;
29
29
  schemaId: string;
30
30
  }[]): Promise<any>;
31
- get(twilioCallEventsId: string): Promise<import("@d19n/odin-types/dist/core").OdinRecord<TwilioCallEventsProperties>>;
32
- getMany(twilioCallEventsIds: string[]): Promise<import("@d19n/odin-types/dist/core").OdinRecord<TwilioCallEventsProperties>[]>;
31
+ get(twilioCallEventId: string): Promise<import("@d19n/odin-types/dist/core").OdinRecord<TwilioCallEventProperties>>;
32
+ getMany(twilioCallEventIds: string[]): Promise<import("@d19n/odin-types/dist/core").OdinRecord<TwilioCallEventProperties>[]>;
33
33
  upsert(upsertDto: OdinRecordCreateDto): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").IDbRecordCreateUpdateRes>;
34
34
  upsertMany(upsertDtos: OdinRecordCreateDto[]): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").IDbRecordCreateUpdateRes[]>;
35
35
  update(updateDto: OdinRecordUpdateDto): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").IDbRecordCreateUpdateRes>;
36
36
  updateMany(updateDtos: OdinRecordUpdateDto[]): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").IDbRecordCreateUpdateRes[]>;
37
- delete(twilioCallEventsId: string): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinDeleteResponse[]>;
38
- deleteMany(twilioCallEventsIds: string[]): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinDeleteResponse[]>;
39
- restore(twilioCallEventsIds: string[]): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinRestoreResponse[]>;
37
+ delete(twilioCallEventId: string): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinDeleteResponse[]>;
38
+ deleteMany(twilioCallEventIds: string[]): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinDeleteResponse[]>;
39
+ restore(twilioCallEventIds: string[]): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinRestoreResponse[]>;
40
40
  applyAction(dto: any): Promise<any[]>;
41
41
  bulkApplyActions(dtos: any[]): Promise<any[]>;
42
42
  getVersions(): Promise<{
@@ -9,24 +9,24 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.TwilioCallEventsApi = void 0;
12
+ exports.TwilioCallEventApi = void 0;
13
13
  const api_provider_1 = require("@d19n/odin-sdk-generator/dist/api.provider");
14
14
  const api_record_link_manager_1 = require("@d19n/odin-sdk-generator/dist/api.record.link.manager");
15
15
  /**
16
16
  * @deprecated Use OdinApiClient.
17
17
  *
18
18
  * Migration:
19
- * - Old: new TwilioCallEventsApi(authParams).get(id)
20
- * - New: new odin.twiliocallevents.get(id)
19
+ * - Old: new TwilioCallEventApi(authParams).get(id)
20
+ * - New: new odin.twiliocallevent.get(id)
21
21
  *
22
22
  * The new OdinApiClient returns typed record wrappers with action methods.
23
23
  */
24
- class TwilioCallEventsApi extends api_provider_1.ApiProvider {
24
+ class TwilioCallEventApi extends api_provider_1.ApiProvider {
25
25
  constructor(authParams, authToken) {
26
26
  super(authParams, authToken);
27
27
  this.authToken = authToken;
28
28
  this.moduleName = 'NotificationModule';
29
- this.entityName = 'TwilioCallEvents';
29
+ this.entityName = 'TwilioCallEvent';
30
30
  // Link managers are lazy-loaded on first access
31
31
  }
32
32
  // ============================================
@@ -35,7 +35,7 @@ class TwilioCallEventsApi extends api_provider_1.ApiProvider {
35
35
  // Usage remains identical: api.address.list(recordId)
36
36
  get call() {
37
37
  if (!this._call) {
38
- this._call = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'NotificationModule:TwilioCallEvents', 'NotificationModule:Call', 'Call__TwilioCallEvents');
38
+ this._call = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'NotificationModule:TwilioCallEvent', 'NotificationModule:Call', 'Call__TwilioCallEvents');
39
39
  }
40
40
  return this._call;
41
41
  }
@@ -69,18 +69,18 @@ class TwilioCallEventsApi extends api_provider_1.ApiProvider {
69
69
  });
70
70
  }
71
71
  // Use this function when you want to return a single record
72
- get(twilioCallEventsId) {
72
+ get(twilioCallEventId) {
73
73
  return __awaiter(this, void 0, void 0, function* () {
74
- const res = yield this._getByPrimaryKey(this.moduleName, this.entityName, twilioCallEventsId);
74
+ const res = yield this._getByPrimaryKey(this.moduleName, this.entityName, twilioCallEventId);
75
75
  if (res)
76
76
  this.setRecord(res);
77
77
  return res;
78
78
  });
79
79
  }
80
80
  // Use this function when you want to return many records by primaryKeys
81
- getMany(twilioCallEventsIds) {
81
+ getMany(twilioCallEventIds) {
82
82
  return __awaiter(this, void 0, void 0, function* () {
83
- return yield this._getManyByPrimaryKey(this.moduleName, this.entityName, twilioCallEventsIds);
83
+ return yield this._getManyByPrimaryKey(this.moduleName, this.entityName, twilioCallEventIds);
84
84
  });
85
85
  }
86
86
  // Use this function when you want to upsert one record
@@ -110,21 +110,21 @@ class TwilioCallEventsApi extends api_provider_1.ApiProvider {
110
110
  });
111
111
  }
112
112
  // Use this function when you want to delete one record
113
- delete(twilioCallEventsId) {
113
+ delete(twilioCallEventId) {
114
114
  return __awaiter(this, void 0, void 0, function* () {
115
- return yield this._delete(this.moduleName, this.entityName, [twilioCallEventsId]);
115
+ return yield this._delete(this.moduleName, this.entityName, [twilioCallEventId]);
116
116
  });
117
117
  }
118
118
  // Use this function when you want to delete many records
119
- deleteMany(twilioCallEventsIds) {
119
+ deleteMany(twilioCallEventIds) {
120
120
  return __awaiter(this, void 0, void 0, function* () {
121
- return yield this._delete(this.moduleName, this.entityName, twilioCallEventsIds);
121
+ return yield this._delete(this.moduleName, this.entityName, twilioCallEventIds);
122
122
  });
123
123
  }
124
124
  // Use this function when you want to restore one or many records
125
- restore(twilioCallEventsIds) {
125
+ restore(twilioCallEventIds) {
126
126
  return __awaiter(this, void 0, void 0, function* () {
127
- return yield this._restore(this.moduleName, this.entityName, twilioCallEventsIds);
127
+ return yield this._restore(this.moduleName, this.entityName, twilioCallEventIds);
128
128
  });
129
129
  }
130
130
  // Use this function when you want to apply a single action
@@ -152,4 +152,4 @@ class TwilioCallEventsApi extends api_provider_1.ApiProvider {
152
152
  });
153
153
  }
154
154
  }
155
- exports.TwilioCallEventsApi = TwilioCallEventsApi;
155
+ exports.TwilioCallEventApi = TwilioCallEventApi;
@@ -1,7 +1,7 @@
1
1
  /**
2
- * TwilioCallEvents DB Accessor
2
+ * TwilioCallEvent DB Accessor
3
3
  *
4
- * Provides typed access to TwilioCallEvents records via direct database access.
4
+ * Provides typed access to TwilioCallEvent records via direct database access.
5
5
  * For use in backend services with principal + dbService.
6
6
  * Returns wrapped records with typed action methods.
7
7
  *
@@ -20,7 +20,7 @@
20
20
  * const result = await accessor.upsert([dto], { omitWriteEvents: true });
21
21
  *
22
22
  * // Constructor-level default (applies to all calls)
23
- * const accessor = new TwilioCallEventsDbAccessor(principal, dbService, { omitPermissionsCheck: true });
23
+ * const accessor = new TwilioCallEventDbAccessor(principal, dbService, { omitPermissionsCheck: true });
24
24
  * ```
25
25
  *
26
26
  * AUTO-GENERATED - DO NOT EDIT DIRECTLY
@@ -28,21 +28,21 @@
28
28
  import { OdinSearchV2 } from '@d19n/odin-types/dist/core';
29
29
  import { DbProvider, DbProviderOptions, DbGetQueryOptions } from '@d19n/odin-sdk-generator/dist/db.provider';
30
30
  import { QueryBuilder } from '@d19n/odin-sdk-generator/dist/query-builder';
31
- import { TwilioCallEventsProperties } from '../entities-v2/TwilioCallEvents';
32
- import { TwilioCallEventsRecord } from '../records-v2/TwilioCallEventsRecord';
31
+ import { TwilioCallEventProperties } from '../entities-v2/TwilioCallEvent';
32
+ import { TwilioCallEventRecord } from '../records-v2/TwilioCallEventRecord';
33
33
  /** Search response with wrapped records */
34
- export interface TwilioCallEventsDbSearchResponse {
35
- records: TwilioCallEventsRecord[];
34
+ export interface TwilioCallEventDbSearchResponse {
35
+ records: TwilioCallEventRecord[];
36
36
  totalRecords: number;
37
37
  hasMore: boolean;
38
38
  }
39
- export declare class TwilioCallEventsDbAccessor {
39
+ export declare class TwilioCallEventDbAccessor {
40
40
  private readonly _provider;
41
41
  private readonly _moduleName;
42
42
  private readonly _entityName;
43
43
  private readonly _defaultOptions?;
44
44
  /**
45
- * Create a new TwilioCallEventsDbAccessor
45
+ * Create a new TwilioCallEventDbAccessor
46
46
  * @param principal - The authenticated principal
47
47
  * @param dbService - The database service instance
48
48
  * @param defaultOptions - Default provider options applied to all operations
@@ -51,7 +51,7 @@ export declare class TwilioCallEventsDbAccessor {
51
51
  get moduleName(): string;
52
52
  get entityName(): string;
53
53
  /**
54
- * Create a new empty TwilioCallEvents record instance for create operations.
54
+ * Create a new empty TwilioCallEvent record instance for create operations.
55
55
  * Pre-generates an ID that can be referenced before the record is saved.
56
56
  *
57
57
  * @param id - Optional ID to use (auto-generated UUID if not provided)
@@ -74,9 +74,9 @@ export declare class TwilioCallEventsDbAccessor {
74
74
  * .createContact({ FirstName: "John" });
75
75
  * ```
76
76
  */
77
- new(id?: string): TwilioCallEventsRecord;
77
+ new(id?: string): TwilioCallEventRecord;
78
78
  /**
79
- * Get a single TwilioCallEvents record by ID
79
+ * Get a single TwilioCallEvent record by ID
80
80
  *
81
81
  * @param id - The record ID
82
82
  * @param queryOptions - Query options (WHAT to fetch: entities to include)
@@ -97,29 +97,29 @@ export declare class TwilioCallEventsDbAccessor {
97
97
  * const record = await accessor.get(id, { entities: ["Invoice"] }, { omitPermissionsCheck: true });
98
98
  * ```
99
99
  */
100
- get(id: string, queryOptions?: DbGetQueryOptions, providerOptions?: DbProviderOptions): Promise<TwilioCallEventsRecord>;
100
+ get(id: string, queryOptions?: DbGetQueryOptions, providerOptions?: DbProviderOptions): Promise<TwilioCallEventRecord>;
101
101
  /**
102
- * Get multiple TwilioCallEvents records by IDs
102
+ * Get multiple TwilioCallEvent records by IDs
103
103
  *
104
104
  * @param ids - Array of record IDs
105
105
  * @param queryOptions - Query options (WHAT to fetch: entities to include)
106
106
  * @param providerOptions - Provider options (HOW to fetch: omitPermissionsCheck)
107
107
  */
108
- getMany(ids: string[], queryOptions?: DbGetQueryOptions, providerOptions?: DbProviderOptions): Promise<TwilioCallEventsRecord[]>;
108
+ getMany(ids: string[], queryOptions?: DbGetQueryOptions, providerOptions?: DbProviderOptions): Promise<TwilioCallEventRecord[]>;
109
109
  /**
110
- * Search TwilioCallEvents records
110
+ * Search TwilioCallEvent records
111
111
  *
112
112
  * @param params - Search parameters
113
113
  * @param providerOptions - Provider options (HOW to fetch: omitPermissionsCheck)
114
114
  */
115
- search(params: Partial<OdinSearchV2>, providerOptions?: DbProviderOptions): Promise<TwilioCallEventsDbSearchResponse>;
115
+ search(params: Partial<OdinSearchV2>, providerOptions?: DbProviderOptions): Promise<TwilioCallEventDbSearchResponse>;
116
116
  /**
117
- * Search all TwilioCallEvents records with automatic pagination
117
+ * Search all TwilioCallEvent records with automatic pagination
118
118
  *
119
119
  * @param params - Search parameters
120
120
  * @param providerOptions - Provider options (HOW to fetch: omitPermissionsCheck)
121
121
  */
122
- searchAll(params: Partial<OdinSearchV2>, providerOptions?: DbProviderOptions): Promise<TwilioCallEventsRecord[]>;
122
+ searchAll(params: Partial<OdinSearchV2>, providerOptions?: DbProviderOptions): Promise<TwilioCallEventRecord[]>;
123
123
  /**
124
124
  * Async generator for paginating through all matching records.
125
125
  * Yields batches of wrapped records.
@@ -127,9 +127,9 @@ export declare class TwilioCallEventsDbAccessor {
127
127
  * @param params - Search parameters
128
128
  * @param providerOptions - Provider options (HOW to fetch: omitPermissionsCheck)
129
129
  */
130
- paginate(params: Partial<OdinSearchV2>, providerOptions?: DbProviderOptions): AsyncGenerator<TwilioCallEventsRecord[]>;
130
+ paginate(params: Partial<OdinSearchV2>, providerOptions?: DbProviderOptions): AsyncGenerator<TwilioCallEventRecord[]>;
131
131
  /**
132
- * Create a fluent query builder for TwilioCallEvents records
132
+ * Create a fluent query builder for TwilioCallEvent records
133
133
  *
134
134
  * @example
135
135
  * ```typescript
@@ -143,7 +143,7 @@ export declare class TwilioCallEventsDbAccessor {
143
143
  * .execute();
144
144
  * ```
145
145
  */
146
- query(): QueryBuilder<TwilioCallEventsProperties, TwilioCallEventsRecord>;
146
+ query(): QueryBuilder<TwilioCallEventProperties, TwilioCallEventRecord>;
147
147
  /** Access the underlying DbProvider */
148
148
  get provider(): DbProvider;
149
149
  }