@d19n/youfibre-odin-sdk 2.0.371 → 2.0.373
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 -2
- package/dist/actions-v2/CreateOutboundDialCampaignDto.d.ts +8 -1
- package/dist/actions-v2/OrderBuilderUpdateContactDto.d.ts +182 -0
- package/dist/actions-v2/OrderBuilderUpdateContactDto.js +56 -0
- package/dist/actions-v2/UpdateWorkOrderWithdrawEquipmentChargeDto.d.ts +73 -0
- package/dist/actions-v2/UpdateWorkOrderWithdrawEquipmentChargeDto.js +56 -0
- package/dist/actions-v2/UpdateoutbounddialcampaignDto.d.ts +8 -1
- package/dist/db-sdk-v2/FileDb.d.ts +132 -132
- package/dist/db-sdk-v2/FileDb.js +268 -268
- package/dist/entities-v2/Document.d.ts +821 -12
- package/dist/entities-v2/Document.js +63 -1
- package/dist/entities-v2/DocumentProcessing.d.ts +7 -1
- package/dist/entities-v2/DocumentProcessing.js +6 -0
- package/dist/entities-v2/OutboundDialCampaign.d.ts +9 -1
- package/dist/entities-v2/OutboundDialCampaign.js +2 -0
- package/dist/entities-v2/Returns.d.ts +30 -30
- package/dist/entities-v2/Returns.js +30 -30
- package/dist/records-v2/ContactRecord.d.ts +27 -0
- package/dist/records-v2/ContactRecord.js +29 -0
- package/dist/records-v2/DocumentRecord.d.ts +35 -3
- package/dist/records-v2/DocumentRecord.js +33 -1
- package/dist/records-v2/WorkOrderRecord.d.ts +27 -0
- package/dist/records-v2/WorkOrderRecord.js +29 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -372,7 +372,7 @@ This SDK includes **205** entities across **13** modules.
|
|
|
372
372
|
|
|
373
373
|
| Entity | Description | Types |
|
|
374
374
|
|--------|-------------|-------|
|
|
375
|
-
| **Document** | Document Entity Definition |
|
|
375
|
+
| **Document** | Document Entity Definition | CONTRACT, CONTRACT_BUYOUT, CORPORATE_DOCUMENT... |
|
|
376
376
|
| **DocumentProcessing** | DocumentProcessing Entity Definition | DEFAULT |
|
|
377
377
|
|
|
378
378
|
### ProjectModule
|
|
@@ -398,7 +398,7 @@ This SDK includes **205** entities across **13** modules.
|
|
|
398
398
|
|
|
399
399
|
## Actions
|
|
400
400
|
|
|
401
|
-
This SDK includes **
|
|
401
|
+
This SDK includes **936** actions.
|
|
402
402
|
|
|
403
403
|
### Action Types
|
|
404
404
|
|
|
@@ -658,6 +658,7 @@ This SDK includes **934** actions.
|
|
|
658
658
|
| `UpdateRemediationWorkOrder` | UPDATE | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Update.UpdateRemediationWorkOrder |
|
|
659
659
|
| `UpdateSetReturnedLegacy` | UPDATE | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Update.UpdateSetReturnedLegacy |
|
|
660
660
|
| `UpdateWayleaveWorkOrder` | UPDATE | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Update.UpdateWayleaveWorkOrder |
|
|
661
|
+
| `UpdateWorkOrderWithdrawEquipmentCharge` | UPDATE | k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Update.UpdateWorkOrderWithdrawEquipmentCharge |
|
|
661
662
|
|
|
662
663
|
**CancelInstallWorkOrderFlowSupplier Target Stages:** `WorkOrderStageCancelled`
|
|
663
664
|
|
|
@@ -1638,6 +1639,7 @@ This SDK includes **934** actions.
|
|
|
1638
1639
|
|--------|------|-------|
|
|
1639
1640
|
| `CreateContact` | CREATE | k1.t-hEOJjsDb.CrmModule.Contact.Create.CreateContact |
|
|
1640
1641
|
| `CreateContactSalesApp` | CREATE | k1.t-hEOJjsDb.CrmModule.Contact.Create.CreateContactSalesApp |
|
|
1642
|
+
| `OrderBuilderUpdateContact` | UPDATE | k1.t-hEOJjsDb.CrmModule.Contact.Update.OrderBuilderUpdateContact |
|
|
1641
1643
|
| `UpdateAdditionalCare` | UPDATE | k1.t-hEOJjsDb.CrmModule.Contact.Update.UpdateAdditionalCare |
|
|
1642
1644
|
| `UpdateContactAppPreferences` | UPDATE | k1.t-hEOJjsDb.CrmModule.Contact.Update.UpdateContactAppPreferences |
|
|
1643
1645
|
| `UpdateContact` | UPDATE | k1.t-hEOJjsDb.CrmModule.Contact.Update.UpdateContact |
|
|
@@ -23,7 +23,7 @@ export interface CreateOutboundDialCampaignMessage extends OdinRecordCreatedEven
|
|
|
23
23
|
* Properties for CreateOutboundDialCampaign action
|
|
24
24
|
*
|
|
25
25
|
* @property Required fields: 6
|
|
26
|
-
* @property Optional fields:
|
|
26
|
+
* @property Optional fields: 3
|
|
27
27
|
*/
|
|
28
28
|
export interface CreateOutboundDialCampaignProperties {
|
|
29
29
|
/**
|
|
@@ -88,6 +88,13 @@ export interface CreateOutboundDialCampaignProperties {
|
|
|
88
88
|
* @type {TEXT}
|
|
89
89
|
*/
|
|
90
90
|
DistributionMode?: string | null;
|
|
91
|
+
/**
|
|
92
|
+
* RetentionCampaign
|
|
93
|
+
*
|
|
94
|
+
* When true, agents on this campaign record the retention RET outcomes and give a reason when they skip a case (CASES-1993). Empty means false.
|
|
95
|
+
* @type {BOOLEAN}
|
|
96
|
+
*/
|
|
97
|
+
RetentionCampaign?: boolean | null;
|
|
91
98
|
}
|
|
92
99
|
/**
|
|
93
100
|
* CreateOutboundDialCampaign
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OrderBuilderUpdateContact Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Updates an existing Contact from Order Builder V2 step 2. Loaded by name by the desktop builder and saved through CrmModule/v2.0/records/apply-action, so the fields an agent may change on an existing contact are set on this form rather than in React. A sibling of UpdateContact, which keeps serving the Contact detail view: this one is not the default form and is not a record-header button. Form copied from UpdateContact, Critical Dependencies section included. CORE-1493.
|
|
5
|
+
*
|
|
6
|
+
* @module CrmModule
|
|
7
|
+
* @entity Contact
|
|
8
|
+
* @actionKey OrderBuilderUpdateContact
|
|
9
|
+
* @event k1.t-hEOJjsDb.CrmModule.Contact.Update.OrderBuilderUpdateContact
|
|
10
|
+
*
|
|
11
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
12
|
+
*/
|
|
13
|
+
import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
|
|
14
|
+
/**
|
|
15
|
+
* RabbitMQ message payload for OrderBuilderUpdateContact updated events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-hEOJjsDb.CrmModule.Contact.Update.OrderBuilderUpdateContact
|
|
18
|
+
*/
|
|
19
|
+
export interface OrderBuilderUpdateContactMessage extends OdinRecordUpdatedEvent<OrderBuilderUpdateContactDto, OrderBuilderUpdateContactProperties> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for OrderBuilderUpdateContact action
|
|
23
|
+
*
|
|
24
|
+
* @property Required fields: 3
|
|
25
|
+
* @property Optional fields: 14
|
|
26
|
+
*/
|
|
27
|
+
export interface OrderBuilderUpdateContactProperties {
|
|
28
|
+
/**
|
|
29
|
+
* First Name
|
|
30
|
+
*
|
|
31
|
+
* Contacts First Name (Sales - Contact)
|
|
32
|
+
* @type {TEXT}
|
|
33
|
+
* @required
|
|
34
|
+
*/
|
|
35
|
+
FirstName: string;
|
|
36
|
+
/**
|
|
37
|
+
* Email Address
|
|
38
|
+
*
|
|
39
|
+
* Contacts Email Address (Sales - Contact)
|
|
40
|
+
* @type {EMAIL}
|
|
41
|
+
* @required
|
|
42
|
+
*/
|
|
43
|
+
EmailAddress: string;
|
|
44
|
+
/**
|
|
45
|
+
* Last Name
|
|
46
|
+
*
|
|
47
|
+
* Contacts Last Name (Sales - Contact)
|
|
48
|
+
* @type {TEXT}
|
|
49
|
+
* @required
|
|
50
|
+
*/
|
|
51
|
+
LastName: string;
|
|
52
|
+
/**
|
|
53
|
+
* Account Status
|
|
54
|
+
*
|
|
55
|
+
* NONE if haven't started registering, INACTIVE if started registering but haven't finished yet, or ACTIVE if successfully registered (Sales - Contact)
|
|
56
|
+
* @type {ENUM}
|
|
57
|
+
*/
|
|
58
|
+
AccountStatus?: string | null;
|
|
59
|
+
/**
|
|
60
|
+
* Phone
|
|
61
|
+
*
|
|
62
|
+
* Phone number (Sales - Contact)
|
|
63
|
+
* @type {PHONE_NUMBER_E164_GB}
|
|
64
|
+
*/
|
|
65
|
+
Phone?: string | null;
|
|
66
|
+
/**
|
|
67
|
+
* Mobile
|
|
68
|
+
*
|
|
69
|
+
* Mobile phone (Sales - Contact)
|
|
70
|
+
* @type {TEXT}
|
|
71
|
+
*/
|
|
72
|
+
Mobile?: string | null;
|
|
73
|
+
/**
|
|
74
|
+
* Referral Email
|
|
75
|
+
*
|
|
76
|
+
* referral email (Sales - Contact)
|
|
77
|
+
* @type {TEXT}
|
|
78
|
+
*/
|
|
79
|
+
ReferralEmail?: string | null;
|
|
80
|
+
/**
|
|
81
|
+
* MarketingConsent
|
|
82
|
+
*
|
|
83
|
+
* 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.
|
|
84
|
+
* @type {BOOLEAN}
|
|
85
|
+
*/
|
|
86
|
+
MarketingConsent?: boolean | null;
|
|
87
|
+
/**
|
|
88
|
+
* In Contract Until
|
|
89
|
+
*
|
|
90
|
+
* the date the customer is in contract with another provider (Sales - Contact)
|
|
91
|
+
* @type {DATE}
|
|
92
|
+
* @format DD/MM/YYYY
|
|
93
|
+
*/
|
|
94
|
+
InContractUntil?: string | null;
|
|
95
|
+
/**
|
|
96
|
+
* Previous Provider
|
|
97
|
+
*
|
|
98
|
+
* previous/current provider (Sales - Contact)
|
|
99
|
+
* @type {ENUM}
|
|
100
|
+
*/
|
|
101
|
+
PreviousProvider?: string | null;
|
|
102
|
+
/**
|
|
103
|
+
* Current Contract Type
|
|
104
|
+
*
|
|
105
|
+
* current contract type (Sales - Contact)
|
|
106
|
+
* @type {TEXT}
|
|
107
|
+
*/
|
|
108
|
+
CurrentContractType?: string | null;
|
|
109
|
+
/**
|
|
110
|
+
* Are you medically dependent on your broadband?
|
|
111
|
+
*
|
|
112
|
+
* Is the customer medically dependant on their broadband (Sales - Contact)
|
|
113
|
+
* @type {ENUM}
|
|
114
|
+
*/
|
|
115
|
+
MedicallyDependant?: string | null;
|
|
116
|
+
/**
|
|
117
|
+
* Do any members of your household rely on a Telecare Alarm?
|
|
118
|
+
*
|
|
119
|
+
* Does the customer use a Telecare Alarm (Sales - Contact)
|
|
120
|
+
* @type {ENUM}
|
|
121
|
+
*/
|
|
122
|
+
TelecareAlarm?: string | null;
|
|
123
|
+
/**
|
|
124
|
+
* Additional care requirements?
|
|
125
|
+
*
|
|
126
|
+
* Select a care requirement
|
|
127
|
+
* @type {ENUM_MULTI_SELECT}
|
|
128
|
+
*/
|
|
129
|
+
AdditionalCareReason?: string | null;
|
|
130
|
+
/**
|
|
131
|
+
* Additional care notes
|
|
132
|
+
*
|
|
133
|
+
* Any additional information
|
|
134
|
+
* @type {TEXT_LONG}
|
|
135
|
+
*/
|
|
136
|
+
AdditionalCareNotes?: string | null;
|
|
137
|
+
/**
|
|
138
|
+
* Additional Care Consent
|
|
139
|
+
*
|
|
140
|
+
* Customer consent for recording additional care requirements (Sales - Contact)
|
|
141
|
+
* @type {BOOLEAN}
|
|
142
|
+
* @requiredWhen MedicallyDependant = ["YES"] AND TelecareAlarm = ["YES"]
|
|
143
|
+
*/
|
|
144
|
+
AdditionalCareConsent?: boolean | null;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* OrderBuilderUpdateContact
|
|
148
|
+
*
|
|
149
|
+
* Updates an existing Contact from Order Builder V2 step 2. Loaded by name by the desktop builder and saved through CrmModule/v2.0/records/apply-action, so the fields an agent may change on an existing contact are set on this form rather than in React. A sibling of UpdateContact, which keeps serving the Contact detail view: this one is not the default form and is not a record-header button. Form copied from UpdateContact, Critical Dependencies section included. CORE-1493.
|
|
150
|
+
*
|
|
151
|
+
* @actionType UPDATE - Updates an existing Contact record
|
|
152
|
+
* @module CrmModule
|
|
153
|
+
* @entity Contact
|
|
154
|
+
* @event k1.t-hEOJjsDb.CrmModule.Contact.Update.OrderBuilderUpdateContact
|
|
155
|
+
* @permission schema.action.orderbuilderupdatecontact.trigger
|
|
156
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
157
|
+
*/
|
|
158
|
+
export declare class OrderBuilderUpdateContactDto extends OdinRecordUpdateDto<OrderBuilderUpdateContactProperties> {
|
|
159
|
+
/** Used by SDK generators to identify action type */
|
|
160
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
161
|
+
static readonly ACTION_KEY = "OrderBuilderUpdateContact";
|
|
162
|
+
static readonly MODULE_NAME = "CrmModule";
|
|
163
|
+
static readonly ENTITIES: string[];
|
|
164
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.CrmModule.Contact.Update.OrderBuilderUpdateContact";
|
|
165
|
+
static readonly PERMISSION = "schema.action.orderbuilderupdatecontact.trigger";
|
|
166
|
+
/** Step metadata - entity this action targets */
|
|
167
|
+
static readonly STEP_ENTITY = "CrmModule:Contact";
|
|
168
|
+
static readonly STEP_SCHEMA_ID = "33643a0d-5b77-4895-a2da-991e0fd3432f";
|
|
169
|
+
static readonly STEP_SCHEMA_ACTION_ID = "4466e908-e22c-4980-8523-9a18492ab692";
|
|
170
|
+
static readonly AUTO_LINK_PARENT = false;
|
|
171
|
+
readonly actionName: string;
|
|
172
|
+
readonly schemaActionId: string;
|
|
173
|
+
readonly entity: string;
|
|
174
|
+
constructor(record: OdinRecord<any> | {
|
|
175
|
+
id: string;
|
|
176
|
+
entity: string;
|
|
177
|
+
type?: string;
|
|
178
|
+
}, properties: OrderBuilderUpdateContactProperties, options?: {
|
|
179
|
+
journeyId?: string;
|
|
180
|
+
stageKey?: string;
|
|
181
|
+
});
|
|
182
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* OrderBuilderUpdateContact Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Updates an existing Contact from Order Builder V2 step 2. Loaded by name by the desktop builder and saved through CrmModule/v2.0/records/apply-action, so the fields an agent may change on an existing contact are set on this form rather than in React. A sibling of UpdateContact, which keeps serving the Contact detail view: this one is not the default form and is not a record-header button. Form copied from UpdateContact, Critical Dependencies section included. CORE-1493.
|
|
6
|
+
*
|
|
7
|
+
* @module CrmModule
|
|
8
|
+
* @entity Contact
|
|
9
|
+
* @actionKey OrderBuilderUpdateContact
|
|
10
|
+
* @event k1.t-hEOJjsDb.CrmModule.Contact.Update.OrderBuilderUpdateContact
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.OrderBuilderUpdateContactDto = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* OrderBuilderUpdateContact
|
|
19
|
+
*
|
|
20
|
+
* Updates an existing Contact from Order Builder V2 step 2. Loaded by name by the desktop builder and saved through CrmModule/v2.0/records/apply-action, so the fields an agent may change on an existing contact are set on this form rather than in React. A sibling of UpdateContact, which keeps serving the Contact detail view: this one is not the default form and is not a record-header button. Form copied from UpdateContact, Critical Dependencies section included. CORE-1493.
|
|
21
|
+
*
|
|
22
|
+
* @actionType UPDATE - Updates an existing Contact record
|
|
23
|
+
* @module CrmModule
|
|
24
|
+
* @entity Contact
|
|
25
|
+
* @event k1.t-hEOJjsDb.CrmModule.Contact.Update.OrderBuilderUpdateContact
|
|
26
|
+
* @permission schema.action.orderbuilderupdatecontact.trigger
|
|
27
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
28
|
+
*/
|
|
29
|
+
class OrderBuilderUpdateContactDto extends core_1.OdinRecordUpdateDto {
|
|
30
|
+
constructor(record, properties, options) {
|
|
31
|
+
super({
|
|
32
|
+
id: record.id,
|
|
33
|
+
entity: record.entity,
|
|
34
|
+
type: record.type,
|
|
35
|
+
properties,
|
|
36
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
37
|
+
stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
|
|
38
|
+
});
|
|
39
|
+
this.actionName = 'OrderBuilderUpdateContact';
|
|
40
|
+
this.schemaActionId = '4466e908-e22c-4980-8523-9a18492ab692';
|
|
41
|
+
this.entity = 'CrmModule:Contact';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.OrderBuilderUpdateContactDto = OrderBuilderUpdateContactDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
OrderBuilderUpdateContactDto.ACTION_TYPE = 'UPDATE';
|
|
47
|
+
OrderBuilderUpdateContactDto.ACTION_KEY = 'OrderBuilderUpdateContact';
|
|
48
|
+
OrderBuilderUpdateContactDto.MODULE_NAME = 'CrmModule';
|
|
49
|
+
OrderBuilderUpdateContactDto.ENTITIES = ['Contact'];
|
|
50
|
+
OrderBuilderUpdateContactDto.EVENT_NAME = 'k1.t-hEOJjsDb.CrmModule.Contact.Update.OrderBuilderUpdateContact';
|
|
51
|
+
OrderBuilderUpdateContactDto.PERMISSION = 'schema.action.orderbuilderupdatecontact.trigger';
|
|
52
|
+
/** Step metadata - entity this action targets */
|
|
53
|
+
OrderBuilderUpdateContactDto.STEP_ENTITY = 'CrmModule:Contact';
|
|
54
|
+
OrderBuilderUpdateContactDto.STEP_SCHEMA_ID = '33643a0d-5b77-4895-a2da-991e0fd3432f';
|
|
55
|
+
OrderBuilderUpdateContactDto.STEP_SCHEMA_ACTION_ID = '4466e908-e22c-4980-8523-9a18492ab692';
|
|
56
|
+
OrderBuilderUpdateContactDto.AUTO_LINK_PARENT = false;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UpdateWorkOrderWithdrawEquipmentCharge Action DTO
|
|
3
|
+
*
|
|
4
|
+
* Withdraws an equipment charge no payment has been taken for: billing credits the invoice, then cancels this work order. A paid or part-paid charge goes through the normal credit and refund process instead. BILL-1005.
|
|
5
|
+
*
|
|
6
|
+
* @module FieldServiceModule
|
|
7
|
+
* @entity WorkOrder
|
|
8
|
+
* @actionKey UpdateWorkOrderWithdrawEquipmentCharge
|
|
9
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Update.UpdateWorkOrderWithdrawEquipmentCharge
|
|
10
|
+
*
|
|
11
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
12
|
+
*/
|
|
13
|
+
import { OdinRecord, OdinRecordUpdateDto, OdinRecordUpdatedEvent } from '@d19n/odin-types/dist/core';
|
|
14
|
+
/**
|
|
15
|
+
* RabbitMQ message payload for UpdateWorkOrderWithdrawEquipmentCharge updated events
|
|
16
|
+
*
|
|
17
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Update.UpdateWorkOrderWithdrawEquipmentCharge
|
|
18
|
+
*/
|
|
19
|
+
export interface UpdateWorkOrderWithdrawEquipmentChargeMessage extends OdinRecordUpdatedEvent<UpdateWorkOrderWithdrawEquipmentChargeDto, UpdateWorkOrderWithdrawEquipmentChargeProperties> {
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Properties for UpdateWorkOrderWithdrawEquipmentCharge action
|
|
23
|
+
*
|
|
24
|
+
* @property Required fields: 1
|
|
25
|
+
* @property Optional fields: 0
|
|
26
|
+
*/
|
|
27
|
+
export interface UpdateWorkOrderWithdrawEquipmentChargeProperties {
|
|
28
|
+
/**
|
|
29
|
+
* Why is the charge being withdrawn?
|
|
30
|
+
*
|
|
31
|
+
* StatusReason (Field Operations - WorkOrder)
|
|
32
|
+
* @type {TEXT_LONG}
|
|
33
|
+
* @required
|
|
34
|
+
*/
|
|
35
|
+
StatusReason: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Withdraw equipment charge
|
|
39
|
+
*
|
|
40
|
+
* Withdraws an equipment charge no payment has been taken for: billing credits the invoice, then cancels this work order. A paid or part-paid charge goes through the normal credit and refund process instead. BILL-1005.
|
|
41
|
+
*
|
|
42
|
+
* @actionType UPDATE - Updates an existing WorkOrder record
|
|
43
|
+
* @module FieldServiceModule
|
|
44
|
+
* @entity WorkOrder
|
|
45
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Update.UpdateWorkOrderWithdrawEquipmentCharge
|
|
46
|
+
* @permission schema.action.updateworkorderwithdrawequipmentcharge.trigger
|
|
47
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
48
|
+
*/
|
|
49
|
+
export declare class UpdateWorkOrderWithdrawEquipmentChargeDto extends OdinRecordUpdateDto<UpdateWorkOrderWithdrawEquipmentChargeProperties> {
|
|
50
|
+
/** Used by SDK generators to identify action type */
|
|
51
|
+
static readonly ACTION_TYPE = "UPDATE";
|
|
52
|
+
static readonly ACTION_KEY = "UpdateWorkOrderWithdrawEquipmentCharge";
|
|
53
|
+
static readonly MODULE_NAME = "FieldServiceModule";
|
|
54
|
+
static readonly ENTITIES: string[];
|
|
55
|
+
static readonly EVENT_NAME = "k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Update.UpdateWorkOrderWithdrawEquipmentCharge";
|
|
56
|
+
static readonly PERMISSION = "schema.action.updateworkorderwithdrawequipmentcharge.trigger";
|
|
57
|
+
/** Step metadata - entity this action targets */
|
|
58
|
+
static readonly STEP_ENTITY = "FieldServiceModule:WorkOrder";
|
|
59
|
+
static readonly STEP_SCHEMA_ID = "966bf5d9-163e-4132-85e2-56a5f801c9de";
|
|
60
|
+
static readonly STEP_SCHEMA_ACTION_ID = "e4fbb5bf-aaff-4783-98ea-6ae58b67d596";
|
|
61
|
+
static readonly AUTO_LINK_PARENT = false;
|
|
62
|
+
readonly actionName: string;
|
|
63
|
+
readonly schemaActionId: string;
|
|
64
|
+
readonly entity: string;
|
|
65
|
+
constructor(record: OdinRecord<any> | {
|
|
66
|
+
id: string;
|
|
67
|
+
entity: string;
|
|
68
|
+
type?: string;
|
|
69
|
+
}, properties: UpdateWorkOrderWithdrawEquipmentChargeProperties, options?: {
|
|
70
|
+
journeyId?: string;
|
|
71
|
+
stageKey?: string;
|
|
72
|
+
});
|
|
73
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* UpdateWorkOrderWithdrawEquipmentCharge Action DTO
|
|
4
|
+
*
|
|
5
|
+
* Withdraws an equipment charge no payment has been taken for: billing credits the invoice, then cancels this work order. A paid or part-paid charge goes through the normal credit and refund process instead. BILL-1005.
|
|
6
|
+
*
|
|
7
|
+
* @module FieldServiceModule
|
|
8
|
+
* @entity WorkOrder
|
|
9
|
+
* @actionKey UpdateWorkOrderWithdrawEquipmentCharge
|
|
10
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Update.UpdateWorkOrderWithdrawEquipmentCharge
|
|
11
|
+
*
|
|
12
|
+
* AUTO-GENERATED - DO NOT EDIT DIRECTLY
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.UpdateWorkOrderWithdrawEquipmentChargeDto = void 0;
|
|
16
|
+
const core_1 = require("@d19n/odin-types/dist/core");
|
|
17
|
+
/**
|
|
18
|
+
* Withdraw equipment charge
|
|
19
|
+
*
|
|
20
|
+
* Withdraws an equipment charge no payment has been taken for: billing credits the invoice, then cancels this work order. A paid or part-paid charge goes through the normal credit and refund process instead. BILL-1005.
|
|
21
|
+
*
|
|
22
|
+
* @actionType UPDATE - Updates an existing WorkOrder record
|
|
23
|
+
* @module FieldServiceModule
|
|
24
|
+
* @entity WorkOrder
|
|
25
|
+
* @event k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Update.UpdateWorkOrderWithdrawEquipmentCharge
|
|
26
|
+
* @permission schema.action.updateworkorderwithdrawequipmentcharge.trigger
|
|
27
|
+
* @benchmark This action is tracked for performance benchmarks
|
|
28
|
+
*/
|
|
29
|
+
class UpdateWorkOrderWithdrawEquipmentChargeDto extends core_1.OdinRecordUpdateDto {
|
|
30
|
+
constructor(record, properties, options) {
|
|
31
|
+
super({
|
|
32
|
+
id: record.id,
|
|
33
|
+
entity: record.entity,
|
|
34
|
+
type: record.type,
|
|
35
|
+
properties,
|
|
36
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
37
|
+
stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
|
|
38
|
+
});
|
|
39
|
+
this.actionName = 'UpdateWorkOrderWithdrawEquipmentCharge';
|
|
40
|
+
this.schemaActionId = 'e4fbb5bf-aaff-4783-98ea-6ae58b67d596';
|
|
41
|
+
this.entity = 'FieldServiceModule:WorkOrder';
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.UpdateWorkOrderWithdrawEquipmentChargeDto = UpdateWorkOrderWithdrawEquipmentChargeDto;
|
|
45
|
+
/** Used by SDK generators to identify action type */
|
|
46
|
+
UpdateWorkOrderWithdrawEquipmentChargeDto.ACTION_TYPE = 'UPDATE';
|
|
47
|
+
UpdateWorkOrderWithdrawEquipmentChargeDto.ACTION_KEY = 'UpdateWorkOrderWithdrawEquipmentCharge';
|
|
48
|
+
UpdateWorkOrderWithdrawEquipmentChargeDto.MODULE_NAME = 'FieldServiceModule';
|
|
49
|
+
UpdateWorkOrderWithdrawEquipmentChargeDto.ENTITIES = ['WorkOrder'];
|
|
50
|
+
UpdateWorkOrderWithdrawEquipmentChargeDto.EVENT_NAME = 'k1.t-hEOJjsDb.FieldServiceModule.WorkOrder.Update.UpdateWorkOrderWithdrawEquipmentCharge';
|
|
51
|
+
UpdateWorkOrderWithdrawEquipmentChargeDto.PERMISSION = 'schema.action.updateworkorderwithdrawequipmentcharge.trigger';
|
|
52
|
+
/** Step metadata - entity this action targets */
|
|
53
|
+
UpdateWorkOrderWithdrawEquipmentChargeDto.STEP_ENTITY = 'FieldServiceModule:WorkOrder';
|
|
54
|
+
UpdateWorkOrderWithdrawEquipmentChargeDto.STEP_SCHEMA_ID = '966bf5d9-163e-4132-85e2-56a5f801c9de';
|
|
55
|
+
UpdateWorkOrderWithdrawEquipmentChargeDto.STEP_SCHEMA_ACTION_ID = 'e4fbb5bf-aaff-4783-98ea-6ae58b67d596';
|
|
56
|
+
UpdateWorkOrderWithdrawEquipmentChargeDto.AUTO_LINK_PARENT = false;
|
|
@@ -22,7 +22,7 @@ export interface UpdateoutbounddialcampaignMessage extends OdinRecordUpdatedEven
|
|
|
22
22
|
* Properties for Updateoutbounddialcampaign action
|
|
23
23
|
*
|
|
24
24
|
* @property Required fields: 0
|
|
25
|
-
* @property Optional fields:
|
|
25
|
+
* @property Optional fields: 9
|
|
26
26
|
*/
|
|
27
27
|
export interface UpdateoutbounddialcampaignProperties {
|
|
28
28
|
/**
|
|
@@ -81,6 +81,13 @@ export interface UpdateoutbounddialcampaignProperties {
|
|
|
81
81
|
* @type {TEXT}
|
|
82
82
|
*/
|
|
83
83
|
DistributionMode?: string | null;
|
|
84
|
+
/**
|
|
85
|
+
* RetentionCampaign
|
|
86
|
+
*
|
|
87
|
+
* When true, agents on this campaign record the retention RET outcomes and give a reason when they skip a case (CASES-1993). Empty means false.
|
|
88
|
+
* @type {BOOLEAN}
|
|
89
|
+
*/
|
|
90
|
+
RetentionCampaign?: boolean | null;
|
|
84
91
|
}
|
|
85
92
|
/**
|
|
86
93
|
* Updateoutbounddialcampaign
|