deere-sdk 2.3.1 → 2.4.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.
Files changed (123) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/dist/api/assets.d.ts +23 -23
  3. package/dist/api/assets.d.ts.map +1 -1
  4. package/dist/api/assets.js +35 -35
  5. package/dist/api/assets.js.map +1 -1
  6. package/dist/api/boundaries.d.ts +16 -16
  7. package/dist/api/boundaries.d.ts.map +1 -1
  8. package/dist/api/boundaries.js +19 -19
  9. package/dist/api/boundaries.js.map +1 -1
  10. package/dist/api/clients.d.ts +10 -10
  11. package/dist/api/clients.d.ts.map +1 -1
  12. package/dist/api/clients.js +13 -13
  13. package/dist/api/clients.js.map +1 -1
  14. package/dist/api/crop-types.d.ts +4 -4
  15. package/dist/api/crop-types.d.ts.map +1 -1
  16. package/dist/api/crop-types.js +6 -6
  17. package/dist/api/crop-types.js.map +1 -1
  18. package/dist/api/equipment.d.ts +76 -76
  19. package/dist/api/equipment.d.ts.map +1 -1
  20. package/dist/api/equipment.js +96 -96
  21. package/dist/api/equipment.js.map +1 -1
  22. package/dist/api/farms.d.ts +11 -11
  23. package/dist/api/farms.d.ts.map +1 -1
  24. package/dist/api/farms.js +14 -14
  25. package/dist/api/farms.js.map +1 -1
  26. package/dist/api/field-operations-api.d.ts +88 -32
  27. package/dist/api/field-operations-api.d.ts.map +1 -1
  28. package/dist/api/field-operations-api.js +111 -49
  29. package/dist/api/field-operations-api.js.map +1 -1
  30. package/dist/api/fields.d.ts +9 -9
  31. package/dist/api/fields.d.ts.map +1 -1
  32. package/dist/api/fields.js +12 -12
  33. package/dist/api/fields.js.map +1 -1
  34. package/dist/api/files.d.ts +47 -0
  35. package/dist/api/files.d.ts.map +1 -1
  36. package/dist/api/files.js +65 -0
  37. package/dist/api/files.js.map +1 -1
  38. package/dist/api/flags.d.ts +100 -34
  39. package/dist/api/flags.d.ts.map +1 -1
  40. package/dist/api/flags.js +145 -49
  41. package/dist/api/flags.js.map +1 -1
  42. package/dist/api/machine-locations.d.ts +14 -0
  43. package/dist/api/machine-locations.d.ts.map +1 -1
  44. package/dist/api/machine-locations.js +22 -0
  45. package/dist/api/machine-locations.js.map +1 -1
  46. package/dist/api/map-layers.d.ts +83 -13
  47. package/dist/api/map-layers.d.ts.map +1 -1
  48. package/dist/api/map-layers.js +121 -19
  49. package/dist/api/map-layers.js.map +1 -1
  50. package/dist/api/notifications.d.ts +6 -6
  51. package/dist/api/notifications.d.ts.map +1 -1
  52. package/dist/api/notifications.js +9 -9
  53. package/dist/api/notifications.js.map +1 -1
  54. package/dist/api/products.d.ts +296 -10
  55. package/dist/api/products.d.ts.map +1 -1
  56. package/dist/api/products.js +423 -13
  57. package/dist/api/products.js.map +1 -1
  58. package/dist/api/webhook.d.ts +13 -0
  59. package/dist/api/webhook.d.ts.map +1 -1
  60. package/dist/api/webhook.js +19 -0
  61. package/dist/api/webhook.js.map +1 -1
  62. package/dist/api-servers.generated.d.ts +0 -1
  63. package/dist/api-servers.generated.d.ts.map +1 -1
  64. package/dist/api-servers.generated.js +0 -1
  65. package/dist/api-servers.generated.js.map +1 -1
  66. package/dist/hateoas-map.d.ts.map +1 -1
  67. package/dist/hateoas-map.js +65 -0
  68. package/dist/hateoas-map.js.map +1 -1
  69. package/dist/types/generated/assets.d.ts +256 -256
  70. package/dist/types/generated/assets.d.ts.map +1 -1
  71. package/dist/types/generated/boundaries.d.ts +475 -475
  72. package/dist/types/generated/boundaries.d.ts.map +1 -1
  73. package/dist/types/generated/clients.d.ts +163 -163
  74. package/dist/types/generated/clients.d.ts.map +1 -1
  75. package/dist/types/generated/connection-management.d.ts +21 -21
  76. package/dist/types/generated/connection-management.d.ts.map +1 -1
  77. package/dist/types/generated/crop-types.d.ts +30 -30
  78. package/dist/types/generated/crop-types.d.ts.map +1 -1
  79. package/dist/types/generated/equipment-measurement.d.ts +85 -85
  80. package/dist/types/generated/equipment-measurement.d.ts.map +1 -1
  81. package/dist/types/generated/equipment.d.ts +1202 -1202
  82. package/dist/types/generated/equipment.d.ts.map +1 -1
  83. package/dist/types/generated/farms.d.ts +122 -122
  84. package/dist/types/generated/farms.d.ts.map +1 -1
  85. package/dist/types/generated/field-operations-api.d.ts +1103 -846
  86. package/dist/types/generated/field-operations-api.d.ts.map +1 -1
  87. package/dist/types/generated/fields.d.ts +357 -357
  88. package/dist/types/generated/fields.d.ts.map +1 -1
  89. package/dist/types/generated/files.d.ts +435 -113
  90. package/dist/types/generated/files.d.ts.map +1 -1
  91. package/dist/types/generated/flags.d.ts +779 -77
  92. package/dist/types/generated/flags.d.ts.map +1 -1
  93. package/dist/types/generated/guidance-lines.d.ts +41 -41
  94. package/dist/types/generated/guidance-lines.d.ts.map +1 -1
  95. package/dist/types/generated/harvest-id.d.ts +137 -137
  96. package/dist/types/generated/harvest-id.d.ts.map +1 -1
  97. package/dist/types/generated/index.d.ts +1 -1
  98. package/dist/types/generated/index.js +1 -1
  99. package/dist/types/generated/machine-alerts.d.ts +114 -114
  100. package/dist/types/generated/machine-alerts.d.ts.map +1 -1
  101. package/dist/types/generated/machine-device-state-reports.d.ts +12 -12
  102. package/dist/types/generated/machine-device-state-reports.d.ts.map +1 -1
  103. package/dist/types/generated/machine-engine-hours.d.ts +19 -19
  104. package/dist/types/generated/machine-engine-hours.d.ts.map +1 -1
  105. package/dist/types/generated/machine-hours-of-operation.d.ts +20 -20
  106. package/dist/types/generated/machine-hours-of-operation.d.ts.map +1 -1
  107. package/dist/types/generated/machine-locations.d.ts +247 -1
  108. package/dist/types/generated/machine-locations.d.ts.map +1 -1
  109. package/dist/types/generated/map-layers.d.ts +957 -293
  110. package/dist/types/generated/map-layers.d.ts.map +1 -1
  111. package/dist/types/generated/notifications.d.ts +126 -126
  112. package/dist/types/generated/notifications.d.ts.map +1 -1
  113. package/dist/types/generated/operators.d.ts +21 -21
  114. package/dist/types/generated/operators.d.ts.map +1 -1
  115. package/dist/types/generated/organizations.d.ts +33 -33
  116. package/dist/types/generated/organizations.d.ts.map +1 -1
  117. package/dist/types/generated/partnerships.d.ts +61 -61
  118. package/dist/types/generated/partnerships.d.ts.map +1 -1
  119. package/dist/types/generated/products.d.ts +5162 -456
  120. package/dist/types/generated/products.d.ts.map +1 -1
  121. package/dist/types/generated/webhook.d.ts +299 -137
  122. package/dist/types/generated/webhook.d.ts.map +1 -1
  123. package/package.json +2 -1
@@ -13,38 +13,6 @@ export declare class FieldOperationsApi {
13
13
  * are caught at compile time. */
14
14
  private readonly spec;
15
15
  constructor(client: DeereClient);
16
- /**
17
- * List Field Operations
18
- * @description This resource returns logical data structures representing the
19
- * agronomic operations performed in a field. Supported field operation types
20
- * include Seeding, Application, and Harvest. A single field operation may
21
- * potentially span consecutive days depending on the type of operation. Each
22
- * field operation may have one or more measurements, listed as links from the
23
- * field operation itself. Each field operation will include links to:
24
- * organization: The organization which owns this data. field: The field in
25
- * which this operation was performed. self: The field operation.
26
- * @generated from GET /organizations/{orgId}/fields/{fieldId}/fieldOperations
27
- */
28
- list(orgId: string, fieldId: string, params?: {
29
- cropSeason?: string;
30
- fieldOperationType?: string;
31
- startDate?: string;
32
- endDate?: string;
33
- embed?: 'measurementTypes';
34
- workPlanIds?: unknown;
35
- }, options?: RequestOptions): Promise<PaginatedResponse<components['schemas']['FieldOperation']>>;
36
- /**
37
- * Get all items (follows pagination automatically)
38
- * @generated from GET /organizations/{orgId}/fields/{fieldId}/fieldOperations
39
- */
40
- listAll(orgId: string, fieldId: string, params?: {
41
- cropSeason?: string;
42
- fieldOperationType?: string;
43
- startDate?: string;
44
- endDate?: string;
45
- embed?: 'measurementTypes';
46
- workPlanIds?: unknown;
47
- }, options?: RequestOptions): Promise<components['schemas']['FieldOperation'][]>;
48
16
  /**
49
17
  * View a Field Operation
50
18
  * @description View a single field operation. The response will include links
@@ -55,6 +23,62 @@ export declare class FieldOperationsApi {
55
23
  get(operationId: string, params?: {
56
24
  embed?: 'measurementTypes';
57
25
  }, options?: RequestOptions): Promise<components['schemas']['FieldOperationId']>;
26
+ /**
27
+ * Field Operation Measurements
28
+ * @description Field Operations include a variety of measurements collected
29
+ * when the operation is performed in the field. This endpoint returns an
30
+ * array of measurement types available for a given field operation. Two
31
+ * categories of measurements are available today: Target: Target measurements
32
+ * refer to what the machine or implement attempted to perform in the field.
33
+ * Result: Result measurements refer to what the machine or implement actually
34
+ * accomplished in the field. For example, the SeedingRateTarget measurement
35
+ * describes the rate at which the equipment attempted to plant seeds, while
36
+ * the SeedingRateResult measurement describes the rate at which seeds were
37
+ * actually planted by the equipment. Target measurements may be consistent
38
+ * throughout the entire operation (the operator may have applied a single
39
+ * rate across an entire field) but result measurements will vary during the
40
+ * operation as they account for machine error, operator error, and
41
+ * environmental factors. The difference in rate and location are easily
42
+ * visible in the associated map image. Note: The values included in the
43
+ * responses will depend on their availability as well as the field operation
44
+ * type (Seeding, Application Tank Mix, Application Single Product, Harvest
45
+ * Yield Contour, or Harvest Yield Result). Please refer . "carting"
46
+ * operations as well as construction operations "constructionmilling",
47
+ * "constructionpaving", "constructioncompacting", "constructioncrushing",
48
+ * "constructionstabilizingrecycling" are not supported at this time.
49
+ * @generated from GET /fieldOperations/{operationId}/measurementTypes
50
+ */
51
+ listMeasurementTypes(operationId: string, options?: RequestOptions): Promise<PaginatedResponse<unknown>>;
52
+ /**
53
+ * Field Operation Measurement
54
+ * @description Field Operations include a variety of measurements collected
55
+ * when the operation is performed in the field. This endpoint returns an
56
+ * array of measurement types available for a given field operation. Two
57
+ * categories of measurements are available today: Target: Target measurements
58
+ * refer to what the machine or implement attempted to perform in the field.
59
+ * Result: Result measurements refer to what the machine or implement actually
60
+ * accomplished in the field. For example, the SeedingRateTarget measurement
61
+ * describes the rate at which the equipment attempted to plant seeds, while
62
+ * the SeedingRateResult measurement describes the rate at which seeds were
63
+ * actually planted by the equipment. Target measurements may be consistent
64
+ * throughout the entire operation (the operator may have applied a single
65
+ * rate across an entire field) but result measurements will vary during the
66
+ * operation as they account for machine error, operator error, and
67
+ * environmental factors. The difference in rate and location are easily
68
+ * visible in the associated map image. Note: The values included in the
69
+ * responses will depend on their availability as well as the field operation
70
+ * type (Seeding, Application Tank Mix, Application Single Product, Harvest
71
+ * Yield Contour, or Harvest Yield Result). To view the different responses
72
+ * for each field operation type, view the documentation above. Please refer
73
+ * Note: This API has two possible accept headers. One will give a response
74
+ * with totals, and the other will give a response with a Base64 encoded
75
+ * image. For the image layer, A map image is available for each measurement
76
+ * offering a visual depiction of the data. Argonomic data points are grouped
77
+ * either by label (such as variety name) or numerical range, and this
78
+ * information provided in the JSON response as a map legend.
79
+ * @generated from GET /fieldOperations/{operationId}/measurementTypes/{measurementType}
80
+ */
81
+ getMeasurementTypes(operationId: string, measurementType: string, options?: RequestOptions): Promise<components['schemas']['FieldOperationMeasurementType']>;
58
82
  /**
59
83
  * Asynchronous Shapefile Download
60
84
  * @description An ESRI Shapefile is available for each Field Operation.
@@ -82,6 +106,38 @@ export declare class FieldOperationsApi {
82
106
  shapeType?: 'Point' | 'Polygon';
83
107
  resolution?: 'EachSection' | 'EachSensor' | 'OneHertz';
84
108
  }, options?: RequestOptions): Promise<unknown>;
109
+ /**
110
+ * List Field Operations
111
+ * @description This resource returns logical data structures representing the
112
+ * agronomic operations performed in a field. Supported field operation types
113
+ * include Seeding, Application, and Harvest. A single field operation may
114
+ * potentially span consecutive days depending on the type of operation. Each
115
+ * field operation may have one or more measurements, listed as links from the
116
+ * field operation itself. Each field operation will include links to:
117
+ * organization: The organization which owns this data. field: The field in
118
+ * which this operation was performed. self: The field operation.
119
+ * @generated from GET /organizations/{orgId}/fields/{fieldId}/fieldOperations
120
+ */
121
+ list(orgId: string, fieldId: string, params?: {
122
+ cropSeason?: string;
123
+ fieldOperationType?: string;
124
+ startDate?: string;
125
+ endDate?: string;
126
+ embed?: 'measurementTypes';
127
+ workPlanIds?: unknown;
128
+ }, options?: RequestOptions): Promise<PaginatedResponse<components['schemas']['FieldOperation']>>;
129
+ /**
130
+ * Get all items (follows pagination automatically)
131
+ * @generated from GET /organizations/{orgId}/fields/{fieldId}/fieldOperations
132
+ */
133
+ listAll(orgId: string, fieldId: string, params?: {
134
+ cropSeason?: string;
135
+ fieldOperationType?: string;
136
+ startDate?: string;
137
+ endDate?: string;
138
+ embed?: 'measurementTypes';
139
+ workPlanIds?: unknown;
140
+ }, options?: RequestOptions): Promise<components['schemas']['FieldOperation'][]>;
85
141
  }
