deere-sdk 0.1.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 (176) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/LICENSE +21 -0
  3. package/README.md +253 -0
  4. package/dist/api/assets.d.ts +78 -0
  5. package/dist/api/assets.d.ts.map +1 -0
  6. package/dist/api/assets.js +115 -0
  7. package/dist/api/assets.js.map +1 -0
  8. package/dist/api/boundaries.d.ts +69 -0
  9. package/dist/api/boundaries.d.ts.map +1 -0
  10. package/dist/api/boundaries.js +102 -0
  11. package/dist/api/boundaries.js.map +1 -0
  12. package/dist/api/clients.d.ts +71 -0
  13. package/dist/api/clients.d.ts.map +1 -0
  14. package/dist/api/clients.js +104 -0
  15. package/dist/api/clients.js.map +1 -0
  16. package/dist/api/connection-management.d.ts +41 -0
  17. package/dist/api/connection-management.d.ts.map +1 -0
  18. package/dist/api/connection-management.js +56 -0
  19. package/dist/api/connection-management.js.map +1 -0
  20. package/dist/api/crop-types.d.ts +48 -0
  21. package/dist/api/crop-types.d.ts.map +1 -0
  22. package/dist/api/crop-types.js +69 -0
  23. package/dist/api/crop-types.js.map +1 -0
  24. package/dist/api/equipment.d.ts +138 -0
  25. package/dist/api/equipment.d.ts.map +1 -0
  26. package/dist/api/equipment.js +214 -0
  27. package/dist/api/equipment.js.map +1 -0
  28. package/dist/api/farms.d.ts +69 -0
  29. package/dist/api/farms.d.ts.map +1 -0
  30. package/dist/api/farms.js +100 -0
  31. package/dist/api/farms.js.map +1 -0
  32. package/dist/api/field-operations-api.d.ts +56 -0
  33. package/dist/api/field-operations-api.d.ts.map +1 -0
  34. package/dist/api/field-operations-api.js +88 -0
  35. package/dist/api/field-operations-api.js.map +1 -0
  36. package/dist/api/field-operations.d.ts +83 -0
  37. package/dist/api/field-operations.d.ts.map +1 -0
  38. package/dist/api/field-operations.js +134 -0
  39. package/dist/api/field-operations.js.map +1 -0
  40. package/dist/api/fields.d.ts +73 -0
  41. package/dist/api/fields.d.ts.map +1 -0
  42. package/dist/api/fields.js +113 -0
  43. package/dist/api/fields.js.map +1 -0
  44. package/dist/api/files.d.ts +63 -0
  45. package/dist/api/files.d.ts.map +1 -0
  46. package/dist/api/files.js +96 -0
  47. package/dist/api/files.js.map +1 -0
  48. package/dist/api/flags.d.ts +96 -0
  49. package/dist/api/flags.d.ts.map +1 -0
  50. package/dist/api/flags.js +159 -0
  51. package/dist/api/flags.js.map +1 -0
  52. package/dist/api/guidance-lines.d.ts +52 -0
  53. package/dist/api/guidance-lines.d.ts.map +1 -0
  54. package/dist/api/guidance-lines.js +77 -0
  55. package/dist/api/guidance-lines.js.map +1 -0
  56. package/dist/api/index.d.ts +43 -0
  57. package/dist/api/index.d.ts.map +1 -0
  58. package/dist/api/index.js +25 -0
  59. package/dist/api/index.js.map +1 -0
  60. package/dist/api/map-layers.d.ts +49 -0
  61. package/dist/api/map-layers.d.ts.map +1 -0
  62. package/dist/api/map-layers.js +69 -0
  63. package/dist/api/map-layers.js.map +1 -0
  64. package/dist/api/operators.d.ts +67 -0
  65. package/dist/api/operators.d.ts.map +1 -0
  66. package/dist/api/operators.js +99 -0
  67. package/dist/api/operators.js.map +1 -0
  68. package/dist/api/organizations.d.ts +45 -0
  69. package/dist/api/organizations.d.ts.map +1 -0
  70. package/dist/api/organizations.js +64 -0
  71. package/dist/api/organizations.js.map +1 -0
  72. package/dist/api/products.d.ts +88 -0
  73. package/dist/api/products.d.ts.map +1 -0
  74. package/dist/api/products.js +132 -0
  75. package/dist/api/products.js.map +1 -0
  76. package/dist/api/users.d.ts +22 -0
  77. package/dist/api/users.d.ts.map +1 -0
  78. package/dist/api/users.js +26 -0
  79. package/dist/api/users.js.map +1 -0
  80. package/dist/api/webhook.d.ts +42 -0
  81. package/dist/api/webhook.d.ts.map +1 -0
  82. package/dist/api/webhook.js +57 -0
  83. package/dist/api/webhook.js.map +1 -0
  84. package/dist/client.d.ts +114 -0
  85. package/dist/client.d.ts.map +1 -0
  86. package/dist/client.js +224 -0
  87. package/dist/client.js.map +1 -0
  88. package/dist/deere.d.ts +98 -0
  89. package/dist/deere.d.ts.map +1 -0
  90. package/dist/deere.js +120 -0
  91. package/dist/deere.js.map +1 -0
  92. package/dist/index.d.ts +36 -0
  93. package/dist/index.d.ts.map +1 -0
  94. package/dist/index.js +39 -0
  95. package/dist/index.js.map +1 -0
  96. package/dist/types/generated/assets.d.ts +839 -0
  97. package/dist/types/generated/assets.d.ts.map +1 -0
  98. package/dist/types/generated/assets.js +6 -0
  99. package/dist/types/generated/assets.js.map +1 -0
  100. package/dist/types/generated/boundaries.d.ts +734 -0
  101. package/dist/types/generated/boundaries.d.ts.map +1 -0
  102. package/dist/types/generated/boundaries.js +6 -0
  103. package/dist/types/generated/boundaries.js.map +1 -0
  104. package/dist/types/generated/clients.d.ts +602 -0
  105. package/dist/types/generated/clients.d.ts.map +1 -0
  106. package/dist/types/generated/clients.js +6 -0
  107. package/dist/types/generated/clients.js.map +1 -0
  108. package/dist/types/generated/connection-management.d.ts +210 -0
  109. package/dist/types/generated/connection-management.d.ts.map +1 -0
  110. package/dist/types/generated/connection-management.js +6 -0
  111. package/dist/types/generated/connection-management.js.map +1 -0
  112. package/dist/types/generated/crop-types.d.ts +541 -0
  113. package/dist/types/generated/crop-types.d.ts.map +1 -0
  114. package/dist/types/generated/crop-types.js +6 -0
  115. package/dist/types/generated/crop-types.js.map +1 -0
  116. package/dist/types/generated/equipment.d.ts +2599 -0
  117. package/dist/types/generated/equipment.d.ts.map +1 -0
  118. package/dist/types/generated/equipment.js +6 -0
  119. package/dist/types/generated/equipment.js.map +1 -0
  120. package/dist/types/generated/farms.d.ts +520 -0
  121. package/dist/types/generated/farms.d.ts.map +1 -0
  122. package/dist/types/generated/farms.js +6 -0
  123. package/dist/types/generated/farms.js.map +1 -0
  124. package/dist/types/generated/field-operations-api.d.ts +1724 -0
  125. package/dist/types/generated/field-operations-api.d.ts.map +1 -0
  126. package/dist/types/generated/field-operations-api.js +6 -0
  127. package/dist/types/generated/field-operations-api.js.map +1 -0
  128. package/dist/types/generated/fields.d.ts +904 -0
  129. package/dist/types/generated/fields.d.ts.map +1 -0
  130. package/dist/types/generated/fields.js +6 -0
  131. package/dist/types/generated/fields.js.map +1 -0
  132. package/dist/types/generated/files.d.ts +598 -0
  133. package/dist/types/generated/files.d.ts.map +1 -0
  134. package/dist/types/generated/files.js +6 -0
  135. package/dist/types/generated/files.js.map +1 -0
  136. package/dist/types/generated/flags.d.ts +593 -0
  137. package/dist/types/generated/flags.d.ts.map +1 -0
  138. package/dist/types/generated/flags.js +6 -0
  139. package/dist/types/generated/flags.js.map +1 -0
  140. package/dist/types/generated/guidance-lines.d.ts +405 -0
  141. package/dist/types/generated/guidance-lines.d.ts.map +1 -0
  142. package/dist/types/generated/guidance-lines.js +6 -0
  143. package/dist/types/generated/guidance-lines.js.map +1 -0
  144. package/dist/types/generated/index.d.ts +44 -0
  145. package/dist/types/generated/index.d.ts.map +1 -0
  146. package/dist/types/generated/index.js +26 -0
  147. package/dist/types/generated/index.js.map +1 -0
  148. package/dist/types/generated/map-layers.d.ts +696 -0
  149. package/dist/types/generated/map-layers.d.ts.map +1 -0
  150. package/dist/types/generated/map-layers.js +6 -0
  151. package/dist/types/generated/map-layers.js.map +1 -0
  152. package/dist/types/generated/operators.d.ts +361 -0
  153. package/dist/types/generated/operators.d.ts.map +1 -0
  154. package/dist/types/generated/operators.js +6 -0
  155. package/dist/types/generated/operators.js.map +1 -0
  156. package/dist/types/generated/organizations.d.ts +308 -0
  157. package/dist/types/generated/organizations.d.ts.map +1 -0
  158. package/dist/types/generated/organizations.js +6 -0
  159. package/dist/types/generated/organizations.js.map +1 -0
  160. package/dist/types/generated/products.d.ts +1165 -0
  161. package/dist/types/generated/products.d.ts.map +1 -0
  162. package/dist/types/generated/products.js +6 -0
  163. package/dist/types/generated/products.js.map +1 -0
  164. package/dist/types/generated/users.d.ts +96 -0
  165. package/dist/types/generated/users.d.ts.map +1 -0
  166. package/dist/types/generated/users.js +6 -0
  167. package/dist/types/generated/users.js.map +1 -0
  168. package/dist/types/generated/webhook.d.ts +475 -0
  169. package/dist/types/generated/webhook.d.ts.map +1 -0
  170. package/dist/types/generated/webhook.js +6 -0
  171. package/dist/types/generated/webhook.js.map +1 -0
  172. package/dist/types/index.d.ts +25 -0
  173. package/dist/types/index.d.ts.map +1 -0
  174. package/dist/types/index.js +25 -0
  175. package/dist/types/index.js.map +1 -0
  176. package/package.json +70 -0
@@ -0,0 +1,102 @@
1
+ /**
2
+ * BoundariesApi
3
+ *
4
+ * Auto-generated SDK wrapper for John Deere boundaries API.
5
+ * @generated from boundaries.yaml
6
+ */
7
+ export class BoundariesApi {
8
+ client;
9
+ constructor(client) {
10
+ this.client = client;
11
+ }
12
+ /**
13
+ * View Boundaries in an Org
14
+ * @description View boundaries in an organization. <ul> <li><b>fields</b>: View the field associated with these boundaries.</li> <li><b>owningOrganizations</b>: View the organization that owns the field.</li> </ul>
15
+ * @generated from GET /organizations/{orgId}/boundaries
16
+ */
17
+ async list(orgId, params, options) {
18
+ const query = new URLSearchParams();
19
+ if (params?.embed !== undefined)
20
+ query.set('embed', String(params.embed));
21
+ if (params?.recordFilter !== undefined)
22
+ query.set('recordFilter', String(params.recordFilter));
23
+ const queryString = query.toString();
24
+ const path = `/organizations/${orgId}/boundaries${queryString ? `?${queryString}` : ''}`;
25
+ return this.client.get(path, options);
26
+ }
27
+ /**
28
+ * Get all items (follows pagination automatically)
29
+ * @generated from GET /organizations/{orgId}/boundaries
30
+ */
31
+ async listAll(orgId, params, options) {
32
+ const query = new URLSearchParams();
33
+ if (params?.embed !== undefined)
34
+ query.set('embed', String(params.embed));
35
+ if (params?.recordFilter !== undefined)
36
+ query.set('recordFilter', String(params.recordFilter));
37
+ const queryString = query.toString();
38
+ const path = `/organizations/${orgId}/boundaries${queryString ? `?${queryString}` : ''}`;
39
+ return this.client.getAll(path, options);
40
+ }
41
+ /**
42
+ * View the Boundaries of a Field
43
+ * @description View the boundaries of a specified field.
44
+ * @generated from GET /organizations/{orgId}/fields/{fieldId}/boundaries
45
+ */
46
+ async listBoundaries(orgId, fieldId, params, options) {
47
+ const query = new URLSearchParams();
48
+ if (params?.embed !== undefined)
49
+ query.set('embed', String(params.embed));
50
+ if (params?.recordFilter !== undefined)
51
+ query.set('recordFilter', String(params.recordFilter));
52
+ const queryString = query.toString();
53
+ const path = `/organizations/${orgId}/fields/${fieldId}/boundaries${queryString ? `?${queryString}` : ''}`;
54
+ return this.client.get(path, options);
55
+ }
56
+ /**
57
+ * Create a Boundary
58
+ * @description Create a boundary with a geometry collection for a field.
59
+ * @generated from POST /organizations/{orgId}/fields/{fieldId}/boundaries
60
+ */
61
+ async create(orgId, fieldId, data, options) {
62
+ const path = `/organizations/${orgId}/fields/${fieldId}/boundaries`;
63
+ await this.client.post(path, data, options);
64
+ }
65
+ /**
66
+ * Generate a Boundary from a FieldOperation
67
+ * @description Given a <a href='/dev-docs/field-operations#overviews' target='_blank'>field operation</a>, this endpoint will generate and return a boundary that surrounds the area worked by that field operation. Any gaps in that field operation will be treated as interior rings. This endpoint returns the generated boundary, giving you the opportunity to change the boundary name, clean up any unwanted interiors, etc. before <a href='/dev-docs/boundaries#/organizations/{orgId}/fields/{fieldId}/boundaries/post' target='_blank'>POST'ing the generated boundary</a> back into Operations Center. <p>There are two cases where this API will return an HTTP 400 - Bad Request:</p> <ul> <li><b>If the field already has an active boundary.</b> In this case, please use the existing boundary - it is likely more accurate than a generated boundary.</li> <li><b>If the field has been merged.</b> In this case, a FieldOperation may only cover one part of the merged field, resulting in an inaccurate boundary.</li> </ul>
68
+ * @generated from GET /fieldOperations/{operationId}/boundary
69
+ */
70
+ async get(operationId, options) {
71
+ const path = `/fieldOperations/${operationId}/boundary`;
72
+ return this.client.get(path, options);
73
+ }
74
+ /**
75
+ * Get a specific boundary
76
+ * @description This endpoint will retrieve a specific boundary.
77
+ * @generated from GET /organizations/{orgId}/fields/{fieldId}/boundaries/{boundaryId}
78
+ */
79
+ async getBoundaries(orgId, fieldId, boundaryId, options) {
80
+ const path = `/organizations/${orgId}/fields/${fieldId}/boundaries/${boundaryId}`;
81
+ return this.client.get(path, options);
82
+ }
83
+ /**
84
+ * Update a boundary
85
+ * @description This endpoint will update a boundary. The shape of the object must include name, active, irrigated, sourceType, and multipolygons. All these fields can be updated, however a license is required to set sourceType to a value other than "External". If the boundary is set to active, it will mark all other boundaries in this field inactive.
86
+ * @generated from PUT /organizations/{orgId}/fields/{fieldId}/boundaries/{boundaryId}
87
+ */
88
+ async update(orgId, fieldId, boundaryId, data, options) {
89
+ const path = `/organizations/${orgId}/fields/${fieldId}/boundaries/${boundaryId}`;
90
+ await this.client.put(path, data, options);
91
+ }
92
+ /**
93
+ * Delete a boundary
94
+ * @description This endpoint will delete a boundary.
95
+ * @generated from DELETE /organizations/{orgId}/fields/{fieldId}/boundaries/{boundaryId}
96
+ */
97
+ async delete(orgId, fieldId, boundaryId, options) {
98
+ const path = `/organizations/${orgId}/fields/${fieldId}/boundaries/${boundaryId}`;
99
+ await this.client.delete(path, options);
100
+ }
101
+ }
102
+ //# sourceMappingURL=boundaries.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"boundaries.js","sourceRoot":"","sources":["../../src/api/boundaries.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,MAAM,OAAO,aAAa;IACK;IAA7B,YAA6B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAG,CAAC;IAEpD;;;;OAIG;IACH,KAAK,CAAC,IAAI,CAAC,KAAa,EAAE,MAAkD,EAAE,OAAwB;QACpG,MAAM,KAAK,GAAG,IAAI,eAAe,EAAE,CAAC;QACpC,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,YAAY,KAAK,SAAS;YAAE,KAAK,C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EAAE,UAAkB,EAAE,IAA6B,EAAE,OAAwB;QACtH,MAAM,IAAI,GAAG,kBAAkB,KAAK,WAAW,OAAO,eAAe,UAAU,EAAE,CAAC;QAClF,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IAC7C,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,MAAM,CAAC,KAAa,EAAE,OAAe,EAAE,UAAkB,EAAE,OAAwB;QACvF,MAAM,IAAI,GAAG,kBAAkB,KAAK,WAAW,OAAO,eAAe,UAAU,EAAE,CAAC;QAClF,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC1C,CAAC;CACF"}
@@ -0,0 +1,71 @@
1
+ /**
2
+ * ClientsApi
3
+ *
4
+ * Auto-generated SDK wrapper for John Deere clients API.
5
+ * @generated from clients.yaml
6
+ */
7
+ import type { DeereClient, RequestOptions, PaginatedResponse } from '../client.js';
8
+ import type { components } from '../types/generated/clients.js';
9
+ export declare class ClientsApi {
10
+ private readonly client;
11
+ constructor(client: DeereClient);
12
+ /**
13
+ * List Clients in an Org
14
+ * @description Retrieve all of the clients for an organization
15
+ * @generated from GET /organizations/{orgId}/clients
16
+ */
17
+ list(orgId: string, params?: {
18
+ embed?: string;
19
+ recordFilter?: string;
20
+ }, options?: RequestOptions): Promise<unknown>;
21
+ /**
22
+ * Get all items (follows pagination automatically)
23
+ * @generated from GET /organizations/{orgId}/clients
24
+ */
25
+ listAll(orgId: string, params?: {
26
+ embed?: string;
27
+ recordFilter?: string;
28
+ }, options?: RequestOptions): Promise<unknown[]>;
29
+ /**
30
+ * Create a Client
31
+ * @description This API is used to create a new client resource within the target organization. In order to do this, the authenticated user must have <b>Locations Level 3</b> permission within the target organization. <br/><br/>Note: All clients are created with an "active" status.
32
+ * @generated from POST /organizations/{orgId}/clients
33
+ */
34
+ create(orgId: string, data: Record<string, unknown>, options?: RequestOptions): Promise<void>;
35
+ /**
36
+ * View a Client
37
+ * @description View a clients details. For each client, the response will link to the following resources:<br/> <ul><li> <b>fields:</b> View the field the client belongs to.</li> <li><b>farms:</b> View the farm belonging to the client.</li> <li><b>owningOrganization:</b> View the org that owns the client.</li></ul>
38
+ * @generated from GET /organizations/{orgId}/clients/{clientId}
39
+ */
40
+ get(orgId: string, clientId: string, params?: {
41
+ embed?: string;
42
+ }, options?: RequestOptions): Promise<unknown>;
43
+ /**
44
+ * Update a Client
45
+ * @description This API is used to update an existing client resource within the target organization. In order to do this, the authenticated user must have <b>Locations Level 3</b> permission within the target organization.
46
+ * @generated from PUT /organizations/{orgId}/clients/{clientId}
47
+ */
48
+ update(orgId: string, clientId: string, data: Record<string, unknown>, options?: RequestOptions): Promise<void>;
49
+ /**
50
+ * Delete a Client
51
+ * @description This API is used to delete a client resource within the target organization. In order to do this, the authenticated user must have <b>Locations Level 3</b> permission within the target organization.
52
+ * @generated from DELETE /organizations/{orgId}/clients/{clientId}
53
+ */
54
+ delete(orgId: string, clientId: string, options?: RequestOptions): Promise<void>;
55
+ /**
56
+ * View a Client's Farms
57
+ * @description View a list of farms belonging to a specified client. For each farm, the response will link to the following resources: <ul> <li><b>fields:</b> View the fields in this farm</li> <li><b>farms:</b> View the clients that own this farm.</li> <li><b>owningOrganization:</b> View the Organization that owns the farm.</li> </ul>
58
+ * @generated from GET /organizations/{orgId}/clients/{id}/farms
59
+ */
60
+ listFarms(orgId: string, id: string, params?: {
61
+ name?: string;
62
+ }, options?: RequestOptions): Promise<unknown>;
63
+ /**
64
+ * View a Client's Field
65
+ * @description View the field to which a specific client belongs. For the client, the response links to the following resources: <ul> <li><b>boundaries:</b> View the boundaries that belong to this field.</li> <li><b>clients:</b> View the client that belongs to this field.</li> <li><b>farms:</b> View the farms within this field.</li> <li><b>owningOrganization:</b> View the organization that owns the field.</li> </ul>
66
+ * @generated from GET /organizations/{orgID}/clients/{id}/fields
67
+ */
68
+ listFields(orgID: string, id: string, options?: RequestOptions): Promise<PaginatedResponse<components['schemas']['FieldResponse']>>;
69
+ }
70
+ export type { components as ClientsTypes } from '../types/generated/clients.js';
71
+ //# sourceMappingURL=clients.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clients.d.ts","sourceRoot":"","sources":["../../src/api/clients.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACnF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAEhE,qBAAa,UAAU;IACT,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,WAAW;IAEhD;;;;OAIG;IACG,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IAQzH;;;OAGG;IACG,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAS9H;;;;OAIG;IACG,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAKnG;;;;OAIG;IACG,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IAQnH;;;;OAIG;IACG,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAKrH;;;;OAIG;IACG,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAKtF;;;;OAIG;IACG,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IAQlH;;;;OAIG;IACG,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,iBAAiB,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC;CAI1I;AAGD,YAAY,EAAE,UAAU,IAAI,YAAY,EAAE,MAAM,+BAA+B,CAAC"}
@@ -0,0 +1,104 @@
1
+ /**
2
+ * ClientsApi
3
+ *
4
+ * Auto-generated SDK wrapper for John Deere clients API.
5
+ * @generated from clients.yaml
6
+ */
7
+ export class ClientsApi {
8
+ client;
9
+ constructor(client) {
10
+ this.client = client;
11
+ }
12
+ /**
13
+ * List Clients in an Org
14
+ * @description Retrieve all of the clients for an organization
15
+ * @generated from GET /organizations/{orgId}/clients
16
+ */
17
+ async list(orgId, params, options) {
18
+ const query = new URLSearchParams();
19
+ if (params?.embed !== undefined)
20
+ query.set('embed', String(params.embed));
21
+ if (params?.recordFilter !== undefined)
22
+ query.set('recordFilter', String(params.recordFilter));
23
+ const queryString = query.toString();
24
+ const path = `/organizations/${orgId}/clients${queryString ? `?${queryString}` : ''}`;
25
+ return this.client.get(path, options);
26
+ }
27
+ /**
28
+ * Get all items (follows pagination automatically)
29
+ * @generated from GET /organizations/{orgId}/clients
30
+ */
31
+ async listAll(orgId, params, options) {
32
+ const query = new URLSearchParams();
33
+ if (params?.embed !== undefined)
34
+ query.set('embed', String(params.embed));
35
+ if (params?.recordFilter !== undefined)
36
+ query.set('recordFilter', String(params.recordFilter));
37
+ const queryString = query.toString();
38
+ const path = `/organizations/${orgId}/clients${queryString ? `?${queryString}` : ''}`;
39
+ return this.client.getAll(path, options);
40
+ }
41
+ /**
42
+ * Create a Client
43
+ * @description This API is used to create a new client resource within the target organization. In order to do this, the authenticated user must have <b>Locations Level 3</b> permission within the target organization. <br/><br/>Note: All clients are created with an "active" status.
44
+ * @generated from POST /organizations/{orgId}/clients
45
+ */
46
+ async create(orgId, data, options) {
47
+ const path = `/organizations/${orgId}/clients`;
48
+ await this.client.post(path, data, options);
49
+ }
50
+ /**
51
+ * View a Client
52
+ * @description View a clients details. For each client, the response will link to the following resources:<br/> <ul><li> <b>fields:</b> View the field the client belongs to.</li> <li><b>farms:</b> View the farm belonging to the client.</li> <li><b>owningOrganization:</b> View the org that owns the client.</li></ul>
53
+ * @generated from GET /organizations/{orgId}/clients/{clientId}
54
+ */
55
+ async get(orgId, clientId, params, options) {
56
+ const query = new URLSearchParams();
57
+ if (params?.embed !== undefined)
58
+ query.set('embed', String(params.embed));
59
+ const queryString = query.toString();
60
+ const path = `/organizations/${orgId}/clients/${clientId}${queryString ? `?${queryString}` : ''}`;
61
+ return this.client.get(path, options);
62
+ }
63
+ /**
64
+ * Update a Client
65
+ * @description This API is used to update an existing client resource within the target organization. In order to do this, the authenticated user must have <b>Locations Level 3</b> permission within the target organization.
66
+ * @generated from PUT /organizations/{orgId}/clients/{clientId}
67
+ */
68
+ async update(orgId, clientId, data, options) {
69
+ const path = `/organizations/${orgId}/clients/${clientId}`;
70
+ await this.client.put(path, data, options);
71
+ }
72
+ /**
73
+ * Delete a Client
74
+ * @description This API is used to delete a client resource within the target organization. In order to do this, the authenticated user must have <b>Locations Level 3</b> permission within the target organization.
75
+ * @generated from DELETE /organizations/{orgId}/clients/{clientId}
76
+ */
77
+ async delete(orgId, clientId, options) {
78
+ const path = `/organizations/${orgId}/clients/${clientId}`;
79
+ await this.client.delete(path, options);
80
+ }
81
+ /**
82
+ * View a Client's Farms
83
+ * @description View a list of farms belonging to a specified client. For each farm, the response will link to the following resources: <ul> <li><b>fields:</b> View the fields in this farm</li> <li><b>farms:</b> View the clients that own this farm.</li> <li><b>owningOrganization:</b> View the Organization that owns the farm.</li> </ul>
84
+ * @generated from GET /organizations/{orgId}/clients/{id}/farms
85
+ */
86
+ async listFarms(orgId, id, params, options) {
87
+ const query = new URLSearchParams();
88
+ if (params?.name !== undefined)
89
+ query.set('name', String(params.name));
90
+ const queryString = query.toString();
91
+ const path = `/organizations/${orgId}/clients/${id}/farms${queryString ? `?${queryString}` : ''}`;
92
+ return this.client.get(path, options);
93
+ }
94
+ /**
95
+ * View a Client's Field
96
+ * @description View the field to which a specific client belongs. For the client, the response links to the following resources: <ul> <li><b>boundaries:</b> View the boundaries that belong to this field.</li> <li><b>clients:</b> View the client that belongs to this field.</li> <li><b>farms:</b> View the farms within this field.</li> <li><b>owningOrganization:</b> View the organization that owns the field.</li> </ul>
97
+ * @generated from GET /organizations/{orgID}/clients/{id}/fields
98
+ */
99
+ async listFields(orgID, id, options) {
100
+ const path = `/organizations/${orgID}/clients/${id}/fields`;
101
+ return this.client.get(path, options);
102
+ }
103
+ }
104
+ //# sourceMappingURL=clients.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clients.js","sourceRoot":"","sources":["../../src/api/clients.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,MAAM,OAAO,UAAU;IACQ;IAA7B,YAA6B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAG,CAAC;IAEpD;;;;O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YAAY,QAAQ,EAAE,CAAC;QAC3D,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC1C,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,SAAS,CAAC,KAAa,EAAE,EAAU,EAAE,MAA0B,EAAE,OAAwB;QAC7F,MAAM,KAAK,GAAG,IAAI,eAAe,EAAE,CAAC;QACpC,IAAI,MAAM,EAAE,IAAI,KAAK,SAAS;YAAE,KAAK,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;QACvE,MAAM,WAAW,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC;QACrC,MAAM,IAAI,GAAG,kBAAkB,KAAK,YAAY,EAAE,SAAS,WAAW,CAAC,CAAC,CAAC,IAAI,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;QAClG,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAU,IAAI,EAAE,OAAO,CAAC,CAAC;IACjD,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,UAAU,CAAC,KAAa,EAAE,EAAU,EAAE,OAAwB;QAClE,MAAM,IAAI,GAAG,kBAAkB,KAAK,YAAY,EAAE,SAAS,CAAC;QAC5D,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAA4D,IAAI,EAAE,OAAO,CAAC,CAAC;IACnG,CAAC;CACF"}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * ConnectionManagementApi
3
+ *
4
+ * Auto-generated SDK wrapper for John Deere connection-management API.
5
+ * @generated from connection-management.yaml
6
+ */
7
+ import type { DeereClient, RequestOptions, PaginatedResponse } from '../client.js';
8
+ import type { components } from '../types/generated/connection-management.js';
9
+ export declare class ConnectionManagementApi {
10
+ private readonly client;
11
+ constructor(client: DeereClient);
12
+ /**
13
+ * Get list of connections
14
+ * @description Retrieve all of the connections for a CSC based on the client in the token
15
+ * @generated from GET /connections
16
+ */
17
+ list(params?: {
18
+ createdAfter?: string;
19
+ }, options?: RequestOptions): Promise<PaginatedResponse<components['schemas']['ConnectionsResponse']>>;
20
+ /**
21
+ * Get all items (follows pagination automatically)
22
+ * @generated from GET /connections
23
+ */
24
+ listAll(params?: {
25
+ createdAfter?: string;
26
+ }, options?: RequestOptions): Promise<components['schemas']['ConnectionsResponse'][]>;
27
+ /**
28
+ * Delete connection by connection ID
29
+ * @description Remove specific connection by ID
30
+ * @generated from DELETE /connections/{connectionId}
31
+ */
32
+ delete(connectionId: string, options?: RequestOptions): Promise<void>;
33
+ /**
34
+ * Delete all partner connections by Org Id
35
+ * @description Remove all connections between the calling application and the org. This includes all partner connections.
36
+ * @generated from DELETE /organizations/{orgId}/connections
37
+ */
38
+ deleteConnections(orgId: string, options?: RequestOptions): Promise<void>;
39
+ }
40
+ export type { components as ConnectionManagementTypes } from '../types/generated/connection-management.js';
41
+ //# sourceMappingURL=connection-management.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connection-management.d.ts","sourceRoot":"","sources":["../../src/api/connection-management.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACnF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6CAA6C,CAAC;AAE9E,qBAAa,uBAAuB;IACtB,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,WAAW;IAEhD;;;;OAIG;IACG,IAAI,CAAC,MAAM,CAAC,EAAE;QAAE,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,iBAAiB,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC;IAOlJ;;;OAGG;IACG,OAAO,CAAC,MAAM,CAAC,EAAE;QAAE,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,qBAAqB,CAAC,EAAE,CAAC;IAQpI;;;;OAIG;IACG,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAK3E;;;;OAIG;IACG,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CAIhF;AAGD,YAAY,EAAE,UAAU,IAAI,yBAAyB,EAAE,MAAM,6CAA6C,CAAC"}
@@ -0,0 +1,56 @@
1
+ /**
2
+ * ConnectionManagementApi
3
+ *
4
+ * Auto-generated SDK wrapper for John Deere connection-management API.
5
+ * @generated from connection-management.yaml
6
+ */
7
+ export class ConnectionManagementApi {
8
+ client;
9
+ constructor(client) {
10
+ this.client = client;
11
+ }
12
+ /**
13
+ * Get list of connections
14
+ * @description Retrieve all of the connections for a CSC based on the client in the token
15
+ * @generated from GET /connections
16
+ */
17
+ async list(params, options) {
18
+ const query = new URLSearchParams();
19
+ if (params?.createdAfter !== undefined)
20
+ query.set('createdAfter', String(params.createdAfter));
21
+ const queryString = query.toString();
22
+ const path = `/connections${queryString ? `?${queryString}` : ''}`;
23
+ return this.client.get(path, options);
24
+ }
25
+ /**
26
+ * Get all items (follows pagination automatically)
27
+ * @generated from GET /connections
28
+ */
29
+ async listAll(params, options) {
30
+ const query = new URLSearchParams();
31
+ if (params?.createdAfter !== undefined)
32
+ query.set('createdAfter', String(params.createdAfter));
33
+ const queryString = query.toString();
34
+ const path = `/connections${queryString ? `?${queryString}` : ''}`;
35
+ return this.client.getAll(path, options);
36
+ }
37
+ /**
38
+ * Delete connection by connection ID
39
+ * @description Remove specific connection by ID
40
+ * @generated from DELETE /connections/{connectionId}
41
+ */
42
+ async delete(connectionId, options) {
43
+ const path = `/connections/${connectionId}`;
44
+ await this.client.delete(path, options);
45
+ }
46
+ /**
47
+ * Delete all partner connections by Org Id
48
+ * @description Remove all connections between the calling application and the org. This includes all partner connections.
49
+ * @generated from DELETE /organizations/{orgId}/connections
50
+ */
51
+ async deleteConnections(orgId, options) {
52
+ const path = `/organizations/${orgId}/connections`;
53
+ await this.client.delete(path, options);
54
+ }
55
+ }
56
+ //# sourceMappingURL=connection-management.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"connection-management.js","sourceRoot":"","sources":["../../src/api/connection-management.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,MAAM,OAAO,uBAAuB;IACL;IAA7B,YAA6B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAG,CAAC;IAEpD;;;;OAIG;IACH,KAAK,CAAC,IAAI,CAAC,MAAkC,EAAE,OAAwB;QACrE,MAAM,KAAK,GAAG,IAAI,eAAe,EAAE,CAAC;QACpC,IAAI,MAAM,EAAE,YAAY,KAAK,SAAS;YAAE,KAAK,CAAC,GAAG,CAAC,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC;QAC/F,MAAM,WAAW,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC;QACrC,MAAM,IAAI,GAAG,eAAe,WAAW,CAAC,CAAC,CAAC,IAAI,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;QACnE,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAkE,IAAI,EAAE,OAAO,CAAC,CAAC;IACzG,CAAC;IACD;;;OAGG;IACH,KAAK,CAAC,OAAO,CAAC,MAAkC,EAAE,OAAwB;QACxE,MAAM,KAAK,GAAG,IAAI,eAAe,EAAE,CAAC;QACpC,IAAI,MAAM,EAAE,YAAY,KAAK,SAAS;YAAE,KAAK,CAAC,GAAG,CAAC,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC;QAC/F,MAAM,WAAW,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC;QACrC,MAAM,IAAI,GAAG,eAAe,WAAW,CAAC,CAAC,CAAC,IAAI,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;QACnE,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAA+C,IAAI,EAAE,OAAO,CAAC,CAAC;IACzF,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,MAAM,CAAC,YAAoB,EAAE,OAAwB;QACzD,MAAM,IAAI,GAAG,gBAAgB,YAAY,EAAE,CAAC;QAC5C,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC1C,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,iBAAiB,CAAC,KAAa,EAAE,OAAwB;QAC7D,MAAM,IAAI,GAAG,kBAAkB,KAAK,cAAc,CAAC;QACnD,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC1C,CAAC;CACF"}
@@ -0,0 +1,48 @@
1
+ /**
2
+ * CropTypesApi
3
+ *
4
+ * Auto-generated SDK wrapper for John Deere crop-types API.
5
+ * @generated from crop-types.yaml
6
+ */
7
+ import type { DeereClient, RequestOptions } from '../client.js';
8
+ export declare class CropTypesApi {
9
+ private readonly client;
10
+ constructor(client: DeereClient);
11
+ /**
12
+ * Retrieve all crop types
13
+ * @description This endpoint will return list of available crop types in the system.
14
+ * @generated from GET /cropTypes
15
+ */
16
+ list(params?: {
17
+ recordFilter?: string;
18
+ }, options?: RequestOptions): Promise<unknown>;
19
+ /**
20
+ * Get all items (follows pagination automatically)
21
+ * @generated from GET /cropTypes
22
+ */
23
+ listAll(params?: {
24
+ recordFilter?: string;
25
+ }, options?: RequestOptions): Promise<unknown[]>;
26
+ /**
27
+ * View a specific cropType
28
+ * @description This endpoint will return details of specific cropType.
29
+ * @generated from GET /cropTypes/{name}
30
+ */
31
+ get(name: string, options?: RequestOptions): Promise<unknown>;
32
+ /**
33
+ * View a specific cropType
34
+ * @description This endpoint will return details of specific cropType.
35
+ * @generated from GET /cropTypes/{id}
36
+ */
37
+ getCroptypes(id: string, options?: RequestOptions): Promise<unknown>;
38
+ /**
39
+ * Retrieve all crop types for a specific organization
40
+ * @description This endpoint will return a list of all crop types for a specific organization.
41
+ * @generated from GET /organizations/{organizationId}/cropTypes
42
+ */
43
+ listCroptypes(organizationId: string, params?: {
44
+ recordFilter?: string;
45
+ }, options?: RequestOptions): Promise<unknown>;
46
+ }
47
+ export type { components as CropTypesTypes } from '../types/generated/crop-types.js';
48
+ //# sourceMappingURL=crop-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"crop-types.d.ts","sourceRoot":"","sources":["../../src/api/crop-types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAqB,MAAM,cAAc,CAAC;AAGnF,qBAAa,YAAY;IACX,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,WAAW;IAEhD;;;;OAIG;IACG,IAAI,CAAC,MAAM,CAAC,EAAE;QAAE,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IAO1F;;;OAGG;IACG,OAAO,CAAC,MAAM,CAAC,EAAE;QAAE,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAQ/F;;;;OAIG;IACG,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IAKnE;;;;OAIG;IACG,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IAK1E;;;;OAIG;IACG,aAAa,CAAC,cAAc,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE;QAAE,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;CAO5H;AAGD,YAAY,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,kCAAkC,CAAC"}
@@ -0,0 +1,69 @@
1
+ /**
2
+ * CropTypesApi
3
+ *
4
+ * Auto-generated SDK wrapper for John Deere crop-types API.
5
+ * @generated from crop-types.yaml
6
+ */
7
+ export class CropTypesApi {
8
+ client;
9
+ constructor(client) {
10
+ this.client = client;
11
+ }
12
+ /**
13
+ * Retrieve all crop types
14
+ * @description This endpoint will return list of available crop types in the system.
15
+ * @generated from GET /cropTypes
16
+ */
17
+ async list(params, options) {
18
+ const query = new URLSearchParams();
19
+ if (params?.recordFilter !== undefined)
20
+ query.set('recordFilter', String(params.recordFilter));
21
+ const queryString = query.toString();
22
+ const path = `/cropTypes${queryString ? `?${queryString}` : ''}`;
23
+ return this.client.get(path, options);
24
+ }
25
+ /**
26
+ * Get all items (follows pagination automatically)
27
+ * @generated from GET /cropTypes
28
+ */
29
+ async listAll(params, options) {
30
+ const query = new URLSearchParams();
31
+ if (params?.recordFilter !== undefined)
32
+ query.set('recordFilter', String(params.recordFilter));
33
+ const queryString = query.toString();
34
+ const path = `/cropTypes${queryString ? `?${queryString}` : ''}`;
35
+ return this.client.getAll(path, options);
36
+ }
37
+ /**
38
+ * View a specific cropType
39
+ * @description This endpoint will return details of specific cropType.
40
+ * @generated from GET /cropTypes/{name}
41
+ */
42
+ async get(name, options) {
43
+ const path = `/cropTypes/${name}`;
44
+ return this.client.get(path, options);
45
+ }
46
+ /**
47
+ * View a specific cropType
48
+ * @description This endpoint will return details of specific cropType.
49
+ * @generated from GET /cropTypes/{id}
50
+ */
51
+ async getCroptypes(id, options) {
52
+ const path = `/cropTypes/${id}`;
53
+ return this.client.get(path, options);
54
+ }
55
+ /**
56
+ * Retrieve all crop types for a specific organization
57
+ * @description This endpoint will return a list of all crop types for a specific organization.
58
+ * @generated from GET /organizations/{organizationId}/cropTypes
59
+ */
60
+ async listCroptypes(organizationId, params, options) {
61
+ const query = new URLSearchParams();
62
+ if (params?.recordFilter !== undefined)
63
+ query.set('recordFilter', String(params.recordFilter));
64
+ const queryString = query.toString();
65
+ const path = `/organizations/${organizationId}/cropTypes${queryString ? `?${queryString}` : ''}`;
66
+ return this.client.get(path, options);
67
+ }
68
+ }
69
+ //# sourceMappingURL=crop-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"crop-types.js","sourceRoot":"","sources":["../../src/api/crop-types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,MAAM,OAAO,YAAY;IACM;IAA7B,YAA6B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAG,CAAC;IAEpD;;;;OAIG;IACH,KAAK,CAAC,IAAI,CAAC,MAAkC,EAAE,OAAwB;QACrE,MAAM,KAAK,GAAG,IAAI,eAAe,EAAE,CAAC;QACpC,IAAI,MAAM,EAAE,YAAY,KAAK,SAAS;YAAE,KAAK,CAAC,GAAG,CAAC,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC;QAC/F,MAAM,WAAW,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC;QACrC,MAAM,IAAI,GAAG,aAAa,WAAW,CAAC,CAAC,CAAC,IAAI,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;QACjE,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAU,IAAI,EAAE,OAAO,CAAC,CAAC;IACjD,CAAC;IACD;;;OAGG;IACH,KAAK,CAAC,OAAO,CAAC,MAAkC,EAAE,OAAwB;QACxE,MAAM,KAAK,GAAG,IAAI,eAAe,EAAE,CAAC;QACpC,IAAI,MAAM,EAAE,YAAY,KAAK,SAAS;YAAE,KAAK,CAAC,GAAG,CAAC,cAAc,EAAE,MAAM,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