@d19n/youfibre-odin-sdk 2.0.373 → 2.0.375
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 +2 -1
- package/dist/actions-v2/CreateLinkedWorkOrderFlowDto.d.ts +18 -18
- package/dist/actions-v2/CreateNetworkAdjustmentWorkOrderDto.d.ts +18 -18
- package/dist/actions-v2/CreateOutboundDialCampaignDto.d.ts +8 -1
- package/dist/actions-v2/CreateOutboundDialSessionDto.d.ts +8 -1
- package/dist/actions-v2/EditNetworkDeviceDto.d.ts +11 -11
- package/dist/actions-v2/OrderBuilderCreateContactDto.d.ts +165 -0
- package/dist/actions-v2/OrderBuilderCreateContactDto.js +54 -0
- package/dist/actions-v2/OrderBuilderUpdateContactDto.d.ts +18 -30
- package/dist/actions-v2/UpdateOutboundDialSessionDto.d.ts +8 -1
- package/dist/actions-v2/UpdateWorkOrderWithdrawEquipmentChargeDto.d.ts +54 -4
- package/dist/actions-v2/UpdateWorkOrderWithdrawEquipmentChargeDto.js +2 -2
- 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/BillingAdjustment.d.ts +3 -1
- package/dist/entities-v2/BillingAdjustment.js +3 -1
- package/dist/entities-v2/OutboundDialCampaign.d.ts +9 -1
- package/dist/entities-v2/OutboundDialCampaign.js +2 -0
- package/dist/entities-v2/OutboundDialSession.d.ts +9 -1
- package/dist/entities-v2/OutboundDialSession.js +2 -0
- package/dist/entities-v2/WorkOrder.d.ts +99 -1
- package/dist/entities-v2/WorkOrder.js +2 -0
- package/dist/records-v2/ContactRecord.d.ts +29 -0
- package/dist/records-v2/ContactRecord.js +36 -0
- package/package.json +1 -1
|
@@ -61,6 +61,7 @@ export declare enum BillingAdjustmentProrationType {
|
|
|
61
61
|
* - `BRSK_REWARD_ADJUSTMENT` - Brsk Reward Adjustment
|
|
62
62
|
* - `CONTRACT_BUY_OUT` - Contract Buy Out
|
|
63
63
|
* - `GOODWILL_GESTURE` - Goodwill Gesture
|
|
64
|
+
* - `HOME_MOVE` - Home Move
|
|
64
65
|
* - `OUTAGE_COMPENSATION` - Outage Compensation
|
|
65
66
|
* - `PAYMENT_ARRANGEMENT` - Payment Arrangement
|
|
66
67
|
* - `PRICE_MATCH_ADJUSTMENT` - Price Match Adjustment
|
|
@@ -68,7 +69,7 @@ export declare enum BillingAdjustmentProrationType {
|
|
|
68
69
|
* - `RECONTRACTING_ADJUSTMENT` - Recontracting Adjustment
|
|
69
70
|
* - `REFERRAL` - Referral
|
|
70
71
|
* - `RETENTION_DEAL` - Retention Deal
|
|
71
|
-
* -
|
|
72
|
+
* - ... and 1 more
|
|
72
73
|
*/
|
|
73
74
|
export declare enum BillingAdjustmentReason {
|
|
74
75
|
BILLING_DATE_CHANGE = "BILLING_DATE_CHANGE",
|
|
@@ -78,6 +79,7 @@ export declare enum BillingAdjustmentReason {
|
|
|
78
79
|
BRSK_REWARD_ADJUSTMENT = "BRSK_REWARD_ADJUSTMENT",
|
|
79
80
|
CONTRACT_BUY_OUT = "CONTRACT_BUY_OUT",
|
|
80
81
|
GOODWILL_GESTURE = "GOODWILL_GESTURE",
|
|
82
|
+
HOME_MOVE = "HOME_MOVE",
|
|
81
83
|
OUTAGE_COMPENSATION = "OUTAGE_COMPENSATION",
|
|
82
84
|
PAYMENT_ARRANGEMENT = "PAYMENT_ARRANGEMENT",
|
|
83
85
|
PRICE_MATCH_ADJUSTMENT = "PRICE_MATCH_ADJUSTMENT",
|
|
@@ -63,6 +63,7 @@ var BillingAdjustmentProrationType;
|
|
|
63
63
|
* - `BRSK_REWARD_ADJUSTMENT` - Brsk Reward Adjustment
|
|
64
64
|
* - `CONTRACT_BUY_OUT` - Contract Buy Out
|
|
65
65
|
* - `GOODWILL_GESTURE` - Goodwill Gesture
|
|
66
|
+
* - `HOME_MOVE` - Home Move
|
|
66
67
|
* - `OUTAGE_COMPENSATION` - Outage Compensation
|
|
67
68
|
* - `PAYMENT_ARRANGEMENT` - Payment Arrangement
|
|
68
69
|
* - `PRICE_MATCH_ADJUSTMENT` - Price Match Adjustment
|
|
@@ -70,7 +71,7 @@ var BillingAdjustmentProrationType;
|
|
|
70
71
|
* - `RECONTRACTING_ADJUSTMENT` - Recontracting Adjustment
|
|
71
72
|
* - `REFERRAL` - Referral
|
|
72
73
|
* - `RETENTION_DEAL` - Retention Deal
|
|
73
|
-
* -
|
|
74
|
+
* - ... and 1 more
|
|
74
75
|
*/
|
|
75
76
|
var BillingAdjustmentReason;
|
|
76
77
|
(function (BillingAdjustmentReason) {
|
|
@@ -81,6 +82,7 @@ var BillingAdjustmentReason;
|
|
|
81
82
|
BillingAdjustmentReason["BRSK_REWARD_ADJUSTMENT"] = "BRSK_REWARD_ADJUSTMENT";
|
|
82
83
|
BillingAdjustmentReason["CONTRACT_BUY_OUT"] = "CONTRACT_BUY_OUT";
|
|
83
84
|
BillingAdjustmentReason["GOODWILL_GESTURE"] = "GOODWILL_GESTURE";
|
|
85
|
+
BillingAdjustmentReason["HOME_MOVE"] = "HOME_MOVE";
|
|
84
86
|
BillingAdjustmentReason["OUTAGE_COMPENSATION"] = "OUTAGE_COMPENSATION";
|
|
85
87
|
BillingAdjustmentReason["PAYMENT_ARRANGEMENT"] = "PAYMENT_ARRANGEMENT";
|
|
86
88
|
BillingAdjustmentReason["PRICE_MATCH_ADJUSTMENT"] = "PRICE_MATCH_ADJUSTMENT";
|
|
@@ -58,7 +58,9 @@ export declare enum OutboundDialCampaignPropertyKeys {
|
|
|
58
58
|
/** How cases reach agents: SELF_SELECT (agents pick from the queue) or ROUND_ROBIN (the dialler hands new cases to agents in turn, CASES-1984). Empty means SELF_SELECT. */
|
|
59
59
|
DistributionMode = "DistributionMode",
|
|
60
60
|
/** 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. */
|
|
61
|
-
RetentionCampaign = "RetentionCampaign"
|
|
61
|
+
RetentionCampaign = "RetentionCampaign",
|
|
62
|
+
/** Round-robin: new cases handed out before each of the agent's own cases, e.g. 2 gives new, new, own (CASES-1986). Empty or 0 keeps own cases first. */
|
|
63
|
+
NewCasesPerOwnCase = "NewCasesPerOwnCase"
|
|
62
64
|
}
|
|
63
65
|
/**
|
|
64
66
|
* Properties for OutboundDialCampaign records
|
|
@@ -118,6 +120,12 @@ export interface OutboundDialCampaignProperties {
|
|
|
118
120
|
* @default
|
|
119
121
|
*/
|
|
120
122
|
RetentionCampaign: boolean;
|
|
123
|
+
/** Round-robin: new cases handed out before each of the agent's own cases, e.g. 2 gives new, new, own (CASES-1986). Empty or 0 keeps own cases first.
|
|
124
|
+
*
|
|
125
|
+
* @type {NUMBER}
|
|
126
|
+
* @default
|
|
127
|
+
*/
|
|
128
|
+
NewCasesPerOwnCase: number;
|
|
121
129
|
}
|
|
122
130
|
/**
|
|
123
131
|
* OutboundDialCampaign entity from SupportModule
|
|
@@ -60,6 +60,8 @@ var OutboundDialCampaignPropertyKeys;
|
|
|
60
60
|
OutboundDialCampaignPropertyKeys["DistributionMode"] = "DistributionMode";
|
|
61
61
|
/** 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. */
|
|
62
62
|
OutboundDialCampaignPropertyKeys["RetentionCampaign"] = "RetentionCampaign";
|
|
63
|
+
/** Round-robin: new cases handed out before each of the agent's own cases, e.g. 2 gives new, new, own (CASES-1986). Empty or 0 keeps own cases first. */
|
|
64
|
+
OutboundDialCampaignPropertyKeys["NewCasesPerOwnCase"] = "NewCasesPerOwnCase";
|
|
63
65
|
})(OutboundDialCampaignPropertyKeys = exports.OutboundDialCampaignPropertyKeys || (exports.OutboundDialCampaignPropertyKeys = {}));
|
|
64
66
|
/**
|
|
65
67
|
* OutboundDialCampaign entity from SupportModule
|
|
@@ -90,7 +90,9 @@ export declare enum OutboundDialSessionPropertyKeys {
|
|
|
90
90
|
/** New (previously unassigned) cases the dialler has handed this session on a ROUND_ROBIN campaign. The turn rule gives the next new case to the session with the fewest (CASES-1984). */
|
|
91
91
|
CasesAssigned = "CasesAssigned",
|
|
92
92
|
/** When the agent last asked for their next case. A session that has not asked for 5 minutes is left out of the round-robin turn rule until it asks again (CASES-1984). */
|
|
93
|
-
LastCaseRequestAt = "LastCaseRequestAt"
|
|
93
|
+
LastCaseRequestAt = "LastCaseRequestAt",
|
|
94
|
+
/** New cases this session has been handed since its last own case; drives the campaign's own-case ratio (CASES-1986). */
|
|
95
|
+
NewSinceOwnCase = "NewSinceOwnCase"
|
|
94
96
|
}
|
|
95
97
|
/**
|
|
96
98
|
* Properties for OutboundDialSession records
|
|
@@ -184,6 +186,12 @@ export interface OutboundDialSessionProperties {
|
|
|
184
186
|
* @default
|
|
185
187
|
*/
|
|
186
188
|
LastCaseRequestAt: string;
|
|
189
|
+
/** New cases this session has been handed since its last own case; drives the campaign's own-case ratio (CASES-1986).
|
|
190
|
+
*
|
|
191
|
+
* @type {NUMBER}
|
|
192
|
+
* @default 0
|
|
193
|
+
*/
|
|
194
|
+
NewSinceOwnCase: number;
|
|
187
195
|
}
|
|
188
196
|
/**
|
|
189
197
|
* OutboundDialSession entity from SupportModule
|
|
@@ -94,6 +94,8 @@ var OutboundDialSessionPropertyKeys;
|
|
|
94
94
|
OutboundDialSessionPropertyKeys["CasesAssigned"] = "CasesAssigned";
|
|
95
95
|
/** When the agent last asked for their next case. A session that has not asked for 5 minutes is left out of the round-robin turn rule until it asks again (CASES-1984). */
|
|
96
96
|
OutboundDialSessionPropertyKeys["LastCaseRequestAt"] = "LastCaseRequestAt";
|
|
97
|
+
/** New cases this session has been handed since its last own case; drives the campaign's own-case ratio (CASES-1986). */
|
|
98
|
+
OutboundDialSessionPropertyKeys["NewSinceOwnCase"] = "NewSinceOwnCase";
|
|
97
99
|
})(OutboundDialSessionPropertyKeys = exports.OutboundDialSessionPropertyKeys || (exports.OutboundDialSessionPropertyKeys = {}));
|
|
98
100
|
/**
|
|
99
101
|
* OutboundDialSession entity from SupportModule
|
|
@@ -1701,7 +1701,9 @@ export declare enum WorkOrderPropertyKeys {
|
|
|
1701
1701
|
/** The missing devices behind InspectionCharge, counted by kind, same shape as EquipmentChargeBreakdown: {"MESH":1}. {} when everything came back. Kinds that cost nothing (ATA) are left out. */
|
|
1702
1702
|
InspectionChargeBreakdown = "InspectionChargeBreakdown",
|
|
1703
1703
|
/** On a follow-on COLLECTION_AMCO (a second bag for a partial return): the id of the collection whose missing devices it collects. Set from that collection by CreateCollectionAmcoFollowOnWorkOrder. Null on every other work order */
|
|
1704
|
-
FollowOnOfWorkOrderId = "FollowOnOfWorkOrderId"
|
|
1704
|
+
FollowOnOfWorkOrderId = "FollowOnOfWorkOrderId",
|
|
1705
|
+
/** Set by the "Withdraw equipment charge" form. When the collection is cancelled, field-service raises a new collection, to the alternative address when one is given (BILL-1005). */
|
|
1706
|
+
SendAnotherBag = "SendAnotherBag"
|
|
1705
1707
|
}
|
|
1706
1708
|
/**
|
|
1707
1709
|
* Properties for WorkOrder records
|
|
@@ -2532,6 +2534,12 @@ export interface WorkOrderProperties {
|
|
|
2532
2534
|
* @default
|
|
2533
2535
|
*/
|
|
2534
2536
|
FollowOnOfWorkOrderId: string;
|
|
2537
|
+
/** Set by the "Withdraw equipment charge" form. When the collection is cancelled, field-service raises a new collection, to the alternative address when one is given (BILL-1005).
|
|
2538
|
+
*
|
|
2539
|
+
* @type {BOOLEAN}
|
|
2540
|
+
* @default
|
|
2541
|
+
*/
|
|
2542
|
+
SendAnotherBag: boolean;
|
|
2535
2543
|
}
|
|
2536
2544
|
/**
|
|
2537
2545
|
* Properties for COLLECTION WorkOrder records
|
|
@@ -3362,6 +3370,12 @@ export interface CollectionWorkOrderProperties {
|
|
|
3362
3370
|
* @default
|
|
3363
3371
|
*/
|
|
3364
3372
|
FollowOnOfWorkOrderId: string;
|
|
3373
|
+
/** Set by the "Withdraw equipment charge" form. When the collection is cancelled, field-service raises a new collection, to the alternative address when one is given (BILL-1005).
|
|
3374
|
+
*
|
|
3375
|
+
* @type {BOOLEAN}
|
|
3376
|
+
* @default
|
|
3377
|
+
*/
|
|
3378
|
+
SendAnotherBag: boolean;
|
|
3365
3379
|
}
|
|
3366
3380
|
/**
|
|
3367
3381
|
* Properties for COLLECTION_AMCO WorkOrder records
|
|
@@ -4192,6 +4206,12 @@ export interface CollectionAmcoWorkOrderProperties {
|
|
|
4192
4206
|
* @default
|
|
4193
4207
|
*/
|
|
4194
4208
|
FollowOnOfWorkOrderId: string;
|
|
4209
|
+
/** Set by the "Withdraw equipment charge" form. When the collection is cancelled, field-service raises a new collection, to the alternative address when one is given (BILL-1005).
|
|
4210
|
+
*
|
|
4211
|
+
* @type {BOOLEAN}
|
|
4212
|
+
* @default
|
|
4213
|
+
*/
|
|
4214
|
+
SendAnotherBag: boolean;
|
|
4195
4215
|
}
|
|
4196
4216
|
/**
|
|
4197
4217
|
* Properties for DISPATCH_AMCO WorkOrder records
|
|
@@ -5022,6 +5042,12 @@ export interface DispatchAmcoWorkOrderProperties {
|
|
|
5022
5042
|
* @default
|
|
5023
5043
|
*/
|
|
5024
5044
|
FollowOnOfWorkOrderId: string;
|
|
5045
|
+
/** Set by the "Withdraw equipment charge" form. When the collection is cancelled, field-service raises a new collection, to the alternative address when one is given (BILL-1005).
|
|
5046
|
+
*
|
|
5047
|
+
* @type {BOOLEAN}
|
|
5048
|
+
* @default
|
|
5049
|
+
*/
|
|
5050
|
+
SendAnotherBag: boolean;
|
|
5025
5051
|
}
|
|
5026
5052
|
/**
|
|
5027
5053
|
* Properties for FINANCE WorkOrder records
|
|
@@ -5852,6 +5878,12 @@ export interface FinanceWorkOrderProperties {
|
|
|
5852
5878
|
* @default
|
|
5853
5879
|
*/
|
|
5854
5880
|
FollowOnOfWorkOrderId: string;
|
|
5881
|
+
/** Set by the "Withdraw equipment charge" form. When the collection is cancelled, field-service raises a new collection, to the alternative address when one is given (BILL-1005).
|
|
5882
|
+
*
|
|
5883
|
+
* @type {BOOLEAN}
|
|
5884
|
+
* @default
|
|
5885
|
+
*/
|
|
5886
|
+
SendAnotherBag: boolean;
|
|
5855
5887
|
}
|
|
5856
5888
|
/**
|
|
5857
5889
|
* Properties for INSPECTION WorkOrder records
|
|
@@ -6682,6 +6714,12 @@ export interface InspectionWorkOrderProperties {
|
|
|
6682
6714
|
* @default
|
|
6683
6715
|
*/
|
|
6684
6716
|
FollowOnOfWorkOrderId: string;
|
|
6717
|
+
/** Set by the "Withdraw equipment charge" form. When the collection is cancelled, field-service raises a new collection, to the alternative address when one is given (BILL-1005).
|
|
6718
|
+
*
|
|
6719
|
+
* @type {BOOLEAN}
|
|
6720
|
+
* @default
|
|
6721
|
+
*/
|
|
6722
|
+
SendAnotherBag: boolean;
|
|
6685
6723
|
}
|
|
6686
6724
|
/**
|
|
6687
6725
|
* Properties for INSTALL WorkOrder records
|
|
@@ -7512,6 +7550,12 @@ export interface InstallWorkOrderProperties {
|
|
|
7512
7550
|
* @default
|
|
7513
7551
|
*/
|
|
7514
7552
|
FollowOnOfWorkOrderId: string;
|
|
7553
|
+
/** Set by the "Withdraw equipment charge" form. When the collection is cancelled, field-service raises a new collection, to the alternative address when one is given (BILL-1005).
|
|
7554
|
+
*
|
|
7555
|
+
* @type {BOOLEAN}
|
|
7556
|
+
* @default
|
|
7557
|
+
*/
|
|
7558
|
+
SendAnotherBag: boolean;
|
|
7515
7559
|
}
|
|
7516
7560
|
/**
|
|
7517
7561
|
* Properties for INSTALL_BUSINESS WorkOrder records
|
|
@@ -8342,6 +8386,12 @@ export interface InstallBusinessWorkOrderProperties {
|
|
|
8342
8386
|
* @default
|
|
8343
8387
|
*/
|
|
8344
8388
|
FollowOnOfWorkOrderId: string;
|
|
8389
|
+
/** Set by the "Withdraw equipment charge" form. When the collection is cancelled, field-service raises a new collection, to the alternative address when one is given (BILL-1005).
|
|
8390
|
+
*
|
|
8391
|
+
* @type {BOOLEAN}
|
|
8392
|
+
* @default
|
|
8393
|
+
*/
|
|
8394
|
+
SendAnotherBag: boolean;
|
|
8345
8395
|
}
|
|
8346
8396
|
/**
|
|
8347
8397
|
* Properties for INSTALL_SERVICE WorkOrder records
|
|
@@ -9172,6 +9222,12 @@ export interface InstallServiceWorkOrderProperties {
|
|
|
9172
9222
|
* @default
|
|
9173
9223
|
*/
|
|
9174
9224
|
FollowOnOfWorkOrderId: string;
|
|
9225
|
+
/** Set by the "Withdraw equipment charge" form. When the collection is cancelled, field-service raises a new collection, to the alternative address when one is given (BILL-1005).
|
|
9226
|
+
*
|
|
9227
|
+
* @type {BOOLEAN}
|
|
9228
|
+
* @default
|
|
9229
|
+
*/
|
|
9230
|
+
SendAnotherBag: boolean;
|
|
9175
9231
|
}
|
|
9176
9232
|
/**
|
|
9177
9233
|
* Properties for NETWORK_ADJUSTMENT WorkOrder records
|
|
@@ -10002,6 +10058,12 @@ export interface NetworkAdjustmentWorkOrderProperties {
|
|
|
10002
10058
|
* @default
|
|
10003
10059
|
*/
|
|
10004
10060
|
FollowOnOfWorkOrderId: string;
|
|
10061
|
+
/** Set by the "Withdraw equipment charge" form. When the collection is cancelled, field-service raises a new collection, to the alternative address when one is given (BILL-1005).
|
|
10062
|
+
*
|
|
10063
|
+
* @type {BOOLEAN}
|
|
10064
|
+
* @default
|
|
10065
|
+
*/
|
|
10066
|
+
SendAnotherBag: boolean;
|
|
10005
10067
|
}
|
|
10006
10068
|
/**
|
|
10007
10069
|
* Properties for PLANNING WorkOrder records
|
|
@@ -10832,6 +10894,12 @@ export interface PlanningWorkOrderProperties {
|
|
|
10832
10894
|
* @default
|
|
10833
10895
|
*/
|
|
10834
10896
|
FollowOnOfWorkOrderId: string;
|
|
10897
|
+
/** Set by the "Withdraw equipment charge" form. When the collection is cancelled, field-service raises a new collection, to the alternative address when one is given (BILL-1005).
|
|
10898
|
+
*
|
|
10899
|
+
* @type {BOOLEAN}
|
|
10900
|
+
* @default
|
|
10901
|
+
*/
|
|
10902
|
+
SendAnotherBag: boolean;
|
|
10835
10903
|
}
|
|
10836
10904
|
/**
|
|
10837
10905
|
* Properties for PRE_PULL WorkOrder records
|
|
@@ -11662,6 +11730,12 @@ export interface PrePullWorkOrderProperties {
|
|
|
11662
11730
|
* @default
|
|
11663
11731
|
*/
|
|
11664
11732
|
FollowOnOfWorkOrderId: string;
|
|
11733
|
+
/** Set by the "Withdraw equipment charge" form. When the collection is cancelled, field-service raises a new collection, to the alternative address when one is given (BILL-1005).
|
|
11734
|
+
*
|
|
11735
|
+
* @type {BOOLEAN}
|
|
11736
|
+
* @default
|
|
11737
|
+
*/
|
|
11738
|
+
SendAnotherBag: boolean;
|
|
11665
11739
|
}
|
|
11666
11740
|
/**
|
|
11667
11741
|
* Properties for REMEDIATION WorkOrder records
|
|
@@ -12492,6 +12566,12 @@ export interface RemediationWorkOrderProperties {
|
|
|
12492
12566
|
* @default
|
|
12493
12567
|
*/
|
|
12494
12568
|
FollowOnOfWorkOrderId: string;
|
|
12569
|
+
/** Set by the "Withdraw equipment charge" form. When the collection is cancelled, field-service raises a new collection, to the alternative address when one is given (BILL-1005).
|
|
12570
|
+
*
|
|
12571
|
+
* @type {BOOLEAN}
|
|
12572
|
+
* @default
|
|
12573
|
+
*/
|
|
12574
|
+
SendAnotherBag: boolean;
|
|
12495
12575
|
}
|
|
12496
12576
|
/**
|
|
12497
12577
|
* Properties for REPLACEMENT_AMCO WorkOrder records
|
|
@@ -13322,6 +13402,12 @@ export interface ReplacementAmcoWorkOrderProperties {
|
|
|
13322
13402
|
* @default
|
|
13323
13403
|
*/
|
|
13324
13404
|
FollowOnOfWorkOrderId: string;
|
|
13405
|
+
/** Set by the "Withdraw equipment charge" form. When the collection is cancelled, field-service raises a new collection, to the alternative address when one is given (BILL-1005).
|
|
13406
|
+
*
|
|
13407
|
+
* @type {BOOLEAN}
|
|
13408
|
+
* @default
|
|
13409
|
+
*/
|
|
13410
|
+
SendAnotherBag: boolean;
|
|
13325
13411
|
}
|
|
13326
13412
|
/**
|
|
13327
13413
|
* Properties for SERVICE WorkOrder records
|
|
@@ -14152,6 +14238,12 @@ export interface ServiceWorkOrderProperties {
|
|
|
14152
14238
|
* @default
|
|
14153
14239
|
*/
|
|
14154
14240
|
FollowOnOfWorkOrderId: string;
|
|
14241
|
+
/** Set by the "Withdraw equipment charge" form. When the collection is cancelled, field-service raises a new collection, to the alternative address when one is given (BILL-1005).
|
|
14242
|
+
*
|
|
14243
|
+
* @type {BOOLEAN}
|
|
14244
|
+
* @default
|
|
14245
|
+
*/
|
|
14246
|
+
SendAnotherBag: boolean;
|
|
14155
14247
|
}
|
|
14156
14248
|
/**
|
|
14157
14249
|
* Properties for WAYLEAVE WorkOrder records
|
|
@@ -14982,6 +15074,12 @@ export interface WayleaveWorkOrderProperties {
|
|
|
14982
15074
|
* @default
|
|
14983
15075
|
*/
|
|
14984
15076
|
FollowOnOfWorkOrderId: string;
|
|
15077
|
+
/** Set by the "Withdraw equipment charge" form. When the collection is cancelled, field-service raises a new collection, to the alternative address when one is given (BILL-1005).
|
|
15078
|
+
*
|
|
15079
|
+
* @type {BOOLEAN}
|
|
15080
|
+
* @default
|
|
15081
|
+
*/
|
|
15082
|
+
SendAnotherBag: boolean;
|
|
14985
15083
|
}
|
|
14986
15084
|
/**
|
|
14987
15085
|
* WorkOrder entity from FieldServiceModule
|
|
@@ -1702,6 +1702,8 @@ var WorkOrderPropertyKeys;
|
|
|
1702
1702
|
WorkOrderPropertyKeys["InspectionChargeBreakdown"] = "InspectionChargeBreakdown";
|
|
1703
1703
|
/** On a follow-on COLLECTION_AMCO (a second bag for a partial return): the id of the collection whose missing devices it collects. Set from that collection by CreateCollectionAmcoFollowOnWorkOrder. Null on every other work order */
|
|
1704
1704
|
WorkOrderPropertyKeys["FollowOnOfWorkOrderId"] = "FollowOnOfWorkOrderId";
|
|
1705
|
+
/** Set by the "Withdraw equipment charge" form. When the collection is cancelled, field-service raises a new collection, to the alternative address when one is given (BILL-1005). */
|
|
1706
|
+
WorkOrderPropertyKeys["SendAnotherBag"] = "SendAnotherBag";
|
|
1705
1707
|
})(WorkOrderPropertyKeys = exports.WorkOrderPropertyKeys || (exports.WorkOrderPropertyKeys = {}));
|
|
1706
1708
|
/**
|
|
1707
1709
|
* WorkOrder entity from FieldServiceModule
|
|
@@ -24,6 +24,7 @@ import { ContactProperties } from '../entities-v2/Contact';
|
|
|
24
24
|
import { CreateCaseProperties } from '../actions-v2/CreateCaseFromContactDto';
|
|
25
25
|
import { CreateContactProperties } from '../actions-v2/CreateContactDto';
|
|
26
26
|
import { CreateContactSalesAppProperties } from '../actions-v2/CreateContactSalesAppDto';
|
|
27
|
+
import { OrderBuilderCreateContactProperties } from '../actions-v2/OrderBuilderCreateContactDto';
|
|
27
28
|
import { OrderBuilderUpdateContactProperties } from '../actions-v2/OrderBuilderUpdateContactDto';
|
|
28
29
|
import { UpdateAdditionalCareProperties } from '../actions-v2/UpdateAdditionalCareDto';
|
|
29
30
|
import { UpdateContactAppPreferencesProperties } from '../actions-v2/UpdateContactAppPreferencesDto';
|
|
@@ -817,6 +818,34 @@ export declare class ContactRecord<TProps = ContactProperties> {
|
|
|
817
818
|
journeyId?: string;
|
|
818
819
|
stageKey?: string;
|
|
819
820
|
}): ActionBuilder;
|
|
821
|
+
/**
|
|
822
|
+
* OrderBuilderCreateContact
|
|
823
|
+
*
|
|
824
|
+
* Creates a new Contact record with the specified properties.
|
|
825
|
+
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
826
|
+
*
|
|
827
|
+
* @param properties - The properties for the new record
|
|
828
|
+
* @param options - Optional settings
|
|
829
|
+
* @param options.type - Override the record type
|
|
830
|
+
* @param options.journeyId - Associate with a journey
|
|
831
|
+
* @param options.stageKey - Set initial pipeline stage
|
|
832
|
+
* @returns ActionBuilder - call .execute() to create or .dryRun() for payload
|
|
833
|
+
*
|
|
834
|
+
* @example
|
|
835
|
+
* ```typescript
|
|
836
|
+
* // Create with properties
|
|
837
|
+
* const record = odinClient.contacts.new();
|
|
838
|
+
* await record.orderBuilderCreateContact({ ... }).execute();
|
|
839
|
+
*
|
|
840
|
+
* // Dry run (for debugging)
|
|
841
|
+
* const payload = record.orderBuilderCreateContact({ ... }).dryRun();
|
|
842
|
+
* ```
|
|
843
|
+
*/
|
|
844
|
+
orderBuilderCreateContact(properties: OrderBuilderCreateContactProperties, options?: {
|
|
845
|
+
type?: string;
|
|
846
|
+
journeyId?: string;
|
|
847
|
+
stageKey?: string;
|
|
848
|
+
}): ActionBuilder;
|
|
820
849
|
/**
|
|
821
850
|
* CreateCaseFromContact
|
|
822
851
|
*
|
|
@@ -1222,6 +1222,42 @@ class ContactRecord {
|
|
|
1222
1222
|
};
|
|
1223
1223
|
return new ActionBuilder(this._provider, 'CrmModule', 'Contact', payload, () => { this._pendingLinks = []; });
|
|
1224
1224
|
}
|
|
1225
|
+
/**
|
|
1226
|
+
* OrderBuilderCreateContact
|
|
1227
|
+
*
|
|
1228
|
+
* Creates a new Contact record with the specified properties.
|
|
1229
|
+
* Returns an ActionBuilder - call .execute() to create or .dryRun() for debugging.
|
|
1230
|
+
*
|
|
1231
|
+
* @param properties - The properties for the new record
|
|
1232
|
+
* @param options - Optional settings
|
|
1233
|
+
* @param options.type - Override the record type
|
|
1234
|
+
* @param options.journeyId - Associate with a journey
|
|
1235
|
+
* @param options.stageKey - Set initial pipeline stage
|
|
1236
|
+
* @returns ActionBuilder - call .execute() to create or .dryRun() for payload
|
|
1237
|
+
*
|
|
1238
|
+
* @example
|
|
1239
|
+
* ```typescript
|
|
1240
|
+
* // Create with properties
|
|
1241
|
+
* const record = odinClient.contacts.new();
|
|
1242
|
+
* await record.orderBuilderCreateContact({ ... }).execute();
|
|
1243
|
+
*
|
|
1244
|
+
* // Dry run (for debugging)
|
|
1245
|
+
* const payload = record.orderBuilderCreateContact({ ... }).dryRun();
|
|
1246
|
+
* ```
|
|
1247
|
+
*/
|
|
1248
|
+
orderBuilderCreateContact(properties, options) {
|
|
1249
|
+
var _a, _b;
|
|
1250
|
+
const payload = {
|
|
1251
|
+
entity: 'CrmModule:Contact',
|
|
1252
|
+
type: (_a = options === null || options === void 0 ? void 0 : options.type) !== null && _a !== void 0 ? _a : (_b = this._record) === null || _b === void 0 ? void 0 : _b.type,
|
|
1253
|
+
actionName: 'OrderBuilderCreateContact',
|
|
1254
|
+
properties: properties || {},
|
|
1255
|
+
associations: this._pendingLinks.length > 0 ? this._pendingLinks : undefined,
|
|
1256
|
+
journeyId: options === null || options === void 0 ? void 0 : options.journeyId,
|
|
1257
|
+
stageKey: options === null || options === void 0 ? void 0 : options.stageKey,
|
|
1258
|
+
};
|
|
1259
|
+
return new ActionBuilder(this._provider, 'CrmModule', 'Contact', payload, () => { this._pendingLinks = []; });
|
|
1260
|
+
}
|
|
1225
1261
|
// ============================================
|
|
1226
1262
|
// UPDATE ACTIONS (require existing record)
|
|
1227
1263
|
// ============================================
|