@seekora-ai/admin-api 1.0.26 → 1.0.28

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
@@ -1,4 +1,4 @@
1
- ## @seekora-ai/admin-api@1.0.26
1
+ ## @seekora-ai/admin-api@1.0.28
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @seekora-ai/admin-api@1.0.26 --save
39
+ npm install @seekora-ai/admin-api@1.0.28 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -190,6 +190,7 @@ Class | Method | HTTP request | Description
190
190
  *StoresApi* | [**adminStoresXStoreIDConfigGet**](docs/StoresApi.md#adminstoresxstoreidconfigget) | **GET** /admin/Stores/{xStoreID}/config | Get Store Config
191
191
  *StoresApi* | [**adminStoresXStoreIDConfigPut**](docs/StoresApi.md#adminstoresxstoreidconfigput) | **PUT** /admin/Stores/{xStoreID}/config | Update Store Config (Partial)
192
192
  *StoresApi* | [**adminStoresXStoreIDConfigSchemaGet**](docs/StoresApi.md#adminstoresxstoreidconfigschemaget) | **GET** /admin/Stores/{xStoreID}/config-schema | Get Store Config Schema
193
+ *StoresApi* | [**adminStoresXStoreIDCredentialsGet**](docs/StoresApi.md#adminstoresxstoreidcredentialsget) | **GET** /admin/Stores/{xStoreID}/credentials | Get store credentials
193
194
  *StoresApi* | [**adminStoresXStoreIDDefaultsGet**](docs/StoresApi.md#adminstoresxstoreiddefaultsget) | **GET** /admin/Stores/{xStoreID}/defaults | Get Store Schema-Based Defaults
194
195
  *SubscriptionsApi* | [**adminSubscriptionsSubscriptionIDPut**](docs/SubscriptionsApi.md#adminsubscriptionssubscriptionidput) | **PUT** /admin/subscriptions/{subscriptionID} | Update an existing Subscription
195
196
  *SubscriptionsApi* | [**adminSubscriptionsUpdatestatusSubscriptionIDStatusPut**](docs/SubscriptionsApi.md#adminsubscriptionsupdatestatussubscriptionidstatusput) | **PUT** /admin/subscriptions/updatestatus/{subscriptionID}/{status} | Update an existing Subscription status
@@ -338,6 +339,8 @@ Class | Method | HTTP request | Description
338
339
  - [DataTypesSourcesListResponse](docs/DataTypesSourcesListResponse.md)
339
340
  - [DataTypesStopwordEntry](docs/DataTypesStopwordEntry.md)
340
341
  - [DataTypesStore](docs/DataTypesStore.md)
342
+ - [DataTypesStoreCredentials](docs/DataTypesStoreCredentials.md)
343
+ - [DataTypesStoreCredentialsResponse](docs/DataTypesStoreCredentialsResponse.md)
341
344
  - [DataTypesStoreKeyResponse](docs/DataTypesStoreKeyResponse.md)
342
345
  - [DataTypesStoreKeyResponseWrapper](docs/DataTypesStoreKeyResponseWrapper.md)
343
346
  - [DataTypesStoreRequestDto](docs/DataTypesStoreRequestDto.md)
package/api.ts CHANGED
@@ -2172,6 +2172,12 @@ export interface DataTypesGetStoreResult {
2172
2172
  * @memberof DataTypesGetStoreResult
2173
2173
  */
2174
2174
  'xStoreSecret'?: string;
2175
+ /**
2176
+ * Include in API responses
2177
+ * @type {string}
2178
+ * @memberof DataTypesGetStoreResult
2179
+ */
2180
+ 'xStoreWriteSecret'?: string;
2175
2181
  }
2176
2182
  /**
2177
2183
  *
@@ -2770,6 +2776,12 @@ export interface DataTypesLoginResponse {
2770
2776
  * @memberof DataTypesLoginResponse
2771
2777
  */
2772
2778
  'firstName'?: string;
2779
+ /**
2780
+ *
2781
+ * @type {string}
2782
+ * @memberof DataTypesLoginResponse
2783
+ */
2784
+ 'lastLogin'?: string;
2773
2785
  /**
2774
2786
  *
2775
2787
  * @type {string}
@@ -5579,6 +5591,56 @@ export interface DataTypesStore {
5579
5591
  */
5580
5592
  'xStoreID'?: string;
5581
5593
  }
5594
+ /**
5595
+ *
5596
+ * @export
5597
+ * @interface DataTypesStoreCredentials
5598
+ */
5599
+ export interface DataTypesStoreCredentials {
5600
+ /**
5601
+ *
5602
+ * @type {string}
5603
+ * @memberof DataTypesStoreCredentials
5604
+ */
5605
+ 'xStoreId'?: string;
5606
+ /**
5607
+ *
5608
+ * @type {string}
5609
+ * @memberof DataTypesStoreCredentials
5610
+ */
5611
+ 'xStoreSecret'?: string;
5612
+ /**
5613
+ *
5614
+ * @type {string}
5615
+ * @memberof DataTypesStoreCredentials
5616
+ */
5617
+ 'xStoreWriteSecret'?: string;
5618
+ }
5619
+ /**
5620
+ *
5621
+ * @export
5622
+ * @interface DataTypesStoreCredentialsResponse
5623
+ */
5624
+ export interface DataTypesStoreCredentialsResponse {
5625
+ /**
5626
+ *
5627
+ * @type {DataTypesStoreCredentials}
5628
+ * @memberof DataTypesStoreCredentialsResponse
5629
+ */
5630
+ 'data'?: DataTypesStoreCredentials;
5631
+ /**
5632
+ *
5633
+ * @type {string}
5634
+ * @memberof DataTypesStoreCredentialsResponse
5635
+ */
5636
+ 'message'?: string;
5637
+ /**
5638
+ *
5639
+ * @type {number}
5640
+ * @memberof DataTypesStoreCredentialsResponse
5641
+ */
5642
+ 'status'?: number;
5643
+ }
5582
5644
  /**
5583
5645
  *
5584
5646
  * @export
@@ -5597,6 +5659,12 @@ export interface DataTypesStoreKeyResponse {
5597
5659
  * @memberof DataTypesStoreKeyResponse
5598
5660
  */
5599
5661
  'storeSecret'?: string;
5662
+ /**
5663
+ *
5664
+ * @type {string}
5665
+ * @memberof DataTypesStoreKeyResponse
5666
+ */
5667
+ 'storeWriteSecret'?: string;
5600
5668
  }
5601
5669
  /**
5602
5670
  *
@@ -6347,13 +6415,7 @@ export interface DataTypesUpdateProfileRequest {
6347
6415
  */
6348
6416
  'useremailid': string;
6349
6417
  /**
6350
- *
6351
- * @type {string}
6352
- * @memberof DataTypesUpdateProfileRequest
6353
- */
6354
- 'username': string;
6355
- /**
6356
- *
6418
+ * UserName string `json:\"username\" validate:\"required\"`
6357
6419
  * @type {string}
6358
6420
  * @memberof DataTypesUpdateProfileRequest
6359
6421
  */
@@ -17725,6 +17787,43 @@ export const StoresApiAxiosParamCreator = function (configuration?: Configuratio
17725
17787
 
17726
17788
 
17727
17789
 
17790
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
17791
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17792
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17793
+
17794
+ return {
17795
+ url: toPathString(localVarUrlObj),
17796
+ options: localVarRequestOptions,
17797
+ };
17798
+ },
17799
+ /**
17800
+ * Retrieves all store credentials (XStoreID, XStoreSecret, XStoreWriteSecret) for a given x-store ID
17801
+ * @summary Get store credentials
17802
+ * @param {string} xStoreID X-Store ID
17803
+ * @param {*} [options] Override http request option.
17804
+ * @throws {RequiredError}
17805
+ */
17806
+ adminStoresXStoreIDCredentialsGet: async (xStoreID: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17807
+ // verify required parameter 'xStoreID' is not null or undefined
17808
+ assertParamExists('adminStoresXStoreIDCredentialsGet', 'xStoreID', xStoreID)
17809
+ const localVarPath = `/admin/Stores/{xStoreID}/credentials`
17810
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
17811
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17812
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17813
+ let baseOptions;
17814
+ if (configuration) {
17815
+ baseOptions = configuration.baseOptions;
17816
+ }
17817
+
17818
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
17819
+ const localVarHeaderParameter = {} as any;
17820
+ const localVarQueryParameter = {} as any;
17821
+
17822
+ // authentication BearerAuth required
17823
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
17824
+
17825
+
17826
+
17728
17827
  setSearchParams(localVarUrlObj, localVarQueryParameter);
17729
17828
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17730
17829
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -17887,6 +17986,19 @@ export const StoresApiFp = function(configuration?: Configuration) {
17887
17986
  const localVarOperationServerBasePath = operationServerMap['StoresApi.adminStoresXStoreIDConfigSchemaGet']?.[localVarOperationServerIndex]?.url;
17888
17987
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17889
17988
  },
17989
+ /**
17990
+ * Retrieves all store credentials (XStoreID, XStoreSecret, XStoreWriteSecret) for a given x-store ID
17991
+ * @summary Get store credentials
17992
+ * @param {string} xStoreID X-Store ID
17993
+ * @param {*} [options] Override http request option.
17994
+ * @throws {RequiredError}
17995
+ */
17996
+ async adminStoresXStoreIDCredentialsGet(xStoreID: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesStoreCredentialsResponse>> {
17997
+ const localVarAxiosArgs = await localVarAxiosParamCreator.adminStoresXStoreIDCredentialsGet(xStoreID, options);
17998
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17999
+ const localVarOperationServerBasePath = operationServerMap['StoresApi.adminStoresXStoreIDCredentialsGet']?.[localVarOperationServerIndex]?.url;
18000
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18001
+ },
17890
18002
  /**
17891
18003
  * Get default configuration values computed from the store\'s index schema using x-store ID
17892
18004
  * @summary Get Store Schema-Based Defaults
@@ -17992,6 +18104,16 @@ export const StoresApiFactory = function (configuration?: Configuration, basePat
17992
18104
  adminStoresXStoreIDConfigSchemaGet(xStoreID: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesConfigurationSchemaResponseWrapper> {
17993
18105
  return localVarFp.adminStoresXStoreIDConfigSchemaGet(xStoreID, options).then((request) => request(axios, basePath));
17994
18106
  },
18107
+ /**
18108
+ * Retrieves all store credentials (XStoreID, XStoreSecret, XStoreWriteSecret) for a given x-store ID
18109
+ * @summary Get store credentials
18110
+ * @param {string} xStoreID X-Store ID
18111
+ * @param {*} [options] Override http request option.
18112
+ * @throws {RequiredError}
18113
+ */
18114
+ adminStoresXStoreIDCredentialsGet(xStoreID: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesStoreCredentialsResponse> {
18115
+ return localVarFp.adminStoresXStoreIDCredentialsGet(xStoreID, options).then((request) => request(axios, basePath));
18116
+ },
17995
18117
  /**
17996
18118
  * Get default configuration values computed from the store\'s index schema using x-store ID
17997
18119
  * @summary Get Store Schema-Based Defaults
@@ -18110,6 +18232,18 @@ export class StoresApi extends BaseAPI {
18110
18232
  return StoresApiFp(this.configuration).adminStoresXStoreIDConfigSchemaGet(xStoreID, options).then((request) => request(this.axios, this.basePath));
18111
18233
  }
18112
18234
 
18235
+ /**
18236
+ * Retrieves all store credentials (XStoreID, XStoreSecret, XStoreWriteSecret) for a given x-store ID
18237
+ * @summary Get store credentials
18238
+ * @param {string} xStoreID X-Store ID
18239
+ * @param {*} [options] Override http request option.
18240
+ * @throws {RequiredError}
18241
+ * @memberof StoresApi
18242
+ */
18243
+ public adminStoresXStoreIDCredentialsGet(xStoreID: string, options?: RawAxiosRequestConfig) {
18244
+ return StoresApiFp(this.configuration).adminStoresXStoreIDCredentialsGet(xStoreID, options).then((request) => request(this.axios, this.basePath));
18245
+ }
18246
+
18113
18247
  /**
18114
18248
  * Get default configuration values computed from the store\'s index schema using x-store ID
18115
18249
  * @summary Get Store Schema-Based Defaults
package/dist/api.d.ts CHANGED
@@ -2172,6 +2172,12 @@ export interface DataTypesGetStoreResult {
2172
2172
  * @memberof DataTypesGetStoreResult
2173
2173
  */
2174
2174
  'xStoreSecret'?: string;
2175
+ /**
2176
+ * Include in API responses
2177
+ * @type {string}
2178
+ * @memberof DataTypesGetStoreResult
2179
+ */
2180
+ 'xStoreWriteSecret'?: string;
2175
2181
  }
2176
2182
  /**
2177
2183
  *
@@ -2770,6 +2776,12 @@ export interface DataTypesLoginResponse {
2770
2776
  * @memberof DataTypesLoginResponse
2771
2777
  */
2772
2778
  'firstName'?: string;
2779
+ /**
2780
+ *
2781
+ * @type {string}
2782
+ * @memberof DataTypesLoginResponse
2783
+ */
2784
+ 'lastLogin'?: string;
2773
2785
  /**
2774
2786
  *
2775
2787
  * @type {string}
@@ -5589,6 +5601,56 @@ export interface DataTypesStore {
5589
5601
  */
5590
5602
  'xStoreID'?: string;
5591
5603
  }
5604
+ /**
5605
+ *
5606
+ * @export
5607
+ * @interface DataTypesStoreCredentials
5608
+ */
5609
+ export interface DataTypesStoreCredentials {
5610
+ /**
5611
+ *
5612
+ * @type {string}
5613
+ * @memberof DataTypesStoreCredentials
5614
+ */
5615
+ 'xStoreId'?: string;
5616
+ /**
5617
+ *
5618
+ * @type {string}
5619
+ * @memberof DataTypesStoreCredentials
5620
+ */
5621
+ 'xStoreSecret'?: string;
5622
+ /**
5623
+ *
5624
+ * @type {string}
5625
+ * @memberof DataTypesStoreCredentials
5626
+ */
5627
+ 'xStoreWriteSecret'?: string;
5628
+ }
5629
+ /**
5630
+ *
5631
+ * @export
5632
+ * @interface DataTypesStoreCredentialsResponse
5633
+ */
5634
+ export interface DataTypesStoreCredentialsResponse {
5635
+ /**
5636
+ *
5637
+ * @type {DataTypesStoreCredentials}
5638
+ * @memberof DataTypesStoreCredentialsResponse
5639
+ */
5640
+ 'data'?: DataTypesStoreCredentials;
5641
+ /**
5642
+ *
5643
+ * @type {string}
5644
+ * @memberof DataTypesStoreCredentialsResponse
5645
+ */
5646
+ 'message'?: string;
5647
+ /**
5648
+ *
5649
+ * @type {number}
5650
+ * @memberof DataTypesStoreCredentialsResponse
5651
+ */
5652
+ 'status'?: number;
5653
+ }
5592
5654
  /**
5593
5655
  *
5594
5656
  * @export
@@ -5607,6 +5669,12 @@ export interface DataTypesStoreKeyResponse {
5607
5669
  * @memberof DataTypesStoreKeyResponse
5608
5670
  */
5609
5671
  'storeSecret'?: string;
5672
+ /**
5673
+ *
5674
+ * @type {string}
5675
+ * @memberof DataTypesStoreKeyResponse
5676
+ */
5677
+ 'storeWriteSecret'?: string;
5610
5678
  }
5611
5679
  /**
5612
5680
  *
@@ -6357,13 +6425,7 @@ export interface DataTypesUpdateProfileRequest {
6357
6425
  */
6358
6426
  'useremailid': string;
6359
6427
  /**
6360
- *
6361
- * @type {string}
6362
- * @memberof DataTypesUpdateProfileRequest
6363
- */
6364
- 'username': string;
6365
- /**
6366
- *
6428
+ * UserName string `json:\"username\" validate:\"required\"`
6367
6429
  * @type {string}
6368
6430
  * @memberof DataTypesUpdateProfileRequest
6369
6431
  */
@@ -11996,6 +12058,14 @@ export declare const StoresApiAxiosParamCreator: (configuration?: Configuration)
11996
12058
  * @throws {RequiredError}
11997
12059
  */
11998
12060
  adminStoresXStoreIDConfigSchemaGet: (xStoreID: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
12061
+ /**
12062
+ * Retrieves all store credentials (XStoreID, XStoreSecret, XStoreWriteSecret) for a given x-store ID
12063
+ * @summary Get store credentials
12064
+ * @param {string} xStoreID X-Store ID
12065
+ * @param {*} [options] Override http request option.
12066
+ * @throws {RequiredError}
12067
+ */
12068
+ adminStoresXStoreIDCredentialsGet: (xStoreID: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11999
12069
  /**
12000
12070
  * Get default configuration values computed from the store\'s index schema using x-store ID
12001
12071
  * @summary Get Store Schema-Based Defaults
@@ -12076,6 +12146,14 @@ export declare const StoresApiFp: (configuration?: Configuration) => {
12076
12146
  * @throws {RequiredError}
12077
12147
  */
12078
12148
  adminStoresXStoreIDConfigSchemaGet(xStoreID: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesConfigurationSchemaResponseWrapper>>;
12149
+ /**
12150
+ * Retrieves all store credentials (XStoreID, XStoreSecret, XStoreWriteSecret) for a given x-store ID
12151
+ * @summary Get store credentials
12152
+ * @param {string} xStoreID X-Store ID
12153
+ * @param {*} [options] Override http request option.
12154
+ * @throws {RequiredError}
12155
+ */
12156
+ adminStoresXStoreIDCredentialsGet(xStoreID: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesStoreCredentialsResponse>>;
12079
12157
  /**
12080
12158
  * Get default configuration values computed from the store\'s index schema using x-store ID
12081
12159
  * @summary Get Store Schema-Based Defaults
@@ -12156,6 +12234,14 @@ export declare const StoresApiFactory: (configuration?: Configuration, basePath?
12156
12234
  * @throws {RequiredError}
12157
12235
  */
12158
12236
  adminStoresXStoreIDConfigSchemaGet(xStoreID: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesConfigurationSchemaResponseWrapper>;
12237
+ /**
12238
+ * Retrieves all store credentials (XStoreID, XStoreSecret, XStoreWriteSecret) for a given x-store ID
12239
+ * @summary Get store credentials
12240
+ * @param {string} xStoreID X-Store ID
12241
+ * @param {*} [options] Override http request option.
12242
+ * @throws {RequiredError}
12243
+ */
12244
+ adminStoresXStoreIDCredentialsGet(xStoreID: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesStoreCredentialsResponse>;
12159
12245
  /**
12160
12246
  * Get default configuration values computed from the store\'s index schema using x-store ID
12161
12247
  * @summary Get Store Schema-Based Defaults
@@ -12246,6 +12332,15 @@ export declare class StoresApi extends BaseAPI {
12246
12332
  * @memberof StoresApi
12247
12333
  */
12248
12334
  adminStoresXStoreIDConfigSchemaGet(xStoreID: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesConfigurationSchemaResponseWrapper, any>>;
12335
+ /**
12336
+ * Retrieves all store credentials (XStoreID, XStoreSecret, XStoreWriteSecret) for a given x-store ID
12337
+ * @summary Get store credentials
12338
+ * @param {string} xStoreID X-Store ID
12339
+ * @param {*} [options] Override http request option.
12340
+ * @throws {RequiredError}
12341
+ * @memberof StoresApi
12342
+ */
12343
+ adminStoresXStoreIDCredentialsGet(xStoreID: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesStoreCredentialsResponse, any>>;
12249
12344
  /**
12250
12345
  * Get default configuration values computed from the store\'s index schema using x-store ID
12251
12346
  * @summary Get Store Schema-Based Defaults
package/dist/api.js CHANGED
@@ -10201,6 +10201,37 @@ const StoresApiAxiosParamCreator = function (configuration) {
10201
10201
  options: localVarRequestOptions,
10202
10202
  };
10203
10203
  }),
10204
+ /**
10205
+ * Retrieves all store credentials (XStoreID, XStoreSecret, XStoreWriteSecret) for a given x-store ID
10206
+ * @summary Get store credentials
10207
+ * @param {string} xStoreID X-Store ID
10208
+ * @param {*} [options] Override http request option.
10209
+ * @throws {RequiredError}
10210
+ */
10211
+ adminStoresXStoreIDCredentialsGet: (xStoreID_1, ...args_1) => __awaiter(this, [xStoreID_1, ...args_1], void 0, function* (xStoreID, options = {}) {
10212
+ // verify required parameter 'xStoreID' is not null or undefined
10213
+ (0, common_1.assertParamExists)('adminStoresXStoreIDCredentialsGet', 'xStoreID', xStoreID);
10214
+ const localVarPath = `/admin/Stores/{xStoreID}/credentials`
10215
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
10216
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10217
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10218
+ let baseOptions;
10219
+ if (configuration) {
10220
+ baseOptions = configuration.baseOptions;
10221
+ }
10222
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
10223
+ const localVarHeaderParameter = {};
10224
+ const localVarQueryParameter = {};
10225
+ // authentication BearerAuth required
10226
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
10227
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
10228
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10229
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10230
+ return {
10231
+ url: (0, common_1.toPathString)(localVarUrlObj),
10232
+ options: localVarRequestOptions,
10233
+ };
10234
+ }),
10204
10235
  /**
10205
10236
  * Get default configuration values computed from the store\'s index schema using x-store ID
10206
10237
  * @summary Get Store Schema-Based Defaults
@@ -10372,6 +10403,22 @@ const StoresApiFp = function (configuration) {
10372
10403
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10373
10404
  });
10374
10405
  },
10406
+ /**
10407
+ * Retrieves all store credentials (XStoreID, XStoreSecret, XStoreWriteSecret) for a given x-store ID
10408
+ * @summary Get store credentials
10409
+ * @param {string} xStoreID X-Store ID
10410
+ * @param {*} [options] Override http request option.
10411
+ * @throws {RequiredError}
10412
+ */
10413
+ adminStoresXStoreIDCredentialsGet(xStoreID, options) {
10414
+ return __awaiter(this, void 0, void 0, function* () {
10415
+ var _a, _b, _c;
10416
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresXStoreIDCredentialsGet(xStoreID, options);
10417
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
10418
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['StoresApi.adminStoresXStoreIDCredentialsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
10419
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10420
+ });
10421
+ },
10375
10422
  /**
10376
10423
  * Get default configuration values computed from the store\'s index schema using x-store ID
10377
10424
  * @summary Get Store Schema-Based Defaults
@@ -10480,6 +10527,16 @@ const StoresApiFactory = function (configuration, basePath, axios) {
10480
10527
  adminStoresXStoreIDConfigSchemaGet(xStoreID, options) {
10481
10528
  return localVarFp.adminStoresXStoreIDConfigSchemaGet(xStoreID, options).then((request) => request(axios, basePath));
10482
10529
  },
10530
+ /**
10531
+ * Retrieves all store credentials (XStoreID, XStoreSecret, XStoreWriteSecret) for a given x-store ID
10532
+ * @summary Get store credentials
10533
+ * @param {string} xStoreID X-Store ID
10534
+ * @param {*} [options] Override http request option.
10535
+ * @throws {RequiredError}
10536
+ */
10537
+ adminStoresXStoreIDCredentialsGet(xStoreID, options) {
10538
+ return localVarFp.adminStoresXStoreIDCredentialsGet(xStoreID, options).then((request) => request(axios, basePath));
10539
+ },
10483
10540
  /**
10484
10541
  * Get default configuration values computed from the store\'s index schema using x-store ID
10485
10542
  * @summary Get Store Schema-Based Defaults
@@ -10590,6 +10647,17 @@ class StoresApi extends base_1.BaseAPI {
10590
10647
  adminStoresXStoreIDConfigSchemaGet(xStoreID, options) {
10591
10648
  return (0, exports.StoresApiFp)(this.configuration).adminStoresXStoreIDConfigSchemaGet(xStoreID, options).then((request) => request(this.axios, this.basePath));
10592
10649
  }
10650
+ /**
10651
+ * Retrieves all store credentials (XStoreID, XStoreSecret, XStoreWriteSecret) for a given x-store ID
10652
+ * @summary Get store credentials
10653
+ * @param {string} xStoreID X-Store ID
10654
+ * @param {*} [options] Override http request option.
10655
+ * @throws {RequiredError}
10656
+ * @memberof StoresApi
10657
+ */
10658
+ adminStoresXStoreIDCredentialsGet(xStoreID, options) {
10659
+ return (0, exports.StoresApiFp)(this.configuration).adminStoresXStoreIDCredentialsGet(xStoreID, options).then((request) => request(this.axios, this.basePath));
10660
+ }
10593
10661
  /**
10594
10662
  * Get default configuration values computed from the store\'s index schema using x-store ID
10595
10663
  * @summary Get Store Schema-Based Defaults
package/dist/esm/api.d.ts CHANGED
@@ -2172,6 +2172,12 @@ export interface DataTypesGetStoreResult {
2172
2172
  * @memberof DataTypesGetStoreResult
2173
2173
  */
2174
2174
  'xStoreSecret'?: string;
2175
+ /**
2176
+ * Include in API responses
2177
+ * @type {string}
2178
+ * @memberof DataTypesGetStoreResult
2179
+ */
2180
+ 'xStoreWriteSecret'?: string;
2175
2181
  }
2176
2182
  /**
2177
2183
  *
@@ -2770,6 +2776,12 @@ export interface DataTypesLoginResponse {
2770
2776
  * @memberof DataTypesLoginResponse
2771
2777
  */
2772
2778
  'firstName'?: string;
2779
+ /**
2780
+ *
2781
+ * @type {string}
2782
+ * @memberof DataTypesLoginResponse
2783
+ */
2784
+ 'lastLogin'?: string;
2773
2785
  /**
2774
2786
  *
2775
2787
  * @type {string}
@@ -5589,6 +5601,56 @@ export interface DataTypesStore {
5589
5601
  */
5590
5602
  'xStoreID'?: string;
5591
5603
  }
5604
+ /**
5605
+ *
5606
+ * @export
5607
+ * @interface DataTypesStoreCredentials
5608
+ */
5609
+ export interface DataTypesStoreCredentials {
5610
+ /**
5611
+ *
5612
+ * @type {string}
5613
+ * @memberof DataTypesStoreCredentials
5614
+ */
5615
+ 'xStoreId'?: string;
5616
+ /**
5617
+ *
5618
+ * @type {string}
5619
+ * @memberof DataTypesStoreCredentials
5620
+ */
5621
+ 'xStoreSecret'?: string;
5622
+ /**
5623
+ *
5624
+ * @type {string}
5625
+ * @memberof DataTypesStoreCredentials
5626
+ */
5627
+ 'xStoreWriteSecret'?: string;
5628
+ }
5629
+ /**
5630
+ *
5631
+ * @export
5632
+ * @interface DataTypesStoreCredentialsResponse
5633
+ */
5634
+ export interface DataTypesStoreCredentialsResponse {
5635
+ /**
5636
+ *
5637
+ * @type {DataTypesStoreCredentials}
5638
+ * @memberof DataTypesStoreCredentialsResponse
5639
+ */
5640
+ 'data'?: DataTypesStoreCredentials;
5641
+ /**
5642
+ *
5643
+ * @type {string}
5644
+ * @memberof DataTypesStoreCredentialsResponse
5645
+ */
5646
+ 'message'?: string;
5647
+ /**
5648
+ *
5649
+ * @type {number}
5650
+ * @memberof DataTypesStoreCredentialsResponse
5651
+ */
5652
+ 'status'?: number;
5653
+ }
5592
5654
  /**
5593
5655
  *
5594
5656
  * @export
@@ -5607,6 +5669,12 @@ export interface DataTypesStoreKeyResponse {
5607
5669
  * @memberof DataTypesStoreKeyResponse
5608
5670
  */
5609
5671
  'storeSecret'?: string;
5672
+ /**
5673
+ *
5674
+ * @type {string}
5675
+ * @memberof DataTypesStoreKeyResponse
5676
+ */
5677
+ 'storeWriteSecret'?: string;
5610
5678
  }
5611
5679
  /**
5612
5680
  *
@@ -6357,13 +6425,7 @@ export interface DataTypesUpdateProfileRequest {
6357
6425
  */
6358
6426
  'useremailid': string;
6359
6427
  /**
6360
- *
6361
- * @type {string}
6362
- * @memberof DataTypesUpdateProfileRequest
6363
- */
6364
- 'username': string;
6365
- /**
6366
- *
6428
+ * UserName string `json:\"username\" validate:\"required\"`
6367
6429
  * @type {string}
6368
6430
  * @memberof DataTypesUpdateProfileRequest
6369
6431
  */
@@ -11996,6 +12058,14 @@ export declare const StoresApiAxiosParamCreator: (configuration?: Configuration)
11996
12058
  * @throws {RequiredError}
11997
12059
  */
11998
12060
  adminStoresXStoreIDConfigSchemaGet: (xStoreID: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
12061
+ /**
12062
+ * Retrieves all store credentials (XStoreID, XStoreSecret, XStoreWriteSecret) for a given x-store ID
12063
+ * @summary Get store credentials
12064
+ * @param {string} xStoreID X-Store ID
12065
+ * @param {*} [options] Override http request option.
12066
+ * @throws {RequiredError}
12067
+ */
12068
+ adminStoresXStoreIDCredentialsGet: (xStoreID: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11999
12069
  /**
12000
12070
  * Get default configuration values computed from the store\'s index schema using x-store ID
12001
12071
  * @summary Get Store Schema-Based Defaults
@@ -12076,6 +12146,14 @@ export declare const StoresApiFp: (configuration?: Configuration) => {
12076
12146
  * @throws {RequiredError}
12077
12147
  */
12078
12148
  adminStoresXStoreIDConfigSchemaGet(xStoreID: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesConfigurationSchemaResponseWrapper>>;
12149
+ /**
12150
+ * Retrieves all store credentials (XStoreID, XStoreSecret, XStoreWriteSecret) for a given x-store ID
12151
+ * @summary Get store credentials
12152
+ * @param {string} xStoreID X-Store ID
12153
+ * @param {*} [options] Override http request option.
12154
+ * @throws {RequiredError}
12155
+ */
12156
+ adminStoresXStoreIDCredentialsGet(xStoreID: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesStoreCredentialsResponse>>;
12079
12157
  /**
12080
12158
  * Get default configuration values computed from the store\'s index schema using x-store ID
12081
12159
  * @summary Get Store Schema-Based Defaults
@@ -12156,6 +12234,14 @@ export declare const StoresApiFactory: (configuration?: Configuration, basePath?
12156
12234
  * @throws {RequiredError}
12157
12235
  */
12158
12236
  adminStoresXStoreIDConfigSchemaGet(xStoreID: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesConfigurationSchemaResponseWrapper>;
12237
+ /**
12238
+ * Retrieves all store credentials (XStoreID, XStoreSecret, XStoreWriteSecret) for a given x-store ID
12239
+ * @summary Get store credentials
12240
+ * @param {string} xStoreID X-Store ID
12241
+ * @param {*} [options] Override http request option.
12242
+ * @throws {RequiredError}
12243
+ */
12244
+ adminStoresXStoreIDCredentialsGet(xStoreID: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesStoreCredentialsResponse>;
12159
12245
  /**
12160
12246
  * Get default configuration values computed from the store\'s index schema using x-store ID
12161
12247
  * @summary Get Store Schema-Based Defaults
@@ -12246,6 +12332,15 @@ export declare class StoresApi extends BaseAPI {
12246
12332
  * @memberof StoresApi
12247
12333
  */
12248
12334
  adminStoresXStoreIDConfigSchemaGet(xStoreID: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesConfigurationSchemaResponseWrapper, any>>;
12335
+ /**
12336
+ * Retrieves all store credentials (XStoreID, XStoreSecret, XStoreWriteSecret) for a given x-store ID
12337
+ * @summary Get store credentials
12338
+ * @param {string} xStoreID X-Store ID
12339
+ * @param {*} [options] Override http request option.
12340
+ * @throws {RequiredError}
12341
+ * @memberof StoresApi
12342
+ */
12343
+ adminStoresXStoreIDCredentialsGet(xStoreID: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesStoreCredentialsResponse, any>>;
12249
12344
  /**
12250
12345
  * Get default configuration values computed from the store\'s index schema using x-store ID
12251
12346
  * @summary Get Store Schema-Based Defaults
package/dist/esm/api.js CHANGED
@@ -10112,6 +10112,37 @@ export const StoresApiAxiosParamCreator = function (configuration) {
10112
10112
  options: localVarRequestOptions,
10113
10113
  };
10114
10114
  }),
10115
+ /**
10116
+ * Retrieves all store credentials (XStoreID, XStoreSecret, XStoreWriteSecret) for a given x-store ID
10117
+ * @summary Get store credentials
10118
+ * @param {string} xStoreID X-Store ID
10119
+ * @param {*} [options] Override http request option.
10120
+ * @throws {RequiredError}
10121
+ */
10122
+ adminStoresXStoreIDCredentialsGet: (xStoreID_1, ...args_1) => __awaiter(this, [xStoreID_1, ...args_1], void 0, function* (xStoreID, options = {}) {
10123
+ // verify required parameter 'xStoreID' is not null or undefined
10124
+ assertParamExists('adminStoresXStoreIDCredentialsGet', 'xStoreID', xStoreID);
10125
+ const localVarPath = `/admin/Stores/{xStoreID}/credentials`
10126
+ .replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
10127
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10128
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10129
+ let baseOptions;
10130
+ if (configuration) {
10131
+ baseOptions = configuration.baseOptions;
10132
+ }
10133
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
10134
+ const localVarHeaderParameter = {};
10135
+ const localVarQueryParameter = {};
10136
+ // authentication BearerAuth required
10137
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
10138
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10139
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10140
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10141
+ return {
10142
+ url: toPathString(localVarUrlObj),
10143
+ options: localVarRequestOptions,
10144
+ };
10145
+ }),
10115
10146
  /**
10116
10147
  * Get default configuration values computed from the store\'s index schema using x-store ID
10117
10148
  * @summary Get Store Schema-Based Defaults
@@ -10282,6 +10313,22 @@ export const StoresApiFp = function (configuration) {
10282
10313
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10283
10314
  });
10284
10315
  },
10316
+ /**
10317
+ * Retrieves all store credentials (XStoreID, XStoreSecret, XStoreWriteSecret) for a given x-store ID
10318
+ * @summary Get store credentials
10319
+ * @param {string} xStoreID X-Store ID
10320
+ * @param {*} [options] Override http request option.
10321
+ * @throws {RequiredError}
10322
+ */
10323
+ adminStoresXStoreIDCredentialsGet(xStoreID, options) {
10324
+ return __awaiter(this, void 0, void 0, function* () {
10325
+ var _a, _b, _c;
10326
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.adminStoresXStoreIDCredentialsGet(xStoreID, options);
10327
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
10328
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['StoresApi.adminStoresXStoreIDCredentialsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
10329
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10330
+ });
10331
+ },
10285
10332
  /**
10286
10333
  * Get default configuration values computed from the store\'s index schema using x-store ID
10287
10334
  * @summary Get Store Schema-Based Defaults
@@ -10389,6 +10436,16 @@ export const StoresApiFactory = function (configuration, basePath, axios) {
10389
10436
  adminStoresXStoreIDConfigSchemaGet(xStoreID, options) {
10390
10437
  return localVarFp.adminStoresXStoreIDConfigSchemaGet(xStoreID, options).then((request) => request(axios, basePath));
10391
10438
  },
10439
+ /**
10440
+ * Retrieves all store credentials (XStoreID, XStoreSecret, XStoreWriteSecret) for a given x-store ID
10441
+ * @summary Get store credentials
10442
+ * @param {string} xStoreID X-Store ID
10443
+ * @param {*} [options] Override http request option.
10444
+ * @throws {RequiredError}
10445
+ */
10446
+ adminStoresXStoreIDCredentialsGet(xStoreID, options) {
10447
+ return localVarFp.adminStoresXStoreIDCredentialsGet(xStoreID, options).then((request) => request(axios, basePath));
10448
+ },
10392
10449
  /**
10393
10450
  * Get default configuration values computed from the store\'s index schema using x-store ID
10394
10451
  * @summary Get Store Schema-Based Defaults
@@ -10498,6 +10555,17 @@ export class StoresApi extends BaseAPI {
10498
10555
  adminStoresXStoreIDConfigSchemaGet(xStoreID, options) {
10499
10556
  return StoresApiFp(this.configuration).adminStoresXStoreIDConfigSchemaGet(xStoreID, options).then((request) => request(this.axios, this.basePath));
10500
10557
  }
10558
+ /**
10559
+ * Retrieves all store credentials (XStoreID, XStoreSecret, XStoreWriteSecret) for a given x-store ID
10560
+ * @summary Get store credentials
10561
+ * @param {string} xStoreID X-Store ID
10562
+ * @param {*} [options] Override http request option.
10563
+ * @throws {RequiredError}
10564
+ * @memberof StoresApi
10565
+ */
10566
+ adminStoresXStoreIDCredentialsGet(xStoreID, options) {
10567
+ return StoresApiFp(this.configuration).adminStoresXStoreIDCredentialsGet(xStoreID, options).then((request) => request(this.axios, this.basePath));
10568
+ }
10501
10569
  /**
10502
10570
  * Get default configuration values computed from the store\'s index schema using x-store ID
10503
10571
  * @summary Get Store Schema-Based Defaults
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seekora-ai/admin-api",
3
- "version": "1.0.26",
3
+ "version": "1.0.28",
4
4
  "description": "OpenAPI client for @seekora-ai/admin-api",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
Binary file
Binary file