yellowgrid-api-ts 3.2.83-dev.0 → 3.2.85-dev.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/README.md CHANGED
@@ -160,6 +160,7 @@ Class | Method | HTTP request | Description
160
160
  *OrdersApi* | [**getGetEditableOrder**](docs/OrdersApi.md#getgeteditableorder) | **GET** /orders/{id}/views/editable | Get Editable Order (Beta)
161
161
  *OrdersApi* | [**getGetItemSerialInfo**](docs/OrdersApi.md#getgetitemserialinfo) | **GET** /admin/orders/{id}/items/{item_id}/info | Get Item Serial Info (Admin)
162
162
  *OrdersApi* | [**getGetOrderPdf**](docs/OrdersApi.md#getgetorderpdf) | **GET** /orders/{id}/pdf | Download Order PDF
163
+ *OrdersApi* | [**getGetOrderSummary**](docs/OrdersApi.md#getgetordersummary) | **GET** /admin/orders/{id}/summary | Get Order Summary (Admin)
163
164
  *OrdersApi* | [**getGetOrders**](docs/OrdersApi.md#getgetorders) | **GET** /orders | Get Orders (Beta)
164
165
  *OrdersApi* | [**postAddOrderNote**](docs/OrdersApi.md#postaddordernote) | **POST** /admin/orders/{id}/notes | Add Order Note
165
166
  *OrdersApi* | [**postCreateAdminOrder**](docs/OrdersApi.md#postcreateadminorder) | **POST** /admin/orders | Create An Order (Admin)
package/api.ts CHANGED
@@ -20101,6 +20101,40 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
20101
20101
 
20102
20102
 
20103
20103
 
20104
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
20105
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20106
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20107
+
20108
+ return {
20109
+ url: toPathString(localVarUrlObj),
20110
+ options: localVarRequestOptions,
20111
+ };
20112
+ },
20113
+ /**
20114
+ * Get Order Summary (Admin)
20115
+ * @summary Get Order Summary (Admin)
20116
+ * @param {number} id Order ID
20117
+ * @param {*} [options] Override http request option.
20118
+ * @throws {RequiredError}
20119
+ */
20120
+ getGetOrderSummary: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20121
+ // verify required parameter 'id' is not null or undefined
20122
+ assertParamExists('getGetOrderSummary', 'id', id)
20123
+ const localVarPath = `/admin/orders/{id}/summary`
20124
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
20125
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20126
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20127
+ let baseOptions;
20128
+ if (configuration) {
20129
+ baseOptions = configuration.baseOptions;
20130
+ }
20131
+
20132
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
20133
+ const localVarHeaderParameter = {} as any;
20134
+ const localVarQueryParameter = {} as any;
20135
+
20136
+
20137
+
20104
20138
  setSearchParams(localVarUrlObj, localVarQueryParameter);
20105
20139
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20106
20140
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -20918,6 +20952,19 @@ export const OrdersApiFp = function(configuration?: Configuration) {
20918
20952
  const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetOrderPdf']?.[localVarOperationServerIndex]?.url;
20919
20953
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20920
20954
  },
20955
+ /**
20956
+ * Get Order Summary (Admin)
20957
+ * @summary Get Order Summary (Admin)
20958
+ * @param {number} id Order ID
20959
+ * @param {*} [options] Override http request option.
20960
+ * @throws {RequiredError}
20961
+ */
20962
+ async getGetOrderSummary(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderSummaryDTO>> {
20963
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGetOrderSummary(id, options);
20964
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
20965
+ const localVarOperationServerBasePath = operationServerMap['OrdersApi.getGetOrderSummary']?.[localVarOperationServerIndex]?.url;
20966
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
20967
+ },
20921
20968
  /**
20922
20969
  * Get Orders (Beta)
20923
20970
  * @summary Get Orders (Beta)
@@ -21250,6 +21297,16 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
21250
21297
  getGetOrderPdf(id: number, options?: RawAxiosRequestConfig): AxiosPromise<File> {
21251
21298
  return localVarFp.getGetOrderPdf(id, options).then((request) => request(axios, basePath));
21252
21299
  },
21300
+ /**
21301
+ * Get Order Summary (Admin)
21302
+ * @summary Get Order Summary (Admin)
21303
+ * @param {number} id Order ID
21304
+ * @param {*} [options] Override http request option.
21305
+ * @throws {RequiredError}
21306
+ */
21307
+ getGetOrderSummary(id: number, options?: RawAxiosRequestConfig): AxiosPromise<OrderSummaryDTO> {
21308
+ return localVarFp.getGetOrderSummary(id, options).then((request) => request(axios, basePath));
21309
+ },
21253
21310
  /**
21254
21311
  * Get Orders (Beta)
21255
21312
  * @summary Get Orders (Beta)
@@ -21550,6 +21607,18 @@ export class OrdersApi extends BaseAPI {
21550
21607
  return OrdersApiFp(this.configuration).getGetOrderPdf(id, options).then((request) => request(this.axios, this.basePath));
21551
21608
  }
21552
21609
 
21610
+ /**
21611
+ * Get Order Summary (Admin)
21612
+ * @summary Get Order Summary (Admin)
21613
+ * @param {number} id Order ID
21614
+ * @param {*} [options] Override http request option.
21615
+ * @throws {RequiredError}
21616
+ * @memberof OrdersApi
21617
+ */
21618
+ public getGetOrderSummary(id: number, options?: RawAxiosRequestConfig) {
21619
+ return OrdersApiFp(this.configuration).getGetOrderSummary(id, options).then((request) => request(this.axios, this.basePath));
21620
+ }
21621
+
21553
21622
  /**
21554
21623
  * Get Orders (Beta)
21555
21624
  * @summary Get Orders (Beta)
package/dist/api.d.ts CHANGED
@@ -15562,6 +15562,14 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
15562
15562
  * @throws {RequiredError}
15563
15563
  */
15564
15564
  getGetOrderPdf: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15565
+ /**
15566
+ * Get Order Summary (Admin)
15567
+ * @summary Get Order Summary (Admin)
15568
+ * @param {number} id Order ID
15569
+ * @param {*} [options] Override http request option.
15570
+ * @throws {RequiredError}
15571
+ */
15572
+ getGetOrderSummary: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
15565
15573
  /**
15566
15574
  * Get Orders (Beta)
15567
15575
  * @summary Get Orders (Beta)
@@ -15794,6 +15802,14 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
15794
15802
  * @throws {RequiredError}
15795
15803
  */
15796
15804
  getGetOrderPdf(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<File>>;
15805
+ /**
15806
+ * Get Order Summary (Admin)
15807
+ * @summary Get Order Summary (Admin)
15808
+ * @param {number} id Order ID
15809
+ * @param {*} [options] Override http request option.
15810
+ * @throws {RequiredError}
15811
+ */
15812
+ getGetOrderSummary(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderSummaryDTO>>;
15797
15813
  /**
15798
15814
  * Get Orders (Beta)
15799
15815
  * @summary Get Orders (Beta)
@@ -16026,6 +16042,14 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
16026
16042
  * @throws {RequiredError}
16027
16043
  */
16028
16044
  getGetOrderPdf(id: number, options?: RawAxiosRequestConfig): AxiosPromise<File>;
16045
+ /**
16046
+ * Get Order Summary (Admin)
16047
+ * @summary Get Order Summary (Admin)
16048
+ * @param {number} id Order ID
16049
+ * @param {*} [options] Override http request option.
16050
+ * @throws {RequiredError}
16051
+ */
16052
+ getGetOrderSummary(id: number, options?: RawAxiosRequestConfig): AxiosPromise<OrderSummaryDTO>;
16029
16053
  /**
16030
16054
  * Get Orders (Beta)
16031
16055
  * @summary Get Orders (Beta)
@@ -16268,6 +16292,15 @@ export declare class OrdersApi extends BaseAPI {
16268
16292
  * @memberof OrdersApi
16269
16293
  */
16270
16294
  getGetOrderPdf(id: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any, {}>>;
16295
+ /**
16296
+ * Get Order Summary (Admin)
16297
+ * @summary Get Order Summary (Admin)
16298
+ * @param {number} id Order ID
16299
+ * @param {*} [options] Override http request option.
16300
+ * @throws {RequiredError}
16301
+ * @memberof OrdersApi
16302
+ */
16303
+ getGetOrderSummary(id: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderSummaryDTO, any, {}>>;
16271
16304
  /**
16272
16305
  * Get Orders (Beta)
16273
16306
  * @summary Get Orders (Beta)
package/dist/api.js CHANGED
@@ -10161,6 +10161,43 @@ var OrdersApiAxiosParamCreator = function (configuration) {
10161
10161
  });
10162
10162
  });
10163
10163
  },
10164
+ /**
10165
+ * Get Order Summary (Admin)
10166
+ * @summary Get Order Summary (Admin)
10167
+ * @param {number} id Order ID
10168
+ * @param {*} [options] Override http request option.
10169
+ * @throws {RequiredError}
10170
+ */
10171
+ getGetOrderSummary: function (id_1) {
10172
+ var args_1 = [];
10173
+ for (var _i = 1; _i < arguments.length; _i++) {
10174
+ args_1[_i - 1] = arguments[_i];
10175
+ }
10176
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
10177
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
10178
+ if (options === void 0) { options = {}; }
10179
+ return __generator(this, function (_a) {
10180
+ // verify required parameter 'id' is not null or undefined
10181
+ (0, common_1.assertParamExists)('getGetOrderSummary', 'id', id);
10182
+ localVarPath = "/admin/orders/{id}/summary"
10183
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
10184
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10185
+ if (configuration) {
10186
+ baseOptions = configuration.baseOptions;
10187
+ }
10188
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
10189
+ localVarHeaderParameter = {};
10190
+ localVarQueryParameter = {};
10191
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10192
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10193
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10194
+ return [2 /*return*/, {
10195
+ url: (0, common_1.toPathString)(localVarUrlObj),
10196
+ options: localVarRequestOptions,
10197
+ }];
10198
+ });
10199
+ });
10200
+ },
10164
10201
  /**
10165
10202
  * Get Orders (Beta)
10166
10203
  * @summary Get Orders (Beta)
@@ -11071,6 +11108,29 @@ var OrdersApiFp = function (configuration) {
11071
11108
  });
11072
11109
  });
11073
11110
  },
11111
+ /**
11112
+ * Get Order Summary (Admin)
11113
+ * @summary Get Order Summary (Admin)
11114
+ * @param {number} id Order ID
11115
+ * @param {*} [options] Override http request option.
11116
+ * @throws {RequiredError}
11117
+ */
11118
+ getGetOrderSummary: function (id, options) {
11119
+ return __awaiter(this, void 0, void 0, function () {
11120
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
11121
+ var _a, _b, _c;
11122
+ return __generator(this, function (_d) {
11123
+ switch (_d.label) {
11124
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetOrderSummary(id, options)];
11125
+ case 1:
11126
+ localVarAxiosArgs = _d.sent();
11127
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11128
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getGetOrderSummary']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11129
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
11130
+ }
11131
+ });
11132
+ });
11133
+ },
11074
11134
  /**
11075
11135
  * Get Orders (Beta)
11076
11136
  * @summary Get Orders (Beta)
@@ -11563,6 +11623,16 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
11563
11623
  getGetOrderPdf: function (id, options) {
11564
11624
  return localVarFp.getGetOrderPdf(id, options).then(function (request) { return request(axios, basePath); });
11565
11625
  },
11626
+ /**
11627
+ * Get Order Summary (Admin)
11628
+ * @summary Get Order Summary (Admin)
11629
+ * @param {number} id Order ID
11630
+ * @param {*} [options] Override http request option.
11631
+ * @throws {RequiredError}
11632
+ */
11633
+ getGetOrderSummary: function (id, options) {
11634
+ return localVarFp.getGetOrderSummary(id, options).then(function (request) { return request(axios, basePath); });
11635
+ },
11566
11636
  /**
11567
11637
  * Get Orders (Beta)
11568
11638
  * @summary Get Orders (Beta)
@@ -11867,6 +11937,18 @@ var OrdersApi = /** @class */ (function (_super) {
11867
11937
  var _this = this;
11868
11938
  return (0, exports.OrdersApiFp)(this.configuration).getGetOrderPdf(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
11869
11939
  };
11940
+ /**
11941
+ * Get Order Summary (Admin)
11942
+ * @summary Get Order Summary (Admin)
11943
+ * @param {number} id Order ID
11944
+ * @param {*} [options] Override http request option.
11945
+ * @throws {RequiredError}
11946
+ * @memberof OrdersApi
11947
+ */
11948
+ OrdersApi.prototype.getGetOrderSummary = function (id, options) {
11949
+ var _this = this;
11950
+ return (0, exports.OrdersApiFp)(this.configuration).getGetOrderSummary(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
11951
+ };
11870
11952
  /**
11871
11953
  * Get Orders (Beta)
11872
11954
  * @summary Get Orders (Beta)
package/docs/OrdersApi.md CHANGED
@@ -12,6 +12,7 @@ All URIs are relative to *https://api.yellowgrid.local*
12
12
  |[**getGetEditableOrder**](#getgeteditableorder) | **GET** /orders/{id}/views/editable | Get Editable Order (Beta)|
13
13
  |[**getGetItemSerialInfo**](#getgetitemserialinfo) | **GET** /admin/orders/{id}/items/{item_id}/info | Get Item Serial Info (Admin)|
14
14
  |[**getGetOrderPdf**](#getgetorderpdf) | **GET** /orders/{id}/pdf | Download Order PDF|
15
+ |[**getGetOrderSummary**](#getgetordersummary) | **GET** /admin/orders/{id}/summary | Get Order Summary (Admin)|
15
16
  |[**getGetOrders**](#getgetorders) | **GET** /orders | Get Orders (Beta)|
16
17
  |[**postAddOrderNote**](#postaddordernote) | **POST** /admin/orders/{id}/notes | Add Order Note|
17
18
  |[**postCreateAdminOrder**](#postcreateadminorder) | **POST** /admin/orders | Create An Order (Admin)|
@@ -473,6 +474,60 @@ No authorization required
473
474
 
474
475
  [[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)
475
476
 
477
+ # **getGetOrderSummary**
478
+ > OrderSummaryDTO getGetOrderSummary()
479
+
480
+ Get Order Summary (Admin)
481
+
482
+ ### Example
483
+
484
+ ```typescript
485
+ import {
486
+ OrdersApi,
487
+ Configuration
488
+ } from 'yellowgrid-api-ts';
489
+
490
+ const configuration = new Configuration();
491
+ const apiInstance = new OrdersApi(configuration);
492
+
493
+ let id: number; //Order ID (default to undefined)
494
+
495
+ const { status, data } = await apiInstance.getGetOrderSummary(
496
+ id
497
+ );
498
+ ```
499
+
500
+ ### Parameters
501
+
502
+ |Name | Type | Description | Notes|
503
+ |------------- | ------------- | ------------- | -------------|
504
+ | **id** | [**number**] | Order ID | defaults to undefined|
505
+
506
+
507
+ ### Return type
508
+
509
+ **OrderSummaryDTO**
510
+
511
+ ### Authorization
512
+
513
+ No authorization required
514
+
515
+ ### HTTP request headers
516
+
517
+ - **Content-Type**: Not defined
518
+ - **Accept**: application/json
519
+
520
+
521
+ ### HTTP response details
522
+ | Status code | Description | Response headers |
523
+ |-------------|-------------|------------------|
524
+ |**200** | Order Summary | - |
525
+ |**400** | Bad Request | - |
526
+ |**401** | Unauthorised | - |
527
+ |**403** | Access Denied | - |
528
+
529
+ [[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)
530
+
476
531
  # **getGetOrders**
477
532
  > OrderSummariesModel getGetOrders()
478
533
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yellowgrid-api-ts",
3
- "version": "3.2.83-dev.0",
3
+ "version": "3.2.85-dev.0",
4
4
  "description": "OpenAPI client for yellowgrid-api-ts",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {