@d19n/youfibre-odin-sdk 2.0.374 → 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.
@@ -21,12 +21,12 @@ export interface OrderBuilderCreateContactMessage extends OdinRecordCreatedEvent
21
21
  /**
22
22
  * Properties for OrderBuilderCreateContact action
23
23
  *
24
- * @property Required fields: 3
25
- * @property Optional fields: 3
24
+ * @property Required fields: 5
25
+ * @property Optional fields: 10
26
26
  */
27
27
  export interface OrderBuilderCreateContactProperties {
28
28
  /**
29
- * FirstName
29
+ * First Name
30
30
  *
31
31
  * Contacts First Name (Sales - Contact)
32
32
  * @type {TEXT}
@@ -34,7 +34,7 @@ export interface OrderBuilderCreateContactProperties {
34
34
  */
35
35
  FirstName: string;
36
36
  /**
37
- * LastName
37
+ * Last Name
38
38
  *
39
39
  * Contacts Last Name (Sales - Contact)
40
40
  * @type {TEXT}
@@ -42,7 +42,7 @@ export interface OrderBuilderCreateContactProperties {
42
42
  */
43
43
  LastName: string;
44
44
  /**
45
- * EmailAddress
45
+ * Email Address
46
46
  *
47
47
  * Contacts Email Address (Sales - Contact)
48
48
  * @type {EMAIL}
@@ -50,12 +50,21 @@ export interface OrderBuilderCreateContactProperties {
50
50
  */
51
51
  EmailAddress: string;
52
52
  /**
53
- * MarketingConsent
53
+ * Are you medically dependent on your broadband?
54
54
  *
55
- * 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.
56
- * @type {BOOLEAN}
55
+ * Is the customer medically dependant on their broadband (Sales - Contact)
56
+ * @type {ENUM}
57
+ * @required
57
58
  */
58
- MarketingConsent?: boolean | null;
59
+ MedicallyDependant: string;
60
+ /**
61
+ * Do any members of your household rely on a Telecare Alarm?
62
+ *
63
+ * Does the customer use a Telecare Alarm (Sales - Contact)
64
+ * @type {ENUM}
65
+ * @required
66
+ */
67
+ TelecareAlarm: string;
59
68
  /**
60
69
  * Phone
61
70
  *
@@ -63,6 +72,64 @@ export interface OrderBuilderCreateContactProperties {
63
72
  * @type {PHONE_NUMBER_E164_GB}
64
73
  */
65
74
  Phone?: string | null;
75
+ /**
76
+ * Referral Email
77
+ *
78
+ * referral email (Sales - Contact)
79
+ * @type {TEXT}
80
+ */
81
+ ReferralEmail?: string | null;
82
+ /**
83
+ * MarketingConsent
84
+ *
85
+ * 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.
86
+ * @type {BOOLEAN}
87
+ */
88
+ MarketingConsent?: boolean | null;
89
+ /**
90
+ * In Contract Until
91
+ *
92
+ * the date the customer is in contract with another provider (Sales - Contact)
93
+ * @type {DATE}
94
+ * @format DD/MM/YYYY
95
+ */
96
+ InContractUntil?: string | null;
97
+ /**
98
+ * Previous Provider
99
+ *
100
+ * previous/current provider (Sales - Contact)
101
+ * @type {ENUM}
102
+ */
103
+ PreviousProvider?: string | null;
104
+ /**
105
+ * Current Contract Type
106
+ *
107
+ * current contract type (Sales - Contact)
108
+ * @type {TEXT}
109
+ */
110
+ CurrentContractType?: string | null;
111
+ /**
112
+ * Additional care requirements?
113
+ *
114
+ * Select a care requirement
115
+ * @type {ENUM_MULTI_SELECT}
116
+ */
117
+ AdditionalCareReason?: string | null;
118
+ /**
119
+ * Additional care notes
120
+ *
121
+ * Any additional information
122
+ * @type {TEXT_LONG}
123
+ */
124
+ AdditionalCareNotes?: string | null;
125
+ /**
126
+ * Additional Care Consent
127
+ *
128
+ * Customer consent for recording additional care requirements (Sales - Contact)
129
+ * @type {BOOLEAN}
130
+ * @requiredWhen MedicallyDependant = ["YES"] AND TelecareAlarm = ["YES"]
131
+ */
132
+ AdditionalCareConsent?: boolean | null;
66
133
  }
67
134
  /**
68
135
  * OrderBuilderCreateContact
@@ -22,7 +22,7 @@ export interface OrderBuilderUpdateContactMessage extends OdinRecordUpdatedEvent
22
22
  * Properties for OrderBuilderUpdateContact action
23
23
  *
24
24
  * @property Required fields: 5
25
- * @property Optional fields: 11
25
+ * @property Optional fields: 10
26
26
  */
