deere-sdk 2.1.10 → 2.3.0
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/CHANGELOG.md +40 -0
- package/README.md +41 -0
- package/dist/api/clients.d.ts +2 -2
- package/dist/api/clients.d.ts.map +1 -1
- package/dist/api/clients.js.map +1 -1
- package/dist/api/connection-management.d.ts +2 -2
- package/dist/api/connection-management.d.ts.map +1 -1
- package/dist/api/connection-management.js.map +1 -1
- package/dist/api/farms.d.ts +2 -2
- package/dist/api/farms.d.ts.map +1 -1
- package/dist/api/farms.js.map +1 -1
- package/dist/api/fields.d.ts +3 -3
- package/dist/api/fields.d.ts.map +1 -1
- package/dist/api/fields.js.map +1 -1
- package/dist/api/guidance-lines.d.ts +2 -2
- package/dist/api/guidance-lines.d.ts.map +1 -1
- package/dist/api/guidance-lines.js.map +1 -1
- package/dist/api/machine-engine-hours.d.ts +2 -2
- package/dist/api/machine-engine-hours.d.ts.map +1 -1
- package/dist/api/machine-engine-hours.js.map +1 -1
- package/dist/api/machine-hours-of-operation.d.ts +2 -2
- package/dist/api/machine-hours-of-operation.d.ts.map +1 -1
- package/dist/api/machine-hours-of-operation.js.map +1 -1
- package/dist/api/map-layers.d.ts +2 -2
- package/dist/api/map-layers.d.ts.map +1 -1
- package/dist/api/map-layers.js.map +1 -1
- package/dist/api/partnerships.d.ts +3 -3
- package/dist/api/partnerships.d.ts.map +1 -1
- package/dist/api/partnerships.js.map +1 -1
- package/dist/api/products.d.ts +4 -4
- package/dist/api/products.d.ts.map +1 -1
- package/dist/api/products.js.map +1 -1
- package/dist/api/webhook.d.ts +2 -2
- package/dist/api/webhook.d.ts.map +1 -1
- package/dist/api/webhook.js.map +1 -1
- package/dist/api-servers.generated.d.ts +1 -1
- package/dist/api-servers.generated.js +1 -1
- package/dist/safe/equipment.d.ts +7 -8
- package/dist/safe/equipment.d.ts.map +1 -1
- package/dist/safe/equipment.js +7 -0
- package/dist/safe/equipment.js.map +1 -1
- package/dist/safe/field-operations.d.ts.map +1 -1
- package/dist/safe/field-operations.js +13 -4
- package/dist/safe/field-operations.js.map +1 -1
- package/dist/safe/products.d.ts +4 -5
- package/dist/safe/products.d.ts.map +1 -1
- package/dist/safe/products.js +5 -0
- package/dist/safe/products.js.map +1 -1
- package/dist/types/generated/equipment.d.ts +45 -91
- package/dist/types/generated/equipment.d.ts.map +1 -1
- package/dist/types/generated/fields.d.ts +1 -1
- package/dist/types/generated/fields.d.ts.map +1 -1
- package/dist/types/generated/index.d.ts +1 -1
- package/dist/types/generated/index.js +1 -1
- package/dist/types/generated/machine-locations.d.ts +1 -1
- package/dist/types/generated/machine-locations.d.ts.map +1 -1
- package/dist/types/generated/webhook.d.ts +3 -3
- package/dist/types/generated/webhook.d.ts.map +1 -1
- package/package.json +4 -2
package/dist/api/webhook.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Auto-generated SDK wrapper for John Deere webhook API.
|
|
5
5
|
* @generated from webhook.yaml
|
|
6
6
|
*/
|
|
7
|
-
import type { DeereClient, RequestOptions } from '../client.js';
|
|
7
|
+
import type { DeereClient, PaginatedResponse, RequestOptions } from '../client.js';
|
|
8
8
|
import type { components } from '../types/generated/webhook.js';
|
|
9
9
|
export declare class WebhookApi {
|
|
10
10
|
private readonly client;
|
|
@@ -20,7 +20,7 @@ export declare class WebhookApi {
|
|
|
20
20
|
* subscriptions.
|
|
21
21
|
* @generated from GET /eventSubscriptions
|
|
22
22
|
*/
|
|
23
|
-
list(options?: RequestOptions): Promise<unknown
|
|
23
|
+
list(options?: RequestOptions): Promise<PaginatedResponse<unknown>>;
|
|
24
24
|
/**
|
|
25
25
|
* Get all items (follows pagination automatically)
|
|
26
26
|
* @generated from GET /eventSubscriptions
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook.d.ts","sourceRoot":"","sources":["../../src/api/webhook.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KA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ANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook.js","sourceRoot":"","sources":["../../src/api/webhook.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,MAAM,OAAO,UAAU;IAMQ;IAL7B;;qCAEiC;IAChB,IAAI,GAAa,SAAS,CAAC;IAE5C,YAA6B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAG,CAAC;IAEpD;;;;;;OAMG;IACH,KAAK,CAAC,IAAI,CAAC,OAAwB;QACjC,MAAM,IAAI,GAAG,qBAAqB,CAAC;QACnC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,
|
|
1
|
+
{"version":3,"file":"webhook.js","sourceRoot":"","sources":["../../src/api/webhook.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,MAAM,OAAO,UAAU;IAMQ;IAL7B;;qCAEiC;IAChB,IAAI,GAAa,SAAS,CAAC;IAE5C,YAA6B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAG,CAAC;IAEpD;;;;;;OAMG;IACH,KAAK,CAAC,IAAI,CAAC,OAAwB;QACjC,MAAM,IAAI,GAAG,qBAAqB,CAAC;QACnC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAA6B,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;IACD;;;OAGG;IACH,KAAK,CAAC,OAAO,CAAC,OAAwB;QACpC,MAAM,IAAI,GAAG,qBAAqB,CAAC;QACnC,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAU,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IAC/D,CAAC;IAED;;;;;;;;OAQG;IACH,KAAK,CAAC,MAAM,CACV,IAA6B,EAC7B,OAAwB;QAExB,MAAM,IAAI,GAAG,qBAAqB,CAAC;QACnC,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CACrB,IAAI,CAAC,IAAI,EACT,IAAI,EACJ,IAAI,EACJ,OAAO,CACR,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,GAAG,CACP,EAAU,EACV,OAAwB;QAExB,MAAM,IAAI,GAAG,uBAAuB,EAAE,EAAE,CAAC;QACzC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CACpB,IAAI,CAAC,IAAI,EACT,IAAI,EACJ,OAAO,CACR,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CAAC,EAAU,EAAE,IAA6B,EAAE,OAAwB;QAC9E,MAAM,IAAI,GAAG,uBAAuB,EAAE,EAAE,CAAC;QACzC,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;CACF"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* API server configuration per spec — single source of truth for URL resolution.
|
|
3
3
|
*
|
|
4
4
|
* @generated by scripts/generate-api-servers.ts — do not edit manually
|
|
5
|
-
* Last generated: 2026-
|
|
5
|
+
* Last generated: 2026-05-26T15:57:02.992Z
|
|
6
6
|
*
|
|
7
7
|
* Env coverage matrix (X = supported, - = throws UnsupportedEnvironmentError):
|
|
8
8
|
*
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* API server configuration per spec — single source of truth for URL resolution.
|
|
3
3
|
*
|
|
4
4
|
* @generated by scripts/generate-api-servers.ts — do not edit manually
|
|
5
|
-
* Last generated: 2026-
|
|
5
|
+
* Last generated: 2026-05-26T15:57:02.992Z
|
|
6
6
|
*
|
|
7
7
|
* Env coverage matrix (X = supported, - = throws UnsupportedEnvironmentError):
|
|
8
8
|
*
|
package/dist/safe/equipment.d.ts
CHANGED
|
@@ -23,8 +23,7 @@
|
|
|
23
23
|
* those future patches.
|
|
24
24
|
*/
|
|
25
25
|
import type { EquipmentApi } from '../api/equipment.js';
|
|
26
|
-
import type {
|
|
27
|
-
import type { components } from '../types/generated/equipment.js';
|
|
26
|
+
import type { RequestOptions } from '../client.js';
|
|
28
27
|
type RequireEmbed<P> = P extends {
|
|
29
28
|
embed?: infer E;
|
|
30
29
|
} ? Omit<P, 'embed'> & {
|
|
@@ -58,35 +57,35 @@ export declare class SafeEquipmentApi {
|
|
|
58
57
|
* have wire traces to confirm their shape. Once field-mcp probes them, a
|
|
59
58
|
* follow-up can tighten via spec patches.
|
|
60
59
|
*/
|
|
61
|
-
getWithEmbed(params: SafeGetParams, options?: RequestOptions):
|
|
60
|
+
getWithEmbed(params: SafeGetParams, options?: RequestOptions): ReturnType<EquipmentApi['get']>;
|
|
62
61
|
/**
|
|
63
62
|
* Get a single equipment by ID, with a required `embed` parameter.
|
|
64
63
|
* Wraps `deere.equipment.getEquipment`. Embed values: `devices`,
|
|
65
64
|
* `equipment`, `pairingDetails`, `icon`, `offsets`, `capabilities`.
|
|
66
65
|
*/
|
|
67
|
-
getEquipmentWithEmbed(id: string, params: SafeGetEquipmentParams, options?: RequestOptions):
|
|
66
|
+
getEquipmentWithEmbed(id: string, params: SafeGetEquipmentParams, options?: RequestOptions): ReturnType<EquipmentApi['getEquipment']>;
|
|
68
67
|
/**
|
|
69
68
|
* List equipment models with a required `embed` parameter. Wraps
|
|
70
69
|
* `deere.equipment.listEquipmentmodels`. Embed values: `make`, `type`,
|
|
71
70
|
* `isgType`.
|
|
72
71
|
*/
|
|
73
|
-
listEquipmentmodelsWithEmbed(params: SafeListEquipmentmodelsParams, options?: RequestOptions):
|
|
72
|
+
listEquipmentmodelsWithEmbed(params: SafeListEquipmentmodelsParams, options?: RequestOptions): ReturnType<EquipmentApi['listEquipmentmodels']>;
|
|
74
73
|
/**
|
|
75
74
|
* List equipment ISG types with a required `embed` parameter. Wraps
|
|
76
75
|
* `deere.equipment.listEquipmentisgtypes`. Embed values: `equipmentModels`,
|
|
77
76
|
* `recordMetadata`.
|
|
78
77
|
*/
|
|
79
|
-
listEquipmentisgtypesWithEmbed(params: SafeListEquipmentisgtypesParams, options?: RequestOptions):
|
|
78
|
+
listEquipmentisgtypesWithEmbed(params: SafeListEquipmentisgtypesParams, options?: RequestOptions): ReturnType<EquipmentApi['listEquipmentisgtypes']>;
|
|
80
79
|
/**
|
|
81
80
|
* Get equipment ISG types by make ID, with a required `embed` parameter.
|
|
82
81
|
* Wraps `deere.equipment.getEquipmentisgtypes`.
|
|
83
82
|
*/
|
|
84
|
-
getEquipmentisgtypesWithEmbed(equipmentMakeId: string, params: SafeGetEquipmentisgtypesParams, options?: RequestOptions):
|
|
83
|
+
getEquipmentisgtypesWithEmbed(equipmentMakeId: string, params: SafeGetEquipmentisgtypesParams, options?: RequestOptions): ReturnType<EquipmentApi['getEquipmentisgtypes']>;
|
|
85
84
|
/**
|
|
86
85
|
* Get a single equipment ISG type by make ID and ISG type ID, with a
|
|
87
86
|
* required `embed` parameter. Wraps `deere.equipment.getEquipmentisgtypes2`.
|
|
88
87
|
*/
|
|
89
|
-
getEquipmentisgtypes2WithEmbed(equipmentMakeId: string, equipmentISGTypeId: string, params: SafeGetEquipmentisgtypes2Params, options?: RequestOptions):
|
|
88
|
+
getEquipmentisgtypes2WithEmbed(equipmentMakeId: string, equipmentISGTypeId: string, params: SafeGetEquipmentisgtypes2Params, options?: RequestOptions): ReturnType<EquipmentApi['getEquipmentisgtypes2']>;
|
|
90
89
|
}
|
|
91
90
|
export {};
|
|
92
91
|
//# sourceMappingURL=equipment.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"equipment.d.ts","sourceRoot":"","sources":["../../src/safe/equipment.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"equipment.d.ts","sourceRoot":"","sources":["../../src/safe/equipment.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;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ts.yaml for the contract registry that would house
|
|
23
23
|
* those future patches.
|
|
24
24
|
*/
|
|
25
|
+
// Return types derive from the raw EquipmentApi methods via `ReturnType<...>`
|
|
26
|
+
// instead of explicit `components['schemas'][...]` annotations. The facade only
|
|
27
|
+
// makes `embed` required (see RequireEmbed); the response is identical to the raw
|
|
28
|
+
// method by construction. Deriving the type keeps this file compiling when JD
|
|
29
|
+
// perturbs an equipment response upstream. Explicit annotations here previously
|
|
30
|
+
// resolved to `never` (a discriminator/`@type` enum conflict in JD's spec), so
|
|
31
|
+
// any upstream change turned into a hard build failure in the daily sync.
|
|
25
32
|
export class SafeEquipmentApi {
|
|
26
33
|
raw;
|
|
27
34
|
constructor(raw) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"equipment.js","sourceRoot":"","sources":["../../src/safe/equipment.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;
|
|
1
|
+
{"version":3,"file":"equipment.js","sourceRoot":"","sources":["../../src/safe/equipment.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAoCH,8EAA8E;AAC9E,gFAAgF;AAChF,kFAAkF;AAClF,8EAA8E;AAC9E,gFAAgF;AAChF,+EAA+E;AAC/E,0EAA0E;AAC1E,MAAM,OAAO,gBAAgB;IACE;IAA7B,YAA6B,GAAiB;QAAjB,QAAG,GAAH,GAAG,CAAc;IAAG,CAAC;IAElD;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,YAAY,CAChB,MAAqB,EACrB,OAAwB;QAExB,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACvC,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,qBAAqB,CACzB,EAAU,EACV,MAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;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B,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,cAAc,GACtB,OAAO,CAAC,iBAAiB,CAAC,8BAA8B,CAAC,CAAC;IAW7D;;;;;;;;;;OAUG;IACG,mBAAmB,CACvB,WAAW,EAAE,MAAM,EACnB,MAAM,CAAC,EAAE,aAAa,GACrB,OAAO,CAAC,gCAAgC,CAAC;CAQ7C"}
|
|
@@ -29,11 +29,20 @@
|
|
|
29
29
|
import { DeereError } from '../errors.js';
|
|
30
30
|
/** Shared contract-violation thrower. Runtime-validates that every returned
|
|
31
31
|
* operation carries the measurementTypes array the embed param is supposed
|
|
32
|
-
* to populate, and throws DeereError naming the offending op on drift.
|
|
32
|
+
* to populate, and throws DeereError naming the offending op on drift.
|
|
33
|
+
*
|
|
34
|
+
* Takes `op: unknown` rather than a constrained generic so the three callers
|
|
35
|
+
* keep compiling even if an upstream spec change degrades the raw return type
|
|
36
|
+
* to `unknown` (the facade's whole point is drift-resistance). The runtime
|
|
37
|
+
* guard proves the asserted shape: `op` must be a non-null object whose
|
|
38
|
+
* `measurementTypes` is an array. An empty array is valid (the operation
|
|
39
|
+
* exists with no recorded measurements yet); `undefined` or a non-array is a
|
|
40
|
+
* contract violation. */
|
|
33
41
|
function assertMeasurementsPresent(op, methodName) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
42
|
+
const record = (typeof op === 'object' && op !== null ? op : {});
|
|
43
|
+
if (!Array.isArray(record.measurementTypes)) {
|
|
44
|
+
throw new DeereError(`deere-sdk contract violation in ${methodName}: field operation ${String(record.id ?? '(unknown id)')} ` +
|
|
45
|
+
`(type=${String(record.fieldOperationType ?? 'unknown')}) has no measurementTypes array ` +
|
|
37
46
|
`despite embed=measurementTypes being passed. JD's wire format may have drifted from the ` +
|
|
38
47
|
`documented contract. Capture a fresh fixture and update scripts/embed-contracts.yaml if needed.`, 0, 'CONTRACT_VIOLATION');
|
|
39
48
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"field-operations.js","sourceRoot":"","sources":["../../src/safe/field-operations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAIH,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AA8C1C
|
|
1
|
+
{"version":3,"file":"field-operations.js","sourceRoot":"","sources":["../../src/safe/field-operations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAIH,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AA8C1C;;;;;;;;;;0BAU0B;AAC1B,SAAS,yBAAyB,CAChC,EAAW,EACX,UAAkB;IAElB,MAAM,MAAM,GAAG,CAAC,OAAO,EAAE,KAAK,QAAQ,IAAI,EAAE,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAI9D,CAAC;IACF,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,gBAAgB,CAAC,EAAE,CAAC;QAC5C,MAAM,IAAI,UAAU,CAClB,mCAAmC,UAAU,qBAAqB,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,cAAc,CAAC,GAAG;YACtG,SAAS,MAAM,CAAC,MAAM,CAAC,kBAAkB,IAAI,SAAS,CAAC,kCAAkC;YACzF,0FAA0F;YAC1F,iGAAiG,EACnG,CAAC,EACD,oBAAoB,CACrB,CAAC;IACJ,CAAC;AACH,CAAC;AAED,MAAM,OAAO,sBAAsB;IACJ;IAA7B,YAA6B,GAAuB;QAAvB,QAAG,GAAH,GAAG,CAAoB;IAAG,CAAC;IAExD;;;;;;;;;;;;;OAaG;IACH,KAAK,CAAC,uBAAuB,CAC3B,KAAa,EACb,OAAe,EACf,MAA0B;QAE1B,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,EAAE,OAAO,EAAE;YACpD,GAAG,MAAM;YACT,KAAK,EAAE,kBAAkB;SAC1B,CAAC,CAAC;QACH,KAAK,MAAM,EAAE,IAAI,MAAM,EAAE,CAAC;YACxB,yBAAyB,CAAC,EAAE,EAAE,yBAAyB,CAAC,CAAC;QAC3D,CAAC;QACD,OAAO,MAA0C,CAAC;IACpD,CAAC;IAED;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,oBAAoB,CACxB,KAAa,EACb,OAAe,EACf,MAAuB;QAEvB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,EAAE,OAAO,EAAE;YACjD,GAAG,MAAM;YACT,KAAK,EAAE,kBAAkB;SAC1B,CAAC,CAAC;QACH,KAAK,MAAM,EAAE,IAAI,MAAM,CAAC,MAAM,IAAI,EAAE,EAAE,CAAC;YACrC,yBAAyB,CAAC,EAAE,EAAE,sBAAsB,CAAC,CAAC;QACxD,CAAC;QACD,OAAO,MAA2D,CAAC;IACrE,CAAC;IAED;;;;;;;;;;OAUG;IACH,KAAK,CAAC,mBAAmB,CACvB,WAAmB,EACnB,MAAsB;QAEtB,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,WAAW,EAAE;YAC7C,GAAG,MAAM;YACT,KAAK,EAAE,kBAAkB;SAC1B,CAAC,CAAC;QACH,yBAAyB,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;QACzD,OAAO,MAA0C,CAAC;IACpD,CAAC;CACF"}
|
package/dist/safe/products.d.ts
CHANGED
|
@@ -16,8 +16,7 @@
|
|
|
16
16
|
* See scripts/embed-contracts.yaml for the contract registry.
|
|
17
17
|
*/
|
|
18
18
|
import type { ProductsApi } from '../api/products.js';
|
|
19
|
-
import type {
|
|
20
|
-
import type { components } from '../types/generated/products.js';
|
|
19
|
+
import type { RequestOptions } from '../client.js';
|
|
21
20
|
type RequireEmbed<P> = P extends {
|
|
22
21
|
embed?: infer E;
|
|
23
22
|
} ? Omit<P, 'embed'> & {
|
|
@@ -37,17 +36,17 @@ export declare class SafeProductsApi {
|
|
|
37
36
|
* Wraps `deere.products.list`. Embed values: `documents`,
|
|
38
37
|
* `showMergedProducts`.
|
|
39
38
|
*/
|
|
40
|
-
listWithEmbed(organizationId: string, params: SafeListParams, options?: RequestOptions):
|
|
39
|
+
listWithEmbed(organizationId: string, params: SafeListParams, options?: RequestOptions): ReturnType<ProductsApi['list']>;
|
|
41
40
|
/**
|
|
42
41
|
* List all varieties for an org (auto-paginated), with a required `embed`
|
|
43
42
|
* parameter. Wraps `deere.products.listAll`.
|
|
44
43
|
*/
|
|
45
|
-
listAllWithEmbed(organizationId: string, params: SafeListAllParams, options?: RequestOptions):
|
|
44
|
+
listAllWithEmbed(organizationId: string, params: SafeListAllParams, options?: RequestOptions): ReturnType<ProductsApi['listAll']>;
|
|
46
45
|
/**
|
|
47
46
|
* Get a single variety by ERID, with a required `embed` parameter.
|
|
48
47
|
* Wraps `deere.products.get`.
|
|
49
48
|
*/
|
|
50
|
-
getWithEmbed(organizationId: string, erid: string, params: SafeGetParams, options?: RequestOptions):
|
|
49
|
+
getWithEmbed(organizationId: string, erid: string, params: SafeGetParams, options?: RequestOptions): ReturnType<ProductsApi['get']>;
|
|
51
50
|
}
|
|
52
51
|
export {};
|
|
53
52
|
//# sourceMappingURL=products.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"products.d.ts","sourceRoot":"","sources":["../../src/safe/products.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"products.d.ts","sourceRoot":"","sources":["../../src/safe/products.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAA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,cAAc,GACvB,UAAU,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;CAGlC"}
|
package/dist/safe/products.js
CHANGED
|
@@ -15,6 +15,11 @@
|
|
|
15
15
|
*
|
|
16
16
|
* See scripts/embed-contracts.yaml for the contract registry.
|
|
17
17
|
*/
|
|
18
|
+
// Return types derive from the raw ProductsApi methods via `ReturnType<...>`
|
|
19
|
+
// rather than hard-coded `components['schemas'][...]` annotations. The methods
|
|
20
|
+
// are pass-throughs, so the return type equals the raw method's by construction;
|
|
21
|
+
// this keeps the facade compiling when JD perturbs a products response upstream.
|
|
22
|
+
// Same rationale as SafeEquipmentApi.
|
|
18
23
|
export class SafeProductsApi {
|
|
19
24
|
raw;
|
|
20
25
|
constructor(raw) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"products.js","sourceRoot":"","sources":["../../src/safe/products.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;
|
|
1
|
+
{"version":3,"file":"products.js","sourceRoot":"","sources":["../../src/safe/products.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAkBH,6EAA6E;AAC7E,+EAA+E;AAC/E,iFAAiF;AACjF,iFAAiF;AACjF,sCAAsC;AACtC,MAAM,OAAO,eAAe;IACG;IAA7B,YAA6B,GAAgB;QAAhB,QAAG,GAAH,GAAG,CAAa;IAAG,CAAC;IAEjD;;;;OAIG;IACH,KAAK,CAAC,aAAa,CACjB,cAAsB,EACtB,MAAsB,EACtB,OAAwB;QAExB,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,gBAAgB,CACpB,cAAsB,EACtB,MAAyB,EACzB,OAAwB;QAExB,OAAO,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;IAC3D,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,YAAY,CAChB,cAAsB,EACtB,IAAY,EACZ,MAAqB,EACrB,OAAwB;QAExB,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,cAAc,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;CACF"}
|
|
@@ -420,9 +420,7 @@ export interface components {
|
|
|
420
420
|
* }
|
|
421
421
|
* }
|
|
422
422
|
*/
|
|
423
|
-
'equipment-isg-type': {
|
|
424
|
-
'@type': 'equipment-isg-type';
|
|
425
|
-
} & (Omit<components['schemas']['resource'], '@type'> & {
|
|
423
|
+
'equipment-isg-type': components['schemas']['resource'] & {
|
|
426
424
|
/**
|
|
427
425
|
* @description The name of the ISG equipment type.
|
|
428
426
|
* @example Tractor
|
|
@@ -455,7 +453,7 @@ export interface components {
|
|
|
455
453
|
* @example false
|
|
456
454
|
*/
|
|
457
455
|
deprecated?: boolean;
|
|
458
|
-
}
|
|
456
|
+
};
|
|
459
457
|
/** @description Data structure for record metadata capturing information about the creation and last update of an entity. For more information on Record Metadata visit [this confluence page](https://confluence.deere.com/x/eSGLDg). NOTES * Some attributes are only visible if the API Client has the required license. * Attributes dealing with modification will be null if the entity has been created but not modified. (Some legacy data may have set the create and modify timestamp at time of creation.) */
|
|
460
458
|
RecordMetadata: {
|
|
461
459
|
/**
|
|
@@ -613,9 +611,7 @@ export interface components {
|
|
|
613
611
|
* }
|
|
614
612
|
* }
|
|
615
613
|
*/
|
|
616
|
-
'equipment-make': {
|
|
617
|
-
'@type': 'equipment-make';
|
|
618
|
-
} & (Omit<components['schemas']['resource'], '@type'> & {
|
|
614
|
+
'equipment-make': components['schemas']['resource'] & {
|
|
619
615
|
/**
|
|
620
616
|
* @description The name of the equipment make.
|
|
621
617
|
* @example JOHN DEERE
|
|
@@ -641,7 +637,7 @@ export interface components {
|
|
|
641
637
|
* @example false
|
|
642
638
|
*/
|
|
643
639
|
deprecated?: boolean;
|
|
644
|
-
}
|
|
640
|
+
};
|
|
645
641
|
/**
|
|
646
642
|
* EquipmentType
|
|
647
643
|
* @deprecated
|
|
@@ -667,9 +663,7 @@ export interface components {
|
|
|
667
663
|
* }
|
|
668
664
|
* }
|
|
669
665
|
*/
|
|
670
|
-
'equipment-type': {
|
|
671
|
-
'@type': 'equipment-type';
|
|
672
|
-
} & (Omit<components['schemas']['resource'], '@type'> & {
|
|
666
|
+
'equipment-type': components['schemas']['resource'] & {
|
|
673
667
|
/**
|
|
674
668
|
* @description The name of the equipment type.
|
|
675
669
|
* @example Two-wheel Drive Tractors - 140 Hp And Above
|
|
@@ -708,7 +702,7 @@ export interface components {
|
|
|
708
702
|
* @example false
|
|
709
703
|
*/
|
|
710
704
|
deprecated?: boolean;
|
|
711
|
-
}
|
|
705
|
+
};
|
|
712
706
|
/**
|
|
713
707
|
* EquipmentType
|
|
714
708
|
* @description Represents the type of equipment, including its name, unique identifier, category, certification status, market segment, icon, deprecation status, and metadata.
|
|
@@ -746,16 +740,14 @@ export interface components {
|
|
|
746
740
|
secondaryColor?: string;
|
|
747
741
|
};
|
|
748
742
|
/** EquipmentIcon */
|
|
749
|
-
'equipment-icon': {
|
|
750
|
-
'@type': 'equipment-icon';
|
|
751
|
-
} & (Omit<components['schemas']['resource'], '@type'> & {
|
|
743
|
+
'equipment-icon': components['schemas']['resource'] & {
|
|
752
744
|
/**
|
|
753
745
|
* @description The name of the equipment icon.
|
|
754
746
|
* @example JOHN DEERE
|
|
755
747
|
*/
|
|
756
748
|
name?: string;
|
|
757
749
|
iconStyle?: components['schemas']['icon-style'];
|
|
758
|
-
}
|
|
750
|
+
};
|
|
759
751
|
/** EquipmentModel */
|
|
760
752
|
'equipment-model-details': {
|
|
761
753
|
/** @example 8360R */
|
|
@@ -856,9 +848,7 @@ export interface components {
|
|
|
856
848
|
* }
|
|
857
849
|
* }
|
|
858
850
|
*/
|
|
859
|
-
'equipment-model': {
|
|
860
|
-
'@type': 'equipment-model';
|
|
861
|
-
} & (Omit<components['schemas']['resource'], '@type'> & {
|
|
851
|
+
'equipment-model': components['schemas']['resource'] & {
|
|
862
852
|
/**
|
|
863
853
|
* @description The name of the equipment model.
|
|
864
854
|
* @example 8360R
|
|
@@ -888,7 +878,7 @@ export interface components {
|
|
|
888
878
|
make?: components['schemas']['equipment-make'];
|
|
889
879
|
type?: components['schemas']['equipment-type'];
|
|
890
880
|
isgType?: components['schemas']['equipment-isg-type'];
|
|
891
|
-
}
|
|
881
|
+
};
|
|
892
882
|
/**
|
|
893
883
|
* EquipmentModel
|
|
894
884
|
* @description Represents the model of the equipment, including its name, unique identifier, category, certification status, make, type, ISG type, icon, deprecation status, and metadata.
|
|
@@ -930,9 +920,7 @@ export interface components {
|
|
|
930
920
|
* "certified": false
|
|
931
921
|
* }
|
|
932
922
|
*/
|
|
933
|
-
'equipment-model-no-embed': {
|
|
934
|
-
'@type': 'equipment-model-no-embed';
|
|
935
|
-
} & (Omit<components['schemas']['resource'], '@type'> & {
|
|
923
|
+
'equipment-model-no-embed': components['schemas']['resource'] & {
|
|
936
924
|
/**
|
|
937
925
|
* @description The name of the equipment model.
|
|
938
926
|
* @example 8360R
|
|
@@ -954,7 +942,7 @@ export interface components {
|
|
|
954
942
|
* @example false
|
|
955
943
|
*/
|
|
956
944
|
certified?: boolean;
|
|
957
|
-
}
|
|
945
|
+
};
|
|
958
946
|
/**
|
|
959
947
|
* Identifier of Equipment
|
|
960
948
|
* @description Identifier of the Equipment like DE-13, DE-17, ERID...
|
|
@@ -1046,9 +1034,7 @@ export interface components {
|
|
|
1046
1034
|
* Offsets
|
|
1047
1035
|
* @description Represents the offsets of a device, including its variable and defined type representation values.
|
|
1048
1036
|
*/
|
|
1049
|
-
offsets: {
|
|
1050
|
-
'@type': 'offsets';
|
|
1051
|
-
} & (Omit<components['schemas']['resource-embed'], '@type'> & {
|
|
1037
|
+
offsets: components['schemas']['resource-embed'] & {
|
|
1052
1038
|
/**
|
|
1053
1039
|
* @description Offsets
|
|
1054
1040
|
* @example Offsets
|
|
@@ -1057,7 +1043,7 @@ export interface components {
|
|
|
1057
1043
|
'@type'?: 'Offsets';
|
|
1058
1044
|
variableRepresentationValues?: components['schemas']['variableRepresentationValue'][];
|
|
1059
1045
|
definedTypeRepresentationValues?: components['schemas']['definedTypeRepresentationValue'][];
|
|
1060
|
-
}
|
|
1046
|
+
};
|
|
1061
1047
|
/**
|
|
1062
1048
|
* DeviceMake
|
|
1063
1049
|
* @description Represents the make of a device, including its name and unique identifier (ERID).
|
|
@@ -1066,9 +1052,7 @@ export interface components {
|
|
|
1066
1052
|
* "ERID": "db18bdc4-025a-11eb-97e4-0e8d658c7ba3"
|
|
1067
1053
|
* }
|
|
1068
1054
|
*/
|
|
1069
|
-
'device-make': {
|
|
1070
|
-
'@type': 'device-make';
|
|
1071
|
-
} & (Omit<components['schemas']['resource-embed'], '@type'> & {
|
|
1055
|
+
'device-make': components['schemas']['resource-embed'] & {
|
|
1072
1056
|
/**
|
|
1073
1057
|
* @description DeviceMake
|
|
1074
1058
|
* @example DeviceMake
|
|
@@ -1085,7 +1069,7 @@ export interface components {
|
|
|
1085
1069
|
* @example db18bdc4-025a-11eb-97e4-0e8d658c7ba3
|
|
1086
1070
|
*/
|
|
1087
1071
|
ERID?: string;
|
|
1088
|
-
}
|
|
1072
|
+
};
|
|
1089
1073
|
/**
|
|
1090
1074
|
* DeviceType
|
|
1091
1075
|
* @description Represents the type of a device, including its name, common name, and unique identifier (ERID).
|
|
@@ -1095,9 +1079,7 @@ export interface components {
|
|
|
1095
1079
|
* "ERID": "db18bdc4-025a-11eb-97e4-0e8d658c7ba3"
|
|
1096
1080
|
* }
|
|
1097
1081
|
*/
|
|
1098
|
-
'device-type': {
|
|
1099
|
-
'@type': 'device-type';
|
|
1100
|
-
} & (Omit<components['schemas']['resource-embed'], '@type'> & {
|
|
1082
|
+
'device-type': components['schemas']['resource-embed'] & {
|
|
1101
1083
|
/**
|
|
1102
1084
|
* @description DeviceType
|
|
1103
1085
|
* @example DeviceType
|
|
@@ -1119,7 +1101,7 @@ export interface components {
|
|
|
1119
1101
|
* @example db18bdc4-025a-11eb-97e4-0e8d658c7ba3
|
|
1120
1102
|
*/
|
|
1121
1103
|
ERID?: string;
|
|
1122
|
-
}
|
|
1104
|
+
};
|
|
1123
1105
|
/**
|
|
1124
1106
|
* DeviceModel
|
|
1125
1107
|
* @description Represents the model of a device, including its name, unique identifier (ERID), make, and type.
|
|
@@ -1137,9 +1119,7 @@ export interface components {
|
|
|
1137
1119
|
* }
|
|
1138
1120
|
* }
|
|
1139
1121
|
*/
|
|
1140
|
-
'device-model': {
|
|
1141
|
-
'@type': 'device-model';
|
|
1142
|
-
} & (Omit<components['schemas']['resource-embed'], '@type'> & {
|
|
1122
|
+
'device-model': components['schemas']['resource-embed'] & {
|
|
1143
1123
|
/**
|
|
1144
1124
|
* @description DeviceModel
|
|
1145
1125
|
* @example DeviceModel
|
|
@@ -1158,7 +1138,7 @@ export interface components {
|
|
|
1158
1138
|
ERID?: string;
|
|
1159
1139
|
make?: components['schemas']['device-make'];
|
|
1160
1140
|
type?: components['schemas']['device-type'];
|
|
1161
|
-
}
|
|
1141
|
+
};
|
|
1162
1142
|
/**
|
|
1163
1143
|
* Version
|
|
1164
1144
|
* @description Represents the version of a device or software, including its name.
|
|
@@ -1166,9 +1146,7 @@ export interface components {
|
|
|
1166
1146
|
* "name": "3.16.1171"
|
|
1167
1147
|
* }
|
|
1168
1148
|
*/
|
|
1169
|
-
version: {
|
|
1170
|
-
'@type': 'version';
|
|
1171
|
-
} & (Omit<components['schemas']['resource-embed'], '@type'> & {
|
|
1149
|
+
version: components['schemas']['resource-embed'] & {
|
|
1172
1150
|
/**
|
|
1173
1151
|
* @description Version
|
|
1174
1152
|
* @example Version
|
|
@@ -1180,25 +1158,21 @@ export interface components {
|
|
|
1180
1158
|
* @example 3.16.1171
|
|
1181
1159
|
*/
|
|
1182
1160
|
name?: string;
|
|
1183
|
-
}
|
|
1161
|
+
};
|
|
1184
1162
|
/** InabilityDetail */
|
|
1185
|
-
'inability-detail': {
|
|
1186
|
-
'@type': 'inability-detail';
|
|
1187
|
-
} & (Omit<components['schemas']['resource'], '@type'> & {
|
|
1163
|
+
'inability-detail': components['schemas']['resource'] & {
|
|
1188
1164
|
/** @example RC14.8.1 */
|
|
1189
1165
|
code?: string;
|
|
1190
1166
|
/** @example REGISTRATION */
|
|
1191
1167
|
type?: string;
|
|
1192
1168
|
/** @example SIM registration is required */
|
|
1193
1169
|
description?: string;
|
|
1194
|
-
}
|
|
1170
|
+
};
|
|
1195
1171
|
/**
|
|
1196
1172
|
* Capability
|
|
1197
1173
|
* @description List of capabilities of the equipment.
|
|
1198
1174
|
*/
|
|
1199
|
-
capability: {
|
|
1200
|
-
'@type': 'capability';
|
|
1201
|
-
} & (Omit<components['schemas']['resource-embed'], '@type'> & {
|
|
1175
|
+
capability: components['schemas']['resource-embed'] & {
|
|
1202
1176
|
/**
|
|
1203
1177
|
* @description Capability
|
|
1204
1178
|
* @example Capability
|
|
@@ -1209,14 +1183,12 @@ export interface components {
|
|
|
1209
1183
|
/** @enum {string} */
|
|
1210
1184
|
type?: 'JDLINK_CONNECTIVITY' | 'RDA' | 'WDT' | 'WIFI_CONNECTIVITY' | 'CUSTOMER_SIM_CONNECTIVITY' | 'LEGACY_CONNECTIVITY' | 'PLANNED_WORK' | 'DATA_SYNC_SETUP' | 'CH_REMOTE_ADJUST' | 'BASE_STATION' | 'MY_MACHINE' | 'RDC' | 'REMOTE_START';
|
|
1211
1185
|
inabilityDetails?: components['schemas']['inability-detail'][];
|
|
1212
|
-
}
|
|
1186
|
+
};
|
|
1213
1187
|
/**
|
|
1214
1188
|
* Equipment
|
|
1215
1189
|
* @description Represents the equipment, including its name, serial number, model year, make, type, ISG type, model, organization, telematics capability, and various other attributes.
|
|
1216
1190
|
*/
|
|
1217
|
-
equipmentForList: {
|
|
1218
|
-
'@type': 'equipmentForList';
|
|
1219
|
-
} & (Omit<components['schemas']['resource'], '@type'> & {
|
|
1191
|
+
equipmentForList: components['schemas']['resource'] & {
|
|
1220
1192
|
/**
|
|
1221
1193
|
* @description Equipment | Machine | Implement
|
|
1222
1194
|
* @example Equipment
|
|
@@ -1298,14 +1270,12 @@ export interface components {
|
|
|
1298
1270
|
* @example true
|
|
1299
1271
|
*/
|
|
1300
1272
|
isCsc?: boolean;
|
|
1301
|
-
}
|
|
1273
|
+
};
|
|
1302
1274
|
/**
|
|
1303
1275
|
* Equipment
|
|
1304
1276
|
* @description Represents the equipment, including its name, serial number, model year, make, type, ISG type, model, organization, telematics capability, and various other attributes.
|
|
1305
1277
|
*/
|
|
1306
|
-
equipment: {
|
|
1307
|
-
'@type': 'equipment';
|
|
1308
|
-
} & (Omit<components['schemas']['resource'], '@type'> & {
|
|
1278
|
+
equipment: components['schemas']['resource'] & {
|
|
1309
1279
|
/**
|
|
1310
1280
|
* @description Equipment | Machine | Implement
|
|
1311
1281
|
* @example Equipment
|
|
@@ -1390,7 +1360,7 @@ export interface components {
|
|
|
1390
1360
|
* @example true
|
|
1391
1361
|
*/
|
|
1392
1362
|
isCsc?: boolean;
|
|
1393
|
-
}
|
|
1363
|
+
};
|
|
1394
1364
|
/** Point */
|
|
1395
1365
|
point: {
|
|
1396
1366
|
/** Format: double */
|
|
@@ -1564,9 +1534,7 @@ export interface components {
|
|
|
1564
1534
|
* "ERID": "fb537c94-14f1-11ef-871b-1287bcef1111"
|
|
1565
1535
|
* }
|
|
1566
1536
|
*/
|
|
1567
|
-
device: {
|
|
1568
|
-
'@type': 'device';
|
|
1569
|
-
} & (Omit<components['schemas']['resource-embed'], '@type'> & {
|
|
1537
|
+
device: components['schemas']['resource-embed'] & {
|
|
1570
1538
|
/**
|
|
1571
1539
|
* @description Device | Display | PositionReceiver | TelematicsGateway
|
|
1572
1540
|
* @example Device
|
|
@@ -1628,11 +1596,9 @@ export interface components {
|
|
|
1628
1596
|
* @example 2021-03-10T19:19:46.420Z
|
|
1629
1597
|
*/
|
|
1630
1598
|
archivedTimestamp?: string;
|
|
1631
|
-
}
|
|
1599
|
+
};
|
|
1632
1600
|
/** Display */
|
|
1633
|
-
display: {
|
|
1634
|
-
'@type': 'display';
|
|
1635
|
-
} & (Omit<components['schemas']['device'], '@type'> & {
|
|
1601
|
+
display: components['schemas']['device'] & {
|
|
1636
1602
|
/**
|
|
1637
1603
|
* @description Display
|
|
1638
1604
|
* @example Display
|
|
@@ -1640,11 +1606,9 @@ export interface components {
|
|
|
1640
1606
|
*/
|
|
1641
1607
|
'@type'?: 'Display';
|
|
1642
1608
|
monitors?: components['schemas']['display-monitors'][];
|
|
1643
|
-
}
|
|
1609
|
+
};
|
|
1644
1610
|
/** Monitor */
|
|
1645
|
-
'display-monitors': {
|
|
1646
|
-
'@type': 'display-monitors';
|
|
1647
|
-
} & (Omit<components['schemas']['resource-embed'], '@type'> & {
|
|
1611
|
+
'display-monitors': components['schemas']['resource-embed'] & {
|
|
1648
1612
|
/**
|
|
1649
1613
|
* @description Monitor
|
|
1650
1614
|
* @example Monitor
|
|
@@ -1659,11 +1623,9 @@ export interface components {
|
|
|
1659
1623
|
resolutionWidth?: number;
|
|
1660
1624
|
/** @example 600 */
|
|
1661
1625
|
resolutionHeight?: number;
|
|
1662
|
-
}
|
|
1626
|
+
};
|
|
1663
1627
|
/** PositionReceiver */
|
|
1664
|
-
'position-receiver':
|
|
1665
|
-
'@type': 'position-receiver';
|
|
1666
|
-
} & (Omit<components['schemas']['device'], '@type'> & Record<string, never>);
|
|
1628
|
+
'position-receiver': components['schemas']['device'] & Record<string, never>;
|
|
1667
1629
|
/**
|
|
1668
1630
|
* CommunicationModule
|
|
1669
1631
|
* @description Represents a communication module, including its serial number, IMEI, IMSI, ICCID, MSISDN, EID, type, service provider, state, and country calling code.
|
|
@@ -1680,9 +1642,7 @@ export interface components {
|
|
|
1680
1642
|
* "countryCallingCode": 1
|
|
1681
1643
|
* }
|
|
1682
1644
|
*/
|
|
1683
|
-
'communication-module': {
|
|
1684
|
-
'@type': 'communication-module';
|
|
1685
|
-
} & (Omit<components['schemas']['resource-embed'], '@type'> & {
|
|
1645
|
+
'communication-module': components['schemas']['resource-embed'] & {
|
|
1686
1646
|
/**
|
|
1687
1647
|
* @description CommunicationModule
|
|
1688
1648
|
* @example CommunicationModule
|
|
@@ -1741,11 +1701,9 @@ export interface components {
|
|
|
1741
1701
|
* @example 1
|
|
1742
1702
|
*/
|
|
1743
1703
|
countryCallingCode?: string;
|
|
1744
|
-
}
|
|
1704
|
+
};
|
|
1745
1705
|
/** TelematicsGateway */
|
|
1746
|
-
'telematics-gateway': {
|
|
1747
|
-
'@type': 'telematics-gateway';
|
|
1748
|
-
} & (Omit<components['schemas']['device'], '@type'> & {
|
|
1706
|
+
'telematics-gateway': components['schemas']['device'] & {
|
|
1749
1707
|
/** @enum {string} */
|
|
1750
1708
|
pairingStatus?: 'PAIRED' | 'PENDING_PAIRING';
|
|
1751
1709
|
orderNumber?: string;
|
|
@@ -1753,19 +1711,15 @@ export interface components {
|
|
|
1753
1711
|
genericConfigurationVersion?: components['schemas']['version'];
|
|
1754
1712
|
messagesRestricted?: boolean;
|
|
1755
1713
|
communicationModules?: components['schemas']['communication-module'][];
|
|
1756
|
-
}
|
|
1714
|
+
};
|
|
1757
1715
|
/** Implement */
|
|
1758
|
-
implement: {
|
|
1759
|
-
'@type': 'implement';
|
|
1760
|
-
} & (Omit<components['schemas']['equipment'], '@type'> & {
|
|
1716
|
+
implement: components['schemas']['equipment'] & {
|
|
1761
1717
|
machine?: components['schemas']['machine'];
|
|
1762
|
-
}
|
|
1718
|
+
};
|
|
1763
1719
|
/** Machine */
|
|
1764
|
-
machine: {
|
|
1765
|
-
'@type': 'machine';
|
|
1766
|
-
} & (Omit<components['schemas']['equipment'], '@type'> & {
|
|
1720
|
+
machine: components['schemas']['equipment'] & {
|
|
1767
1721
|
implements?: components['schemas']['implement'][];
|
|
1768
|
-
}
|
|
1722
|
+
};
|
|
1769
1723
|
/** PatchDTO */
|
|
1770
1724
|
'equipment-patch': {
|
|
1771
1725
|
/** @enum {string} */
|