@rasadov/lumoar-sdk 1.5.2 → 1.5.3

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/api.ts CHANGED
@@ -103,12 +103,6 @@ export interface AssetResponse {
103
103
  * @memberof AssetResponse
104
104
  */
105
105
  'company_id': string;
106
- /**
107
- *
108
- * @type {string}
109
- * @memberof AssetResponse
110
- */
111
- 'user_id'?: string | null;
112
106
  /**
113
107
  *
114
108
  * @type {string}
@@ -145,6 +139,12 @@ export interface AssetResponse {
145
139
  * @memberof AssetResponse
146
140
  */
147
141
  'updated_at': string;
142
+ /**
143
+ *
144
+ * @type {UserWithId}
145
+ * @memberof AssetResponse
146
+ */
147
+ 'user'?: UserWithId | null;
148
148
  }
149
149
  /**
150
150
  *
@@ -11265,6 +11265,45 @@ export const VendorsApiAxiosParamCreator = function (configuration?: Configurati
11265
11265
  options: localVarRequestOptions,
11266
11266
  };
11267
11267
  },
11268
+ /**
11269
+ * Delete vendor and all related records
11270
+ * @summary Delete Vendor
11271
+ * @param {string} vendorId
11272
+ * @param {string} [authorization]
11273
+ * @param {string} [sessionId]
11274
+ * @param {*} [options] Override http request option.
11275
+ * @throws {RequiredError}
11276
+ */
11277
+ deleteVendorV1VendorsVendorIdDelete: async (vendorId: string, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11278
+ // verify required parameter 'vendorId' is not null or undefined
11279
+ assertParamExists('deleteVendorV1VendorsVendorIdDelete', 'vendorId', vendorId)
11280
+ const localVarPath = `/v1/vendors/{vendor_id}`
11281
+ .replace(`{${"vendor_id"}}`, encodeURIComponent(String(vendorId)));
11282
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11283
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11284
+ let baseOptions;
11285
+ if (configuration) {
11286
+ baseOptions = configuration.baseOptions;
11287
+ }
11288
+
11289
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
11290
+ const localVarHeaderParameter = {} as any;
11291
+ const localVarQueryParameter = {} as any;
11292
+
11293
+
11294
+
11295
+ if (authorization != null) {
11296
+ localVarHeaderParameter['Authorization'] = String(authorization);
11297
+ }
11298
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
11299
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11300
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11301
+
11302
+ return {
11303
+ url: toPathString(localVarUrlObj),
11304
+ options: localVarRequestOptions,
11305
+ };
11306
+ },
11268
11307
  /**
11269
11308
  * Get available vendor templates
11270
11309
  * @summary Get Vendor Templates
@@ -11521,6 +11560,21 @@ export const VendorsApiFp = function(configuration?: Configuration) {
11521
11560
  const localVarOperationServerBasePath = operationServerMap['VendorsApi.createVendorV1VendorsPost']?.[localVarOperationServerIndex]?.url;
11522
11561
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11523
11562
  },
11563
+ /**
11564
+ * Delete vendor and all related records
11565
+ * @summary Delete Vendor
11566
+ * @param {string} vendorId
11567
+ * @param {string} [authorization]
11568
+ * @param {string} [sessionId]
11569
+ * @param {*} [options] Override http request option.
11570
+ * @throws {RequiredError}
11571
+ */
11572
+ async deleteVendorV1VendorsVendorIdDelete(vendorId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>> {
11573
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteVendorV1VendorsVendorIdDelete(vendorId, authorization, sessionId, options);
11574
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11575
+ const localVarOperationServerBasePath = operationServerMap['VendorsApi.deleteVendorV1VendorsVendorIdDelete']?.[localVarOperationServerIndex]?.url;
11576
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11577
+ },
11524
11578
  /**
11525
11579
  * Get available vendor templates
11526
11580
  * @summary Get Vendor Templates
@@ -11635,6 +11689,18 @@ export const VendorsApiFactory = function (configuration?: Configuration, basePa
11635
11689
  createVendorV1VendorsPost(companyId: string, vendorCreate: VendorCreate, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<VendorResponse> {
11636
11690
  return localVarFp.createVendorV1VendorsPost(companyId, vendorCreate, authorization, sessionId, options).then((request) => request(axios, basePath));
11637
11691
  },
11692
+ /**
11693
+ * Delete vendor and all related records
11694
+ * @summary Delete Vendor
11695
+ * @param {string} vendorId
11696
+ * @param {string} [authorization]
11697
+ * @param {string} [sessionId]
11698
+ * @param {*} [options] Override http request option.
11699
+ * @throws {RequiredError}
11700
+ */
11701
+ deleteVendorV1VendorsVendorIdDelete(vendorId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<any> {
11702
+ return localVarFp.deleteVendorV1VendorsVendorIdDelete(vendorId, authorization, sessionId, options).then((request) => request(axios, basePath));
11703
+ },
11638
11704
  /**
11639
11705
  * Get available vendor templates
11640
11706
  * @summary Get Vendor Templates
@@ -11738,6 +11804,20 @@ export class VendorsApi extends BaseAPI {
11738
11804
  return VendorsApiFp(this.configuration).createVendorV1VendorsPost(companyId, vendorCreate, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
11739
11805
  }
11740
11806
 
11807
+ /**
11808
+ * Delete vendor and all related records
11809
+ * @summary Delete Vendor
11810
+ * @param {string} vendorId
11811
+ * @param {string} [authorization]
11812
+ * @param {string} [sessionId]
11813
+ * @param {*} [options] Override http request option.
11814
+ * @throws {RequiredError}
11815
+ * @memberof VendorsApi
11816
+ */
11817
+ public deleteVendorV1VendorsVendorIdDelete(vendorId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
11818
+ return VendorsApiFp(this.configuration).deleteVendorV1VendorsVendorIdDelete(vendorId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
11819
+ }
11820
+
11741
11821
  /**
11742
11822
  * Get available vendor templates
11743
11823
  * @summary Get Vendor Templates
package/dist/api.d.ts CHANGED
@@ -93,12 +93,6 @@ export interface AssetResponse {
93
93
  * @memberof AssetResponse
94
94
  */
95
95
  'company_id': string;
96
- /**
97
- *
98
- * @type {string}
99
- * @memberof AssetResponse
100
- */
101
- 'user_id'?: string | null;
102
96
  /**
103
97
  *
104
98
  * @type {string}
@@ -135,6 +129,12 @@ export interface AssetResponse {
135
129
  * @memberof AssetResponse
136
130
  */
137
131
  'updated_at': string;
132
+ /**
133
+ *
134
+ * @type {UserWithId}
135
+ * @memberof AssetResponse
136
+ */
137
+ 'user'?: UserWithId | null;
138
138
  }
139
139
  /**
140
140
  *
@@ -7316,6 +7316,16 @@ export declare const VendorsApiAxiosParamCreator: (configuration?: Configuration
7316
7316
  * @throws {RequiredError}
7317
7317
  */
7318
7318
  createVendorV1VendorsPost: (companyId: string, vendorCreate: VendorCreate, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
7319
+ /**
7320
+ * Delete vendor and all related records
7321
+ * @summary Delete Vendor
7322
+ * @param {string} vendorId
7323
+ * @param {string} [authorization]
7324
+ * @param {string} [sessionId]
7325
+ * @param {*} [options] Override http request option.
7326
+ * @throws {RequiredError}
7327
+ */
7328
+ deleteVendorV1VendorsVendorIdDelete: (vendorId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
7319
7329
  /**
7320
7330
  * Get available vendor templates
7321
7331
  * @summary Get Vendor Templates
@@ -7399,6 +7409,16 @@ export declare const VendorsApiFp: (configuration?: Configuration) => {
7399
7409
  * @throws {RequiredError}
7400
7410
  */
7401
7411
  createVendorV1VendorsPost(companyId: string, vendorCreate: VendorCreate, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VendorResponse>>;
7412
+ /**
7413
+ * Delete vendor and all related records
7414
+ * @summary Delete Vendor
7415
+ * @param {string} vendorId
7416
+ * @param {string} [authorization]
7417
+ * @param {string} [sessionId]
7418
+ * @param {*} [options] Override http request option.
7419
+ * @throws {RequiredError}
7420
+ */
7421
+ deleteVendorV1VendorsVendorIdDelete(vendorId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<any>>;
7402
7422
  /**
7403
7423
  * Get available vendor templates
7404
7424
  * @summary Get Vendor Templates
@@ -7484,6 +7504,16 @@ export declare const VendorsApiFactory: (configuration?: Configuration, basePath
7484
7504
  * @throws {RequiredError}
7485
7505
  */
7486
7506
  createVendorV1VendorsPost(companyId: string, vendorCreate: VendorCreate, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<VendorResponse>;
7507
+ /**
7508
+ * Delete vendor and all related records
7509
+ * @summary Delete Vendor
7510
+ * @param {string} vendorId
7511
+ * @param {string} [authorization]
7512
+ * @param {string} [sessionId]
7513
+ * @param {*} [options] Override http request option.
7514
+ * @throws {RequiredError}
7515
+ */
7516
+ deleteVendorV1VendorsVendorIdDelete(vendorId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<any>;
7487
7517
  /**
7488
7518
  * Get available vendor templates
7489
7519
  * @summary Get Vendor Templates
@@ -7573,6 +7603,17 @@ export declare class VendorsApi extends BaseAPI {
7573
7603
  * @memberof VendorsApi
7574
7604
  */
7575
7605
  createVendorV1VendorsPost(companyId: string, vendorCreate: VendorCreate, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VendorResponse, any, {}>>;
7606
+ /**
7607
+ * Delete vendor and all related records
7608
+ * @summary Delete Vendor
7609
+ * @param {string} vendorId
7610
+ * @param {string} [authorization]
7611
+ * @param {string} [sessionId]
7612
+ * @param {*} [options] Override http request option.
7613
+ * @throws {RequiredError}
7614
+ * @memberof VendorsApi
7615
+ */
7616
+ deleteVendorV1VendorsVendorIdDelete(vendorId: string, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<any, any, {}>>;
7576
7617
  /**
7577
7618
  * Get available vendor templates
7578
7619
  * @summary Get Vendor Templates
package/dist/api.js CHANGED
@@ -7610,6 +7610,40 @@ export const VendorsApiAxiosParamCreator = function (configuration) {
7610
7610
  options: localVarRequestOptions,
7611
7611
  };
7612
7612
  }),
7613
+ /**
7614
+ * Delete vendor and all related records
7615
+ * @summary Delete Vendor
7616
+ * @param {string} vendorId
7617
+ * @param {string} [authorization]
7618
+ * @param {string} [sessionId]
7619
+ * @param {*} [options] Override http request option.
7620
+ * @throws {RequiredError}
7621
+ */
7622
+ deleteVendorV1VendorsVendorIdDelete: (vendorId_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [vendorId_1, authorization_1, sessionId_1, ...args_1], void 0, function* (vendorId, authorization, sessionId, options = {}) {
7623
+ // verify required parameter 'vendorId' is not null or undefined
7624
+ assertParamExists('deleteVendorV1VendorsVendorIdDelete', 'vendorId', vendorId);
7625
+ const localVarPath = `/v1/vendors/{vendor_id}`
7626
+ .replace(`{${"vendor_id"}}`, encodeURIComponent(String(vendorId)));
7627
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7628
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7629
+ let baseOptions;
7630
+ if (configuration) {
7631
+ baseOptions = configuration.baseOptions;
7632
+ }
7633
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
7634
+ const localVarHeaderParameter = {};
7635
+ const localVarQueryParameter = {};
7636
+ if (authorization != null) {
7637
+ localVarHeaderParameter['Authorization'] = String(authorization);
7638
+ }
7639
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7640
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7641
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7642
+ return {
7643
+ url: toPathString(localVarUrlObj),
7644
+ options: localVarRequestOptions,
7645
+ };
7646
+ }),
7613
7647
  /**
7614
7648
  * Get available vendor templates
7615
7649
  * @summary Get Vendor Templates
@@ -7842,6 +7876,24 @@ export const VendorsApiFp = function (configuration) {
7842
7876
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7843
7877
  });
7844
7878
  },
7879
+ /**
7880
+ * Delete vendor and all related records
7881
+ * @summary Delete Vendor
7882
+ * @param {string} vendorId
7883
+ * @param {string} [authorization]
7884
+ * @param {string} [sessionId]
7885
+ * @param {*} [options] Override http request option.
7886
+ * @throws {RequiredError}
7887
+ */
7888
+ deleteVendorV1VendorsVendorIdDelete(vendorId, authorization, sessionId, options) {
7889
+ return __awaiter(this, void 0, void 0, function* () {
7890
+ var _a, _b, _c;
7891
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteVendorV1VendorsVendorIdDelete(vendorId, authorization, sessionId, options);
7892
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7893
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['VendorsApi.deleteVendorV1VendorsVendorIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7894
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7895
+ });
7896
+ },
7845
7897
  /**
7846
7898
  * Get available vendor templates
7847
7899
  * @summary Get Vendor Templates
@@ -7970,6 +8022,18 @@ export const VendorsApiFactory = function (configuration, basePath, axios) {
7970
8022
  createVendorV1VendorsPost(companyId, vendorCreate, authorization, sessionId, options) {
7971
8023
  return localVarFp.createVendorV1VendorsPost(companyId, vendorCreate, authorization, sessionId, options).then((request) => request(axios, basePath));
7972
8024
  },
8025
+ /**
8026
+ * Delete vendor and all related records
8027
+ * @summary Delete Vendor
8028
+ * @param {string} vendorId
8029
+ * @param {string} [authorization]
8030
+ * @param {string} [sessionId]
8031
+ * @param {*} [options] Override http request option.
8032
+ * @throws {RequiredError}
8033
+ */
8034
+ deleteVendorV1VendorsVendorIdDelete(vendorId, authorization, sessionId, options) {
8035
+ return localVarFp.deleteVendorV1VendorsVendorIdDelete(vendorId, authorization, sessionId, options).then((request) => request(axios, basePath));
8036
+ },
7973
8037
  /**
7974
8038
  * Get available vendor templates
7975
8039
  * @summary Get Vendor Templates
@@ -8070,6 +8134,19 @@ export class VendorsApi extends BaseAPI {
8070
8134
  createVendorV1VendorsPost(companyId, vendorCreate, authorization, sessionId, options) {
8071
8135
  return VendorsApiFp(this.configuration).createVendorV1VendorsPost(companyId, vendorCreate, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
8072
8136
  }
8137
+ /**
8138
+ * Delete vendor and all related records
8139
+ * @summary Delete Vendor
8140
+ * @param {string} vendorId
8141
+ * @param {string} [authorization]
8142
+ * @param {string} [sessionId]
8143
+ * @param {*} [options] Override http request option.
8144
+ * @throws {RequiredError}
8145
+ * @memberof VendorsApi
8146
+ */
8147
+ deleteVendorV1VendorsVendorIdDelete(vendorId, authorization, sessionId, options) {
8148
+ return VendorsApiFp(this.configuration).deleteVendorV1VendorsVendorIdDelete(vendorId, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
8149
+ }
8073
8150
  /**
8074
8151
  * Get available vendor templates
8075
8152
  * @summary Get Vendor Templates
@@ -8,13 +8,13 @@ Name | Type | Description | Notes
8
8
  **id** | **string** | | [default to undefined]
9
9
  **vendor_id** | **string** | | [default to undefined]
10
10
  **company_id** | **string** | | [default to undefined]
11
- **user_id** | **string** | | [optional] [default to undefined]
12
11
  **name** | **string** | | [default to undefined]
13
12
  **description** | **string** | | [optional] [default to undefined]
14
13
  **asset_type** | **string** | | [optional] [default to undefined]
15
14
  **vendor** | [**AssetVendorResponse**](AssetVendorResponse.md) | | [optional] [default to undefined]
16
15
  **created_at** | **string** | | [default to undefined]
17
16
  **updated_at** | **string** | | [default to undefined]
17
+ **user** | [**UserWithId**](UserWithId.md) | | [optional] [default to undefined]
18
18
 
19
19
  ## Example
20
20
 
@@ -25,13 +25,13 @@ const instance: AssetResponse = {
25
25
  id,
26
26
  vendor_id,
27
27
  company_id,
28
- user_id,
29
28
  name,
30
29
  description,
31
30
  asset_type,
32
31
  vendor,
33
32
  created_at,
34
33
  updated_at,
34
+ user,
35
35
  };
36
36
  ```
37
37
 
@@ -6,6 +6,7 @@ All URIs are relative to *http://localhost*
6
6
  |------------- | ------------- | -------------|
7
7
  |[**addCertificationV1VendorsVendorIdCertificationsPost**](#addcertificationv1vendorsvendoridcertificationspost) | **POST** /v1/vendors/{vendor_id}/certifications | Add Certification|
8
8
  |[**createVendorV1VendorsPost**](#createvendorv1vendorspost) | **POST** /v1/vendors | Create Vendor|
9
+ |[**deleteVendorV1VendorsVendorIdDelete**](#deletevendorv1vendorsvendoriddelete) | **DELETE** /v1/vendors/{vendor_id} | Delete Vendor|
9
10
  |[**getVendorTemplatesV1VendorsTemplatesGet**](#getvendortemplatesv1vendorstemplatesget) | **GET** /v1/vendors/templates | Get Vendor Templates|
10
11
  |[**getVendorV1VendorsVendorIdGet**](#getvendorv1vendorsvendoridget) | **GET** /v1/vendors/{vendor_id} | Get Vendor|
11
12
  |[**listVendorsV1VendorsGet**](#listvendorsv1vendorsget) | **GET** /v1/vendors | List Vendors|
@@ -128,6 +129,64 @@ No authorization required
128
129
  - **Accept**: application/json
129
130
 
130
131
 
132
+ ### HTTP response details
133
+ | Status code | Description | Response headers |
134
+ |-------------|-------------|------------------|
135
+ |**200** | Successful Response | - |
136
+ |**422** | Validation Error | - |
137
+
138
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
139
+
140
+ # **deleteVendorV1VendorsVendorIdDelete**
141
+ > any deleteVendorV1VendorsVendorIdDelete()
142
+
143
+ Delete vendor and all related records
144
+
145
+ ### Example
146
+
147
+ ```typescript
148
+ import {
149
+ VendorsApi,
150
+ Configuration
151
+ } from './api';
152
+
153
+ const configuration = new Configuration();
154
+ const apiInstance = new VendorsApi(configuration);
155
+
156
+ let vendorId: string; // (default to undefined)
157
+ let authorization: string; // (optional) (default to undefined)
158
+ let sessionId: string; // (optional) (default to undefined)
159
+
160
+ const { status, data } = await apiInstance.deleteVendorV1VendorsVendorIdDelete(
161
+ vendorId,
162
+ authorization,
163
+ sessionId
164
+ );
165
+ ```
166
+
167
+ ### Parameters
168
+
169
+ |Name | Type | Description | Notes|
170
+ |------------- | ------------- | ------------- | -------------|
171
+ | **vendorId** | [**string**] | | defaults to undefined|
172
+ | **authorization** | [**string**] | | (optional) defaults to undefined|
173
+ | **sessionId** | [**string**] | | (optional) defaults to undefined|
174
+
175
+
176
+ ### Return type
177
+
178
+ **any**
179
+
180
+ ### Authorization
181
+
182
+ No authorization required
183
+
184
+ ### HTTP request headers
185
+
186
+ - **Content-Type**: Not defined
187
+ - **Accept**: application/json
188
+
189
+
131
190
  ### HTTP response details
132
191
  | Status code | Description | Response headers |
133
192
  |-------------|-------------|------------------|
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "openapi-generator-cli": "^1.0.0"
5
5
  },
6
6
  "name": "@rasadov/lumoar-sdk",
7
- "version": "1.5.2",
7
+ "version": "1.5.3",
8
8
  "description": "Lumoar API SDK",
9
9
  "main": "dist/index.js",
10
10
  "directories": {