@leavepulse/control-sdk 0.3.36 → 0.3.38
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/models.ts +2 -0
- package/package.json +1 -1
- package/resources/ControlDcimDeviceType.ts +11 -0
- package/types.ts +81 -0
package/models.ts
CHANGED
|
@@ -195,6 +195,8 @@ export type UpdateOutletRequest = components["schemas"]["UpdateOutletRequest"];
|
|
|
195
195
|
export type UpdatePduRequest = components["schemas"]["UpdatePduRequest"];
|
|
196
196
|
export type UpdatePortRequest = components["schemas"]["UpdatePortRequest"];
|
|
197
197
|
export type UpdateRackRequest = components["schemas"]["UpdateRackRequest"];
|
|
198
|
+
export type UploadImageRequest = components["schemas"]["UploadImageRequest"];
|
|
199
|
+
export type UploadImageResponse = components["schemas"]["UploadImageResponse"];
|
|
198
200
|
export type UpsertComponentTypeRequest =
|
|
199
201
|
components["schemas"]["UpsertComponentTypeRequest"];
|
|
200
202
|
export type UpsertDeviceTypeRequest =
|
package/package.json
CHANGED
|
@@ -79,6 +79,17 @@ export class ControlDcimDeviceType extends Resource<Data> {
|
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
+
/** control.dcim.catalog.images.upload */
|
|
83
|
+
async dcimCatalogImagesUpload(
|
|
84
|
+
body: models.UploadImageRequest,
|
|
85
|
+
): Promise<models.UploadImageResponse> {
|
|
86
|
+
return this.ctx.transport.request<models.UploadImageResponse>({
|
|
87
|
+
method: "POST",
|
|
88
|
+
path: `/v1/control/dcim/catalog/images`,
|
|
89
|
+
body,
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
|
|
82
93
|
/** control.dcim.catalog.import */
|
|
83
94
|
async dcimCatalogImport(
|
|
84
95
|
body: models.ImportDeviceTypesRequest,
|
package/types.ts
CHANGED
|
@@ -544,6 +544,23 @@ export interface paths {
|
|
|
544
544
|
patch?: never;
|
|
545
545
|
trace?: never;
|
|
546
546
|
};
|
|
547
|
+
"/v1/control/dcim/catalog/images": {
|
|
548
|
+
parameters: {
|
|
549
|
+
query?: never;
|
|
550
|
+
header?: never;
|
|
551
|
+
path?: never;
|
|
552
|
+
cookie?: never;
|
|
553
|
+
};
|
|
554
|
+
get?: never;
|
|
555
|
+
put?: never;
|
|
556
|
+
/** UploadImage */
|
|
557
|
+
post: operations["control.dcim.catalog.images.upload"];
|
|
558
|
+
delete?: never;
|
|
559
|
+
options?: never;
|
|
560
|
+
head?: never;
|
|
561
|
+
patch?: never;
|
|
562
|
+
trace?: never;
|
|
563
|
+
};
|
|
547
564
|
"/v1/control/dcim/catalog/import": {
|
|
548
565
|
parameters: {
|
|
549
566
|
query?: never;
|
|
@@ -1949,6 +1966,8 @@ export interface components {
|
|
|
1949
1966
|
host_id: string;
|
|
1950
1967
|
/** @default */
|
|
1951
1968
|
tag?: string;
|
|
1969
|
+
/** @default false */
|
|
1970
|
+
zero_downtime?: boolean;
|
|
1952
1971
|
};
|
|
1953
1972
|
/** DeploymentDTO */
|
|
1954
1973
|
DeploymentDTO: {
|
|
@@ -1993,6 +2012,8 @@ export interface components {
|
|
|
1993
2012
|
/** DeviceTypeDTO */
|
|
1994
2013
|
DeviceTypeDTO: {
|
|
1995
2014
|
depth_mm: number;
|
|
2015
|
+
/** @default */
|
|
2016
|
+
front_image_url: string;
|
|
1996
2017
|
height_mm: number;
|
|
1997
2018
|
id: string;
|
|
1998
2019
|
is_complete: boolean;
|
|
@@ -2004,9 +2025,13 @@ export interface components {
|
|
|
2004
2025
|
model: string;
|
|
2005
2026
|
notes: string;
|
|
2006
2027
|
part_number: string;
|
|
2028
|
+
/** @default 0 */
|
|
2029
|
+
port_count: number;
|
|
2007
2030
|
ports?: components["schemas"]["DeviceTypePortDTO"][];
|
|
2008
2031
|
power_input: string;
|
|
2009
2032
|
power_type: string;
|
|
2033
|
+
/** @default */
|
|
2034
|
+
rear_image_url: string;
|
|
2010
2035
|
slug: string;
|
|
2011
2036
|
source: string;
|
|
2012
2037
|
source_ref: string;
|
|
@@ -2222,6 +2247,10 @@ export interface components {
|
|
|
2222
2247
|
};
|
|
2223
2248
|
/** ImportDocumentInput */
|
|
2224
2249
|
ImportDocumentInput: {
|
|
2250
|
+
/** @default */
|
|
2251
|
+
front_image: string;
|
|
2252
|
+
/** @default */
|
|
2253
|
+
rear_image: string;
|
|
2225
2254
|
/** @default */
|
|
2226
2255
|
source_ref: string;
|
|
2227
2256
|
yaml: string;
|
|
@@ -2783,6 +2812,16 @@ export interface components {
|
|
|
2783
2812
|
pos_row?: string | null;
|
|
2784
2813
|
u_height?: number | null;
|
|
2785
2814
|
};
|
|
2815
|
+
/** UploadImageRequest */
|
|
2816
|
+
UploadImageRequest: {
|
|
2817
|
+
content: string;
|
|
2818
|
+
extension: string;
|
|
2819
|
+
};
|
|
2820
|
+
/** UploadImageResponse */
|
|
2821
|
+
UploadImageResponse: {
|
|
2822
|
+
key: string;
|
|
2823
|
+
url: string;
|
|
2824
|
+
};
|
|
2786
2825
|
/** UpsertComponentTypeRequest */
|
|
2787
2826
|
UpsertComponentTypeRequest: {
|
|
2788
2827
|
/** @default */
|
|
@@ -4857,6 +4896,48 @@ export interface operations {
|
|
|
4857
4896
|
};
|
|
4858
4897
|
};
|
|
4859
4898
|
};
|
|
4899
|
+
"control.dcim.catalog.images.upload": {
|
|
4900
|
+
parameters: {
|
|
4901
|
+
query?: never;
|
|
4902
|
+
header?: never;
|
|
4903
|
+
path?: never;
|
|
4904
|
+
cookie?: never;
|
|
4905
|
+
};
|
|
4906
|
+
requestBody: {
|
|
4907
|
+
content: {
|
|
4908
|
+
"application/json": components["schemas"]["UploadImageRequest"];
|
|
4909
|
+
};
|
|
4910
|
+
};
|
|
4911
|
+
responses: {
|
|
4912
|
+
/** @description Document created, URL follows */
|
|
4913
|
+
201: {
|
|
4914
|
+
headers: {
|
|
4915
|
+
[name: string]: unknown;
|
|
4916
|
+
};
|
|
4917
|
+
content: {
|
|
4918
|
+
"application/json": components["schemas"]["UploadImageResponse"];
|
|
4919
|
+
};
|
|
4920
|
+
};
|
|
4921
|
+
/** @description Bad request syntax or unsupported method */
|
|
4922
|
+
400: {
|
|
4923
|
+
headers: {
|
|
4924
|
+
[name: string]: unknown;
|
|
4925
|
+
};
|
|
4926
|
+
content: {
|
|
4927
|
+
"application/json": {
|
|
4928
|
+
detail: string;
|
|
4929
|
+
extra?:
|
|
4930
|
+
| null
|
|
4931
|
+
| {
|
|
4932
|
+
[key: string]: unknown;
|
|
4933
|
+
}
|
|
4934
|
+
| unknown[];
|
|
4935
|
+
status_code: number;
|
|
4936
|
+
};
|
|
4937
|
+
};
|
|
4938
|
+
};
|
|
4939
|
+
};
|
|
4940
|
+
};
|
|
4860
4941
|
"control.dcim.catalog.import": {
|
|
4861
4942
|
parameters: {
|
|
4862
4943
|
query?: never;
|