@d19n/youfibre-odin-sdk 2.0.307 → 2.0.309
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/README.md +4 -1
- package/dist/actions-v2/AssignEngineerDto.d.ts +1 -1
- package/dist/actions-v2/CreateCaseWithDpaDto.d.ts +8 -1
- package/dist/actions-v2/CreateContactSalesAppDto.d.ts +98 -0
- package/dist/actions-v2/CreateContactSalesAppDto.js +54 -0
- package/dist/actions-v2/CreateLeadFromAddressSalesAppDto.d.ts +58 -0
- package/dist/actions-v2/CreateLeadFromAddressSalesAppDto.js +54 -0
- package/dist/actions-v2/CreateLeadSalesAppDto.d.ts +92 -0
- package/dist/actions-v2/CreateLeadSalesAppDto.js +54 -0
- package/dist/api-sdk-v2/EmailApi.d.ts +2 -0
- package/dist/api-sdk-v2/EmailApi.js +6 -0
- package/dist/api-sdk-v2/OrderApi.d.ts +2 -0
- package/dist/api-sdk-v2/OrderApi.js +6 -0
- package/dist/db-sdk-v2/EmailDb.d.ts +2 -0
- package/dist/db-sdk-v2/EmailDb.js +6 -0
- package/dist/db-sdk-v2/OrderDb.d.ts +2 -0
- package/dist/db-sdk-v2/OrderDb.js +6 -0
- package/dist/entities-v2/AgentStatus.d.ts +33 -33
- package/dist/entities-v2/AgentStatus.js +21 -21
- package/dist/entities-v2/Email.d.ts +3 -0
- package/dist/entities-v2/Order.d.ts +7 -0
- package/dist/entities-v2/Order.js +5 -1
- package/dist/records-v2/ContactRecord.d.ts +29 -0
- package/dist/records-v2/ContactRecord.js +36 -0
- package/dist/records-v2/EmailRecord.d.ts +20 -0
- package/dist/records-v2/EmailRecord.js +33 -0
- package/dist/records-v2/LeadRecord.d.ts +58 -0
- package/dist/records-v2/LeadRecord.js +72 -0
- package/dist/records-v2/OrderRecord.d.ts +20 -0
- package/dist/records-v2/OrderRecord.js +33 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -369,7 +369,7 @@ This SDK includes **181** entities across **12** modules.
|
|
|
369
369
|
|
|
370
370
|
## Actions
|
|
371
371
|
|
|
372
|
-
This SDK includes **
|
|
372
|
+
This SDK includes **873** actions.
|
|
373
373
|
|
|
374
374
|
### Action Types
|
|
375
375
|
|
|
@@ -1566,6 +1566,7 @@ This SDK includes **870** actions.
|
|
|
1566
1566
|
| Action | Type | Event |
|
|
1567
1567
|
|--------|------|-------|
|
|
1568
1568
|
| `CreateContact` | CREATE | k1.t-hEOJjsDb.CrmModule.Contact.Create.CreateContact |
|
|
1569
|
+
| `CreateContactSalesApp` | CREATE | k1.t-hEOJjsDb.CrmModule.Contact.Create.CreateContactSalesApp |
|
|
1569
1570
|
| `UpdateAdditionalCare` | UPDATE | k1.t-hEOJjsDb.CrmModule.Contact.Update.UpdateAdditionalCare |
|
|
1570
1571
|
| `UpdateContact` | UPDATE | k1.t-hEOJjsDb.CrmModule.Contact.Update.UpdateContact |
|
|
1571
1572
|
| `UpdateReferralCode` | UPDATE | k1.t-hEOJjsDb.CrmModule.Contact.Update.UpdateReferralCode |
|
|
@@ -1671,6 +1672,8 @@ This SDK includes **870** actions.
|
|
|
1671
1672
|
|--------|------|-------|
|
|
1672
1673
|
| `CreateLead` | CREATE | k1.t-hEOJjsDb.CrmModule.Lead.Create.CreateLead |
|
|
1673
1674
|
| `CreateLeadFromAddress` | CREATE | k1.t-hEOJjsDb.CrmModule.Lead.Create.CreateLead |
|
|
1675
|
+
| `CreateLeadFromAddressSalesApp` | CREATE | k1.t-hEOJjsDb.CrmModule.Lead.Create.CreateLeadFromAddressSalesApp |
|
|
1676
|
+
| `CreateLeadSalesApp` | CREATE | k1.t-hEOJjsDb.CrmModule.Lead.Create.CreateLeadSalesApp |
|
|
1674
1677
|
| `MoveLeadToContacted` | STAGE_TRANSITION | k1.t-hEOJjsDb.CrmModule.Lead.Transition.MoveLeadToContacted |
|
|
1675
1678
|
| `MoveLeadToLost` | STAGE_TRANSITION | k1.t-hEOJjsDb.CrmModule.Lead.Transition.MoveLeadToLost |
|
|
1676
1679
|
| `MoveLeadToQualified` | STAGE_TRANSITION | k1.t-hEOJjsDb.CrmModule.Lead.Transition.MoveLeadToQualified |
|
|
@@ -30,7 +30,7 @@ export interface AssignEngineerProperties {
|
|
|
30
30
|
*
|
|
31
31
|
* Reference identifier for WorkOrder relationships. Used for data integrity.
|
|
32
32
|
* @type {LOOKUP}
|
|
33
|
-
* @visibleWhen ScheduleIdDummy = ["*"]
|
|
33
|
+
* @visibleWhen ScheduleIdDummy = ["*any"]
|
|
34
34
|
*/
|
|
35
35
|
EngineerId?: string | null;
|
|
36
36
|
/**
|
|
@@ -23,7 +23,7 @@ export interface CreateCaseWithDpaMessage extends OdinRecordCreatedEvent<CreateC
|
|
|
23
23
|
* Properties for CreateCaseWithDpa action
|
|
24
24
|
*
|
|
25
25
|
* @property Required fields: 3
|
|
26
|
-
* @property Optional fields:
|
|
26
|
+
* @property Optional fields: 14
|
|
27
27
|
*/
|
|
28
28
|
export interface CreateCaseWithDpaProperties {
|
|
29
29
|
/**
|
|
@@ -142,6 +142,13 @@ export interface CreateCaseWithDpaProperties {
|
|
|
142
142
|
* @type {LOOKUP}
|
|
143
143
|
*/
|
|
144
144
|
TeamId?: string | null;
|
|
145
|
+
/**
|
|
146
|
+
* Sub Category
|
|
147
|
+
*
|
|
148
|
+
* SubCategory (Customer Service - Case)
|
|
149
|
+
* @type {ENUM}
|
|
150
|
+
*/
|
|
151
|
+
SubCategory?: string | null;
|
|
145
152
|
}
|
|
146
153
|
/**
|
|
147
154
|
* CreateCaseWithDpa
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CreateContactSalesApp Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Contact create action (Sales App)
|
|
5
|
+
*
|
|
6
|
+
* @module CrmModule
|
|
7
|
+
* @entity Contact
|
|
8
|
+
* @actionKey CreateContactSalesApp
|
|
9
|
+
* @event k1.t-hEOJjsDb.CrmModule.Contact.Create.CreateContactSalesApp
|
|
10
|
+
*
|
|
11
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
12
|
+
*/
|
|
13
|
+
import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/core';
|
|
14
|
+
/**
|
|
15
|
+
* RabbitMQ message payload for CreateContactSalesApp created events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-hEOJjsDb.CrmModule.Contact.Create.CreateContactSalesApp
|
|
18
|
+
*/
|
|
19
|
+
export interface CreateContactSalesAppMessage extends OdinRecordCreatedEvent<CreateContactSalesAppDto, CreateContactSalesAppProperties> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for CreateContactSalesApp action
|
|
23
|
+
*
|
|
24
|
+
* @property Required fields: 3
|
|
25
|
+
* @property Optional fields: 2
|
|
26
|
+
*/
|
|
27
|
+
export interface CreateContactSalesAppProperties {
|
|
28
|
+
/**
|
|
29
|
+
* FirstName
|
|
30
|
+
*
|
|
31
|
+
* Contacts First Name (Sales - Contact)
|
|
32
|
+
* @type {TEXT}
|
|
33
|
+
* @required
|
|
34
|
+
*/
|
|
35
|
+
FirstName: string;
|
|
36
|
+
/**
|
|
37
|
+
* LastName
|
|
38
|
+
*
|
|
39
|
+
* Contacts Last Name (Sales - Contact)
|
|
40
|
+
* @type {TEXT}
|
|
41
|
+
* @required
|
|
42
|
+
*/
|
|
43
|
+
LastName: string;
|
|
44
|
+
/**
|
|
45
|
+
* EmailAddress
|
|
46
|
+
*
|
|
47
|
+
* Contacts Email Address (Sales - Contact)
|
|
48
|
+
* @type {EMAIL}
|
|
49
|
+
* @required
|
|
50
|
+
*/
|
|
51
|
+
EmailAddress: string;
|
|
52
|
+
/**
|
|
53
|
+
* Phone
|
|
54
|
+
*
|
|
55
|
+
* Phone number (Sales - Contact)
|
|
56
|
+
* @type {PHONE_NUMBER_E164_GB}
|
|
57
|
+
*/
|
|
58
|
+
Phone?: string | null;
|
|
59
|
+
/**
|
|
60
|
+
* Marketing Consent
|
|
61
|
+
*
|
|
62
|
+
* I am happy to hear from YouFibre by email, WhatsApp and SMS about YouFibre’s broadband packages and any special offers. I am aware that I can opt-out at any time. For details on how we manage your data, please see our privacy policy.
|
|
63
|
+
* @type {BOOLEAN}
|
|
64
|
+
*/
|
|
65
|
+
MarketingConsent?: boolean | null;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* CreateContactSalesApp
|
|
69
|
+
*
|
|
70
|
+
* Contact create action (Sales App)
|
|
71
|
+
*
|
|
72
|
+
* @actionType CREATE - Creates a new Contact record
|
|
73
|
+
* @module CrmModule
|
|
74
|
+
* @entity Contact
|
|
75
|
+
* @event k1.t-hEOJjsDb.CrmModule.Contact.Create.CreateContactSalesApp
|
|
76
|
+
* @permission schema.action.createcontactsalesapp.trigger
|
|
77
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
78
|
+
*/
|
|
79
|
+
export declare class CreateContactSalesAppDto extends OdinRecordCreateDto<CreateContactSalesAppProperties> {
|
|
80
|
+
/** Used by SDK generators to identify action type */
|
|
81
|
+
static readonly ACTION_TYPE = "CREATE";
|
|
82
|
+
static readonly ACTION_KEY = "CreateContactSalesApp";
|
|
83
|
+
static readonly MODULE_NAME = "CrmModule";
|
|
84
|
+
static readonly ENTITIES: string[];
|
|
85
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.CrmModule.Contact.Create.CreateContactSalesApp";
|
|
86
|
+
static readonly PERMISSION = "schema.action.createcontactsalesapp.trigger";
|
|
87
|
+
/** Step metadata - entity this action targets */
|
|
88
|
+
static readonly STEP_ENTITY = "CrmModule:Contact";
|
|
89
|
+
static readonly STEP_SCHEMA_ID = "33643a0d-5b77-4895-a2da-991e0fd3432f";
|
|
90
|
+
static readonly STEP_SCHEMA_ACTION_ID = "bce4c6cb-32ef-4d48-8b64-1503e219b3f3";
|
|
91
|
+
static readonly AUTO_LINK_PARENT = true;
|
|
92
|
+
readonly actionName: string;
|
|
93
|
+
readonly schemaActionId: string;
|
|
94
|
+
readonly entity: string;
|
|
95
|
+
constructor(properties: CreateContactSalesAppProperties, options?: {
|
|
96
|
+
journeyId?: string;
|
|
97
|
+
});
|
|
98
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* CreateContactSalesApp Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Contact create action (Sales App)
|
|
6
|
+
*
|
|
7
|
+
* @module CrmModule
|
|
8
|
+
* @entity Contact
|
|
9
|
+
* @actionKey CreateContactSalesApp
|
|
10
|
+
* @event k1.t-hEOJjsDb.CrmModule.Contact.Create.CreateContactSalesApp
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.CreateContactSalesAppDto = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* CreateContactSalesApp
|
|
19
|
+
*
|
|
20
|
+
* Contact create action (Sales App)
|
|
21
|
+
*
|
|
22
|
+
* @actionType CREATE - Creates a new Contact record
|
|
23
|
+
* @module CrmModule
|
|
24
|
+
* @entity Contact
|
|
25
|
+
* @event k1.t-hEOJjsDb.CrmModule.Contact.Create.CreateContactSalesApp
|
|
26
|
+
* @permission schema.action.createcontactsalesapp.trigger
|
|
27
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
28
|
+
*/
|
|
29
|
+
class CreateContactSalesAppDto extends core_1.OdinRecordCreateDto {
|
|
30
|
+
constructor(properties, options) {
|
|
31
|
+
super({
|
|
32
|
+
entity: 'CrmModule:Contact',
|
|
33
|
+
type: undefined,
|
|
34
|
+
properties,
|
|
35
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
36
|
+
});
|
|
37
|
+
this.actionName = 'CreateContactSalesApp';
|
|
38
|
+
this.schemaActionId = 'bce4c6cb-32ef-4d48-8b64-1503e219b3f3';
|
|
39
|
+
this.entity = 'CrmModule:Contact';
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.CreateContactSalesAppDto = CreateContactSalesAppDto;
|
|
43
|
+
/** Used by SDK generators to identify action type */
|
|
44
|
+
CreateContactSalesAppDto.ACTION_TYPE = 'CREATE';
|
|
45
|
+
CreateContactSalesAppDto.ACTION_KEY = 'CreateContactSalesApp';
|
|
46
|
+
CreateContactSalesAppDto.MODULE_NAME = 'CrmModule';
|
|
47
|
+
CreateContactSalesAppDto.ENTITIES = ['Contact'];
|
|
48
|
+
CreateContactSalesAppDto.EVENT_NAME = 'k1.t-hEOJjsDb.CrmModule.Contact.Create.CreateContactSalesApp';
|
|
49
|
+
CreateContactSalesAppDto.PERMISSION = 'schema.action.createcontactsalesapp.trigger';
|
|
50
|
+
/** Step metadata - entity this action targets */
|
|
51
|
+
CreateContactSalesAppDto.STEP_ENTITY = 'CrmModule:Contact';
|
|
52
|
+
CreateContactSalesAppDto.STEP_SCHEMA_ID = '33643a0d-5b77-4895-a2da-991e0fd3432f';
|
|
53
|
+
CreateContactSalesAppDto.STEP_SCHEMA_ACTION_ID = 'bce4c6cb-32ef-4d48-8b64-1503e219b3f3';
|
|
54
|
+
CreateContactSalesAppDto.AUTO_LINK_PARENT = true;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CreateLeadFromAddressSalesApp Action DTO
|
|
3
|
+
*
|
|
4
|
+
* MULTI_STEP: Create Lead then Contact (Sales App)
|
|
5
|
+
*
|
|
6
|
+
* @module CrmModule
|
|
7
|
+
* @entity Lead
|
|
8
|
+
* @actionKey CreateLeadFromAddressSalesApp
|
|
9
|
+
* @event k1.t-hEOJjsDb.CrmModule.Lead.Create.CreateLeadFromAddressSalesApp
|
|
10
|
+
*
|
|
11
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
12
|
+
*/
|
|
13
|
+
import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/core';
|
|
14
|
+
/**
|
|
15
|
+
* RabbitMQ message payload for CreateLeadFromAddressSalesApp created events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-hEOJjsDb.CrmModule.Lead.Create.CreateLeadFromAddressSalesApp
|
|
18
|
+
*/
|
|
19
|
+
export interface CreateLeadFromAddressSalesAppMessage extends OdinRecordCreatedEvent<CreateLeadFromAddressSalesAppDto, CreateLeadFromAddressSalesAppProperties> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for CreateLeadFromAddressSalesApp action
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
25
|
+
export interface CreateLeadFromAddressSalesAppProperties {
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Create Lead
|
|
29
|
+
*
|
|
30
|
+
* MULTI_STEP: Create Lead then Contact (Sales App)
|
|
31
|
+
*
|
|
32
|
+
* @actionType CREATE - Creates a new Lead record
|
|
33
|
+
* @module CrmModule
|
|
34
|
+
* @entity Lead
|
|
35
|
+
* @event k1.t-hEOJjsDb.CrmModule.Lead.Create.CreateLeadFromAddressSalesApp
|
|
36
|
+
* @permission schema.action.createleadfromaddresssalesapp.trigger
|
|
37
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
38
|
+
*/
|
|
39
|
+
export declare class CreateLeadFromAddressSalesAppDto extends OdinRecordCreateDto<CreateLeadFromAddressSalesAppProperties> {
|
|
40
|
+
/** Used by SDK generators to identify action type */
|
|
41
|
+
static readonly ACTION_TYPE = "CREATE";
|
|
42
|
+
static readonly ACTION_KEY = "CreateLeadFromAddressSalesApp";
|
|
43
|
+
static readonly MODULE_NAME = "CrmModule";
|
|
44
|
+
static readonly ENTITIES: string[];
|
|
45
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.CrmModule.Lead.Create.CreateLeadFromAddressSalesApp";
|
|
46
|
+
static readonly PERMISSION = "schema.action.createleadfromaddresssalesapp.trigger";
|
|
47
|
+
/** Step metadata - entity this action targets */
|
|
48
|
+
static readonly STEP_ENTITY = "CrmModule:Lead";
|
|
49
|
+
static readonly STEP_SCHEMA_ID = "44f23adb-9ea5-4ce1-af8f-71fd05c75615";
|
|
50
|
+
static readonly STEP_SCHEMA_ACTION_ID = "f356b018-a3dd-4010-8a14-d0fb8e20a509";
|
|
51
|
+
static readonly AUTO_LINK_PARENT = true;
|
|
52
|
+
readonly actionName: string;
|
|
53
|
+
readonly schemaActionId: string;
|
|
54
|
+
readonly entity: string;
|
|
55
|
+
constructor(properties: CreateLeadFromAddressSalesAppProperties, options?: {
|
|
56
|
+
journeyId?: string;
|
|
57
|
+
});
|
|
58
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* CreateLeadFromAddressSalesApp Action DTO
|
|
4
|
+
*
|
|
5
|
+
* MULTI_STEP: Create Lead then Contact (Sales App)
|
|
6
|
+
*
|
|
7
|
+
* @module CrmModule
|
|
8
|
+
* @entity Lead
|
|
9
|
+
* @actionKey CreateLeadFromAddressSalesApp
|
|
10
|
+
* @event k1.t-hEOJjsDb.CrmModule.Lead.Create.CreateLeadFromAddressSalesApp
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.CreateLeadFromAddressSalesAppDto = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* Create Lead
|
|
19
|
+
*
|
|
20
|
+
* MULTI_STEP: Create Lead then Contact (Sales App)
|
|
21
|
+
*
|
|
22
|
+
* @actionType CREATE - Creates a new Lead record
|
|
23
|
+
* @module CrmModule
|
|
24
|
+
* @entity Lead
|
|
25
|
+
* @event k1.t-hEOJjsDb.CrmModule.Lead.Create.CreateLeadFromAddressSalesApp
|
|
26
|
+
* @permission schema.action.createleadfromaddresssalesapp.trigger
|
|
27
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
28
|
+
*/
|
|
29
|
+
class CreateLeadFromAddressSalesAppDto extends core_1.OdinRecordCreateDto {
|
|
30
|
+
constructor(properties, options) {
|
|
31
|
+
super({
|
|
32
|
+
entity: 'CrmModule:Lead',
|
|
33
|
+
type: undefined,
|
|
34
|
+
properties,
|
|
35
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
36
|
+
});
|
|
37
|
+
this.actionName = 'CreateLeadFromAddressSalesApp';
|
|
38
|
+
this.schemaActionId = 'f356b018-a3dd-4010-8a14-d0fb8e20a509';
|
|
39
|
+
this.entity = 'CrmModule:Lead';
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.CreateLeadFromAddressSalesAppDto = CreateLeadFromAddressSalesAppDto;
|
|
43
|
+
/** Used by SDK generators to identify action type */
|
|
44
|
+
CreateLeadFromAddressSalesAppDto.ACTION_TYPE = 'CREATE';
|
|
45
|
+
CreateLeadFromAddressSalesAppDto.ACTION_KEY = 'CreateLeadFromAddressSalesApp';
|
|
46
|
+
CreateLeadFromAddressSalesAppDto.MODULE_NAME = 'CrmModule';
|
|
47
|
+
CreateLeadFromAddressSalesAppDto.ENTITIES = ['Lead'];
|
|
48
|
+
CreateLeadFromAddressSalesAppDto.EVENT_NAME = 'k1.t-hEOJjsDb.CrmModule.Lead.Create.CreateLeadFromAddressSalesApp';
|
|
49
|
+
CreateLeadFromAddressSalesAppDto.PERMISSION = 'schema.action.createleadfromaddresssalesapp.trigger';
|
|
50
|
+
/** Step metadata - entity this action targets */
|
|
51
|
+
CreateLeadFromAddressSalesAppDto.STEP_ENTITY = 'CrmModule:Lead';
|
|
52
|
+
CreateLeadFromAddressSalesAppDto.STEP_SCHEMA_ID = '44f23adb-9ea5-4ce1-af8f-71fd05c75615';
|
|
53
|
+
CreateLeadFromAddressSalesAppDto.STEP_SCHEMA_ACTION_ID = 'f356b018-a3dd-4010-8a14-d0fb8e20a509';
|
|
54
|
+
CreateLeadFromAddressSalesAppDto.AUTO_LINK_PARENT = true;
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CreateLeadSalesApp Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Create Lead action (Sales App)
|
|
5
|
+
*
|
|
6
|
+
* @module CrmModule
|
|
7
|
+
* @entity Lead
|
|
8
|
+
* @actionKey CreateLeadSalesApp
|
|
9
|
+
* @event k1.t-hEOJjsDb.CrmModule.Lead.Create.CreateLeadSalesApp
|
|
10
|
+
*
|
|
11
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
12
|
+
*/
|
|
13
|
+
import { OdinRecordCreateDto, OdinRecordCreatedEvent } from '@d19n/odin-types/dist/core';
|
|
14
|
+
/**
|
|
15
|
+
* RabbitMQ message payload for CreateLeadSalesApp created events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-hEOJjsDb.CrmModule.Lead.Create.CreateLeadSalesApp
|
|
18
|
+
*/
|
|
19
|
+
export interface CreateLeadSalesAppMessage extends OdinRecordCreatedEvent<CreateLeadSalesAppDto, CreateLeadSalesAppProperties> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for CreateLeadSalesApp action
|
|
23
|
+
*
|
|
24
|
+
* @property Required fields: 4
|
|
25
|
+
* @property Optional fields: 1
|
|
26
|
+
*/
|
|
27
|
+
export interface CreateLeadSalesAppProperties {
|
|
28
|
+
/**
|
|
29
|
+
* Name
|
|
30
|
+
*
|
|
31
|
+
* Copy and paste address title please
|
|
32
|
+
* @type {TEXT}
|
|
33
|
+
* @required
|
|
34
|
+
*/
|
|
35
|
+
Name: string;
|
|
36
|
+
/**
|
|
37
|
+
* Type
|
|
38
|
+
*
|
|
39
|
+
* Type of lead (Sales - Lead)
|
|
40
|
+
* @type {ENUM}
|
|
41
|
+
* @required
|
|
42
|
+
*/
|
|
43
|
+
Type: string;
|
|
44
|
+
/**
|
|
45
|
+
* Source
|
|
46
|
+
*
|
|
47
|
+
* Lead source (Sales - Lead)
|
|
48
|
+
* @type {ENUM}
|
|
49
|
+
* @required
|
|
50
|
+
*/
|
|
51
|
+
Source: string;
|
|
52
|
+
/**
|
|
53
|
+
* EmailAddress
|
|
54
|
+
*
|
|
55
|
+
* email address (Sales - Lead)
|
|
56
|
+
* @type {EMAIL}
|
|
57
|
+
* @required
|
|
58
|
+
*/
|
|
59
|
+
EmailAddress: string;
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* CreateLeadSalesApp
|
|
63
|
+
*
|
|
64
|
+
* Create Lead action (Sales App)
|
|
65
|
+
*
|
|
66
|
+
* @actionType CREATE - Creates a new Lead record
|
|
67
|
+
* @module CrmModule
|
|
68
|
+
* @entity Lead
|
|
69
|
+
* @event k1.t-hEOJjsDb.CrmModule.Lead.Create.CreateLeadSalesApp
|
|
70
|
+
* @permission schema.action.createleadsalesapp.trigger
|
|
71
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
72
|
+
*/
|
|
73
|
+
export declare class CreateLeadSalesAppDto extends OdinRecordCreateDto<CreateLeadSalesAppProperties> {
|
|
74
|
+
/** Used by SDK generators to identify action type */
|
|
75
|
+
static readonly ACTION_TYPE = "CREATE";
|
|
76
|
+
static readonly ACTION_KEY = "CreateLeadSalesApp";
|
|
77
|
+
static readonly MODULE_NAME = "CrmModule";
|
|
78
|
+
static readonly ENTITIES: string[];
|
|
79
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.CrmModule.Lead.Create.CreateLeadSalesApp";
|
|
80
|
+
static readonly PERMISSION = "schema.action.createleadsalesapp.trigger";
|
|
81
|
+
/** Step metadata - entity this action targets */
|
|
82
|
+
static readonly STEP_ENTITY = "CrmModule:Lead";
|
|
83
|
+
static readonly STEP_SCHEMA_ID = "44f23adb-9ea5-4ce1-af8f-71fd05c75615";
|
|
84
|
+
static readonly STEP_SCHEMA_ACTION_ID = "ce5b1648-cf4f-4e7d-a960-cab81b1c8b5b";
|
|
85
|
+
static readonly AUTO_LINK_PARENT = true;
|
|
86
|
+
readonly actionName: string;
|
|
87
|
+
readonly schemaActionId: string;
|
|
88
|
+
readonly entity: string;
|
|
89
|
+
constructor(properties: CreateLeadSalesAppProperties, options?: {
|
|
90
|
+
journeyId?: string;
|
|
91
|
+
});
|
|
92
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* CreateLeadSalesApp Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Create Lead action (Sales App)
|
|
6
|
+
*
|
|
7
|
+
* @module CrmModule
|
|
8
|
+
* @entity Lead
|
|
9
|
+
* @actionKey CreateLeadSalesApp
|
|
10
|
+
* @event k1.t-hEOJjsDb.CrmModule.Lead.Create.CreateLeadSalesApp
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.CreateLeadSalesAppDto = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* CreateLeadSalesApp
|
|
19
|
+
*
|
|
20
|
+
* Create Lead action (Sales App)
|
|
21
|
+
*
|
|
22
|
+
* @actionType CREATE - Creates a new Lead record
|
|
23
|
+
* @module CrmModule
|
|
24
|
+
* @entity Lead
|
|
25
|
+
* @event k1.t-hEOJjsDb.CrmModule.Lead.Create.CreateLeadSalesApp
|
|
26
|
+
* @permission schema.action.createleadsalesapp.trigger
|
|
27
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
28
|
+
*/
|
|
29
|
+
class CreateLeadSalesAppDto extends core_1.OdinRecordCreateDto {
|
|
30
|
+
constructor(properties, options) {
|
|
31
|
+
super({
|
|
32
|
+
entity: 'CrmModule:Lead',
|
|
33
|
+
type: undefined,
|
|
34
|
+
properties,
|
|
35
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
36
|
+
});
|
|
37
|
+
this.actionName = 'CreateLeadSalesApp';
|
|
38
|
+
this.schemaActionId = 'ce5b1648-cf4f-4e7d-a960-cab81b1c8b5b';
|
|
39
|
+
this.entity = 'CrmModule:Lead';
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.CreateLeadSalesAppDto = CreateLeadSalesAppDto;
|
|
43
|
+
/** Used by SDK generators to identify action type */
|
|
44
|
+
CreateLeadSalesAppDto.ACTION_TYPE = 'CREATE';
|
|
45
|
+
CreateLeadSalesAppDto.ACTION_KEY = 'CreateLeadSalesApp';
|
|
46
|
+
CreateLeadSalesAppDto.MODULE_NAME = 'CrmModule';
|
|
47
|
+
CreateLeadSalesAppDto.ENTITIES = ['Lead'];
|
|
48
|
+
CreateLeadSalesAppDto.EVENT_NAME = 'k1.t-hEOJjsDb.CrmModule.Lead.Create.CreateLeadSalesApp';
|
|
49
|
+
CreateLeadSalesAppDto.PERMISSION = 'schema.action.createleadsalesapp.trigger';
|
|
50
|
+
/** Step metadata - entity this action targets */
|
|
51
|
+
CreateLeadSalesAppDto.STEP_ENTITY = 'CrmModule:Lead';
|
|
52
|
+
CreateLeadSalesAppDto.STEP_SCHEMA_ID = '44f23adb-9ea5-4ce1-af8f-71fd05c75615';
|
|
53
|
+
CreateLeadSalesAppDto.STEP_SCHEMA_ACTION_ID = 'ce5b1648-cf4f-4e7d-a960-cab81b1c8b5b';
|
|
54
|
+
CreateLeadSalesAppDto.AUTO_LINK_PARENT = true;
|
|
@@ -25,6 +25,7 @@ export declare class EmailApi extends ApiProvider {
|
|
|
25
25
|
private _case?;
|
|
26
26
|
private _file?;
|
|
27
27
|
private _workorder?;
|
|
28
|
+
private _order?;
|
|
28
29
|
constructor(authParams?: OauthParams, authToken?: string);
|
|
29
30
|
get referral(): ApiRecordLinkManager;
|
|
30
31
|
get emailsender(): ApiRecordLinkManager;
|
|
@@ -34,6 +35,7 @@ export declare class EmailApi extends ApiProvider {
|
|
|
34
35
|
get case(): ApiRecordLinkManager;
|
|
35
36
|
get file(): ApiRecordLinkManager;
|
|
36
37
|
get workorder(): ApiRecordLinkManager;
|
|
38
|
+
get order(): ApiRecordLinkManager;
|
|
37
39
|
setRecord(sourceRecord: any): void;
|
|
38
40
|
schema(): Promise<import("@d19n/odin-types/dist/core").OdinSchema>;
|
|
39
41
|
search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<EmailProperties>>>;
|
|
@@ -81,6 +81,12 @@ class EmailApi extends api_provider_1.ApiProvider {
|
|
|
81
81
|
}
|
|
82
82
|
return this._workorder;
|
|
83
83
|
}
|
|
84
|
+
get order() {
|
|
85
|
+
if (!this._order) {
|
|
86
|
+
this._order = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'NotificationModule:Email', 'OrderModule:Order', 'Order__Email');
|
|
87
|
+
}
|
|
88
|
+
return this._order;
|
|
89
|
+
}
|
|
84
90
|
// ============================================
|
|
85
91
|
// STANDARD METHODS (Unchanged API)
|
|
86
92
|
// ============================================
|
|
@@ -58,6 +58,7 @@ export declare class OrderApi extends ApiProvider {
|
|
|
58
58
|
private _recontract?;
|
|
59
59
|
private _dataissue?;
|
|
60
60
|
private _workorder?;
|
|
61
|
+
private _email?;
|
|
61
62
|
constructor(authParams?: OauthParams, authToken?: string);
|
|
62
63
|
get note(): ApiRecordLinkManager;
|
|
63
64
|
get lead(): ApiRecordLinkManager;
|
|
@@ -100,6 +101,7 @@ export declare class OrderApi extends ApiProvider {
|
|
|
100
101
|
get recontract(): ApiRecordLinkManager;
|
|
101
102
|
get dataissue(): ApiRecordLinkManager;
|
|
102
103
|
get workorder(): ApiRecordLinkManager;
|
|
104
|
+
get email(): ApiRecordLinkManager;
|
|
103
105
|
setRecord(sourceRecord: any): void;
|
|
104
106
|
schema(): Promise<import("@d19n/odin-types/dist/core").OdinSchema>;
|
|
105
107
|
search(params: Partial<OdinSearchV2>): Promise<import("@d19n/odin-sdk-generator/dist/odin-sdk-types").OdinSearchResponse<import("@d19n/odin-types/dist/core").OdinRecord<OrderProperties>>>;
|
|
@@ -279,6 +279,12 @@ class OrderApi extends api_provider_1.ApiProvider {
|
|
|
279
279
|
}
|
|
280
280
|
return this._workorder;
|
|
281
281
|
}
|
|
282
|
+
get email() {
|
|
283
|
+
if (!this._email) {
|
|
284
|
+
this._email = new api_record_link_manager_1.ApiRecordLinkManager(this.authParams, 'OrderModule:Order', 'NotificationModule:Email', 'Order__Email');
|
|
285
|
+
}
|
|
286
|
+
return this._email;
|
|
287
|
+
}
|
|
282
288
|
// ============================================
|
|
283
289
|
// STANDARD METHODS (Unchanged API)
|
|
284
290
|
// ============================================
|
|
@@ -29,6 +29,7 @@ export declare class EmailDb extends DbProvider {
|
|
|
29
29
|
private _case?;
|
|
30
30
|
private _file?;
|
|
31
31
|
private _workorder?;
|
|
32
|
+
private _order?;
|
|
32
33
|
constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
|
|
33
34
|
get referral(): DbRecordLinkManager;
|
|
34
35
|
get emailsender(): DbRecordLinkManager;
|
|
@@ -38,6 +39,7 @@ export declare class EmailDb extends DbProvider {
|
|
|
38
39
|
get case(): DbRecordLinkManager;
|
|
39
40
|
get file(): DbRecordLinkManager;
|
|
40
41
|
get workorder(): DbRecordLinkManager;
|
|
42
|
+
get order(): DbRecordLinkManager;
|
|
41
43
|
setRecord(sourceRecord: any): void;
|
|
42
44
|
/**
|
|
43
45
|
* Search records with manual pagination control
|
|
@@ -86,6 +86,12 @@ class EmailDb extends db_provider_1.DbProvider {
|
|
|
86
86
|
}
|
|
87
87
|
return this._workorder;
|
|
88
88
|
}
|
|
89
|
+
get order() {
|
|
90
|
+
if (!this._order) {
|
|
91
|
+
this._order = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'NotificationModule:Email', 'OrderModule:Order', 'Order__Email');
|
|
92
|
+
}
|
|
93
|
+
return this._order;
|
|
94
|
+
}
|
|
89
95
|
// ============================================
|
|
90
96
|
// STANDARD METHODS
|
|
91
97
|
// ============================================
|
|
@@ -62,6 +62,7 @@ export declare class OrderDb extends DbProvider {
|
|
|
62
62
|
private _recontract?;
|
|
63
63
|
private _dataissue?;
|
|
64
64
|
private _workorder?;
|
|
65
|
+
private _email?;
|
|
65
66
|
constructor(principal: any, dbService: any, defaultOptions?: DbProviderOptions);
|
|
66
67
|
get note(): DbRecordLinkManager;
|
|
67
68
|
get lead(): DbRecordLinkManager;
|
|
@@ -104,6 +105,7 @@ export declare class OrderDb extends DbProvider {
|
|
|
104
105
|
get recontract(): DbRecordLinkManager;
|
|
105
106
|
get dataissue(): DbRecordLinkManager;
|
|
106
107
|
get workorder(): DbRecordLinkManager;
|
|
108
|
+
get email(): DbRecordLinkManager;
|
|
107
109
|
setRecord(sourceRecord: any): void;
|
|
108
110
|
/**
|
|
109
111
|
* Search records with manual pagination control
|
|
@@ -284,6 +284,12 @@ class OrderDb extends db_provider_1.DbProvider {
|
|
|
284
284
|
}
|
|
285
285
|
return this._workorder;
|
|
286
286
|
}
|
|
287
|
+
get email() {
|
|
288
|
+
if (!this._email) {
|
|
289
|
+
this._email = new db_record_link_manager_1.DbRecordLinkManager(this.principal, this.dbService, 'OrderModule:Order', 'NotificationModule:Email', 'Order__Email');
|
|
290
|
+
}
|
|
291
|
+
return this._email;
|
|
292
|
+
}
|
|
287
293
|
// ============================================
|
|
288
294
|
// STANDARD METHODS
|
|
289
295
|
// ============================================
|