@d19n/youfibre-odin-sdk 2.0.149 → 2.0.151
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.
- package/dist/actions-v2/CreateCaseWithDpaDto.d.ts +9 -10
- package/dist/actions-v2/CreateInboundCallEventDto.d.ts +5 -0
- package/dist/actions-v2/CreateInboundCallEventDto.js +6 -1
- package/dist/actions-v2/CreateOutboundCallEventDto.d.ts +5 -0
- package/dist/actions-v2/CreateOutboundCallEventDto.js +6 -1
- package/dist/api-sdk-v2/OfferApi.d.ts +8 -8
- package/dist/api-sdk-v2/OfferApi.js +22 -22
- package/dist/db-sdk-v2/OfferDb.d.ts +8 -8
- package/dist/db-sdk-v2/OfferDb.js +22 -22
- package/dist/records-v2/ProductRecord.d.ts +103 -3
- package/dist/records-v2/ProductRecord.js +169 -4
- package/dist/records-v2/TwilioCallEventRecord.d.ts +4 -4
- package/dist/records-v2/TwilioCallEventRecord.js +6 -6
- package/package.json +1 -1
|
@@ -22,8 +22,8 @@ export interface CreateCaseWithDpaMessage extends OdinRecordCreatedEvent<CreateC
|
|
|
22
22
|
/**
|
|
23
23
|
* Properties for CreateCaseWithDpa action
|
|
24
24
|
*
|
|
25
|
-
* @property Required fields:
|
|
26
|
-
* @property Optional fields:
|
|
25
|
+
* @property Required fields: 3
|
|
26
|
+
* @property Optional fields: 13
|
|
27
27
|
*/
|
|
28
28
|
export interface CreateCaseWithDpaProperties {
|
|
29
29
|
/**
|
|
@@ -34,14 +34,6 @@ export interface CreateCaseWithDpaProperties {
|
|
|
34
34
|
* @required
|
|
35
35
|
*/
|
|
36
36
|
Subject: string;
|
|
37
|
-
/**
|
|
38
|
-
* Source
|
|
39
|
-
*
|
|
40
|
-
* source of the case (Customer Service - Case)
|
|
41
|
-
* @type {ENUM}
|
|
42
|
-
* @required
|
|
43
|
-
*/
|
|
44
|
-
Source: string;
|
|
45
37
|
/**
|
|
46
38
|
* Channel
|
|
47
39
|
*
|
|
@@ -65,6 +57,13 @@ export interface CreateCaseWithDpaProperties {
|
|
|
65
57
|
* @type {TEXT_LONG}
|
|
66
58
|
*/
|
|
67
59
|
Description?: string | null;
|
|
60
|
+
/**
|
|
61
|
+
* Source
|
|
62
|
+
*
|
|
63
|
+
* source of the case (Customer Service - Case)
|
|
64
|
+
* @type {ENUM}
|
|
65
|
+
*/
|
|
66
|
+
Source?: string | null;
|
|
68
67
|
/**
|
|
69
68
|
* SocialMediaExternalId
|
|
70
69
|
*
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @module NotificationModule
|
|
7
7
|
* @entity TwilioCallEvent
|
|
8
|
+
* @entityType INBOUND_CALL_EVENT
|
|
8
9
|
* @actionKey CreateInboundCallEvent
|
|
9
10
|
* @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvent.Create.CreateInboundCallEvent
|
|
10
11
|
*
|
|
@@ -90,6 +91,7 @@ export interface CreateInboundCallEventProperties {
|
|
|
90
91
|
* @actionType CREATE - Creates a new TwilioCallEvent record
|
|
91
92
|
* @module NotificationModule
|
|
92
93
|
* @entity TwilioCallEvent
|
|
94
|
+
* @entityType INBOUND_CALL_EVENT (INBOUND_CALL_EVENT)
|
|
93
95
|
* @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvent.Create.CreateInboundCallEvent
|
|
94
96
|
* @permission schema.action.createinboundcallevent.trigger
|
|
95
97
|
* @benchmark This action is tracked for performance benchmarks
|
|
@@ -100,12 +102,15 @@ export declare class CreateInboundCallEventDto extends OdinRecordCreateDto<Creat
|
|
|
100
102
|
static readonly ACTION_KEY = "CreateInboundCallEvent";
|
|
101
103
|
static readonly MODULE_NAME = "NotificationModule";
|
|
102
104
|
static readonly ENTITIES: string[];
|
|
105
|
+
static readonly ENTITY_TYPE = "INBOUND_CALL_EVENT";
|
|
103
106
|
static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.TwilioCallEvent.Create.CreateInboundCallEvent";
|
|
104
107
|
static readonly PERMISSION = "schema.action.createinboundcallevent.trigger";
|
|
105
108
|
/** Step metadata - entity this action targets */
|
|
106
109
|
static readonly STEP_ENTITY = "NotificationModule:TwilioCallEvent";
|
|
107
110
|
static readonly STEP_SCHEMA_ID = "52cc16be-2010-453f-a1c9-142ca95f9a54";
|
|
108
111
|
static readonly STEP_SCHEMA_ACTION_ID = "f90ad1e9-bd9e-4362-a10a-5243a0655170";
|
|
112
|
+
static readonly STEP_SCHEMA_TYPE_ID = "3b1ac8a2-2a43-4829-b225-46a706379d11";
|
|
113
|
+
static readonly STEP_TYPE = "INBOUND_CALL_EVENT";
|
|
109
114
|
static readonly AUTO_LINK_PARENT = true;
|
|
110
115
|
readonly actionName: string;
|
|
111
116
|
readonly schemaActionId: string;
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @module NotificationModule
|
|
8
8
|
* @entity TwilioCallEvent
|
|
9
|
+
* @entityType INBOUND_CALL_EVENT
|
|
9
10
|
* @actionKey CreateInboundCallEvent
|
|
10
11
|
* @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvent.Create.CreateInboundCallEvent
|
|
11
12
|
*
|
|
@@ -22,6 +23,7 @@ const core_1 = require("@d19n/odin-types/dist/core");
|
|
|
22
23
|
* @actionType CREATE - Creates a new TwilioCallEvent record
|
|
23
24
|
* @module NotificationModule
|
|
24
25
|
* @entity TwilioCallEvent
|
|
26
|
+
* @entityType INBOUND_CALL_EVENT (INBOUND_CALL_EVENT)
|
|
25
27
|
* @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvent.Create.CreateInboundCallEvent
|
|
26
28
|
* @permission schema.action.createinboundcallevent.trigger
|
|
27
29
|
* @benchmark This action is tracked for performance benchmarks
|
|
@@ -30,7 +32,7 @@ class CreateInboundCallEventDto extends core_1.OdinRecordCreateDto {
|
|
|
30
32
|
constructor(properties, options) {
|
|
31
33
|
super({
|
|
32
34
|
entity: 'NotificationModule:TwilioCallEvent',
|
|
33
|
-
type:
|
|
35
|
+
type: 'INBOUND_CALL_EVENT',
|
|
34
36
|
properties,
|
|
35
37
|
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
36
38
|
});
|
|
@@ -45,10 +47,13 @@ CreateInboundCallEventDto.ACTION_TYPE = 'CREATE';
|
|
|
45
47
|
CreateInboundCallEventDto.ACTION_KEY = 'CreateInboundCallEvent';
|
|
46
48
|
CreateInboundCallEventDto.MODULE_NAME = 'NotificationModule';
|
|
47
49
|
CreateInboundCallEventDto.ENTITIES = ['TwilioCallEvent'];
|
|
50
|
+
CreateInboundCallEventDto.ENTITY_TYPE = 'INBOUND_CALL_EVENT';
|
|
48
51
|
CreateInboundCallEventDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.TwilioCallEvent.Create.CreateInboundCallEvent';
|
|
49
52
|
CreateInboundCallEventDto.PERMISSION = 'schema.action.createinboundcallevent.trigger';
|
|
50
53
|
/** Step metadata - entity this action targets */
|
|
51
54
|
CreateInboundCallEventDto.STEP_ENTITY = 'NotificationModule:TwilioCallEvent';
|
|
52
55
|
CreateInboundCallEventDto.STEP_SCHEMA_ID = '52cc16be-2010-453f-a1c9-142ca95f9a54';
|
|
53
56
|
CreateInboundCallEventDto.STEP_SCHEMA_ACTION_ID = 'f90ad1e9-bd9e-4362-a10a-5243a0655170';
|
|
57
|
+
CreateInboundCallEventDto.STEP_SCHEMA_TYPE_ID = '3b1ac8a2-2a43-4829-b225-46a706379d11';
|
|
58
|
+
CreateInboundCallEventDto.STEP_TYPE = 'INBOUND_CALL_EVENT';
|
|
54
59
|
CreateInboundCallEventDto.AUTO_LINK_PARENT = true;
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*
|
|
6
6
|
* @module NotificationModule
|
|
7
7
|
* @entity TwilioCallEvent
|
|
8
|
+
* @entityType OUTBOUND_CALL_EVENT
|
|
8
9
|
* @actionKey CreateOutboundCallEvent
|
|
9
10
|
* @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvent.Create.CreateOutboundCallEvent
|
|
10
11
|
*
|
|
@@ -90,6 +91,7 @@ export interface CreateOutboundCallEventProperties {
|
|
|
90
91
|
* @actionType CREATE - Creates a new TwilioCallEvent record
|
|
91
92
|
* @module NotificationModule
|
|
92
93
|
* @entity TwilioCallEvent
|
|
94
|
+
* @entityType OUTBOUND_CALL_EVENT (OUTBOUND_CALL_EVENT)
|
|
93
95
|
* @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvent.Create.CreateOutboundCallEvent
|
|
94
96
|
* @permission schema.action.createoutboundcallevent.trigger
|
|
95
97
|
* @benchmark This action is tracked for performance benchmarks
|
|
@@ -100,12 +102,15 @@ export declare class CreateOutboundCallEventDto extends OdinRecordCreateDto<Crea
|
|
|
100
102
|
static readonly ACTION_KEY = "CreateOutboundCallEvent";
|
|
101
103
|
static readonly MODULE_NAME = "NotificationModule";
|
|
102
104
|
static readonly ENTITIES: string[];
|
|
105
|
+
static readonly ENTITY_TYPE = "OUTBOUND_CALL_EVENT";
|
|
103
106
|
static readonly EVENT_NAME = "k1.t-hEOJjsDb.NotificationModule.TwilioCallEvent.Create.CreateOutboundCallEvent";
|
|
104
107
|
static readonly PERMISSION = "schema.action.createoutboundcallevent.trigger";
|
|
105
108
|
/** Step metadata - entity this action targets */
|
|
106
109
|
static readonly STEP_ENTITY = "NotificationModule:TwilioCallEvent";
|
|
107
110
|
static readonly STEP_SCHEMA_ID = "52cc16be-2010-453f-a1c9-142ca95f9a54";
|
|
108
111
|
static readonly STEP_SCHEMA_ACTION_ID = "21783492-3b8c-4c65-ace1-16ef7891929e";
|
|
112
|
+
static readonly STEP_SCHEMA_TYPE_ID = "ec84fcba-afa8-41b0-abce-5abfbe110b27";
|
|
113
|
+
static readonly STEP_TYPE = "OUTBOUND_CALL_EVENT";
|
|
109
114
|
static readonly AUTO_LINK_PARENT = true;
|
|
110
115
|
readonly actionName: string;
|
|
111
116
|
readonly schemaActionId: string;
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
*
|
|
7
7
|
* @module NotificationModule
|
|
8
8
|
* @entity TwilioCallEvent
|
|
9
|
+
* @entityType OUTBOUND_CALL_EVENT
|
|
9
10
|
* @actionKey CreateOutboundCallEvent
|
|
10
11
|
* @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvent.Create.CreateOutboundCallEvent
|
|
11
12
|
*
|
|
@@ -22,6 +23,7 @@ const core_1 = require("@d19n/odin-types/dist/core");
|
|
|
22
23
|
* @actionType CREATE - Creates a new TwilioCallEvent record
|
|
23
24
|
* @module NotificationModule
|
|
24
25
|
* @entity TwilioCallEvent
|
|
26
|
+
* @entityType OUTBOUND_CALL_EVENT (OUTBOUND_CALL_EVENT)
|
|
25
27
|
* @event k1.t-hEOJjsDb.NotificationModule.TwilioCallEvent.Create.CreateOutboundCallEvent
|
|
26
28
|
* @permission schema.action.createoutboundcallevent.trigger
|
|
27
29
|
* @benchmark This action is tracked for performance benchmarks
|
|
@@ -30,7 +32,7 @@ class CreateOutboundCallEventDto extends core_1.OdinRecordCreateDto {
|
|
|
30
32
|
constructor(properties, options) {
|
|
31
33
|
super({
|
|
32
34
|
entity: 'NotificationModule:TwilioCallEvent',
|
|
33
|
-
type:
|
|
35
|
+
type: 'OUTBOUND_CALL_EVENT',
|
|
34
36
|
properties,
|
|
35
37
|
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
36
38
|
});
|
|
@@ -45,10 +47,13 @@ CreateOutboundCallEventDto.ACTION_TYPE = 'CREATE';
|
|
|
45
47
|
CreateOutboundCallEventDto.ACTION_KEY = 'CreateOutboundCallEvent';
|
|
46
48
|
CreateOutboundCallEventDto.MODULE_NAME = 'NotificationModule';
|
|
47
49
|
CreateOutboundCallEventDto.ENTITIES = ['TwilioCallEvent'];
|
|
50
|
+
CreateOutboundCallEventDto.ENTITY_TYPE = 'OUTBOUND_CALL_EVENT';
|
|
48
51
|
CreateOutboundCallEventDto.EVENT_NAME = 'k1.t-hEOJjsDb.NotificationModule.TwilioCallEvent.Create.CreateOutboundCallEvent';
|
|
49
52
|
CreateOutboundCallEventDto.PERMISSION = 'schema.action.createoutboundcallevent.trigger';
|
|
50
53
|
/** Step metadata - entity this action targets */
|
|
51
54
|
CreateOutboundCallEventDto.STEP_ENTITY = 'NotificationModule:TwilioCallEvent';
|
|
52
55
|
CreateOutboundCallEventDto.STEP_SCHEMA_ID = '52cc16be-2010-453f-a1c9-142ca95f9a54';
|
|
53
56
|
CreateOutboundCallEventDto.STEP_SCHEMA_ACTION_ID = '21783492-3b8c-4c65-ace1-16ef7891929e';
|
|
57
|
+
CreateOutboundCallEventDto.STEP_SCHEMA_TYPE_ID = 'ec84fcba-afa8-41b0-abce-5abfbe110b27';
|
|
58
|
+
CreateOutboundCallEventDto.STEP_TYPE = 'OUTBOUND_CALL_EVENT';
|
|
54
59
|
CreateOutboundCallEventDto.AUTO_LINK_PARENT = true;
|
|
@@ -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
|
|
21
|
-
private _orderitem__offer?;
|
|
22
|
-
private _offer__offer?;
|
|
23
|
-
private _pricebook__offer?;
|
|
20
|
+
private _lead?;
|
|
24
21
|
private _discount?;
|
|
22
|
+
private _orderitem?;
|
|
25
23
|
private _product?;
|
|
24
|
+
private _offer?;
|
|
25
|
+
private _pricebook?;
|
|
26
26
|
constructor(authParams?: OauthParams, authToken?: string);
|
|
27
|
-
get
|
|
28
|
-
get orderitem__offer(): ApiRecordLinkManager;
|
|
29
|
-
get offer__offer(): ApiRecordLinkManager;
|
|
30
|
-
get pricebook__offer(): ApiRecordLinkManager;
|
|
27
|
+
get lead(): ApiRecordLinkManager;
|
|
31
28
|
get discount(): ApiRecordLinkManager;
|
|
29
|
+
get orderitem(): ApiRecordLinkManager;
|
|
32
30
|
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,29 +33,11 @@ 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
|
|
37
|
-
if (!this.
|
|
38
|
-
this.
|
|
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');
|
|
39
39
|
}
|
|
40
|
-
return this.
|
|
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;
|
|
40
|
+
return this._lead;
|
|
59
41
|
}
|
|
60
42
|
get discount() {
|
|
61
43
|
if (!this._discount) {
|
|
@@ -63,12 +45,30 @@ class OfferApi extends api_provider_1.ApiProvider {
|
|
|
63
45
|
}
|
|
64
46
|
return this._discount;
|
|
65
47
|
}
|
|
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
|
+
}
|
|
66
54
|
get product() {
|
|
67
55
|
if (!this._product) {
|
|
68
56
|
this._product = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'ProductModule:Offer', 'ProductModule:Product', 'Offer__Product');
|
|
69
57
|
}
|
|
70
58
|
return this._product;
|
|
71
59
|
}
|
|
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
|
// ============================================
|
|
@@ -21,19 +21,19 @@ export declare class OfferDb extends DbProvider {
|
|
|
21
21
|
private readonly moduleName;
|
|
22
22
|
private readonly entityName;
|
|
23
23
|
private sourceRecord;
|
|
24
|
-
private
|
|
25
|
-
private _orderitem__offer?;
|
|
26
|
-
private _offer__offer?;
|
|
27
|
-
private _pricebook__offer?;
|
|
24
|
+
private _lead?;
|
|
28
25
|
private _discount?;
|
|
26
|
+
private _orderitem?;
|
|
29
27
|
private _product?;
|
|
28
|
+
private _offer?;
|
|
29
|
+
private _pricebook?;
|
|
30
30
|
constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
|
|
31
|
-
get
|
|
32
|
-
get orderitem__offer(): DbRecordLinkManager;
|
|
33
|
-
get offer__offer(): DbRecordLinkManager;
|
|
34
|
-
get pricebook__offer(): DbRecordLinkManager;
|
|
31
|
+
get lead(): DbRecordLinkManager;
|
|
35
32
|
get discount(): DbRecordLinkManager;
|
|
33
|
+
get orderitem(): DbRecordLinkManager;
|
|
36
34
|
get product(): DbRecordLinkManager;
|
|
35
|
+
get offer(): DbRecordLinkManager;
|
|
36
|
+
get pricebook(): DbRecordLinkManager;
|
|
37
37
|
setRecord(sourceRecord: any): void;
|
|
38
38
|
/**
|
|
39
39
|
* Search records with manual pagination control
|
|
@@ -38,29 +38,11 @@ class OfferDb extends db_provider_1.DbProvider {
|
|
|
38
38
|
// LAZY-LOADED LINK MANAGERS (Public Getters)
|
|
39
39
|
// ============================================
|
|
40
40
|
// Usage remains identical: db.address.list(recordId)
|
|
41
|
-
get
|
|
42
|
-
if (!this.
|
|
43
|
-
this.
|
|
41
|
+
get lead() {
|
|
42
|
+
if (!this._lead) {
|
|
43
|
+
this._lead = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'ProductModule:Offer', 'CrmModule:Lead', 'Lead__Offer');
|
|
44
44
|
}
|
|
45
|
-
return this.
|
|
46
|
-
}
|
|
47
|
-
get orderitem__offer() {
|
|
48
|
-
if (!this._orderitem__offer) {
|
|
49
|
-
this._orderitem__offer = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'OrderModule:OrderItem', 'ProductModule:Offer', 'OrderItem__Offer');
|
|
50
|
-
}
|
|
51
|
-
return this._orderitem__offer;
|
|
52
|
-
}
|
|
53
|
-
get offer__offer() {
|
|
54
|
-
if (!this._offer__offer) {
|
|
55
|
-
this._offer__offer = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'ProductModule:Offer', 'ProductModule:Offer', 'Offer__Offer');
|
|
56
|
-
}
|
|
57
|
-
return this._offer__offer;
|
|
58
|
-
}
|
|
59
|
-
get pricebook__offer() {
|
|
60
|
-
if (!this._pricebook__offer) {
|
|
61
|
-
this._pricebook__offer = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'ProductModule:PriceBook', 'ProductModule:Offer', 'PriceBook__Offer');
|
|
62
|
-
}
|
|
63
|
-
return this._pricebook__offer;
|
|
45
|
+
return this._lead;
|
|
64
46
|
}
|
|
65
47
|
get discount() {
|
|
66
48
|
if (!this._discount) {
|
|
@@ -68,12 +50,30 @@ class OfferDb extends db_provider_1.DbProvider {
|
|
|
68
50
|
}
|
|
69
51
|
return this._discount;
|
|
70
52
|
}
|
|
53
|
+
get orderitem() {
|
|
54
|
+
if (!this._orderitem) {
|
|
55
|
+
this._orderitem = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'ProductModule:Offer', 'OrderModule:OrderItem', 'OrderItem__Offer');
|
|
56
|
+
}
|
|
57
|
+
return this._orderitem;
|
|
58
|
+
}
|
|
71
59
|
get product() {
|
|
72
60
|
if (!this._product) {
|
|
73
61
|
this._product = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'ProductModule:Offer', 'ProductModule:Product', 'Offer__Product');
|
|
74
62
|
}
|
|
75
63
|
return this._product;
|
|
76
64
|
}
|
|
65
|
+
get offer() {
|
|
66
|
+
if (!this._offer) {
|
|
67
|
+
this._offer = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'ProductModule:Offer', 'ProductModule:Offer', 'Offer__Offer');
|
|
68
|
+
}
|
|
69
|
+
return this._offer;
|
|
70
|
+
}
|
|
71
|
+
get pricebook() {
|
|
72
|
+
if (!this._pricebook) {
|
|
73
|
+
this._pricebook = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'ProductModule:Offer', 'ProductModule:PriceBook', 'PriceBook__Offer');
|
|
74
|
+
}
|
|
75
|
+
return this._pricebook;
|
|
76
|
+
}
|
|
77
77
|
// ============================================
|
|
78
78
|
// STANDARD METHODS
|
|
79
79
|
// ============================================
|
|
@@ -37,6 +37,11 @@ import { UpdateLandlineProductActionProperties } from '../actions-v2/UpdateLandl
|
|
|
37
37
|
import { UpdateMeshProductActionProperties } from '../actions-v2/UpdateMeshProductActionDto';
|
|
38
38
|
import { UpdateMobileProductActionProperties } from '../actions-v2/UpdateMobileProductActionDto';
|
|
39
39
|
import { UpdateTelevisionProductActionProperties } from '../actions-v2/UpdateTelevisionProductActionDto';
|
|
40
|
+
import { LeadRecord } from './LeadRecord';
|
|
41
|
+
import { PriceBookRecord } from './PriceBookRecord';
|
|
42
|
+
import { OrderItemRecord } from './OrderItemRecord';
|
|
43
|
+
import { OfferRecord } from './OfferRecord';
|
|
44
|
+
import { FieldServiceProductRecord } from './FieldServiceProductRecord';
|
|
40
45
|
import { ServiceRecord } from './ServiceRecord';
|
|
41
46
|
/** Valid entity types for Product */
|
|
42
47
|
export declare type ProductType = 'BUNDLE' | 'INTERNET' | 'LABOR' | 'LANDLINE' | 'MESH' | 'MOBILE' | 'TELEVISION';
|
|
@@ -103,7 +108,12 @@ export declare class ProductRecord<TProps = ProductProperties> {
|
|
|
103
108
|
private _provider;
|
|
104
109
|
private _pendingLinks;
|
|
105
110
|
private _preGeneratedId;
|
|
111
|
+
private _leads?;
|
|
112
|
+
private _priceBooks?;
|
|
113
|
+
private _orderItems?;
|
|
114
|
+
private _offers?;
|
|
106
115
|
private _products?;
|
|
116
|
+
private _fieldServiceProducts?;
|
|
107
117
|
private _services?;
|
|
108
118
|
/**
|
|
109
119
|
* Create a record wrapper.
|
|
@@ -242,11 +252,83 @@ export declare class ProductRecord<TProps = ProductProperties> {
|
|
|
242
252
|
* @remarks TV product
|
|
243
253
|
*/
|
|
244
254
|
isTelevision(): this is ProductRecord<TelevisionProductProperties>;
|
|
255
|
+
/** Valid labels for Lead associations */
|
|
256
|
+
static readonly leadsLabels: readonly ["Lead__Product"];
|
|
257
|
+
/**
|
|
258
|
+
* Access linked Lead records
|
|
259
|
+
* @remarks Available labels: Lead__Product
|
|
260
|
+
* @throws Error if called on a new (unsaved) record
|
|
261
|
+
*
|
|
262
|
+
* @example
|
|
263
|
+
* ```typescript
|
|
264
|
+
* // Get all linked Lead records
|
|
265
|
+
* const items = await record.leads.list();
|
|
266
|
+
* const first = await record.leads.first();
|
|
267
|
+
*
|
|
268
|
+
* // Filter by label
|
|
269
|
+
* const specific = await record.leads.first({ label: 'Lead__Product' });
|
|
270
|
+
* ```
|
|
271
|
+
*/
|
|
272
|
+
get leads(): RecordLinkManager<LeadRecord, typeof ProductRecord['leadsLabels'][number]>;
|
|
273
|
+
/** Valid labels for PriceBook associations */
|
|
274
|
+
static readonly priceBooksLabels: readonly ["PriceBook__Product"];
|
|
275
|
+
/**
|
|
276
|
+
* Access linked PriceBook records
|
|
277
|
+
* @remarks Available labels: PriceBook__Product
|
|
278
|
+
* @throws Error if called on a new (unsaved) record
|
|
279
|
+
*
|
|
280
|
+
* @example
|
|
281
|
+
* ```typescript
|
|
282
|
+
* // Get all linked PriceBook records
|
|
283
|
+
* const items = await record.priceBooks.list();
|
|
284
|
+
* const first = await record.priceBooks.first();
|
|
285
|
+
*
|
|
286
|
+
* // Filter by label
|
|
287
|
+
* const specific = await record.priceBooks.first({ label: 'PriceBook__Product' });
|
|
288
|
+
* ```
|
|
289
|
+
*/
|
|
290
|
+
get priceBooks(): RecordLinkManager<PriceBookRecord, typeof ProductRecord['priceBooksLabels'][number]>;
|
|
291
|
+
/** Valid labels for OrderItem associations */
|
|
292
|
+
static readonly orderItemsLabels: readonly ["OrderItem__Product"];
|
|
293
|
+
/**
|
|
294
|
+
* Access linked OrderItem records
|
|
295
|
+
* @remarks Available labels: OrderItem__Product
|
|
296
|
+
* @throws Error if called on a new (unsaved) record
|
|
297
|
+
*
|
|
298
|
+
* @example
|
|
299
|
+
* ```typescript
|
|
300
|
+
* // Get all linked OrderItem records
|
|
301
|
+
* const items = await record.orderItems.list();
|
|
302
|
+
* const first = await record.orderItems.first();
|
|
303
|
+
*
|
|
304
|
+
* // Filter by label
|
|
305
|
+
* const specific = await record.orderItems.first({ label: 'OrderItem__Product' });
|
|
306
|
+
* ```
|
|
307
|
+
*/
|
|
308
|
+
get orderItems(): RecordLinkManager<OrderItemRecord, typeof ProductRecord['orderItemsLabels'][number]>;
|
|
309
|
+
/** Valid labels for Offer associations */
|
|
310
|
+
static readonly offersLabels: readonly ["Offer__Product"];
|
|
311
|
+
/**
|
|
312
|
+
* Access linked Offer records
|
|
313
|
+
* @remarks Available labels: Offer__Product
|
|
314
|
+
* @throws Error if called on a new (unsaved) record
|
|
315
|
+
*
|
|
316
|
+
* @example
|
|
317
|
+
* ```typescript
|
|
318
|
+
* // Get all linked Offer records
|
|
319
|
+
* const items = await record.offers.list();
|
|
320
|
+
* const first = await record.offers.first();
|
|
321
|
+
*
|
|
322
|
+
* // Filter by label
|
|
323
|
+
* const specific = await record.offers.first({ label: 'Offer__Product' });
|
|
324
|
+
* ```
|
|
325
|
+
*/
|
|
326
|
+
get offers(): RecordLinkManager<OfferRecord, typeof ProductRecord['offersLabels'][number]>;
|
|
245
327
|
/** Valid labels for Product associations */
|
|
246
|
-
static readonly productsLabels: readonly ["
|
|
328
|
+
static readonly productsLabels: readonly ["Product__Product"];
|
|
247
329
|
/**
|
|
248
330
|
* Access linked Product records
|
|
249
|
-
* @remarks Available labels:
|
|
331
|
+
* @remarks Available labels: Product__Product
|
|
250
332
|
* @throws Error if called on a new (unsaved) record
|
|
251
333
|
*
|
|
252
334
|
* @example
|
|
@@ -256,10 +338,28 @@ export declare class ProductRecord<TProps = ProductProperties> {
|
|
|
256
338
|
* const first = await record.products.first();
|
|
257
339
|
*
|
|
258
340
|
* // Filter by label
|
|
259
|
-
* const specific = await record.products.first({ label: '
|
|
341
|
+
* const specific = await record.products.first({ label: 'Product__Product' });
|
|
260
342
|
* ```
|
|
261
343
|
*/
|
|
262
344
|
get products(): RecordLinkManager<ProductRecord, typeof ProductRecord['productsLabels'][number]>;
|
|
345
|
+
/** Valid labels for FieldServiceProduct associations */
|
|
346
|
+
static readonly fieldServiceProductsLabels: readonly ["FieldServiceProduct__CompatibleProducts"];
|
|
347
|
+
/**
|
|
348
|
+
* Access linked FieldServiceProduct records
|
|
349
|
+
* @remarks Available labels: FieldServiceProduct__CompatibleProducts
|
|
350
|
+
* @throws Error if called on a new (unsaved) record
|
|
351
|
+
*
|
|
352
|
+
* @example
|
|
353
|
+
* ```typescript
|
|
354
|
+
* // Get all linked FieldServiceProduct records
|
|
355
|
+
* const items = await record.fieldServiceProducts.list();
|
|
356
|
+
* const first = await record.fieldServiceProducts.first();
|
|
357
|
+
*
|
|
358
|
+
* // Filter by label
|
|
359
|
+
* const specific = await record.fieldServiceProducts.first({ label: 'FieldServiceProduct__CompatibleProducts' });
|
|
360
|
+
* ```
|
|
361
|
+
*/
|
|
362
|
+
get fieldServiceProducts(): RecordLinkManager<FieldServiceProductRecord, typeof ProductRecord['fieldServiceProductsLabels'][number]>;
|
|
263
363
|
/** Valid labels for Service associations */
|
|
264
364
|
static readonly servicesLabels: readonly ["Product__Service"];
|
|
265
365
|
/**
|
|
@@ -32,6 +32,11 @@ exports.isProductRecord = exports.ProductRecord = void 0;
|
|
|
32
32
|
const uuid_1 = require("uuid");
|
|
33
33
|
const core_1 = require("@d19n/odin-types/dist/core");
|
|
34
34
|
const record_link_manager_1 = require("@d19n/odin-sdk-generator/dist/record-link-manager");
|
|
35
|
+
const LeadRecord_1 = require("./LeadRecord");
|
|
36
|
+
const PriceBookRecord_1 = require("./PriceBookRecord");
|
|
37
|
+
const OrderItemRecord_1 = require("./OrderItemRecord");
|
|
38
|
+
const OfferRecord_1 = require("./OfferRecord");
|
|
39
|
+
const FieldServiceProductRecord_1 = require("./FieldServiceProductRecord");
|
|
35
40
|
const ServiceRecord_1 = require("./ServiceRecord");
|
|
36
41
|
/**
|
|
37
42
|
* Builder for action execution with dryRun support
|
|
@@ -258,9 +263,129 @@ class ProductRecord {
|
|
|
258
263
|
* @remarks TV product
|
|
259
264
|
*/
|
|
260
265
|
isTelevision() { var _a; return ((_a = this._record) === null || _a === void 0 ? void 0 : _a.type) === 'TELEVISION'; }
|
|
266
|
+
/**
|
|
267
|
+
* Access linked Lead records
|
|
268
|
+
* @remarks Available labels: Lead__Product
|
|
269
|
+
* @throws Error if called on a new (unsaved) record
|
|
270
|
+
*
|
|
271
|
+
* @example
|
|
272
|
+
* ```typescript
|
|
273
|
+
* // Get all linked Lead records
|
|
274
|
+
* const items = await record.leads.list();
|
|
275
|
+
* const first = await record.leads.first();
|
|
276
|
+
*
|
|
277
|
+
* // Filter by label
|
|
278
|
+
* const specific = await record.leads.first({ label: 'Lead__Product' });
|
|
279
|
+
* ```
|
|
280
|
+
*/
|
|
281
|
+
get leads() {
|
|
282
|
+
var _a;
|
|
283
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
284
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
285
|
+
if (!this._leads) {
|
|
286
|
+
this._leads = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
287
|
+
sourceEntity: 'ProductModule:Product',
|
|
288
|
+
targetEntity: 'CrmModule:Lead',
|
|
289
|
+
targetModuleName: 'CrmModule',
|
|
290
|
+
targetEntityName: 'Lead',
|
|
291
|
+
labels: ['Lead__Product'],
|
|
292
|
+
}, LeadRecord_1.LeadRecord);
|
|
293
|
+
}
|
|
294
|
+
return this._leads;
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* Access linked PriceBook records
|
|
298
|
+
* @remarks Available labels: PriceBook__Product
|
|
299
|
+
* @throws Error if called on a new (unsaved) record
|
|
300
|
+
*
|
|
301
|
+
* @example
|
|
302
|
+
* ```typescript
|
|
303
|
+
* // Get all linked PriceBook records
|
|
304
|
+
* const items = await record.priceBooks.list();
|
|
305
|
+
* const first = await record.priceBooks.first();
|
|
306
|
+
*
|
|
307
|
+
* // Filter by label
|
|
308
|
+
* const specific = await record.priceBooks.first({ label: 'PriceBook__Product' });
|
|
309
|
+
* ```
|
|
310
|
+
*/
|
|
311
|
+
get priceBooks() {
|
|
312
|
+
var _a;
|
|
313
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
314
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
315
|
+
if (!this._priceBooks) {
|
|
316
|
+
this._priceBooks = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
317
|
+
sourceEntity: 'ProductModule:Product',
|
|
318
|
+
targetEntity: 'ProductModule:PriceBook',
|
|
319
|
+
targetModuleName: 'ProductModule',
|
|
320
|
+
targetEntityName: 'PriceBook',
|
|
321
|
+
labels: ['PriceBook__Product'],
|
|
322
|
+
}, PriceBookRecord_1.PriceBookRecord);
|
|
323
|
+
}
|
|
324
|
+
return this._priceBooks;
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* Access linked OrderItem records
|
|
328
|
+
* @remarks Available labels: OrderItem__Product
|
|
329
|
+
* @throws Error if called on a new (unsaved) record
|
|
330
|
+
*
|
|
331
|
+
* @example
|
|
332
|
+
* ```typescript
|
|
333
|
+
* // Get all linked OrderItem records
|
|
334
|
+
* const items = await record.orderItems.list();
|
|
335
|
+
* const first = await record.orderItems.first();
|
|
336
|
+
*
|
|
337
|
+
* // Filter by label
|
|
338
|
+
* const specific = await record.orderItems.first({ label: 'OrderItem__Product' });
|
|
339
|
+
* ```
|
|
340
|
+
*/
|
|
341
|
+
get orderItems() {
|
|
342
|
+
var _a;
|
|
343
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
344
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
345
|
+
if (!this._orderItems) {
|
|
346
|
+
this._orderItems = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
347
|
+
sourceEntity: 'ProductModule:Product',
|
|
348
|
+
targetEntity: 'OrderModule:OrderItem',
|
|
349
|
+
targetModuleName: 'OrderModule',
|
|
350
|
+
targetEntityName: 'OrderItem',
|
|
351
|
+
labels: ['OrderItem__Product'],
|
|
352
|
+
}, OrderItemRecord_1.OrderItemRecord);
|
|
353
|
+
}
|
|
354
|
+
return this._orderItems;
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* Access linked Offer records
|
|
358
|
+
* @remarks Available labels: Offer__Product
|
|
359
|
+
* @throws Error if called on a new (unsaved) record
|
|
360
|
+
*
|
|
361
|
+
* @example
|
|
362
|
+
* ```typescript
|
|
363
|
+
* // Get all linked Offer records
|
|
364
|
+
* const items = await record.offers.list();
|
|
365
|
+
* const first = await record.offers.first();
|
|
366
|
+
*
|
|
367
|
+
* // Filter by label
|
|
368
|
+
* const specific = await record.offers.first({ label: 'Offer__Product' });
|
|
369
|
+
* ```
|
|
370
|
+
*/
|
|
371
|
+
get offers() {
|
|
372
|
+
var _a;
|
|
373
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
374
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
375
|
+
if (!this._offers) {
|
|
376
|
+
this._offers = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
377
|
+
sourceEntity: 'ProductModule:Product',
|
|
378
|
+
targetEntity: 'ProductModule:Offer',
|
|
379
|
+
targetModuleName: 'ProductModule',
|
|
380
|
+
targetEntityName: 'Offer',
|
|
381
|
+
labels: ['Offer__Product'],
|
|
382
|
+
}, OfferRecord_1.OfferRecord);
|
|
383
|
+
}
|
|
384
|
+
return this._offers;
|
|
385
|
+
}
|
|
261
386
|
/**
|
|
262
387
|
* Access linked Product records
|
|
263
|
-
* @remarks Available labels:
|
|
388
|
+
* @remarks Available labels: Product__Product
|
|
264
389
|
* @throws Error if called on a new (unsaved) record
|
|
265
390
|
*
|
|
266
391
|
* @example
|
|
@@ -270,7 +395,7 @@ class ProductRecord {
|
|
|
270
395
|
* const first = await record.products.first();
|
|
271
396
|
*
|
|
272
397
|
* // Filter by label
|
|
273
|
-
* const specific = await record.products.first({ label: '
|
|
398
|
+
* const specific = await record.products.first({ label: 'Product__Product' });
|
|
274
399
|
* ```
|
|
275
400
|
*/
|
|
276
401
|
get products() {
|
|
@@ -283,11 +408,41 @@ class ProductRecord {
|
|
|
283
408
|
targetEntity: 'ProductModule:Product',
|
|
284
409
|
targetModuleName: 'ProductModule',
|
|
285
410
|
targetEntityName: 'Product',
|
|
286
|
-
labels: ['
|
|
411
|
+
labels: ['Product__Product'],
|
|
287
412
|
}, ProductRecord);
|
|
288
413
|
}
|
|
289
414
|
return this._products;
|
|
290
415
|
}
|
|
416
|
+
/**
|
|
417
|
+
* Access linked FieldServiceProduct records
|
|
418
|
+
* @remarks Available labels: FieldServiceProduct__CompatibleProducts
|
|
419
|
+
* @throws Error if called on a new (unsaved) record
|
|
420
|
+
*
|
|
421
|
+
* @example
|
|
422
|
+
* ```typescript
|
|
423
|
+
* // Get all linked FieldServiceProduct records
|
|
424
|
+
* const items = await record.fieldServiceProducts.list();
|
|
425
|
+
* const first = await record.fieldServiceProducts.first();
|
|
426
|
+
*
|
|
427
|
+
* // Filter by label
|
|
428
|
+
* const specific = await record.fieldServiceProducts.first({ label: 'FieldServiceProduct__CompatibleProducts' });
|
|
429
|
+
* ```
|
|
430
|
+
*/
|
|
431
|
+
get fieldServiceProducts() {
|
|
432
|
+
var _a;
|
|
433
|
+
if (!((_a = this._record) === null || _a === void 0 ? void 0 : _a.id))
|
|
434
|
+
throw new Error('Cannot access links on a new (unsaved) record');
|
|
435
|
+
if (!this._fieldServiceProducts) {
|
|
436
|
+
this._fieldServiceProducts = new record_link_manager_1.RecordLinkManager(this._provider, this._record, {
|
|
437
|
+
sourceEntity: 'ProductModule:Product',
|
|
438
|
+
targetEntity: 'FieldServiceModule:FieldServiceProduct',
|
|
439
|
+
targetModuleName: 'FieldServiceModule',
|
|
440
|
+
targetEntityName: 'FieldServiceProduct',
|
|
441
|
+
labels: ['FieldServiceProduct__CompatibleProducts'],
|
|
442
|
+
}, FieldServiceProductRecord_1.FieldServiceProductRecord);
|
|
443
|
+
}
|
|
444
|
+
return this._fieldServiceProducts;
|
|
445
|
+
}
|
|
291
446
|
/**
|
|
292
447
|
* Access linked Service records
|
|
293
448
|
* @remarks Available labels: Product__Service
|
|
@@ -819,8 +974,18 @@ exports.ProductRecord = ProductRecord;
|
|
|
819
974
|
// ============================================
|
|
820
975
|
// TYPED LINK ACCESSORS
|
|
821
976
|
// ============================================
|
|
977
|
+
/** Valid labels for Lead associations */
|
|
978
|
+
ProductRecord.leadsLabels = ['Lead__Product'];
|
|
979
|
+
/** Valid labels for PriceBook associations */
|
|
980
|
+
ProductRecord.priceBooksLabels = ['PriceBook__Product'];
|
|
981
|
+
/** Valid labels for OrderItem associations */
|
|
982
|
+
ProductRecord.orderItemsLabels = ['OrderItem__Product'];
|
|
983
|
+
/** Valid labels for Offer associations */
|
|
984
|
+
ProductRecord.offersLabels = ['Offer__Product'];
|
|
822
985
|
/** Valid labels for Product associations */
|
|
823
|
-
ProductRecord.productsLabels = ['
|
|
986
|
+
ProductRecord.productsLabels = ['Product__Product'];
|
|
987
|
+
/** Valid labels for FieldServiceProduct associations */
|
|
988
|
+
ProductRecord.fieldServiceProductsLabels = ['FieldServiceProduct__CompatibleProducts'];
|
|
824
989
|
/** Valid labels for Service associations */
|
|
825
990
|
ProductRecord.servicesLabels = ['Product__Service'];
|
|
826
991
|
/** Type guard to check if an object is a ProductRecord */
|
|
@@ -194,9 +194,10 @@ export declare class TwilioCallEventRecord<TProps = TwilioCallEventProperties> {
|
|
|
194
194
|
* Creates a new TwilioCallEvent record with the specified properties.
|
|
195
195
|
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
196
196
|
*
|
|
197
|
+
* @remarks Record type: INBOUND_CALL_EVENT
|
|
198
|
+
*
|
|
197
199
|
* @param properties - The properties for the new record
|
|
198
200
|
* @param options - Optional settings
|
|
199
|
-
* @param options.type - Override the record type
|
|
200
201
|
* @param options.journeyId - Associate with a journey
|
|
201
202
|
* @param options.stageKey - Set initial pipeline stage
|
|
202
203
|
* @returns ActionBuilder - call .execute() to create or .dryRun() for payload
|
|
@@ -212,7 +213,6 @@ export declare class TwilioCallEventRecord<TProps = TwilioCallEventProperties> {
|
|
|
212
213
|
* ```
|
|
213
214
|
*/
|
|
214
215
|
createInboundCallEvent(properties: CreateInboundCallEventProperties, options?: {
|
|
215
|
-
type?: string;
|
|
216
216
|
journeyId?: string;
|
|
217
217
|
stageKey?: string;
|
|
218
218
|
}): ActionBuilder;
|
|
@@ -222,9 +222,10 @@ export declare class TwilioCallEventRecord<TProps = TwilioCallEventProperties> {
|
|
|
222
222
|
* Creates a new TwilioCallEvent record with the specified properties.
|
|
223
223
|
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
224
224
|
*
|
|
225
|
+
* @remarks Record type: OUTBOUND_CALL_EVENT
|
|
226
|
+
*
|
|
225
227
|
* @param properties - The properties for the new record
|
|
226
228
|
* @param options - Optional settings
|
|
227
|
-
* @param options.type - Override the record type
|
|
228
229
|
* @param options.journeyId - Associate with a journey
|
|
229
230
|
* @param options.stageKey - Set initial pipeline stage
|
|
230
231
|
* @returns ActionBuilder - call .execute() to create or .dryRun() for payload
|
|
@@ -240,7 +241,6 @@ export declare class TwilioCallEventRecord<TProps = TwilioCallEventProperties> {
|
|
|
240
241
|
* ```
|
|
241
242
|
*/
|
|
242
243
|
createOutboundCallEvent(properties: CreateOutboundCallEventProperties, options?: {
|
|
243
|
-
type?: string;
|
|
244
244
|
journeyId?: string;
|
|
245
245
|
stageKey?: string;
|
|
246
246
|
}): ActionBuilder;
|
|
@@ -252,9 +252,10 @@ class TwilioCallEventRecord {
|
|
|
252
252
|
* Creates a new TwilioCallEvent record with the specified properties.
|
|
253
253
|
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
254
254
|
*
|
|
255
|
+
* @remarks Record type: INBOUND_CALL_EVENT
|
|
256
|
+
*
|
|
255
257
|
* @param properties - The properties for the new record
|
|
256
258
|
* @param options - Optional settings
|
|
257
|
-
* @param options.type - Override the record type
|
|
258
259
|
* @param options.journeyId - Associate with a journey
|
|
259
260
|
* @param options.stageKey - Set initial pipeline stage
|
|
260
261
|
* @returns ActionBuilder - call .execute() to create or .dryRun() for payload
|
|
@@ -270,10 +271,9 @@ class TwilioCallEventRecord {
|
|
|
270
271
|
* ```
|
|
271
272
|
*/
|
|
272
273
|
createInboundCallEvent(properties, options) {
|
|
273
|
-
var _a, _b;
|
|
274
274
|
const payload = {
|
|
275
275
|
entity: 'NotificationModule:TwilioCallEvent',
|
|
276
|
-
type:
|
|
276
|
+
type: 'INBOUND_CALL_EVENT',
|
|
277
277
|
actionName: 'CreateInboundCallEvent',
|
|
278
278
|
properties: properties || {},
|
|
279
279
|
associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
|
|
@@ -288,9 +288,10 @@ class TwilioCallEventRecord {
|
|
|
288
288
|
* Creates a new TwilioCallEvent record with the specified properties.
|
|
289
289
|
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
290
290
|
*
|
|
291
|
+
* @remarks Record type: OUTBOUND_CALL_EVENT
|
|
292
|
+
*
|
|
291
293
|
* @param properties - The properties for the new record
|
|
292
294
|
* @param options - Optional settings
|
|
293
|
-
* @param options.type - Override the record type
|
|
294
295
|
* @param options.journeyId - Associate with a journey
|
|
295
296
|
* @param options.stageKey - Set initial pipeline stage
|
|
296
297
|
* @returns ActionBuilder - call .execute() to create or .dryRun() for payload
|
|
@@ -306,10 +307,9 @@ class TwilioCallEventRecord {
|
|
|
306
307
|
* ```
|
|
307
308
|
*/
|
|
308
309
|
createOutboundCallEvent(properties, options) {
|
|
309
|
-
var _a, _b;
|
|
310
310
|
const payload = {
|
|
311
311
|
entity: 'NotificationModule:TwilioCallEvent',
|
|
312
|
-
type:
|
|
312
|
+
type: 'OUTBOUND_CALL_EVENT',
|
|
313
313
|
actionName: 'CreateOutboundCallEvent',
|
|
314
314
|
properties: properties || {},
|
|
315
315
|
associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
|