27
27
  export interface OrderBuilderUpdateContactProperties {
28
28
  /**
@@ -33,14 +33,6 @@ export interface OrderBuilderUpdateContactProperties {
33
33
  * @required
34
34
  */
35
35
  FirstName: string;
36
- /**
37
- * Email Address
38
- *
39
- * Contacts Email Address (Sales - Contact)
40
- * @type {EMAIL}
41
- * @required
42
- */
43
- EmailAddress: string;
44
36
  /**
45
37
  * Last Name
46
38
  *
@@ -49,6 +41,14 @@ export interface OrderBuilderUpdateContactProperties {
49
41
  * @required
50
42
  */
51
43
  LastName: string;
44
+ /**
45
+ * Email Address
46
+ *
47
+ * Contacts Email Address (Sales - Contact)
48
+ * @type {EMAIL}
49
+ * @required
50
+ */
51
+ EmailAddress: string;
52
52
  /**
53
53
  * Are you medically dependent on your broadband?
54
54
  *
@@ -72,13 +72,6 @@ export interface OrderBuilderUpdateContactProperties {
72
72
  * @type {PHONE_NUMBER_E164_GB}
73
73
  */
74
74
  Phone?: string | null;
75
- /**
76
- * Mobile
77
- *
78
- * Mobile phone (Sales - Contact)
79
- * @type {TEXT}
80
- */
81
- Mobile?: string | null;
82
75
  /**
83
76
  * Referral Email
84
77
  *
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * UpdateWorkOrderWithdrawEquipmentCharge Action DTO
3
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.
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. Can send the customer another collection bag. BILL-1005.
5
5
  *
6
6
  * @module FieldServiceModule
7
7
  * @entity WorkOrder
@@ -21,8 +21,8 @@ export interface UpdateWorkOrderWithdrawEquipmentChargeMessage extends OdinRecor
21
21
  /**
22
22
  * Properties for UpdateWorkOrderWithdrawEquipmentCharge action
23
23
  *
24
- * @property Required fields: 1
25
- * @property Optional fields: 0
24
+ * @property Required fields: 4
25
+ * @property Optional fields: 3
26
26
  */
27
27
  export interface UpdateWorkOrderWithdrawEquipmentChargeProperties {
28
28
  /**
@@ -33,11 +33,61 @@ export interface UpdateWorkOrderWithdrawEquipmentChargeProperties {
33
33
  * @required
34
34
  */
35
35
  StatusReason: string;
36
+ /**
37
+ * Address line 1
38
+ *
39
+ * Contact information field for WorkOrder. Used by Field Operations team for communication.
40
+ * @type {TEXT}
41
+ * @required
42
+ * @visibleWhen SendAnotherBag = ["*"] AND UseAlternativeAddressManual = ["*"]
43
+ */
44
+ AlternativeAddressLine1: string;
45
+ /**
46
+ * Town or city
47
+ *
48
+ * Contact information field for WorkOrder. Used by Field Operations team for communication.
49
+ * @type {TEXT}
50
+ * @required
51
+ * @visibleWhen SendAnotherBag = ["*"] AND UseAlternativeAddressManual = ["*"]
52
+ */
53
+ AlternativeAddressCityTown: string;
54
+ /**
55
+ * Postcode
56
+ *
57
+ * Contact information field for WorkOrder. Used by Field Operations team for communication.
58
+ * @type {TEXT}
59
+ * @required
60
+ * @visibleWhen SendAnotherBag = ["*"] AND UseAlternativeAddressManual = ["*"]
61
+ */
62
+ AlternativeAddressPostCode: string;
63
+ /**
64
+ * Send another collection bag
65
+ *
66
+ * 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).
67
+ * @type {BOOLEAN}
68
+ */
69
+ SendAnotherBag?: boolean | null;
70
+ /**
71
+ * Send it to a different address
72
+ *
73
+ * UseAlternativeAddressManual (Field Operations - WorkOrder)
74
+ * @type {BOOLEAN}
75
+ * @visibleWhen SendAnotherBag = ["*"]
76
+ */
77
+ UseAlternativeAddressManual?: boolean | null;
78
+ /**
79
+ * Address line 2
80
+ *
81
+ * Contact information field for WorkOrder. Used by Field Operations team for communication.
82
+ * @type {TEXT}
83
+ * @visibleWhen SendAnotherBag = ["*"] AND UseAlternativeAddressManual = ["*"]
84
+ */
85
+ AlternativeAddressLine2?: string | null;
36
86
  }
37
87
  /**
38
88
  * Withdraw equipment charge
39
89
  *
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.
90
+ * 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. Can send the customer another collection bag. BILL-1005.
41
91
  *
42
92
  * @actionType UPDATE - Updates an existing WorkOrder record
43
93
  * @module FieldServiceModule
@@ -2,7 +2,7 @@
2
2
  /**
3
3
  * UpdateWorkOrderWithdrawEquipmentCharge Action DTO
4
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.
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. Can send the customer another collection bag. BILL-1005.
6
6
  *
7
7
  * @module FieldServiceModule
8
8
  * @entity WorkOrder
@@ -17,7 +17,7 @@ const core_1 = require("@d19n/odin-types/dist/core");
17
17
  /**
18
18
  * Withdraw equipment charge
19
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.
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. Can send the customer another collection bag. BILL-1005.
21
21
  *
22
22
  * @actionType UPDATE - Updates an existing WorkOrder record
23
23
  * @module FieldServiceModule
@@ -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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d19n/youfibre-odin-sdk",
3
- "version": "2.0.374",
3
+ "version": "2.0.375",
4
4
  "description": "",
5
5
  "author": "@d19n",
6
6
  "license": "UNLICENSED",