86
142
  export type { components as FieldOperationsApiTypes } from '../types/generated/field-operations-api.js';
87
143
  //# sourceMappingURL=field-operations-api.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"field-operations-api.d.ts","sourceRoot":"","sources":["../../src/api/field-operations-api.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4CAA4C,CAAC;AAE7E,qBAAa,kBAAkB;IAMjB,OAAO,CAAC,QAAQ,CAAC,MAAM;IALnC;;qCAEiC;IACjC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAoC;gBAE5B,MAAM,EAAE,WAAW;IAEhD;;;;;;;;;;;OAWG;IACG,IAAI,CACR,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE;QACP,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,kBAAkB,CAAC,EAAE,MAAM,CAAC;QAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,KAAK,CAAC,EAAE,kBAAkB,CAAC;QAC3B,WAAW,CAAC,EAAE,OAAO,CAAC;KACvB,EACD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,iBAAiB,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC;IAiBtE;;;OAGG;IACG,OAAO,CACX,KAAK,EAA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AM,CAAC;QACnB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,KAAK,CAAC,EAAE,kBAAkB,CAAC;QAC3B,WAAW,CAAC,EAAE,OAAO,CAAC;KACvB,EACD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,iBAAiB,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC;IAiBtE;;;OAGG;IACG,OAAO,CACX,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE;QACP,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,kBAAkB,CAAC,EAAE,MAAM,CAAC;QAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,KAAK,CAAC,EAAE,kBAAkB,CAAC;QAC3B,WAAW,CAAC,EAAE,OAAO,CAAC;KACvB,EACD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,gBAAgB,CAAC,EAAE,CAAC;CAatD;AAGD,YAAY,EAAE,UAAU,IAAI,uBAAuB,EAAE,MAAM,4CAA4C,CAAC"}
@@ -13,6 +13,117 @@ export class FieldOperationsApi {
13
13
  constructor(client) {
14
14
  this.client = client;
15
15
  }
16
+ /**
17
+ * View a Field Operation
18
+ * @description View a single field operation. The response will include links
19
+ * to: organization: The organization which owns this data. field: The field
20
+ * in which this operation was performed. self: The field operation.
21
+ * @generated from GET /fieldOperations/{operationId}
22
+ */
23
+ async get(operationId, params, options) {
24
+ const query = new URLSearchParams();
25
+ if (params?.embed !== undefined)
26
+ query.set('embed', String(params.embed));
27
+ const queryString = query.toString();
28
+ const path = `/fieldOperations/${operationId}${queryString ? `?${queryString}` : ''}`;
29
+ return this.client.get(this.spec, path, options);
30
+ }
31
+ /**
32
+ * Field Operation Measurements
33
+ * @description Field Operations include a variety of measurements collected
34
+ * when the operation is performed in the field. This endpoint returns an
35
+ * array of measurement types available for a given field operation. Two
36
+ * categories of measurements are available today: Target: Target measurements
37
+ * refer to what the machine or implement attempted to perform in the field.
38
+ * Result: Result measurements refer to what the machine or implement actually
39
+ * accomplished in the field. For example, the SeedingRateTarget measurement
40
+ * describes the rate at which the equipment attempted to plant seeds, while
41
+ * the SeedingRateResult measurement describes the rate at which seeds were
42
+ * actually planted by the equipment. Target measurements may be consistent
43
+ * throughout the entire operation (the operator may have applied a single
44
+ * rate across an entire field) but result measurements will vary during the
45
+ * operation as they account for machine error, operator error, and
46
+ * environmental factors. The difference in rate and location are easily
47
+ * visible in the associated map image. Note: The values included in the
48
+ * responses will depend on their availability as well as the field operation
49
+ * type (Seeding, Application Tank Mix, Application Single Product, Harvest
50
+ * Yield Contour, or Harvest Yield Result). Please refer . "carting"
51
+ * operations as well as construction operations "constructionmilling",
52
+ * "constructionpaving", "constructioncompacting", "constructioncrushing",
53
+ * "constructionstabilizingrecycling" are not supported at this time.
54
+ * @generated from GET /fieldOperations/{operationId}/measurementTypes
55
+ */
56
+ async listMeasurementTypes(operationId, options) {
57
+ const path = `/fieldOperations/${operationId}/measurementTypes`;
58
+ return this.client.get(this.spec, path, options);
59
+ }
60
+ /**
61
+ * Field Operation Measurement
62
+ * @description Field Operations include a variety of measurements collected
63
+ * when the operation is performed in the field. This endpoint returns an
64
+ * array of measurement types available for a given field operation. Two
65
+ * categories of measurements are available today: Target: Target measurements
66
+ * refer to what the machine or implement attempted to perform in the field.
67
+ * Result: Result measurements refer to what the machine or implement actually
68
+ * accomplished in the field. For example, the SeedingRateTarget measurement
69
+ * describes the rate at which the equipment attempted to plant seeds, while
70
+ * the SeedingRateResult measurement describes the rate at which seeds were
71
+ * actually planted by the equipment. Target measurements may be consistent
72
+ * throughout the entire operation (the operator may have applied a single
73
+ * rate across an entire field) but result measurements will vary during the
74
+ * operation as they account for machine error, operator error, and
75
+ * environmental factors. The difference in rate and location are easily
76
+ * visible in the associated map image. Note: The values included in the
77
+ * responses will depend on their availability as well as the field operation
78
+ * type (Seeding, Application Tank Mix, Application Single Product, Harvest
79
+ * Yield Contour, or Harvest Yield Result). To view the different responses
80
+ * for each field operation type, view the documentation above. Please refer
81
+ * Note: This API has two possible accept headers. One will give a response
82
+ * with totals, and the other will give a response with a Base64 encoded
83
+ * image. For the image layer, A map image is available for each measurement
84
+ * offering a visual depiction of the data. Argonomic data points are grouped
85
+ * either by label (such as variety name) or numerical range, and this
86
+ * information provided in the JSON response as a map legend.
87
+ * @generated from GET /fieldOperations/{operationId}/measurementTypes/{measurementType}
88
+ */
89
+ async getMeasurementTypes(operationId, measurementType, options) {
90
+ const path = `/fieldOperations/${operationId}/measurementTypes/${measurementType}`;
91
+ return this.client.get(this.spec, path, options);
92
+ }
93
+ /**
94
+ * Asynchronous Shapefile Download
95
+ * @description An ESRI Shapefile is available for each Field Operation.
96
+ * Please see the for details on the shapefile format and how to consume it.
97
+ * The expected response codes are: 202 Accepted – The request was received
98
+ * and is being processed. Call back later to check for completion. This API
99
+ * does not currently support webhooks. To check for completion, repeat the
100
+ * same API call until you get an HTTP 307. Processing may take up to 30
101
+ * minutes, depending on the size of data. Applications should poll the API
102
+ * using a backoff loop. Polling intervals should start at 5 seconds and
103
+ * double with each attempt: secondsToWait = 5 * 2 ^ (numberOfAttempts - 1)
104
+ * 307 Temporary Redirect – The shapefile is ready to download. This response
105
+ * contains a location header. The location is a pre-signed URL that is valid
106
+ * for no less than one hour. To download the file, perform a GET request to
107
+ * the URL in the location header. Do not apply OAuth signing or other
108
+ * authorization to this request - it will cause the call to fail. 406 Not
109
+ * Acceptable - A shapefile cannot be generated. Note the initial call for a
110
+ * shapefile may receive either a 202 or a 307 response, depending upon
111
+ * whether an up-to-date file already exists for the specified field
112
+ * operation. For a sample integration, see our .
113
+ * @generated from GET /fieldOps/{operationId}
114
+ */
115
+ async getFieldops(operationId, params, options) {
116
+ const query = new URLSearchParams();
117
+ if (params?.splitShapeFile !== undefined)
118
+ query.set('splitShapeFile', String(params.splitShapeFile));
119
+ if (params?.shapeType !== undefined)
120
+ query.set('shapeType', String(params.shapeType));
121
+ if (params?.resolution !== undefined)
122
+ query.set('resolution', String(params.resolution));
123
+ const queryString = query.toString();
124
+ const path = `/fieldOps/${operationId}${queryString ? `?${queryString}` : ''}`;
125
+ return this.client.get(this.spec, path, options);
126
+ }
16
127
  /**
17
128
  * List Field Operations
18
129
  * @description This resource returns logical data structures representing the
@@ -65,54 +176,5 @@ export class FieldOperationsApi {
65
176
  const path = `/organizations/${orgId}/fields/${fieldId}/fieldOperations${queryString ? `?${queryString}` : ''}`;
66
177
  return this.client.getAll(this.spec, path, options);
67
178
  }
68
- /**
69
- * View a Field Operation
70
- * @description View a single field operation. The response will include links
71
- * to: organization: The organization which owns this data. field: The field
72
- * in which this operation was performed. self: The field operation.
73
- * @generated from GET /fieldOperations/{operationId}
74
- */
75
- async get(operationId, params, options) {
76
- const query = new URLSearchParams();
77
- if (params?.embed !== undefined)
78
- query.set('embed', String(params.embed));
79
- const queryString = query.toString();
80
- const path = `/fieldOperations/${operationId}${queryString ? `?${queryString}` : ''}`;
81
- return this.client.get(this.spec, path, options);
82
- }
83
- /**
84
- * Asynchronous Shapefile Download
85
- * @description An ESRI Shapefile is available for each Field Operation.
86
- * Please see the for details on the shapefile format and how to consume it.
87
- * The expected response codes are: 202 Accepted – The request was received
88
- * and is being processed. Call back later to check for completion. This API
89
- * does not currently support webhooks. To check for completion, repeat the
90
- * same API call until you get an HTTP 307. Processing may take up to 30
91
- * minutes, depending on the size of data. Applications should poll the API
92
- * using a backoff loop. Polling intervals should start at 5 seconds and
93
- * double with each attempt: secondsToWait = 5 * 2 ^ (numberOfAttempts - 1)
94
- * 307 Temporary Redirect – The shapefile is ready to download. This response
95
- * contains a location header. The location is a pre-signed URL that is valid
96
- * for no less than one hour. To download the file, perform a GET request to
97
- * the URL in the location header. Do not apply OAuth signing or other
98
- * authorization to this request - it will cause the call to fail. 406 Not
99
- * Acceptable - A shapefile cannot be generated. Note the initial call for a
100
- * shapefile may receive either a 202 or a 307 response, depending upon
101
- * whether an up-to-date file already exists for the specified field
102
- * operation. For a sample integration, see our .
103
- * @generated from GET /fieldOps/{operationId}
104
- */
105
- async getFieldops(operationId, params, options) {
106
- const query = new URLSearchParams();
107
- if (params?.splitShapeFile !== undefined)
108
- query.set('splitShapeFile', String(params.splitShapeFile));
109
- if (params?.shapeType !== undefined)
110
- query.set('shapeType', String(params.shapeType));
111
- if (params?.resolution !== undefined)
112
- query.set('resolution', String(params.resolution));
113
- const queryString = query.toString();
114
- const path = `/fieldOps/${operationId}${queryString ? `?${queryString}` : ''}`;
115
- return this.client.get(this.spec, path, options);
116
- }
117
179
  }
118
180
  //# sourceMappingURL=field-operations-api.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"field-operations-api.js","sourceRoot":"","sources":["../../src/api/field-operations-api.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,MAAM,OAAO,kBAAkB;IAMA;IAL7B;;qCAEiC;IAChB,IAAI,GAAa,sBAAsB,CAAC;IAEzD,YAA6B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAG,CAAC;IAEpD;;;;;;;;;;;OAWG;IACH,KAAK,CAAC,IAAI,CACR,KAAa,EACb,OAAe,EACf,MAOC,EACD,OAAwB;QAExB,MAAM,KAAK,GAAG,IAAI,eAAe,EAAE,CAAC;QACpC,IAAI,MAAM,EAAE,UAAU,KAAK,SAAS;YAAE,KAAK,CAAC,GAAG,CAAC,YAAY,EAAE,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC;QACzF,IAAI,MAAM,EAAE,kBAAkB,KAAK,SAAS;YAC1C,KAAK,CAAC,GAAG,CAAC,oBAAoB,EAAE,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC,CAAC,CAAC;QACrE,IAAI,MAAM,EAAE,SAAS,KAAK,SAAS;YAAE,KAAK,CAAC,GAAG,CAAC,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,SA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AG,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;QAChF,IAAI,MAAM,EAAE,KAAK,KAAK,SAAS;YAAE,KAAK,CAAC,GAAG,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QAC1E,IAAI,MAAM,EAAE,WAAW,KAAK,SAAS;YAAE,KAAK,CAAC,GAAG,CAAC,aAAa,EAAE,MAAM,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;QAC5F,MAAM,WAAW,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC;QACrC,MAAM,IAAI,GAAG,kBAAkB,KAAK,WAAW,OAAO,mBAAmB,WAAW,CAAC,CAAC,CAAC,IAAI,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;QAChH,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAA0C,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IAC/F,CAAC;CACF"}
@@ -13,6 +13,15 @@ export declare class FieldsApi {
13
13
  * are caught at compile time. */
14
14
  private readonly spec;
15
15
  constructor(client: DeereClient);
16
+ /**
17
+ * View Clients that Own a Field
18
+ * @description View details about the client that owns the field. The
19
+ * response will link to the following resources: fields: View the field the
20
+ * client belongs to. farms: View the farms belonging to the client.
21
+ * owningOrganization: View the org that owns the field.
22
+ * @generated from GET /organizations/{orgID}/fields/{id}/clients
23
+ */
24
+ listClients(orgID: string, id: string, options?: RequestOptions): Promise<PaginatedResponse<components['schemas']['FieldResponse']>>;
16
25
  /**
17
26
  * Retrieve all of the Fields for an Organization
18
27
  * @generated from GET /organizations/{orgId}/fields
@@ -80,15 +89,6 @@ export declare class FieldsApi {
80
89
  listFarms(orgId: string, fieldId: string, params?: {
81
90
  embed?: string[];
82
91
  }, options?: RequestOptions): Promise<PaginatedResponse<components['schemas']['GetFarm']>>;
83
- /**
84
- * View Clients that Own a Field
85
- * @description View details about the client that owns the field. The
86
- * response will link to the following resources: fields: View the field the
87
- * client belongs to. farms: View the farms belonging to the client.
88
- * owningOrganization: View the org that owns the field.
89
- * @generated from GET /organizations/{orgID}/fields/{id}/clients
90
- */
91
- listClients(orgID: string, id: string, options?: RequestOptions): Promise<PaginatedResponse<components['schemas']['FieldResponse']>>;
92
92
  }
93
93
  export type { components as FieldsTypes } from '../types/generated/fields.js';
94
94
  //# sourceMappingURL=fields.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"fields.d.ts","sourceRoot":"","sources":["../../src/api/fields.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE/D,qBAAa,SAAS;IAMR,OAAO,CAAC,QAAQ,CAAC,MAAM;IALnC;;qCAEiC;IACjC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAsB;gBAEd,MAAM,EAAE,WAAW;IAEhD;;;OAGG;IACG,IAAI,CACR,KAAK,EAAE,MAAM,EACb,MAAM,CAAC,EAAE;QACP,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;QACjB,YAAY,CAAC,EAAE,WAAW,GAAG,UAAU,GAAG,KAAK,CAAC;KACjD,EACD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,iBAAiB,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC;IAerE;;;OAGG;IACG,OAAO,CACX,KAAK,EAAE,MAAM,EACb,MAAM,CAAC,EAAE;QACP,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,SAAS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;QAAE,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;KAAE,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,iBAAiB,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;CAWhE;AAGD,YAAY,EAAE,UAAU,IAAI,WAAW,EAAE,MAAM,8BAA8B,CAAC"}
@@ -13,6 +13,18 @@ export class FieldsApi {
13
13
  constructor(client) {
14
14
  this.client = client;
15
15
  }
16
+ /**
17
+ * View Clients that Own a Field
18
+ * @description View details about the client that owns the field. The
19
+ * response will link to the following resources: fields: View the field the
20
+ * client belongs to. farms: View the farms belonging to the client.
21
+ * owningOrganization: View the org that owns the field.
22
+ * @generated from GET /organizations/{orgID}/fields/{id}/clients
23
+ */
24
+ async listClients(orgID, id, options) {
25
+ const path = `/organizations/${orgID}/fields/${id}/clients`;
26
+ return this.client.get(this.spec, path, options);
27
+ }
16
28
  /**
17
29
  * Retrieve all of the Fields for an Organization
18
30
  * @generated from GET /organizations/{orgId}/fields
@@ -117,17 +129,5 @@ export class FieldsApi {
117
129
  const path = `/organizations/${orgId}/fields/${fieldId}/farms${queryString ? `?${queryString}` : ''}`;
118
130
  return this.client.get(this.spec, path, options);
119
131
  }
120
- /**
121
- * View Clients that Own a Field
122
- * @description View details about the client that owns the field. The
123
- * response will link to the following resources: fields: View the field the
124
- * client belongs to. farms: View the farms belonging to the client.
125
- * owningOrganization: View the org that owns the field.
126
- * @generated from GET /organizations/{orgID}/fields/{id}/clients
127
- */
128
- async listClients(orgID, id, options) {
129
- const path = `/organizations/${orgID}/fields/${id}/clients`;
130
- return this.client.get(this.spec, path, options);
131
- }
132
132
  }
133
133
  //# sourceMappingURL=fields.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"fields.js","sourceRoot":"","sources":["../../src/api/fields.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,MAAM,OAAO,SAAS;IAMS;IAL7B;;qCAEiC;IAChB,IAA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AC,GAAG,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QAC1E,MAAM,WAAW,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC;QACrC,MAAM,IAAI,GAAG,kBAAkB,KAAK,WAAW,OAAO,SAAS,WAAW,CAAC,CAAC,CAAC,IAAI,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;QACtG,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CACpB,IAAI,CAAC,IAAI,EACT,IAAI,EACJ,OAAO,CACR,CAAC;IACJ,CAAC;CACF"}
