yellowgrid-api-ts 3.2.129 → 3.2.130

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
@@ -159,6 +159,7 @@ Class | Method | HTTP request | Description
159
159
  *OAuth20Api* | [**postAccessToken**](docs/OAuth20Api.md#postaccesstoken) | **POST** /oauth2/access_token | Validates client credentials and returns access token
160
160
  *OAuth20Api* | [**postAuthorise**](docs/OAuth20Api.md#postauthorise) | **POST** /oauth2/authorise | Get OAuth2.0 Auth Code
161
161
  *OAuth20Api* | [**postGetIdentity**](docs/OAuth20Api.md#postgetidentity) | **POST** /oauth2/me | Get Token Identity
162
+ *OAuth20Api* | [**postLogout**](docs/OAuth20Api.md#postlogout) | **POST** /oauth2/logout |
162
163
  *OAuth20Api* | [**postPortalLogin**](docs/OAuth20Api.md#postportallogin) | **POST** /oauth2/portal/login | Portal Login
163
164
  *OrdersApi* | [**deleteDeleteBatch**](docs/OrdersApi.md#deletedeletebatch) | **DELETE** /admin/orders/{id}/batches/{batch_id} |
164
165
  *OrdersApi* | [**deleteUpdateOrder**](docs/OrdersApi.md#deleteupdateorder) | **DELETE** /orders/{id} | Delete Orders (Beta)
package/api.ts CHANGED
@@ -16303,6 +16303,34 @@ export const OAuth20ApiAxiosParamCreator = function (configuration?: Configurati
16303
16303
 
16304
16304
  localVarHeaderParameter['Accept'] = 'application/json';
16305
16305
 
16306
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16307
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16308
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16309
+
16310
+ return {
16311
+ url: toPathString(localVarUrlObj),
16312
+ options: localVarRequestOptions,
16313
+ };
16314
+ },
16315
+ /**
16316
+ * Remove Oauth 2.0 Cookies
16317
+ * @param {*} [options] Override http request option.
16318
+ * @throws {RequiredError}
16319
+ */
16320
+ postLogout: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16321
+ const localVarPath = `/oauth2/logout`;
16322
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16323
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16324
+ let baseOptions;
16325
+ if (configuration) {
16326
+ baseOptions = configuration.baseOptions;
16327
+ }
16328
+
16329
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
16330
+ const localVarHeaderParameter = {} as any;
16331
+ const localVarQueryParameter = {} as any;
16332
+
16333
+
16306
16334
  setSearchParams(localVarUrlObj, localVarQueryParameter);
16307
16335
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16308
16336
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -16433,6 +16461,17 @@ export const OAuth20ApiFp = function(configuration?: Configuration) {
16433
16461
  const localVarOperationServerBasePath = operationServerMap['OAuth20Api.postGetIdentity']?.[localVarOperationServerIndex]?.url;
16434
16462
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16435
16463
  },
16464
+ /**
16465
+ * Remove Oauth 2.0 Cookies
16466
+ * @param {*} [options] Override http request option.
16467
+ * @throws {RequiredError}
16468
+ */
16469
+ async postLogout(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
16470
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postLogout(options);
16471
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16472
+ const localVarOperationServerBasePath = operationServerMap['OAuth20Api.postLogout']?.[localVarOperationServerIndex]?.url;
16473
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16474
+ },
16436
16475
  /**
16437
16476
  * Portal Login
16438
16477
  * @summary Portal Login
@@ -16519,6 +16558,14 @@ export const OAuth20ApiFactory = function (configuration?: Configuration, basePa
16519
16558
  postGetIdentity(options?: RawAxiosRequestConfig): AxiosPromise<ClientDetailsModel> {
16520
16559
  return localVarFp.postGetIdentity(options).then((request) => request(axios, basePath));
16521
16560
  },
16561
+ /**
16562
+ * Remove Oauth 2.0 Cookies
16563
+ * @param {*} [options] Override http request option.
16564
+ * @throws {RequiredError}
16565
+ */
16566
+ postLogout(options?: RawAxiosRequestConfig): AxiosPromise<void> {
16567
+ return localVarFp.postLogout(options).then((request) => request(axios, basePath));
16568
+ },
16522
16569
  /**
16523
16570
  * Portal Login
16524
16571
  * @summary Portal Login
@@ -16605,6 +16652,15 @@ export class OAuth20Api extends BaseAPI {
16605
16652
  return OAuth20ApiFp(this.configuration).postGetIdentity(options).then((request) => request(this.axios, this.basePath));
16606
16653
  }
16607
16654
 
16655
+ /**
16656
+ * Remove Oauth 2.0 Cookies
16657
+ * @param {*} [options] Override http request option.
16658
+ * @throws {RequiredError}
16659
+ */
16660
+ public postLogout(options?: RawAxiosRequestConfig) {
16661
+ return OAuth20ApiFp(this.configuration).postLogout(options).then((request) => request(this.axios, this.basePath));
16662
+ }
16663
+
16608
16664
  /**
16609
16665
  * Portal Login
16610
16666
  * @summary Portal Login
package/dist/api.d.ts CHANGED
@@ -11840,6 +11840,12 @@ export declare const OAuth20ApiAxiosParamCreator: (configuration?: Configuration
11840
11840
  * @throws {RequiredError}
11841
11841
  */
11842
11842
  postGetIdentity: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11843
+ /**
11844
+ * Remove Oauth 2.0 Cookies
11845
+ * @param {*} [options] Override http request option.
11846
+ * @throws {RequiredError}
11847
+ */
11848
+ postLogout: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11843
11849
  /**
11844
11850
  * Portal Login
11845
11851
  * @summary Portal Login
@@ -11907,6 +11913,12 @@ export declare const OAuth20ApiFp: (configuration?: Configuration) => {
11907
11913
  * @throws {RequiredError}
11908
11914
  */
11909
11915
  postGetIdentity(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientDetailsModel>>;
11916
+ /**
11917
+ * Remove Oauth 2.0 Cookies
11918
+ * @param {*} [options] Override http request option.
11919
+ * @throws {RequiredError}
11920
+ */
11921
+ postLogout(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
11910
11922
  /**
11911
11923
  * Portal Login
11912
11924
  * @summary Portal Login
@@ -11974,6 +11986,12 @@ export declare const OAuth20ApiFactory: (configuration?: Configuration, basePath
11974
11986
  * @throws {RequiredError}
11975
11987
  */
11976
11988
  postGetIdentity(options?: RawAxiosRequestConfig): AxiosPromise<ClientDetailsModel>;
11989
+ /**
11990
+ * Remove Oauth 2.0 Cookies
11991
+ * @param {*} [options] Override http request option.
11992
+ * @throws {RequiredError}
11993
+ */
11994
+ postLogout(options?: RawAxiosRequestConfig): AxiosPromise<void>;
11977
11995
  /**
11978
11996
  * Portal Login
11979
11997
  * @summary Portal Login
@@ -12041,6 +12059,12 @@ export declare class OAuth20Api extends BaseAPI {
12041
12059
  * @throws {RequiredError}
12042
12060
  */
12043
12061
  postGetIdentity(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ClientDetailsModel, any, {}>>;
12062
+ /**
12063
+ * Remove Oauth 2.0 Cookies
12064
+ * @param {*} [options] Override http request option.
12065
+ * @throws {RequiredError}
12066
+ */
12067
+ postLogout(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
12044
12068
  /**
12045
12069
  * Portal Login
12046
12070
  * @summary Portal Login
package/dist/api.js CHANGED
@@ -10015,6 +10015,38 @@ var OAuth20ApiAxiosParamCreator = function (configuration) {
10015
10015
  });
10016
10016
  });
10017
10017
  },
10018
+ /**
10019
+ * Remove Oauth 2.0 Cookies
10020
+ * @param {*} [options] Override http request option.
10021
+ * @throws {RequiredError}
10022
+ */
10023
+ postLogout: function () {
10024
+ var args_1 = [];
10025
+ for (var _i = 0; _i < arguments.length; _i++) {
10026
+ args_1[_i] = arguments[_i];
10027
+ }
10028
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
10029
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
10030
+ if (options === void 0) { options = {}; }
10031
+ return __generator(this, function (_a) {
10032
+ localVarPath = "/oauth2/logout";
10033
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10034
+ if (configuration) {
10035
+ baseOptions = configuration.baseOptions;
10036
+ }
10037
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
10038
+ localVarHeaderParameter = {};
10039
+ localVarQueryParameter = {};
10040
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10041
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10042
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10043
+ return [2 /*return*/, {
10044
+ url: (0, common_1.toPathString)(localVarUrlObj),
10045
+ options: localVarRequestOptions,
10046
+ }];
10047
+ });
10048
+ });
10049
+ },
10018
10050
  /**
10019
10051
  * Portal Login
10020
10052
  * @summary Portal Login
@@ -10190,6 +10222,27 @@ var OAuth20ApiFp = function (configuration) {
10190
10222
  });
10191
10223
  });
10192
10224
  },
10225
+ /**
10226
+ * Remove Oauth 2.0 Cookies
10227
+ * @param {*} [options] Override http request option.
10228
+ * @throws {RequiredError}
10229
+ */
10230
+ postLogout: function (options) {
10231
+ return __awaiter(this, void 0, void 0, function () {
10232
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
10233
+ var _a, _b, _c;
10234
+ return __generator(this, function (_d) {
10235
+ switch (_d.label) {
10236
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postLogout(options)];
10237
+ case 1:
10238
+ localVarAxiosArgs = _d.sent();
10239
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
10240
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OAuth20Api.postLogout']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
10241
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
10242
+ }
10243
+ });
10244
+ });
10245
+ },
10193
10246
  /**
10194
10247
  * Portal Login
10195
10248
  * @summary Portal Login
@@ -10286,6 +10339,14 @@ var OAuth20ApiFactory = function (configuration, basePath, axios) {
10286
10339
  postGetIdentity: function (options) {
10287
10340
  return localVarFp.postGetIdentity(options).then(function (request) { return request(axios, basePath); });
10288
10341
  },
10342
+ /**
10343
+ * Remove Oauth 2.0 Cookies
10344
+ * @param {*} [options] Override http request option.
10345
+ * @throws {RequiredError}
10346
+ */
10347
+ postLogout: function (options) {
10348
+ return localVarFp.postLogout(options).then(function (request) { return request(axios, basePath); });
10349
+ },
10289
10350
  /**
10290
10351
  * Portal Login
10291
10352
  * @summary Portal Login
@@ -10376,6 +10437,15 @@ var OAuth20Api = /** @class */ (function (_super) {
10376
10437
  var _this = this;
10377
10438
  return (0, exports.OAuth20ApiFp)(this.configuration).postGetIdentity(options).then(function (request) { return request(_this.axios, _this.basePath); });
10378
10439
  };
10440
+ /**
10441
+ * Remove Oauth 2.0 Cookies
10442
+ * @param {*} [options] Override http request option.
10443
+ * @throws {RequiredError}
10444
+ */
10445
+ OAuth20Api.prototype.postLogout = function (options) {
10446
+ var _this = this;
10447
+ return (0, exports.OAuth20ApiFp)(this.configuration).postLogout(options).then(function (request) { return request(_this.axios, _this.basePath); });
10448
+ };
10379
10449
  /**
10380
10450
  * Portal Login
10381
10451
  * @summary Portal Login
@@ -9,6 +9,7 @@ All URIs are relative to *https://bitbucket.org*
9
9
  |[**postAccessToken**](#postaccesstoken) | **POST** /oauth2/access_token | Validates client credentials and returns access token|
10
10
  |[**postAuthorise**](#postauthorise) | **POST** /oauth2/authorise | Get OAuth2.0 Auth Code|
11
11
  |[**postGetIdentity**](#postgetidentity) | **POST** /oauth2/me | Get Token Identity|
12
+ |[**postLogout**](#postlogout) | **POST** /oauth2/logout | |
12
13
  |[**postPortalLogin**](#postportallogin) | **POST** /oauth2/portal/login | Portal Login|
13
14
 
14
15
  # **getGetMfaQrCode**
@@ -311,6 +312,53 @@ No authorization required
311
312
 
312
313
  [[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)
313
314
 
315
+ # **postLogout**
316
+ > postLogout()
317
+
318
+ Remove Oauth 2.0 Cookies
319
+
320
+ ### Example
321
+
322
+ ```typescript
323
+ import {
324
+ OAuth20Api,
325
+ Configuration
326
+ } from 'yellowgrid-api-ts';
327
+
328
+ const configuration = new Configuration();
329
+ const apiInstance = new OAuth20Api(configuration);
330
+
331
+ const { status, data } = await apiInstance.postLogout();
332
+ ```
333
+
334
+ ### Parameters
335
+ This endpoint does not have any parameters.
336
+
337
+
338
+ ### Return type
339
+
340
+ void (empty response body)
341
+
342
+ ### Authorization
343
+
344
+ No authorization required
345
+
346
+ ### HTTP request headers
347
+
348
+ - **Content-Type**: Not defined
349
+ - **Accept**: Not defined
350
+
351
+
352
+ ### HTTP response details
353
+ | Status code | Description | Response headers |
354
+ |-------------|-------------|------------------|
355
+ |**200** | No Response | - |
356
+ |**400** | Bad Request | - |
357
+ |**401** | Unauthorised | - |
358
+ |**403** | Access Denied | - |
359
+
360
+ [[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)
361
+
314
362
  # **postPortalLogin**
315
363
  > AuthCodeResponseModel postPortalLogin()
316
364
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yellowgrid-api-ts",
3
- "version": "3.2.129",
3
+ "version": "3.2.130",
4
4
  "description": "OpenAPI client for yellowgrid-api-ts",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {