@d19n/youfibre-odin-sdk 2.0.365 → 2.0.366

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.
@@ -43,7 +43,7 @@ export declare enum CreditNoteEntityTypes {
43
43
  * - `OTS_ORDER_CANCELLATION` - OTS Order Cancellation
44
44
  * - `PAYMENT_ARRANGEMENT` - Payment Arrangement
45
45
  * - `PAYMENT_ERROR` - Payment Error
46
- * - ... and 5 more
46
+ * - ... and 6 more
47
47
  */
48
48
  export declare enum CreditNoteReason {
49
49
  BAD_DEBT_WRITE_OFF = "BAD_DEBT_WRITE_OFF",
@@ -65,6 +65,7 @@ export declare enum CreditNoteReason {
65
65
  RETENTION = "RETENTION",
66
66
  SALES_MIS_SOLD = "SALES_MISSOLD",
67
67
  SERVICE_CALL_DISCOUNT = "SERVICE_CALL_DISCOUNT",
68
+ SETTLED_BY_ETF = "SETTLED_BY_ETF",
68
69
  TARIFF_CHANGE = "TARIFF_CHANGE"
69
70
  }
70
71
  /**
@@ -43,7 +43,7 @@ var CreditNoteEntityTypes;
43
43
  * - `OTS_ORDER_CANCELLATION` - OTS Order Cancellation
44
44
  * - `PAYMENT_ARRANGEMENT` - Payment Arrangement
45
45
  * - `PAYMENT_ERROR` - Payment Error
46
- * - ... and 5 more
46
+ * - ... and 6 more
47
47
  */
48
48
  var CreditNoteReason;
49
49
  (function (CreditNoteReason) {
@@ -66,6 +66,7 @@ var CreditNoteReason;
66
66
  CreditNoteReason["RETENTION"] = "RETENTION";
67
67
  CreditNoteReason["SALES_MIS_SOLD"] = "SALES_MISSOLD";
68
68
  CreditNoteReason["SERVICE_CALL_DISCOUNT"] = "SERVICE_CALL_DISCOUNT";
69
+ CreditNoteReason["SETTLED_BY_ETF"] = "SETTLED_BY_ETF";
69
70
  CreditNoteReason["TARIFF_CHANGE"] = "TARIFF_CHANGE";
70
71
  })(CreditNoteReason = exports.CreditNoteReason || (exports.CreditNoteReason = {}));
71
72
  /**
@@ -30,7 +30,13 @@ export declare enum YfAgentLocationPropertyKeys {
30
30
  /** Display name at the time the record was written. Denormalised on purpose — the record is a snapshot of the day, not a live join to the user. */
31
31
  UserName = "UserName",
32
32
  /** "<UserId>:<YYYY-MM-DD>". UNIQUE, so with upsertOnCreate a repeated create for the same worker-day updates the existing record instead of duplicating it. Mechanism, not information — hidden from tables. */
33
- NaturalKey = "NaturalKey"
33
+ NaturalKey = "NaturalKey",
34
+ /** The worker's current status code as set from the app (e.g. AVAILABLE, LUNCH). Free text so new statuses need no schema change. */
35
+ Status = "Status",
36
+ /** When the worker set the current status (tap time, not sync time). */
37
+ StatusSince = "StatusSince",
38
+ /** When the current status lapses back to Available. Empty means it has no end. */
39
+ StatusUntil = "StatusUntil"
34
40
  }
35
41
  /**
36
42
  * Properties for YfAgentLocation records
@@ -62,6 +68,24 @@ export interface YfAgentLocationProperties {
62
68
  * @default
63
69
  */
64
70
  NaturalKey: string;
71
+ /** The worker's current status code as set from the app (e.g. AVAILABLE, LUNCH). Free text so new statuses need no schema change.
72
+ *
73
+ * @type {TEXT}
74
+ * @default
75
+ */
76
+ Status: string;
77
+ /** When the worker set the current status (tap time, not sync time).
78
+ *
79
+ * @type {DATE_TIME}
80
+ * @default
81
+ */
82
+ StatusSince: string;
83
+ /** When the current status lapses back to Available. Empty means it has no end.
84
+ *
85
+ * @type {DATE_TIME}
86
+ * @default
87
+ */
88
+ StatusUntil: string;
65
89
  }
66
90
  /**
67
91
  * YfAgentLocation entity from FieldServiceModule
@@ -36,6 +36,12 @@ var YfAgentLocationPropertyKeys;
36
36
  YfAgentLocationPropertyKeys["UserName"] = "UserName";
37
37
  /** "<UserId>:<YYYY-MM-DD>". UNIQUE, so with upsertOnCreate a repeated create for the same worker-day updates the existing record instead of duplicating it. Mechanism, not information — hidden from tables. */
38
38
  YfAgentLocationPropertyKeys["NaturalKey"] = "NaturalKey";
39
+ /** The worker's current status code as set from the app (e.g. AVAILABLE, LUNCH). Free text so new statuses need no schema change. */
40
+ YfAgentLocationPropertyKeys["Status"] = "Status";
41
+ /** When the worker set the current status (tap time, not sync time). */
42
+ YfAgentLocationPropertyKeys["StatusSince"] = "StatusSince";
43
+ /** When the current status lapses back to Available. Empty means it has no end. */
44
+ YfAgentLocationPropertyKeys["StatusUntil"] = "StatusUntil";
39
45
  })(YfAgentLocationPropertyKeys = exports.YfAgentLocationPropertyKeys || (exports.YfAgentLocationPropertyKeys = {}));
40
46
  /**
41
47
  * YfAgentLocation entity from FieldServiceModule
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d19n/youfibre-odin-sdk",
3
- "version": "2.0.365",
3
+ "version": "2.0.366",
4
4
  "description": "",
5
5
  "author": "@d19n",
6
6
  "license": "UNLICENSED",