@d19n/youfibre-odin-sdk 2.0.103-beta.7 → 2.0.103-beta.8

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.
@@ -23,6 +23,7 @@ export interface ReserveAppointmentArgs {
23
23
  ServiceCallReason?: string;
24
24
  WorkOrderExternalReference?: string;
25
25
  };
26
+ flow: 'FIRST_TIME_BOOKING' | 'RESCHEDULE';
26
27
  }
27
28
  export interface ListAppointmentsArgs {
28
29
  uprn: number;
@@ -63,6 +64,14 @@ export interface SyncWorkOrderToSupplierArgs {
63
64
  type: unknown;
64
65
  properties: unknown;
65
66
  };
67
+ yfServiceAppointment: {
68
+ id?: string;
69
+ properties: {
70
+ Date?: string;
71
+ TimeBlock?: string;
72
+ [extra: string]: unknown;
73
+ };
74
+ };
66
75
  }
67
76
  export interface UpdateOrderExternalRefArgs {
68
77
  oldYfId: string;
@@ -115,6 +115,7 @@ function run() {
115
115
  purpose: 'PROVIDE',
116
116
  yfOrderId: 'ORD-1',
117
117
  woProperties: {},
118
+ flow: 'FIRST_TIME_BOOKING',
118
119
  };
119
120
  yield p.reserveAppointment(args);
120
121
  assert('called once', log.length === 1);
@@ -232,6 +233,7 @@ function run() {
232
233
  yfOrderId: 'ORD-1',
233
234
  yfWorkOrderId: 'WO-1',
234
235
  yfChangeReason: { externalId: 'CR-1', entity: 'ChangeReason', type: 'CANCEL', properties: {} },
236
+ yfServiceAppointment: { properties: {} },
235
237
  };
236
238
  yield p.syncWorkOrderToSupplier(args);
237
239
  assert('called once', log.length === 1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d19n/youfibre-odin-sdk",
3
- "version": "2.0.103-beta.7",
3
+ "version": "2.0.103-beta.8",
4
4
  "description": "",
5
5
  "author": "@d19n",
6
6
  "license": "UNLICENSED",