yellowgrid-api-ts 3.2.181 → 3.2.182
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 +17 -7
- package/dist/api.d.ts +8 -4
- package/dist/api.js +19 -10
- package/docs/OrdersApi.md +4 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -20084,12 +20084,15 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
20084
20084
|
* Mark Order As Complete (Admin)
|
|
20085
20085
|
* @summary Mark Order As Complete (Admin)
|
|
20086
20086
|
* @param {number} id Order ID
|
|
20087
|
+
* @param {boolean} complete Complete Status
|
|
20087
20088
|
* @param {*} [options] Override http request option.
|
|
20088
20089
|
* @throws {RequiredError}
|
|
20089
20090
|
*/
|
|
20090
|
-
patchCompleteOrder: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
20091
|
+
patchCompleteOrder: async (id: number, complete: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
20091
20092
|
// verify required parameter 'id' is not null or undefined
|
|
20092
20093
|
assertParamExists('patchCompleteOrder', 'id', id)
|
|
20094
|
+
// verify required parameter 'complete' is not null or undefined
|
|
20095
|
+
assertParamExists('patchCompleteOrder', 'complete', complete)
|
|
20093
20096
|
const localVarPath = `/admin/orders/{id}/complete`
|
|
20094
20097
|
.replace('{id}', encodeURIComponent(String(id)));
|
|
20095
20098
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -20103,6 +20106,10 @@ export const OrdersApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
20103
20106
|
const localVarHeaderParameter = {} as any;
|
|
20104
20107
|
const localVarQueryParameter = {} as any;
|
|
20105
20108
|
|
|
20109
|
+
if (complete !== undefined) {
|
|
20110
|
+
localVarQueryParameter['complete'] = complete;
|
|
20111
|
+
}
|
|
20112
|
+
|
|
20106
20113
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
20107
20114
|
|
|
20108
20115
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -21050,11 +21057,12 @@ export const OrdersApiFp = function(configuration?: Configuration) {
|
|
|
21050
21057
|
* Mark Order As Complete (Admin)
|
|
21051
21058
|
* @summary Mark Order As Complete (Admin)
|
|
21052
21059
|
* @param {number} id Order ID
|
|
21060
|
+
* @param {boolean} complete Complete Status
|
|
21053
21061
|
* @param {*} [options] Override http request option.
|
|
21054
21062
|
* @throws {RequiredError}
|
|
21055
21063
|
*/
|
|
21056
|
-
async patchCompleteOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderDetailsDTO>> {
|
|
21057
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.patchCompleteOrder(id, options);
|
|
21064
|
+
async patchCompleteOrder(id: number, complete: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderDetailsDTO>> {
|
|
21065
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.patchCompleteOrder(id, complete, options);
|
|
21058
21066
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
21059
21067
|
const localVarOperationServerBasePath = operationServerMap['OrdersApi.patchCompleteOrder']?.[localVarOperationServerIndex]?.url;
|
|
21060
21068
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -21470,11 +21478,12 @@ export const OrdersApiFactory = function (configuration?: Configuration, basePat
|
|
|
21470
21478
|
* Mark Order As Complete (Admin)
|
|
21471
21479
|
* @summary Mark Order As Complete (Admin)
|
|
21472
21480
|
* @param {number} id Order ID
|
|
21481
|
+
* @param {boolean} complete Complete Status
|
|
21473
21482
|
* @param {*} [options] Override http request option.
|
|
21474
21483
|
* @throws {RequiredError}
|
|
21475
21484
|
*/
|
|
21476
|
-
patchCompleteOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<OrderDetailsDTO> {
|
|
21477
|
-
return localVarFp.patchCompleteOrder(id, options).then((request) => request(axios, basePath));
|
|
21485
|
+
patchCompleteOrder(id: number, complete: boolean, options?: RawAxiosRequestConfig): AxiosPromise<OrderDetailsDTO> {
|
|
21486
|
+
return localVarFp.patchCompleteOrder(id, complete, options).then((request) => request(axios, basePath));
|
|
21478
21487
|
},
|
|
21479
21488
|
/**
|
|
21480
21489
|
* Add Order Note
|
|
@@ -21839,11 +21848,12 @@ export class OrdersApi extends BaseAPI {
|
|
|
21839
21848
|
* Mark Order As Complete (Admin)
|
|
21840
21849
|
* @summary Mark Order As Complete (Admin)
|
|
21841
21850
|
* @param {number} id Order ID
|
|
21851
|
+
* @param {boolean} complete Complete Status
|
|
21842
21852
|
* @param {*} [options] Override http request option.
|
|
21843
21853
|
* @throws {RequiredError}
|
|
21844
21854
|
*/
|
|
21845
|
-
public patchCompleteOrder(id: number, options?: RawAxiosRequestConfig) {
|
|
21846
|
-
return OrdersApiFp(this.configuration).patchCompleteOrder(id, options).then((request) => request(this.axios, this.basePath));
|
|
21855
|
+
public patchCompleteOrder(id: number, complete: boolean, options?: RawAxiosRequestConfig) {
|
|
21856
|
+
return OrdersApiFp(this.configuration).patchCompleteOrder(id, complete, options).then((request) => request(this.axios, this.basePath));
|
|
21847
21857
|
}
|
|
21848
21858
|
|
|
21849
21859
|
/**
|
package/dist/api.d.ts
CHANGED
|
@@ -13887,10 +13887,11 @@ export declare const OrdersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
13887
13887
|
* Mark Order As Complete (Admin)
|
|
13888
13888
|
* @summary Mark Order As Complete (Admin)
|
|
13889
13889
|
* @param {number} id Order ID
|
|
13890
|
+
* @param {boolean} complete Complete Status
|
|
13890
13891
|
* @param {*} [options] Override http request option.
|
|
13891
13892
|
* @throws {RequiredError}
|
|
13892
13893
|
*/
|
|
13893
|
-
patchCompleteOrder: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
13894
|
+
patchCompleteOrder: (id: number, complete: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
13894
13895
|
/**
|
|
13895
13896
|
* Add Order Note
|
|
13896
13897
|
* @summary Add Order Note
|
|
@@ -14181,10 +14182,11 @@ export declare const OrdersApiFp: (configuration?: Configuration) => {
|
|
|
14181
14182
|
* Mark Order As Complete (Admin)
|
|
14182
14183
|
* @summary Mark Order As Complete (Admin)
|
|
14183
14184
|
* @param {number} id Order ID
|
|
14185
|
+
* @param {boolean} complete Complete Status
|
|
14184
14186
|
* @param {*} [options] Override http request option.
|
|
14185
14187
|
* @throws {RequiredError}
|
|
14186
14188
|
*/
|
|
14187
|
-
patchCompleteOrder(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderDetailsDTO>>;
|
|
14189
|
+
patchCompleteOrder(id: number, complete: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrderDetailsDTO>>;
|
|
14188
14190
|
/**
|
|
14189
14191
|
* Add Order Note
|
|
14190
14192
|
* @summary Add Order Note
|
|
@@ -14475,10 +14477,11 @@ export declare const OrdersApiFactory: (configuration?: Configuration, basePath?
|
|
|
14475
14477
|
* Mark Order As Complete (Admin)
|
|
14476
14478
|
* @summary Mark Order As Complete (Admin)
|
|
14477
14479
|
* @param {number} id Order ID
|
|
14480
|
+
* @param {boolean} complete Complete Status
|
|
14478
14481
|
* @param {*} [options] Override http request option.
|
|
14479
14482
|
* @throws {RequiredError}
|
|
14480
14483
|
*/
|
|
14481
|
-
patchCompleteOrder(id: number, options?: RawAxiosRequestConfig): AxiosPromise<OrderDetailsDTO>;
|
|
14484
|
+
patchCompleteOrder(id: number, complete: boolean, options?: RawAxiosRequestConfig): AxiosPromise<OrderDetailsDTO>;
|
|
14482
14485
|
/**
|
|
14483
14486
|
* Add Order Note
|
|
14484
14487
|
* @summary Add Order Note
|
|
@@ -14769,10 +14772,11 @@ export declare class OrdersApi extends BaseAPI {
|
|
|
14769
14772
|
* Mark Order As Complete (Admin)
|
|
14770
14773
|
* @summary Mark Order As Complete (Admin)
|
|
14771
14774
|
* @param {number} id Order ID
|
|
14775
|
+
* @param {boolean} complete Complete Status
|
|
14772
14776
|
* @param {*} [options] Override http request option.
|
|
14773
14777
|
* @throws {RequiredError}
|
|
14774
14778
|
*/
|
|
14775
|
-
patchCompleteOrder(id: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderDetailsDTO, any, {}>>;
|
|
14779
|
+
patchCompleteOrder(id: number, complete: boolean, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<OrderDetailsDTO, any, {}>>;
|
|
14776
14780
|
/**
|
|
14777
14781
|
* Add Order Note
|
|
14778
14782
|
* @summary Add Order Note
|
package/dist/api.js
CHANGED
|
@@ -13844,20 +13844,23 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
13844
13844
|
* Mark Order As Complete (Admin)
|
|
13845
13845
|
* @summary Mark Order As Complete (Admin)
|
|
13846
13846
|
* @param {number} id Order ID
|
|
13847
|
+
* @param {boolean} complete Complete Status
|
|
13847
13848
|
* @param {*} [options] Override http request option.
|
|
13848
13849
|
* @throws {RequiredError}
|
|
13849
13850
|
*/
|
|
13850
|
-
patchCompleteOrder: function (id_1) {
|
|
13851
|
+
patchCompleteOrder: function (id_1, complete_1) {
|
|
13851
13852
|
var args_1 = [];
|
|
13852
|
-
for (var _i =
|
|
13853
|
-
args_1[_i -
|
|
13853
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
13854
|
+
args_1[_i - 2] = arguments[_i];
|
|
13854
13855
|
}
|
|
13855
|
-
return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
|
|
13856
|
+
return __awaiter(_this, __spreadArray([id_1, complete_1], args_1, true), void 0, function (id, complete, options) {
|
|
13856
13857
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
13857
13858
|
if (options === void 0) { options = {}; }
|
|
13858
13859
|
return __generator(this, function (_a) {
|
|
13859
13860
|
// verify required parameter 'id' is not null or undefined
|
|
13860
13861
|
(0, common_1.assertParamExists)('patchCompleteOrder', 'id', id);
|
|
13862
|
+
// verify required parameter 'complete' is not null or undefined
|
|
13863
|
+
(0, common_1.assertParamExists)('patchCompleteOrder', 'complete', complete);
|
|
13861
13864
|
localVarPath = "/admin/orders/{id}/complete"
|
|
13862
13865
|
.replace('{id}', encodeURIComponent(String(id)));
|
|
13863
13866
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -13867,6 +13870,9 @@ var OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
13867
13870
|
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
13868
13871
|
localVarHeaderParameter = {};
|
|
13869
13872
|
localVarQueryParameter = {};
|
|
13873
|
+
if (complete !== undefined) {
|
|
13874
|
+
localVarQueryParameter['complete'] = complete;
|
|
13875
|
+
}
|
|
13870
13876
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
13871
13877
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13872
13878
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -14991,16 +14997,17 @@ var OrdersApiFp = function (configuration) {
|
|
|
14991
14997
|
* Mark Order As Complete (Admin)
|
|
14992
14998
|
* @summary Mark Order As Complete (Admin)
|
|
14993
14999
|
* @param {number} id Order ID
|
|
15000
|
+
* @param {boolean} complete Complete Status
|
|
14994
15001
|
* @param {*} [options] Override http request option.
|
|
14995
15002
|
* @throws {RequiredError}
|
|
14996
15003
|
*/
|
|
14997
|
-
patchCompleteOrder: function (id, options) {
|
|
15004
|
+
patchCompleteOrder: function (id, complete, options) {
|
|
14998
15005
|
return __awaiter(this, void 0, void 0, function () {
|
|
14999
15006
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
15000
15007
|
var _a, _b, _c;
|
|
15001
15008
|
return __generator(this, function (_d) {
|
|
15002
15009
|
switch (_d.label) {
|
|
15003
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchCompleteOrder(id, options)];
|
|
15010
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchCompleteOrder(id, complete, options)];
|
|
15004
15011
|
case 1:
|
|
15005
15012
|
localVarAxiosArgs = _d.sent();
|
|
15006
15013
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
@@ -15611,11 +15618,12 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
15611
15618
|
* Mark Order As Complete (Admin)
|
|
15612
15619
|
* @summary Mark Order As Complete (Admin)
|
|
15613
15620
|
* @param {number} id Order ID
|
|
15621
|
+
* @param {boolean} complete Complete Status
|
|
15614
15622
|
* @param {*} [options] Override http request option.
|
|
15615
15623
|
* @throws {RequiredError}
|
|
15616
15624
|
*/
|
|
15617
|
-
patchCompleteOrder: function (id, options) {
|
|
15618
|
-
return localVarFp.patchCompleteOrder(id, options).then(function (request) { return request(axios, basePath); });
|
|
15625
|
+
patchCompleteOrder: function (id, complete, options) {
|
|
15626
|
+
return localVarFp.patchCompleteOrder(id, complete, options).then(function (request) { return request(axios, basePath); });
|
|
15619
15627
|
},
|
|
15620
15628
|
/**
|
|
15621
15629
|
* Add Order Note
|
|
@@ -15984,12 +15992,13 @@ var OrdersApi = /** @class */ (function (_super) {
|
|
|
15984
15992
|
* Mark Order As Complete (Admin)
|
|
15985
15993
|
* @summary Mark Order As Complete (Admin)
|
|
15986
15994
|
* @param {number} id Order ID
|
|
15995
|
+
* @param {boolean} complete Complete Status
|
|
15987
15996
|
* @param {*} [options] Override http request option.
|
|
15988
15997
|
* @throws {RequiredError}
|
|
15989
15998
|
*/
|
|
15990
|
-
OrdersApi.prototype.patchCompleteOrder = function (id, options) {
|
|
15999
|
+
OrdersApi.prototype.patchCompleteOrder = function (id, complete, options) {
|
|
15991
16000
|
var _this = this;
|
|
15992
|
-
return (0, exports.OrdersApiFp)(this.configuration).patchCompleteOrder(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
16001
|
+
return (0, exports.OrdersApiFp)(this.configuration).patchCompleteOrder(id, complete, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
15993
16002
|
};
|
|
15994
16003
|
/**
|
|
15995
16004
|
* Add Order Note
|
package/docs/OrdersApi.md
CHANGED
|
@@ -683,9 +683,11 @@ const configuration = new Configuration();
|
|
|
683
683
|
const apiInstance = new OrdersApi(configuration);
|
|
684
684
|
|
|
685
685
|
let id: number; //Order ID (default to undefined)
|
|
686
|
+
let complete: boolean; //Complete Status (default to undefined)
|
|
686
687
|
|
|
687
688
|
const { status, data } = await apiInstance.patchCompleteOrder(
|
|
688
|
-
id
|
|
689
|
+
id,
|
|
690
|
+
complete
|
|
689
691
|
);
|
|
690
692
|
```
|
|
691
693
|
|
|
@@ -694,6 +696,7 @@ const { status, data } = await apiInstance.patchCompleteOrder(
|
|
|
694
696
|
|Name | Type | Description | Notes|
|
|
695
697
|
|------------- | ------------- | ------------- | -------------|
|
|
696
698
|
| **id** | [**number**] | Order ID | defaults to undefined|
|
|
699
|
+
| **complete** | [**boolean**] | Complete Status | defaults to undefined|
|
|
697
700
|
|
|
698
701
|
|
|
699
702
|
### Return type
|