yellowgrid-api-ts 3.2.157-dev.0 → 3.2.158-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
@@ -183,6 +183,7 @@ Class | Method | HTTP request | Description
183
183
  *OAuth20Api* | [**postAccessToken**](docs/OAuth20Api.md#postaccesstoken) | **POST** /oauth2/access_token | Validates client credentials and returns access token
184
184
  *OAuth20Api* | [**postAuthorise**](docs/OAuth20Api.md#postauthorise) | **POST** /oauth2/authorise | Get OAuth2.0 Auth Code
185
185
  *OAuth20Api* | [**postGetIdentity**](docs/OAuth20Api.md#postgetidentity) | **POST** /oauth2/me | Get Token Identity
186
+ *OAuth20Api* | [**postLogout**](docs/OAuth20Api.md#postlogout) | **POST** /oauth2/logout |
186
187
  *OAuth20Api* | [**postPortalLogin**](docs/OAuth20Api.md#postportallogin) | **POST** /oauth2/portal/login | Portal Login
187
188
  *OrdersApi* | [**deleteDeleteBatch**](docs/OrdersApi.md#deletedeletebatch) | **DELETE** /admin/orders/{id}/batches/{batch_id} |
188
189
  *OrdersApi* | [**deleteUpdateOrder**](docs/OrdersApi.md#deleteupdateorder) | **DELETE** /orders/{id} | Delete Orders (Beta)
package/api.ts CHANGED
@@ -4861,7 +4861,8 @@ export const ProspectDTOStatusEnum = {
4861
4861
  CallBackDue: 'Call Back Due',
4862
4862
  NoOrdersPlaced: 'No Orders Placed',
4863
4863
  NoOrdersInTheLast4Months: 'No Orders In The Last 4 Months',
4864
- NoActionRequired: 'No Action Required'
4864
+ NoActionRequired: 'No Action Required',
4865
+ DoNotCall: 'Do Not Call'
4865
4866
  } as const;
4866
4867
 
4867
4868
  export type ProspectDTOStatusEnum = typeof ProspectDTOStatusEnum[keyof typeof ProspectDTOStatusEnum];
@@ -18334,6 +18335,34 @@ export const OAuth20ApiAxiosParamCreator = function (configuration?: Configurati
18334
18335
 
18335
18336
  localVarHeaderParameter['Accept'] = 'application/json';
18336
18337
 
18338
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18339
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18340
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18341
+
18342
+ return {
18343
+ url: toPathString(localVarUrlObj),
18344
+ options: localVarRequestOptions,
18345
+ };
18346
+ },
18347
+ /**
18348
+ * Remove Oauth 2.0 Cookies
18349
+ * @param {*} [options] Override http request option.
18350
+ * @throws {RequiredError}
18351
+ */
18352
+ postLogout: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18353
+ const localVarPath = `/oauth2/logout`;
18354
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18355
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18356
+ let baseOptions;
18357
+ if (configuration) {
18358
+ baseOptions = configuration.baseOptions;
18359
+ }
18360
+
18361
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18362
+ const localVarHeaderParameter = {} as any;
18363
+ const localVarQueryParameter = {} as any;
18364
+
18365
+
18337
18366
  setSearchParams(localVarUrlObj, localVarQueryParameter);
18338
18367
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18339
18368
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -18464,6 +18493,17 @@ export const OAuth20ApiFp = function(configuration?: Configuration) {
18464
18493
  const localVarOperationServerBasePath = operationServerMap['OAuth20Api.postGetIdentity']?.[localVarOperationServerIndex]?.url;
18465
18494
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18466
18495
  },
18496
+ /**
18497
+ * Remove Oauth 2.0 Cookies
18498
+ * @param {*} [options] Override http request option.
18499
+ * @throws {RequiredError}
18500
+ */
18501
+ async postLogout(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
18502
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postLogout(options);
18503
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18504
+ const localVarOperationServerBasePath = operationServerMap['OAuth20Api.postLogout']?.[localVarOperationServerIndex]?.url;
18505
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18506
+ },
18467
18507
  /**
18468
18508
  * Portal Login
18469
18509
  * @summary Portal Login
@@ -18550,6 +18590,14 @@ export const OAuth20ApiFactory = function (configuration?: Configuration, basePa
18550
18590
  postGetIdentity(options?: RawAxiosRequestConfig): AxiosPromise<ClientDetailsModel> {
18551
18591
  return localVarFp.postGetIdentity(options).then((request) => request(axios, basePath));
18552
18592
  },
18593
+ /**
18594
+ * Remove Oauth 2.0 Cookies
18595
+ * @param {*} [options] Override http request option.
18596
+ * @throws {RequiredError}
18597
+ */
18598
+ postLogout(options?: RawAxiosRequestConfig): AxiosPromise<void> {
18599
+ return localVarFp.postLogout(options).then((request) => request(axios, basePath));
18600
+ },
18553
18601
  /**
18554
18602
  * Portal Login
18555
18603
  * @summary Portal Login
@@ -18636,6 +18684,15 @@ export class OAuth20Api extends BaseAPI {
18636
18684
  return OAuth20ApiFp(this.configuration).postGetIdentity(options).then((request) => request(this.axios, this.basePath));
18637
18685
  }
18638
18686
 
18687
+ /**
18688
+ * Remove Oauth 2.0 Cookies
18689
+ * @param {*} [options] Override http request option.
18690
+ * @throws {RequiredError}
18691
+ */
18692
+ public postLogout(options?: RawAxiosRequestConfig) {
18693
+ return OAuth20ApiFp(this.configuration).postLogout(options).then((request) => request(this.axios, this.basePath));
18694
+ }
18695
+
18639
18696
  /**
18640
18697
  * Portal Login
18641
18698
  * @summary Portal Login
package/dist/api.d.ts CHANGED
@@ -4807,6 +4807,7 @@ export declare const ProspectDTOStatusEnum: {
4807
4807
  readonly NoOrdersPlaced: "No Orders Placed";
4808
4808
  readonly NoOrdersInTheLast4Months: "No Orders In The Last 4 Months";
4809
4809
  readonly NoActionRequired: "No Action Required";
4810
+ readonly DoNotCall: "Do Not Call";
4810
4811
  };
4811
4812
  export type ProspectDTOStatusEnum = typeof ProspectDTOStatusEnum[keyof typeof ProspectDTOStatusEnum];
4812
4813
  /**
@@ -12962,6 +12963,12 @@ export declare const OAuth20ApiAxiosParamCreator: (configuration?: Configuration
12962
12963
  * @throws {RequiredError}
12963
12964
  */
12964
12965
  postGetIdentity: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
12966
+ /**
12967
+ * Remove Oauth 2.0 Cookies
12968
+ * @param {*} [options] Override http request option.
12969
+ * @throws {RequiredError}
12970
+ */
12971
+ postLogout: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
12965
12972
  /**
12966
12973
  * Portal Login
12967
12974
  * @summary Portal Login
@@ -13029,6 +13036,12 @@ export declare const OAuth20ApiFp: (configuration?: Configuration) => {
13029
13036
  * @throws {RequiredError}
13030
13037
  */
13031
13038
  postGetIdentity(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClientDetailsModel>>;
13039
+ /**
13040
+ * Remove Oauth 2.0 Cookies
13041
+ * @param {*} [options] Override http request option.
13042
+ * @throws {RequiredError}
13043
+ */
13044
+ postLogout(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
13032
13045
  /**
13033
13046
  * Portal Login
13034
13047
  * @summary Portal Login
@@ -13096,6 +13109,12 @@ export declare const OAuth20ApiFactory: (configuration?: Configuration, basePath
13096
13109
  * @throws {RequiredError}
13097
13110
  */
13098
13111
  postGetIdentity(options?: RawAxiosRequestConfig): AxiosPromise<ClientDetailsModel>;
13112
+ /**
13113
+ * Remove Oauth 2.0 Cookies
13114
+ * @param {*} [options] Override http request option.
13115
+ * @throws {RequiredError}
13116
+ */
13117
+ postLogout(options?: RawAxiosRequestConfig): AxiosPromise<void>;
13099
13118
  /**
13100
13119
  * Portal Login
13101
13120
  * @summary Portal Login
@@ -13163,6 +13182,12 @@ export declare class OAuth20Api extends BaseAPI {
13163
13182
  * @throws {RequiredError}
13164
13183
  */
13165
13184
  postGetIdentity(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ClientDetailsModel, any, {}>>;
13185
+ /**
13186
+ * Remove Oauth 2.0 Cookies
13187
+ * @param {*} [options] Override http request option.
13188
+ * @throws {RequiredError}
13189
+ */
13190
+ postLogout(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
13166
13191
  /**
13167
13192
  * Portal Login
13168
13193
  * @summary Portal Login
package/dist/api.js CHANGED
@@ -305,7 +305,8 @@ exports.ProspectDTOStatusEnum = {
305
305
  CallBackDue: 'Call Back Due',
306
306
  NoOrdersPlaced: 'No Orders Placed',
307
307
  NoOrdersInTheLast4Months: 'No Orders In The Last 4 Months',
308
- NoActionRequired: 'No Action Required'
308
+ NoActionRequired: 'No Action Required',
309
+ DoNotCall: 'Do Not Call'
309
310
  };
310
311
  exports.ServiceHealthDTOGlobalStatusEnum = {
311
312
  NUMBER_0: 0,
@@ -12039,6 +12040,38 @@ var OAuth20ApiAxiosParamCreator = function (configuration) {
12039
12040
  });
12040
12041
  });
12041
12042
  },
12043
+ /**
12044
+ * Remove Oauth 2.0 Cookies
12045
+ * @param {*} [options] Override http request option.
12046
+ * @throws {RequiredError}
12047
+ */
12048
+ postLogout: function () {
12049
+ var args_1 = [];
12050
+ for (var _i = 0; _i < arguments.length; _i++) {
12051
+ args_1[_i] = arguments[_i];
12052
+ }
12053
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
12054
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
12055
+ if (options === void 0) { options = {}; }
12056
+ return __generator(this, function (_a) {
12057
+ localVarPath = "/oauth2/logout";
12058
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12059
+ if (configuration) {
12060
+ baseOptions = configuration.baseOptions;
12061
+ }
12062
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
12063
+ localVarHeaderParameter = {};
12064
+ localVarQueryParameter = {};
12065
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12066
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12067
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12068
+ return [2 /*return*/, {
12069
+ url: (0, common_1.toPathString)(localVarUrlObj),
12070
+ options: localVarRequestOptions,
12071
+ }];
12072
+ });
12073
+ });
12074
+ },
12042
12075
  /**
12043
12076
  * Portal Login
12044
12077
  * @summary Portal Login
@@ -12214,6 +12247,27 @@ var OAuth20ApiFp = function (configuration) {
12214
12247
  });
12215
12248
  });
12216
12249
  },
12250
+ /**
12251
+ * Remove Oauth 2.0 Cookies
12252
+ * @param {*} [options] Override http request option.
12253
+ * @throws {RequiredError}
12254
+ */
12255
+ postLogout: function (options) {
12256
+ return __awaiter(this, void 0, void 0, function () {
12257
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
12258
+ var _a, _b, _c;
12259
+ return __generator(this, function (_d) {
12260
+ switch (_d.label) {
12261
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postLogout(options)];
12262
+ case 1:
12263
+ localVarAxiosArgs = _d.sent();
12264
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12265
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OAuth20Api.postLogout']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12266
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
12267
+ }
12268
+ });
12269
+ });
12270
+ },
12217
12271
  /**
12218
12272
  * Portal Login
12219
12273
  * @summary Portal Login
@@ -12310,6 +12364,14 @@ var OAuth20ApiFactory = function (configuration, basePath, axios) {
12310
12364
  postGetIdentity: function (options) {
12311
12365
  return localVarFp.postGetIdentity(options).then(function (request) { return request(axios, basePath); });
12312
12366
  },
12367
+ /**
12368
+ * Remove Oauth 2.0 Cookies
12369
+ * @param {*} [options] Override http request option.
12370
+ * @throws {RequiredError}
12371
+ */
12372
+ postLogout: function (options) {
12373
+ return localVarFp.postLogout(options).then(function (request) { return request(axios, basePath); });
12374
+ },
12313
12375
  /**
12314
12376
  * Portal Login
12315
12377
  * @summary Portal Login
@@ -12400,6 +12462,15 @@ var OAuth20Api = /** @class */ (function (_super) {
12400
12462
  var _this = this;
12401
12463
  return (0, exports.OAuth20ApiFp)(this.configuration).postGetIdentity(options).then(function (request) { return request(_this.axios, _this.basePath); });
12402
12464
  };
12465
+ /**
12466
+ * Remove Oauth 2.0 Cookies
12467
+ * @param {*} [options] Override http request option.
12468
+ * @throws {RequiredError}
12469
+ */
12470
+ OAuth20Api.prototype.postLogout = function (options) {
12471
+ var _this = this;
12472
+ return (0, exports.OAuth20ApiFp)(this.configuration).postLogout(options).then(function (request) { return request(_this.axios, _this.basePath); });
12473
+ };
12403
12474
  /**
12404
12475
  * Portal Login
12405
12476
  * @summary Portal Login
@@ -9,6 +9,7 @@ All URIs are relative to *https://localhost*
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.157-dev.0",
3
+ "version": "3.2.158-dev.0",
4
4
  "description": "OpenAPI client for yellowgrid-api-ts",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {