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.
- package/CHANGELOG.md +38 -0
- package/LICENSE +21 -0
- package/README.md +253 -0
- package/dist/api/assets.d.ts +78 -0
- package/dist/api/assets.d.ts.map +1 -0
- package/dist/api/assets.js +115 -0
- package/dist/api/assets.js.map +1 -0
- package/dist/api/boundaries.d.ts +69 -0
- package/dist/api/boundaries.d.ts.map +1 -0
- package/dist/api/boundaries.js +102 -0
- package/dist/api/boundaries.js.map +1 -0
- package/dist/api/clients.d.ts +71 -0
- package/dist/api/clients.d.ts.map +1 -0
- package/dist/api/clients.js +104 -0
- package/dist/api/clients.js.map +1 -0
- package/dist/api/connection-management.d.ts +41 -0
- package/dist/api/connection-management.d.ts.map +1 -0
- package/dist/api/connection-management.js +56 -0
- package/dist/api/connection-management.js.map +1 -0
- package/dist/api/crop-types.d.ts +48 -0
- package/dist/api/crop-types.d.ts.map +1 -0
- package/dist/api/crop-types.js +69 -0
- package/dist/api/crop-types.js.map +1 -0
- package/dist/api/equipment.d.ts +138 -0
- package/dist/api/equipment.d.ts.map +1 -0
- package/dist/api/equipment.js +214 -0
- package/dist/api/equipment.js.map +1 -0
- package/dist/api/farms.d.ts +69 -0
- package/dist/api/farms.d.ts.map +1 -0
- package/dist/api/farms.js +100 -0
- package/dist/api/farms.js.map +1 -0
- package/dist/api/field-operations-api.d.ts +56 -0
- package/dist/api/field-operations-api.d.ts.map +1 -0
- package/dist/api/field-operations-api.js +88 -0
- package/dist/api/field-operations-api.js.map +1 -0
- package/dist/api/field-operations.d.ts +83 -0
- package/dist/api/field-operations.d.ts.map +1 -0
- package/dist/api/field-operations.js +134 -0
- package/dist/api/field-operations.js.map +1 -0
- package/dist/api/fields.d.ts +73 -0
- package/dist/api/fields.d.ts.map +1 -0
- package/dist/api/fields.js +113 -0
- package/dist/api/fields.js.map +1 -0
- package/dist/api/files.d.ts +63 -0
- package/dist/api/files.d.ts.map +1 -0
- package/dist/api/files.js +96 -0
- package/dist/api/files.js.map +1 -0
- package/dist/api/flags.d.ts +96 -0
- package/dist/api/flags.d.ts.map +1 -0
- package/dist/api/flags.js +159 -0
- package/dist/api/flags.js.map +1 -0
- package/dist/api/guidance-lines.d.ts +52 -0
- package/dist/api/guidance-lines.d.ts.map +1 -0
- package/dist/api/guidance-lines.js +77 -0
- package/dist/api/guidance-lines.js.map +1 -0
- package/dist/api/index.d.ts +43 -0
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/index.js +25 -0
- package/dist/api/index.js.map +1 -0
- package/dist/api/map-layers.d.ts +49 -0
- package/dist/api/map-layers.d.ts.map +1 -0
- package/dist/api/map-layers.js +69 -0
- package/dist/api/map-layers.js.map +1 -0
- package/dist/api/operators.d.ts +67 -0
- package/dist/api/operators.d.ts.map +1 -0
- package/dist/api/operators.js +99 -0
- package/dist/api/operators.js.map +1 -0
- package/dist/api/organizations.d.ts +45 -0
- package/dist/api/organizations.d.ts.map +1 -0
- package/dist/api/organizations.js +64 -0
- package/dist/api/organizations.js.map +1 -0
- package/dist/api/products.d.ts +88 -0
- package/dist/api/products.d.ts.map +1 -0
- package/dist/api/products.js +132 -0
- package/dist/api/products.js.map +1 -0
- package/dist/api/users.d.ts +22 -0
- package/dist/api/users.d.ts.map +1 -0
- package/dist/api/users.js +26 -0
- package/dist/api/users.js.map +1 -0
- package/dist/api/webhook.d.ts +42 -0
- package/dist/api/webhook.d.ts.map +1 -0
- package/dist/api/webhook.js +57 -0
- package/dist/api/webhook.js.map +1 -0
- package/dist/client.d.ts +114 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +224 -0
- package/dist/client.js.map +1 -0
- package/dist/deere.d.ts +98 -0
- package/dist/deere.d.ts.map +1 -0
- package/dist/deere.js +120 -0
- package/dist/deere.js.map +1 -0
- package/dist/index.d.ts +36 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +39 -0
- package/dist/index.js.map +1 -0
- package/dist/types/generated/assets.d.ts +839 -0
- package/dist/types/generated/assets.d.ts.map +1 -0
- package/dist/types/generated/assets.js +6 -0
- package/dist/types/generated/assets.js.map +1 -0
- package/dist/types/generated/boundaries.d.ts +734 -0
- package/dist/types/generated/boundaries.d.ts.map +1 -0
- package/dist/types/generated/boundaries.js +6 -0
- package/dist/types/generated/boundaries.js.map +1 -0
- package/dist/types/generated/clients.d.ts +602 -0
- package/dist/types/generated/clients.d.ts.map +1 -0
- package/dist/types/generated/clients.js +6 -0
- package/dist/types/generated/clients.js.map +1 -0
- package/dist/types/generated/connection-management.d.ts +210 -0
- package/dist/types/generated/connection-management.d.ts.map +1 -0
- package/dist/types/generated/connection-management.js +6 -0
- package/dist/types/generated/connection-management.js.map +1 -0
- package/dist/types/generated/crop-types.d.ts +541 -0
- package/dist/types/generated/crop-types.d.ts.map +1 -0
- package/dist/types/generated/crop-types.js +6 -0
- package/dist/types/generated/crop-types.js.map +1 -0
- package/dist/types/generated/equipment.d.ts +2599 -0
- package/dist/types/generated/equipment.d.ts.map +1 -0
- package/dist/types/generated/equipment.js +6 -0
- package/dist/types/generated/equipment.js.map +1 -0
- package/dist/types/generated/farms.d.ts +520 -0
- package/dist/types/generated/farms.d.ts.map +1 -0
- package/dist/types/generated/farms.js +6 -0
- package/dist/types/generated/farms.js.map +1 -0
- package/dist/types/generated/field-operations-api.d.ts +1724 -0
- package/dist/types/generated/field-operations-api.d.ts.map +1 -0
- package/dist/types/generated/field-operations-api.js +6 -0
- package/dist/types/generated/field-operations-api.js.map +1 -0
- package/dist/types/generated/fields.d.ts +904 -0
- package/dist/types/generated/fields.d.ts.map +1 -0
- package/dist/types/generated/fields.js +6 -0
- package/dist/types/generated/fields.js.map +1 -0
- package/dist/types/generated/files.d.ts +598 -0
- package/dist/types/generated/files.d.ts.map +1 -0
- package/dist/types/generated/files.js +6 -0
- package/dist/types/generated/files.js.map +1 -0
- package/dist/types/generated/flags.d.ts +593 -0
- package/dist/types/generated/flags.d.ts.map +1 -0
- package/dist/types/generated/flags.js +6 -0
- package/dist/types/generated/flags.js.map +1 -0
- package/dist/types/generated/guidance-lines.d.ts +405 -0
- package/dist/types/generated/guidance-lines.d.ts.map +1 -0
- package/dist/types/generated/guidance-lines.js +6 -0
- package/dist/types/generated/guidance-lines.js.map +1 -0
- package/dist/types/generated/index.d.ts +44 -0
- package/dist/types/generated/index.d.ts.map +1 -0
- package/dist/types/generated/index.js +26 -0
- package/dist/types/generated/index.js.map +1 -0
- package/dist/types/generated/map-layers.d.ts +696 -0
- package/dist/types/generated/map-layers.d.ts.map +1 -0
- package/dist/types/generated/map-layers.js +6 -0
- package/dist/types/generated/map-layers.js.map +1 -0
- package/dist/types/generated/operators.d.ts +361 -0
- package/dist/types/generated/operators.d.ts.map +1 -0
- package/dist/types/generated/operators.js +6 -0
- package/dist/types/generated/operators.js.map +1 -0
- package/dist/types/generated/organizations.d.ts +308 -0
- package/dist/types/generated/organizations.d.ts.map +1 -0
- package/dist/types/generated/organizations.js +6 -0
- package/dist/types/generated/organizations.js.map +1 -0
- package/dist/types/generated/products.d.ts +1165 -0
- package/dist/types/generated/products.d.ts.map +1 -0
- package/dist/types/generated/products.js +6 -0
- package/dist/types/generated/products.js.map +1 -0
- package/dist/types/generated/users.d.ts +96 -0
- package/dist/types/generated/users.d.ts.map +1 -0
- package/dist/types/generated/users.js +6 -0
- package/dist/types/generated/users.js.map +1 -0
- package/dist/types/generated/webhook.d.ts +475 -0
- package/dist/types/generated/webhook.d.ts.map +1 -0
- package/dist/types/generated/webhook.js +6 -0
- package/dist/types/generated/webhook.js.map +1 -0
- package/dist/types/index.d.ts +25 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +25 -0
- package/dist/types/index.js.map +1 -0
- package/package.json +70 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MapLayersApi
|
|
3
|
+
*
|
|
4
|
+
* Auto-generated SDK wrapper for John Deere map-layers API.
|
|
5
|
+
* @generated from map-layers.yaml
|
|
6
|
+
*/
|
|
7
|
+
import type { DeereClient, RequestOptions } from '../client.js';
|
|
8
|
+
import type { components } from '../types/generated/map-layers.js';
|
|
9
|
+
export declare class MapLayersApi {
|
|
10
|
+
private readonly client;
|
|
11
|
+
constructor(client: DeereClient);
|
|
12
|
+
/**
|
|
13
|
+
* List Map Layer Summaries
|
|
14
|
+
* @description This resource will list all Map Layer Summaries for a specified field.<br/>
|
|
15
|
+
* @generated from GET /organizations/{orgId}/fields/{id}/mapLayerSummaries
|
|
16
|
+
*/
|
|
17
|
+
list(orgId: string, id: string, params?: {
|
|
18
|
+
includePartialSummaries?: boolean;
|
|
19
|
+
embed?: string;
|
|
20
|
+
}, options?: RequestOptions): Promise<unknown>;
|
|
21
|
+
/**
|
|
22
|
+
* Get all items (follows pagination automatically)
|
|
23
|
+
* @generated from GET /organizations/{orgId}/fields/{id}/mapLayerSummaries
|
|
24
|
+
*/
|
|
25
|
+
listAll(orgId: string, id: string, params?: {
|
|
26
|
+
includePartialSummaries?: boolean;
|
|
27
|
+
embed?: string;
|
|
28
|
+
}, options?: RequestOptions): Promise<unknown[]>;
|
|
29
|
+
/**
|
|
30
|
+
* Create a map layer summary
|
|
31
|
+
* @description Creates a new Map Layer Summary resource.
|
|
32
|
+
* @generated from POST /organizations/{orgId}/fields/{id}/mapLayerSummaries
|
|
33
|
+
*/
|
|
34
|
+
create(orgId: string, id: string, data: Record<string, unknown>, options?: RequestOptions): Promise<void>;
|
|
35
|
+
/**
|
|
36
|
+
* View a Map Layer Summary
|
|
37
|
+
* @description Returns a specific Map Layer Summary resource.
|
|
38
|
+
* @generated from GET /mapLayerSummaries/{id}
|
|
39
|
+
*/
|
|
40
|
+
get(id: string, options?: RequestOptions): Promise<components['schemas']['PostContributedMapLayerSummary']>;
|
|
41
|
+
/**
|
|
42
|
+
* Delete a Map Layer Summary
|
|
43
|
+
* @description Deletes a Map Layer Summary and its underlying Map Layer and File Resource resources.
|
|
44
|
+
* @generated from DELETE /mapLayerSummaries/{id}
|
|
45
|
+
*/
|
|
46
|
+
delete(id: string, options?: RequestOptions): Promise<void>;
|
|
47
|
+
}
|
|
48
|
+
export type { components as MapLayersTypes } from '../types/generated/map-layers.js';
|
|
49
|
+
//# sourceMappingURL=map-layers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"map-layers.d.ts","sourceRoot":"","sources":["../../src/api/map-layers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAqB,MAAM,cAAc,CAAC;AACnF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAEnE,qBAAa,YAAY;IACX,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,WAAW;IAEhD;;;;OAIG;IACG,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE;QAAE,uBAAuB,CAAC,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;IAQjJ;;;OAGG;IACG,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE;QAAE,uBAAuB,CAAC,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAStJ;;;;OAIG;IACG,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;IAK/G;;;;OAIG;IACG,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,gCAAgC,CAAC,CAAC;IAKjH;;;;OAIG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC;CAIlE;AAGD,YAAY,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,kCAAkC,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MapLayersApi
|
|
3
|
+
*
|
|
4
|
+
* Auto-generated SDK wrapper for John Deere map-layers API.
|
|
5
|
+
* @generated from map-layers.yaml
|
|
6
|
+
*/
|
|
7
|
+
export class MapLayersApi {
|
|
8
|
+
client;
|
|
9
|
+
constructor(client) {
|
|
10
|
+
this.client = client;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* List Map Layer Summaries
|
|
14
|
+
* @description This resource will list all Map Layer Summaries for a specified field.<br/>
|
|
15
|
+
* @generated from GET /organizations/{orgId}/fields/{id}/mapLayerSummaries
|
|
16
|
+
*/
|
|
17
|
+
async list(orgId, id, params, options) {
|
|
18
|
+
const query = new URLSearchParams();
|
|
19
|
+
if (params?.includePartialSummaries !== undefined)
|
|
20
|
+
query.set('includePartialSummaries', String(params.includePartialSummaries));
|
|
21
|
+
if (params?.embed !== undefined)
|
|
22
|
+
query.set('embed', String(params.embed));
|
|
23
|
+
const queryString = query.toString();
|
|
24
|
+
const path = `/organizations/${orgId}/fields/${id}/mapLayerSummaries${queryString ? `?${queryString}` : ''}`;
|
|
25
|
+
return this.client.get(path, options);
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Get all items (follows pagination automatically)
|
|
29
|
+
* @generated from GET /organizations/{orgId}/fields/{id}/mapLayerSummaries
|
|
30
|
+
*/
|
|
31
|
+
async listAll(orgId, id, params, options) {
|
|
32
|
+
const query = new URLSearchParams();
|
|
33
|
+
if (params?.includePartialSummaries !== undefined)
|
|
34
|
+
query.set('includePartialSummaries', String(params.includePartialSummaries));
|
|
35
|
+
if (params?.embed !== undefined)
|
|
36
|
+
query.set('embed', String(params.embed));
|
|
37
|
+
const queryString = query.toString();
|
|
38
|
+
const path = `/organizations/${orgId}/fields/${id}/mapLayerSummaries${queryString ? `?${queryString}` : ''}`;
|
|
39
|
+
return this.client.getAll(path, options);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Create a map layer summary
|
|
43
|
+
* @description Creates a new Map Layer Summary resource.
|
|
44
|
+
* @generated from POST /organizations/{orgId}/fields/{id}/mapLayerSummaries
|
|
45
|
+
*/
|
|
46
|
+
async create(orgId, id, data, options) {
|
|
47
|
+
const path = `/organizations/${orgId}/fields/${id}/mapLayerSummaries`;
|
|
48
|
+
await this.client.post(path, data, options);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* View a Map Layer Summary
|
|
52
|
+
* @description Returns a specific Map Layer Summary resource.
|
|
53
|
+
* @generated from GET /mapLayerSummaries/{id}
|
|
54
|
+
*/
|
|
55
|
+
async get(id, options) {
|
|
56
|
+
const path = `/mapLayerSummaries/${id}`;
|
|
57
|
+
return this.client.get(path, options);
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Delete a Map Layer Summary
|
|
61
|
+
* @description Deletes a Map Layer Summary and its underlying Map Layer and File Resource resources.
|
|
62
|
+
* @generated from DELETE /mapLayerSummaries/{id}
|
|
63
|
+
*/
|
|
64
|
+
async delete(id, options) {
|
|
65
|
+
const path = `/mapLayerSummaries/${id}`;
|
|
66
|
+
await this.client.delete(path, options);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=map-layers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"map-layers.js","sourceRoot":"","sources":["../../src/api/map-layers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,MAAM,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AAE,CAAC;QACrC,MAAM,IAAI,GAAG,kBAAkB,KAAK,WAAW,EAAE,qBAAqB,WAAW,CAAC,CAAC,CAAC,IAAI,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;QAC7G,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAU,IAAI,EAAE,OAAO,CAAC,CAAC;IACpD,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,MAAM,CAAC,KAAa,EAAE,EAAU,EAAE,IAA6B,EAAE,OAAwB;QAC7F,MAAM,IAAI,GAAG,kBAAkB,KAAK,WAAW,EAAE,oBAAoB,CAAC;QACtE,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IAC9C,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,GAAG,CAAC,EAAU,EAAE,OAAwB;QAC5C,MAAM,IAAI,GAAG,sBAAsB,EAAE,EAAE,CAAC;QACxC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAA0D,IAAI,EAAE,OAAO,CAAC,CAAC;IACjG,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,MAAM,CAAC,EAAU,EAAE,OAAwB;QAC/C,MAAM,IAAI,GAAG,sBAAsB,EAAE,EAAE,CAAC;QACxC,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC1C,CAAC;CACF"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OperatorsApi
|
|
3
|
+
*
|
|
4
|
+
* Auto-generated SDK wrapper for John Deere operators API.
|
|
5
|
+
* @generated from operators.yaml
|
|
6
|
+
*/
|
|
7
|
+
import type { DeereClient, RequestOptions, PaginatedResponse } from '../client.js';
|
|
8
|
+
import type { components } from '../types/generated/operators.js';
|
|
9
|
+
export declare class OperatorsApi {
|
|
10
|
+
private readonly client;
|
|
11
|
+
constructor(client: DeereClient);
|
|
12
|
+
/**
|
|
13
|
+
* Retrieve all Operators for a given org
|
|
14
|
+
* @description This endpoint will return list of operators in the system for the provided organization ID
|
|
15
|
+
* @generated from GET /organizations/{orgId}/operators
|
|
16
|
+
*/
|
|
17
|
+
list(orgId: string, params?: {
|
|
18
|
+
embed?: string;
|
|
19
|
+
recordFilter?: string;
|
|
20
|
+
lastModifiedTime?: unknown;
|
|
21
|
+
}, options?: RequestOptions): Promise<PaginatedResponse<components['schemas']['GetResponseDetails']>>;
|
|
22
|
+
/**
|
|
23
|
+
* Get all items (follows pagination automatically)
|
|
24
|
+
* @generated from GET /organizations/{orgId}/operators
|
|
25
|
+
*/
|
|
26
|
+
listAll(orgId: string, params?: {
|
|
27
|
+
embed?: string;
|
|
28
|
+
recordFilter?: string;
|
|
29
|
+
lastModifiedTime?: unknown;
|
|
30
|
+
}, options?: RequestOptions): Promise<components['schemas']['GetResponseDetails'][]>;
|
|
31
|
+
/**
|
|
32
|
+
* Create an Operator
|
|
33
|
+
* @description This endpoint will create a new Operator in the system for the provided organization ID
|
|
34
|
+
* @generated from POST /organizations/{orgId}/operators
|
|
35
|
+
*/
|
|
36
|
+
create(orgId: string, data: Record<string, unknown>, options?: RequestOptions): Promise<void>;
|
|
37
|
+
/**
|
|
38
|
+
* Delete all Operators for a given org
|
|
39
|
+
* @description This endpoint will delete every operator in the system for the provided organization ID
|
|
40
|
+
* @generated from DELETE /organizations/{orgId}/operators
|
|
41
|
+
*/
|
|
42
|
+
delete(orgId: string, options?: RequestOptions): Promise<void>;
|
|
43
|
+
/**
|
|
44
|
+
* Retrieve a specific Operator in an org by Operator ID
|
|
45
|
+
* @description This endpoint will return a specific operator in the system in an org for the provided Operator ID to the data of an operator in the request body
|
|
46
|
+
* @generated from GET /organizations/{orgId}/operators/{id}
|
|
47
|
+
*/
|
|
48
|
+
get(orgId: string, id: string, params?: {
|
|
49
|
+
embed?: string;
|
|
50
|
+
}, options?: RequestOptions): Promise<components['schemas']['GetResponseOperatorDetails']>;
|
|
51
|
+
/**
|
|
52
|
+
* Update a specific Operator in an org by Operator ID
|
|
53
|
+
* @description This endpoint will update a specific operator in the system in an org for the provided Operator ID to the data of an operator in the request body
|
|
54
|
+
* @generated from PUT /organizations/{orgId}/operators/{id}
|
|
55
|
+
*/
|
|
56
|
+
update(orgId: string, id: string, data: Record<string, unknown>, options?: RequestOptions): Promise<void>;
|
|
57
|
+
/**
|
|
58
|
+
* Delete a specific Operator in an org by Operator ID
|
|
59
|
+
* @description This endpoint will delete a specific operator in the system in an org for the provided Operator ID
|
|
60
|
+
* @generated from DELETE /organizations/{orgId}/operators/{id}
|
|
61
|
+
*/
|
|
62
|
+
deleteOperators(orgId: string, id: string, params?: {
|
|
63
|
+
orgid?: string;
|
|
64
|
+
}, options?: RequestOptions): Promise<void>;
|
|
65
|
+
}
|
|
66
|
+
export type { components as OperatorsTypes } from '../types/generated/operators.js';
|
|
67
|
+
//# sourceMappingURL=operators.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operators.d.ts","sourceRoot":"","sources":["../../src/api/operators.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,iCAAiC,CAAC;AAElE,qBAAa,YAAY;IACX,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,CAAC;QAAC,gBAAgB,CAAC,EAAE,OAAO,CAAA;KAAE,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,iBAAiB,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,oBAAo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vH;AAGD,YAAY,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OperatorsApi
|
|
3
|
+
*
|
|
4
|
+
* Auto-generated SDK wrapper for John Deere operators API.
|
|
5
|
+
* @generated from operators.yaml
|
|
6
|
+
*/
|
|
7
|
+
export class OperatorsApi {
|
|
8
|
+
client;
|
|
9
|
+
constructor(client) {
|
|
10
|
+
this.client = client;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Retrieve all Operators for a given org
|
|
14
|
+
* @description This endpoint will return list of operators in the system for the provided organization ID
|
|
15
|
+
* @generated from GET /organizations/{orgId}/operators
|
|
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
|
+
if (params?.lastModifiedTime !== undefined)
|
|
24
|
+
query.set('lastModifiedTime', String(params.lastModifiedTime));
|
|
25
|
+
const queryString = query.toString();
|
|
26
|
+
const path = `/organizations/${orgId}/operators${queryString ? `?${queryString}` : ''}`;
|
|
27
|
+
return this.client.get(path, options);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Get all items (follows pagination automatically)
|
|
31
|
+
* @generated from GET /organizations/{orgId}/operators
|
|
32
|
+
*/
|
|
33
|
+
async listAll(orgId, params, options) {
|
|
34
|
+
const query = new URLSearchParams();
|
|
35
|
+
if (params?.embed !== undefined)
|
|
36
|
+
query.set('embed', String(params.embed));
|
|
37
|
+
if (params?.recordFilter !== undefined)
|
|
38
|
+
query.set('recordFilter', String(params.recordFilter));
|
|
39
|
+
if (params?.lastModifiedTime !== undefined)
|
|
40
|
+
query.set('lastModifiedTime', String(params.lastModifiedTime));
|
|
41
|
+
const queryString = query.toString();
|
|
42
|
+
const path = `/organizations/${orgId}/operators${queryString ? `?${queryString}` : ''}`;
|
|
43
|
+
return this.client.getAll(path, options);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Create an Operator
|
|
47
|
+
* @description This endpoint will create a new Operator in the system for the provided organization ID
|
|
48
|
+
* @generated from POST /organizations/{orgId}/operators
|
|
49
|
+
*/
|
|
50
|
+
async create(orgId, data, options) {
|
|
51
|
+
const path = `/organizations/${orgId}/operators`;
|
|
52
|
+
await this.client.post(path, data, options);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Delete all Operators for a given org
|
|
56
|
+
* @description This endpoint will delete every operator in the system for the provided organization ID
|
|
57
|
+
* @generated from DELETE /organizations/{orgId}/operators
|
|
58
|
+
*/
|
|
59
|
+
async delete(orgId, options) {
|
|
60
|
+
const path = `/organizations/${orgId}/operators`;
|
|
61
|
+
await this.client.delete(path, options);
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Retrieve a specific Operator in an org by Operator ID
|
|
65
|
+
* @description This endpoint will return a specific operator in the system in an org for the provided Operator ID to the data of an operator in the request body
|
|
66
|
+
* @generated from GET /organizations/{orgId}/operators/{id}
|
|
67
|
+
*/
|
|
68
|
+
async get(orgId, id, params, options) {
|
|
69
|
+
const query = new URLSearchParams();
|
|
70
|
+
if (params?.embed !== undefined)
|
|
71
|
+
query.set('embed', String(params.embed));
|
|
72
|
+
const queryString = query.toString();
|
|
73
|
+
const path = `/organizations/${orgId}/operators/${id}${queryString ? `?${queryString}` : ''}`;
|
|
74
|
+
return this.client.get(path, options);
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Update a specific Operator in an org by Operator ID
|
|
78
|
+
* @description This endpoint will update a specific operator in the system in an org for the provided Operator ID to the data of an operator in the request body
|
|
79
|
+
* @generated from PUT /organizations/{orgId}/operators/{id}
|
|
80
|
+
*/
|
|
81
|
+
async update(orgId, id, data, options) {
|
|
82
|
+
const path = `/organizations/${orgId}/operators/${id}`;
|
|
83
|
+
await this.client.put(path, data, options);
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Delete a specific Operator in an org by Operator ID
|
|
87
|
+
* @description This endpoint will delete a specific operator in the system in an org for the provided Operator ID
|
|
88
|
+
* @generated from DELETE /organizations/{orgId}/operators/{id}
|
|
89
|
+
*/
|
|
90
|
+
async deleteOperators(orgId, id, params, options) {
|
|
91
|
+
const query = new URLSearchParams();
|
|
92
|
+
if (params?.orgid !== undefined)
|
|
93
|
+
query.set('orgid', String(params.orgid));
|
|
94
|
+
const queryString = query.toString();
|
|
95
|
+
const path = `/organizations/${orgId}/operators/${id}${queryString ? `?${queryString}` : ''}`;
|
|
96
|
+
await this.client.delete(path, options);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
//# sourceMappingURL=operators.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operators.js","sourceRoot":"","sources":["../../src/api/operators.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,KAAa,EAAE,MAA8E,EAAE,OAAwB;QAChI,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,CAAC,GAAG,CAAC,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC;QAC/F,IAAI,MAAM,EAAE,gBAAgB,KAAK,SAAS;YAAE,KAAK,CAAC,GAAG,CAAC,kBAA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pG,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,MAAM,WAAW,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC;QACrC,MAAM,IAAI,GAAG,kBAAkB,KAAK,cAAc,EAAE,GAAG,WAAW,CAAC,CAAC,CAAC,IAAI,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;QAC9F,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAC1C,CAAC;CACF"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OrganizationsApi
|
|
3
|
+
*
|
|
4
|
+
* Auto-generated SDK wrapper for John Deere organizations API.
|
|
5
|
+
* @generated from organizations.yaml
|
|
6
|
+
*/
|
|
7
|
+
import type { DeereClient, RequestOptions, PaginatedResponse } from '../client.js';
|
|
8
|
+
import type { components } from '../types/generated/organizations.js';
|
|
9
|
+
export declare class OrganizationsApi {
|
|
10
|
+
private readonly client;
|
|
11
|
+
constructor(client: DeereClient);
|
|
12
|
+
/**
|
|
13
|
+
* List Orgs
|
|
14
|
+
* @description This request will return a list of organizations.
|
|
15
|
+
* @generated from GET /organizations
|
|
16
|
+
*/
|
|
17
|
+
list(params?: {
|
|
18
|
+
userName?: string;
|
|
19
|
+
orgId?: string;
|
|
20
|
+
orgName?: string;
|
|
21
|
+
}, options?: RequestOptions): Promise<PaginatedResponse<components['schemas']['Organization']>>;
|
|
22
|
+
/**
|
|
23
|
+
* Get all items (follows pagination automatically)
|
|
24
|
+
* @generated from GET /organizations
|
|
25
|
+
*/
|
|
26
|
+
listAll(params?: {
|
|
27
|
+
userName?: string;
|
|
28
|
+
orgId?: string;
|
|
29
|
+
orgName?: string;
|
|
30
|
+
}, options?: RequestOptions): Promise<components['schemas']['Organization'][]>;
|
|
31
|
+
/**
|
|
32
|
+
* View an Organization
|
|
33
|
+
* @description This request will return information about an organization, such as its name, type, and whether or not you are a member of the organization. It contains links to the following resources:
|
|
34
|
+
* @generated from GET /organizations/{orgId}
|
|
35
|
+
*/
|
|
36
|
+
get(orgId: string, options?: RequestOptions): Promise<components['schemas']['OrganizationView']>;
|
|
37
|
+
/**
|
|
38
|
+
* View User Orgs
|
|
39
|
+
* @description This request will return a list of organizations. The response will ONLY contain organizations in which the user is a staff member (member=true). This response will NOT contain partner organizations in which the user is not a staff member (member=false).
|
|
40
|
+
* @generated from GET /users/{userName}/organizations
|
|
41
|
+
*/
|
|
42
|
+
listOrganizations(userName: string, options?: RequestOptions): Promise<PaginatedResponse<components['schemas']['OrganizationViewGet']>>;
|
|
43
|
+
}
|
|
44
|
+
export type { components as OrganizationsTypes } from '../types/generated/organizations.js';
|
|
45
|
+
//# sourceMappingURL=organizations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organizations.d.ts","sourceRoot":"","sources":["../../src/api/organizations.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,qCAAqC,CAAC;AAEtE,qBAAa,gBAAgB;IACf,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,WAAW;IAEhD;;;;OAIG;IACG,IAAI,CAAC,MAAM,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,iBAAiB,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC;IASzK;;;OAGG;IACG,OAAO,CAAC,MAAM,CAAC,EAAE;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,cAAc,CAAC,EAAE,CAAC;IAU3J;;;;OAIG;IACG,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAC;IAKtG;;;;OAIG;IACG,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,iBAAiB,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC;CAI9I;AAGD,YAAY,EAAE,UAAU,IAAI,kBAAkB,EAAE,MAAM,qCAAqC,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OrganizationsApi
|
|
3
|
+
*
|
|
4
|
+
* Auto-generated SDK wrapper for John Deere organizations API.
|
|
5
|
+
* @generated from organizations.yaml
|
|
6
|
+
*/
|
|
7
|
+
export class OrganizationsApi {
|
|
8
|
+
client;
|
|
9
|
+
constructor(client) {
|
|
10
|
+
this.client = client;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* List Orgs
|
|
14
|
+
* @description This request will return a list of organizations.
|
|
15
|
+
* @generated from GET /organizations
|
|
16
|
+
*/
|
|
17
|
+
async list(params, options) {
|
|
18
|
+
const query = new URLSearchParams();
|
|
19
|
+
if (params?.userName !== undefined)
|
|
20
|
+
query.set('userName', String(params.userName));
|
|
21
|
+
if (params?.orgId !== undefined)
|
|
22
|
+
query.set('orgId', String(params.orgId));
|
|
23
|
+
if (params?.orgName !== undefined)
|
|
24
|
+
query.set('orgName', String(params.orgName));
|
|
25
|
+
const queryString = query.toString();
|
|
26
|
+
const path = `/organizations${queryString ? `?${queryString}` : ''}`;
|
|
27
|
+
return this.client.get(path, options);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Get all items (follows pagination automatically)
|
|
31
|
+
* @generated from GET /organizations
|
|
32
|
+
*/
|
|
33
|
+
async listAll(params, options) {
|
|
34
|
+
const query = new URLSearchParams();
|
|
35
|
+
if (params?.userName !== undefined)
|
|
36
|
+
query.set('userName', String(params.userName));
|
|
37
|
+
if (params?.orgId !== undefined)
|
|
38
|
+
query.set('orgId', String(params.orgId));
|
|
39
|
+
if (params?.orgName !== undefined)
|
|
40
|
+
query.set('orgName', String(params.orgName));
|
|
41
|
+
const queryString = query.toString();
|
|
42
|
+
const path = `/organizations${queryString ? `?${queryString}` : ''}`;
|
|
43
|
+
return this.client.getAll(path, options);
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* View an Organization
|
|
47
|
+
* @description This request will return information about an organization, such as its name, type, and whether or not you are a member of the organization. It contains links to the following resources:
|
|
48
|
+
* @generated from GET /organizations/{orgId}
|
|
49
|
+
*/
|
|
50
|
+
async get(orgId, options) {
|
|
51
|
+
const path = `/organizations/${orgId}`;
|
|
52
|
+
return this.client.get(path, options);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* View User Orgs
|
|
56
|
+
* @description This request will return a list of organizations. The response will ONLY contain organizations in which the user is a staff member (member=true). This response will NOT contain partner organizations in which the user is not a staff member (member=false).
|
|
57
|
+
* @generated from GET /users/{userName}/organizations
|
|
58
|
+
*/
|
|
59
|
+
async listOrganizations(userName, options) {
|
|
60
|
+
const path = `/users/${userName}/organizations`;
|
|
61
|
+
return this.client.get(path, options);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=organizations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|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AK,SAAS;YAAE,KAAK,CAAC,GAAG,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QAC1E,IAAI,MAAM,EAAE,OAAO,KAAK,SAAS;YAAE,KAAK,CAAC,GAAG,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;QAChF,MAAM,WAAW,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC;QACrC,MAAM,IAAI,GAAG,iBAAiB,WAAW,CAAC,CAAC,CAAC,IAAI,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;QACrE,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAwC,IAAI,EAAE,OAAO,CAAC,CAAC;IAClF,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,GAAG,CAAC,KAAa,EAAE,OAAwB;QAC/C,MAAM,IAAI,GAAG,kBAAkB,KAAK,EAAE,CAAC;QACvC,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAA4C,IAAI,EAAE,OAAO,CAAC,CAAC;IACnF,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,iBAAiB,CAAC,QAAgB,EAAE,OAAwB;QAChE,MAAM,IAAI,GAAG,UAAU,QAAQ,gBAAgB,CAAC;QAChD,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAkE,IAAI,EAAE,OAAO,CAAC,CAAC;IACzG,CAAC;CACF"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ProductsApi
|
|
3
|
+
*
|
|
4
|
+
* Auto-generated SDK wrapper for John Deere products API.
|
|
5
|
+
* @generated from products.yaml
|
|
6
|
+
*/
|
|
7
|
+
import type { DeereClient, RequestOptions, PaginatedResponse } from '../client.js';
|
|
8
|
+
import type { components } from '../types/generated/products.js';
|
|
9
|
+
export declare class ProductsApi {
|
|
10
|
+
private readonly client;
|
|
11
|
+
constructor(client: DeereClient);
|
|
12
|
+
/**
|
|
13
|
+
* View varieties for an org
|
|
14
|
+
* @description This endpoint will retrieve a collection of varieties for the specified org.
|
|
15
|
+
* @generated from GET /organizations/{organizationId}/varieties
|
|
16
|
+
*/
|
|
17
|
+
list(organizationId: string, params?: {
|
|
18
|
+
status?: 'AVAILABLE' | 'ARCHIVED' | 'ALL';
|
|
19
|
+
embed?: 'documents' | 'showMergedProducts';
|
|
20
|
+
}, options?: RequestOptions): Promise<PaginatedResponse<components['schemas']['VarietyCollection']>>;
|
|
21
|
+
/**
|
|
22
|
+
* Get all items (follows pagination automatically)
|
|
23
|
+
* @generated from GET /organizations/{organizationId}/varieties
|
|
24
|
+
*/
|
|
25
|
+
listAll(organizationId: string, params?: {
|
|
26
|
+
status?: 'AVAILABLE' | 'ARCHIVED' | 'ALL';
|
|
27
|
+
embed?: 'documents' | 'showMergedProducts';
|
|
28
|
+
}, options?: RequestOptions): Promise<components['schemas']['VarietyCollection'][]>;
|
|
29
|
+
/**
|
|
30
|
+
* Add a variety
|
|
31
|
+
* @description This endpoint will add a custom variety into the organization. Its name+cropName must be unique within your organization. Its crop name must be a supported crop name (see /cropTypes). There are a number of crop names that are deprecated in the system. If the crop name is set to one of these, then it will be mapped to its corresponding valid crop name. </br> </br> Additionally, POST can be used for supporting offline creation of varieties from e.g. a mobile app, by sending a payload with an `id` generated by the client. If an `id` is present in the payload, the service checks the database for that `id`.</br> </br> In case no record is found, a new one is created with that `id` and the request is responded with 201.</br> Otherwise no creation happens and the request is responded with 409 and error message that a resource with that `id` already exists.
|
|
32
|
+
* @generated from POST /organizations/{organizationId}/varieties
|
|
33
|
+
*/
|
|
34
|
+
create(organizationId: string, data: Record<string, unknown>, options?: RequestOptions): Promise<void>;
|
|
35
|
+
/**
|
|
36
|
+
* View a specific variety
|
|
37
|
+
* @description This endpoint will return the variety with the specified erid.
|
|
38
|
+
* @generated from GET /organizations/{organizationId}/varieties/{erid}
|
|
39
|
+
*/
|
|
40
|
+
get(organizationId: string, erid: string, params?: {
|
|
41
|
+
embed?: 'documents' | 'showMergedProducts';
|
|
42
|
+
}, options?: RequestOptions): Promise<components['schemas']['Variety']>;
|
|
43
|
+
/**
|
|
44
|
+
* Update a single variety
|
|
45
|
+
* @description This endpoint allows the custom variety to be renamed, made active/archived, or associated to a different manufacturer or crop type.
|
|
46
|
+
* @generated from PUT /organizations/{organizationId}/varieties/{erid}
|
|
47
|
+
*/
|
|
48
|
+
update(organizationId: string, erid: string, data: Record<string, unknown>, options?: RequestOptions): Promise<void>;
|
|
49
|
+
/**
|
|
50
|
+
* Adds a single reference variety to organization
|
|
51
|
+
* @description This endpoint will associate a reference variety to your organization from the global reference list.
|
|
52
|
+
* @generated from POST /varieties/{erid}/associateToOrg/{organizationId}
|
|
53
|
+
*/
|
|
54
|
+
createAssociatetoorg(erid: string, organizationId: string, data: Record<string, unknown>, options?: RequestOptions): Promise<void>;
|
|
55
|
+
/**
|
|
56
|
+
* Search reference catalog varieties
|
|
57
|
+
* @description This endpoint searches the reference catalog for varieties that match the given search criteria. This data can be used in a subsequent request to create a variety in an organization. Results are limited to 100 items.
|
|
58
|
+
* @generated from GET /varieties
|
|
59
|
+
*/
|
|
60
|
+
listVarieties(params?: {
|
|
61
|
+
searchString?: string;
|
|
62
|
+
cropName?: string;
|
|
63
|
+
productName?: string;
|
|
64
|
+
brandName?: string;
|
|
65
|
+
sourceSystemProductId?: string;
|
|
66
|
+
countryCode?: string;
|
|
67
|
+
}, options?: RequestOptions): Promise<PaginatedResponse<components['schemas']['ReferenceVarietyCollection']>>;
|
|
68
|
+
/**
|
|
69
|
+
* Get a single reference variety.
|
|
70
|
+
* @description Single variety from industry data sources, such as CDMS.
|
|
71
|
+
* @generated from GET /varieties/{erid}
|
|
72
|
+
*/
|
|
73
|
+
getVarieties(erid: string, options?: RequestOptions): Promise<components['schemas']['ReferenceVariety']>;
|
|
74
|
+
/**
|
|
75
|
+
* Reference list of documents for an associated seed variety.
|
|
76
|
+
* @description List of all the documents for a variety from industry data sources, such as CDMS.
|
|
77
|
+
* @generated from GET /varieties/{erid}/documents
|
|
78
|
+
*/
|
|
79
|
+
listDocuments(erid: string, options?: RequestOptions): Promise<PaginatedResponse<components['schemas']['DocumentCollection']>>;
|
|
80
|
+
/**
|
|
81
|
+
* Sets organizational attributes such as isCarrier, archived, registration, etc.
|
|
82
|
+
* @description This endpoint will set attribute overrides while importing a reference variety to your organization. The reference varieties are immutable, however, they can still be archived or made available. The response headers from the GET endpoints will include the attributes that can be overridden.
|
|
83
|
+
* @generated from PATCH /varieties/{erid}/setOverridesForOrg/{organizationId}
|
|
84
|
+
*/
|
|
85
|
+
patch(erid: string, organizationId: string, data: Record<string, unknown>, options?: RequestOptions): Promise<void>;
|
|
86
|
+
}
|
|
87
|
+
export type { components as ProductsTypes } from '../types/generated/products.js';
|
|
88
|
+
//# sourceMappingURL=products.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"products.d.ts","sourceRoot":"","sources":["../../src/api/products.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,gCAAgC,CAAC;AAEjE,qBAAa,WAAW;IACV,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,WAAW;IAEhD;;;;OAIG;IACG,IAAI,CAAC,cAAc,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE;QAAE,MAAM,CAAC,EAAE,WAAW,GAAG,UAAU,GAAG,KAAK,CAAC;QAAC,KAAK,CAAC,EAAE,WAAW,GAAG,oBAAoB,CAAA;KAAE,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,iBAAiB,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC;IAQxO;;;OAGG;IACG,OAAO,CAAC,cAAc,EAA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