@@ -13,6 +13,30 @@ export declare class FilesApi {
13
13
  * are caught at compile time. */
14
14
  private readonly spec;
15
15
  constructor(client: DeereClient);
16
+ /**
17
+ * List File Transfer Requests
18
+ * @description This resource allows the client to check the status of a file
19
+ * transfer request that has already been submitted. The response will contain
20
+ * links to the following resources: file: View the file for which the
21
+ * transfer was requested. machine: View the machine to which the transfer was
22
+ * requested.
23
+ * @generated from GET /fileTransfers
24
+ */
25
+ listFileTransfers(params?: {
26
+ source?: string;
27
+ }, options?: RequestOptions): Promise<PaginatedResponse<components['schemas']['FileValue']>>;
28
+ /**
29
+ * View a File Transfer Request
30
+ * @description This resource allows the client to check the status of a file
31
+ * transfer request that has already been submitted. The response will contain
32
+ * links to the following resources: file: View the file for which the
33
+ * transfer was requested. machine: View the machine to which the transfer was
34
+ * requested.
35
+ * @generated from GET /fileTransfers/{id}
36
+ */
37
+ getFileTransfers(id: string, params?: {
38
+ source?: string;
39
+ }, options?: RequestOptions): Promise<components['schemas']['FileTransfersValue']>;
16
40
  /**
17
41
  * List Files
18
42
  * @description This resource retrieves the list of available files. For each
@@ -61,6 +85,29 @@ export declare class FilesApi {
61
85
  * @generated from PUT /files/{fileId}
62
86
  */
63
87
  update(fileId: string, data: components['schemas']['EditableFileDetails'], options?: RequestOptions): Promise<void>;
88
+ /**
89
+ * Get File Transfer List by Organization
90
+ * @description This resource will retrieve list of all File Transfer by an
91
+ * Organization. The response will contain links to the following resources:
92
+ * file: View the file for which the transfer was requested. machine: View the
93
+ * machine to which the transfer was requested.
94
+ * @generated from GET /organizations/{orgId}/fileTransfers
95
+ */
96
+ listOrganizationsFileTransfers(orgId: string, params?: {
97
+ source?: string;
98
+ }, options?: RequestOptions): Promise<PaginatedResponse<components['schemas']['FileTransfersValue']>>;
99
+ /**
100
+ * Submit a File Transfer Request
101
+ * @description This resource allows you to select a file and machine, and use
102
+ * the client software to submit a file transfer request. After that,
103
+ * MyJohnDeere API v3's infrastructure transfers the selected file to the
104
+ * selected machine, where it becomes available for the machine operator to
105
+ * use. The response links to the following resources: file: The file for
106
+ * which the transfer is being requested. machine: The machine to which the
107
+ * transfer is being requested.
108
+ * @generated from POST /organizations/{orgId}/fileTransfers
109
+ */
110
+ createFileTransfers(orgId: string, data: components['schemas']['FileTransfersPost'], options?: RequestOptions): Promise<components['schemas']['PostFileTransfersResponse']>;
64
111
  /**
65
112
  * List an Org's Files
66
113
  * @description View a list of an org's files. This resource allows for
@@ -1 +1 @@
1
- {"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/api/files.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AACnF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAE9D,qBAAa,QAAQ;IAMP,OAAO,CAAC,QAAQ,CAAC,MAAM;IALnC;;qCAEiC;IACjC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAqB;gBAEb,MAAM,EAAE,WAAW;IAEhD;;;;;;;OAOG;IACG,IAAI,CACR,MAAM,CAAC,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAC;QAAC,YAAY,EAAE,OAAO,CAAA;KAAE,EACpE,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAA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,CAAC,EAAE,OAAO,CAAC;QACnB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,EACD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,iBAAiB,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC;IAiBhE;;;;;;;OAOG;IACG,MAAM,CACV,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,qBAAqB,CAAC,EAClD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC;CAIjB;AAGD,YAAY,EAAE,UAAU,IAAI,UAAU,EAAE,MAAM,6BAA6B,CAAC"}
package/dist/api/files.js CHANGED
@@ -13,6 +13,40 @@ export class FilesApi {
13
13
  constructor(client) {
14
14
  this.client = client;
15
15
  }
16
+ /**
17
+ * List File Transfer Requests
18
+ * @description This resource allows the client to check the status of a file
19
+ * transfer request that has already been submitted. The response will contain
20
+ * links to the following resources: file: View the file for which the
21
+ * transfer was requested. machine: View the machine to which the transfer was
22
+ * requested.
23
+ * @generated from GET /fileTransfers
24
+ */
25
+ async listFileTransfers(params, options) {
26
+ const query = new URLSearchParams();
27
+ if (params?.source !== undefined)
28
+ query.set('source', String(params.source));
29
+ const queryString = query.toString();
30
+ const path = `/fileTransfers${queryString ? `?${queryString}` : ''}`;
31
+ return this.client.get(this.spec, path, options);
32
+ }
33
+ /**
34
+ * View a File Transfer Request
35
+ * @description This resource allows the client to check the status of a file
36
+ * transfer request that has already been submitted. The response will contain
37
+ * links to the following resources: file: View the file for which the
38
+ * transfer was requested. machine: View the machine to which the transfer was
39
+ * requested.
40
+ * @generated from GET /fileTransfers/{id}
41
+ */
42
+ async getFileTransfers(id, params, options) {
43
+ const query = new URLSearchParams();
44
+ if (params?.source !== undefined)
45
+ query.set('source', String(params.source));
46
+ const queryString = query.toString();
47
+ const path = `/fileTransfers/${id}${queryString ? `?${queryString}` : ''}`;
48
+ return this.client.get(this.spec, path, options);
49
+ }
16
50
  /**
17
51
  * List Files
18
52
  * @description This resource retrieves the list of available files. For each
@@ -81,6 +115,37 @@ export class FilesApi {
81
115
  const path = `/files/${fileId}`;
82
116
  await this.client.put(this.spec, path, data, options);
83
117
  }
118
+ /**
119
+ * Get File Transfer List by Organization
120
+ * @description This resource will retrieve list of all File Transfer by an
121
+ * Organization. The response will contain links to the following resources:
122
+ * file: View the file for which the transfer was requested. machine: View the
123
+ * machine to which the transfer was requested.
124
+ * @generated from GET /organizations/{orgId}/fileTransfers
125
+ */
126
+ async listOrganizationsFileTransfers(orgId, params, options) {
127
+ const query = new URLSearchParams();
128
+ if (params?.source !== undefined)
129
+ query.set('source', String(params.source));
130
+ const queryString = query.toString();
131
+ const path = `/organizations/${orgId}/fileTransfers${queryString ? `?${queryString}` : ''}`;
132
+ return this.client.get(this.spec, path, options);
133
+ }
134
+ /**
135
+ * Submit a File Transfer Request
136
+ * @description This resource allows you to select a file and machine, and use
137
+ * the client software to submit a file transfer request. After that,
138
+ * MyJohnDeere API v3's infrastructure transfers the selected file to the
139
+ * selected machine, where it becomes available for the machine operator to
140
+ * use. The response links to the following resources: file: The file for
141
+ * which the transfer is being requested. machine: The machine to which the
142
+ * transfer is being requested.
143
+ * @generated from POST /organizations/{orgId}/fileTransfers
144
+ */
145
+ async createFileTransfers(orgId, data, options) {
146
+ const path = `/organizations/${orgId}/fileTransfers`;
147
+ return this.client.post(this.spec, path, data, options);
148
+ }
84
149
  /**
85
150
  * List an Org's Files
86
151
  * @description View a list of an org's files. This resource allows for
@@ -1 +1 @@
1
- {"version":3,"file":"files.js","sourceRoot":"","sources":["../../src/api/files.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,MAAM,OAAO,QAAQ;IAMU;IAL7B;;qCAEiC;IAChB,IAAI,GAAa,OAAO,CAAC;IAE1C,YAA6B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAG,CAAC;IAEpD;;;;;;;OAOG;IACH,KAAK,CA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