@seekora-ai/admin-api 1.0.30 → 1.0.31
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 +11 -2
- package/api.ts +462 -0
- package/dist/api.d.ts +309 -0
- package/dist/api.js +269 -0
- package/dist/esm/api.d.ts +309 -0
- package/dist/esm/api.js +269 -0
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.0.31.tgz +0 -0
- package/seekora-ai-admin-api-1.0.30.tgz +0 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @seekora-ai/admin-api@1.0.
|
|
1
|
+
## @seekora-ai/admin-api@1.0.31
|
|
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.
|
|
39
|
+
npm install @seekora-ai/admin-api@1.0.31 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -192,6 +192,9 @@ Class | Method | HTTP request | Description
|
|
|
192
192
|
*StopwordsApi* | [**adminStoresStopwordsLanguagesGet**](docs/StopwordsApi.md#adminstoresstopwordslanguagesget) | **GET** /admin/Stores/stopwords/languages | Get available languages
|
|
193
193
|
*StopwordsApi* | [**adminStoresXStoreIDStopwordsWordStatusPut**](docs/StopwordsApi.md#adminstoresxstoreidstopwordswordstatusput) | **PUT** /admin/Stores/{xStoreID}/stopwords/word-status | Update word status for store
|
|
194
194
|
*StopwordsApi* | [**adminStoresXStoreIDStopwordsWordlistsGet**](docs/StopwordsApi.md#adminstoresxstoreidstopwordswordlistsget) | **GET** /admin/Stores/{xStoreID}/stopwords/wordlists | Get word lists by language
|
|
195
|
+
*StopwordsApi* | [**adminStoresXStoreIDStopwordsWordlistsWithStoreWordsGet**](docs/StopwordsApi.md#adminstoresxstoreidstopwordswordlistswithstorewordsget) | **GET** /admin/Stores/{xStoreID}/stopwords/wordlists/with-store-words | Get word lists by language (includes store-specific words)
|
|
196
|
+
*StopwordsApi* | [**adminStoresXStoreIDStopwordsWordlistsWordListIDWordsDelete**](docs/StopwordsApi.md#adminstoresxstoreidstopwordswordlistswordlistidwordsdelete) | **DELETE** /admin/Stores/{xStoreID}/stopwords/wordlists/{wordListID}/words | Remove words from language word list
|
|
197
|
+
*StopwordsApi* | [**adminStoresXStoreIDStopwordsWordlistsWordListIDWordsPost**](docs/StopwordsApi.md#adminstoresxstoreidstopwordswordlistswordlistidwordspost) | **POST** /admin/Stores/{xStoreID}/stopwords/wordlists/{wordListID}/words | Add words to language word list
|
|
195
198
|
*StoresApi* | [**adminStoresGet**](docs/StoresApi.md#adminstoresget) | **GET** /admin/Stores | Fetches list of all stores
|
|
196
199
|
*StoresApi* | [**adminStoresGetStoreXStoreIDGet**](docs/StoresApi.md#adminstoresgetstorexstoreidget) | **GET** /admin/Stores/GetStore/{xStoreID} | Fetches stores by xStoreID
|
|
197
200
|
*StoresApi* | [**adminStoresPost**](docs/StoresApi.md#adminstorespost) | **POST** /admin/Stores | Creates a new store
|
|
@@ -227,6 +230,7 @@ Class | Method | HTTP request | Description
|
|
|
227
230
|
- [DataTypesAPICallResponse](docs/DataTypesAPICallResponse.md)
|
|
228
231
|
- [DataTypesAPICallsListResponse](docs/DataTypesAPICallsListResponse.md)
|
|
229
232
|
- [DataTypesAddWordsToCustomListRequest](docs/DataTypesAddWordsToCustomListRequest.md)
|
|
233
|
+
- [DataTypesAddWordsToLanguageListRequest](docs/DataTypesAddWordsToLanguageListRequest.md)
|
|
230
234
|
- [DataTypesAdminSearchRequest](docs/DataTypesAdminSearchRequest.md)
|
|
231
235
|
- [DataTypesAutocompleteSuggestion](docs/DataTypesAutocompleteSuggestion.md)
|
|
232
236
|
- [DataTypesCombinedSearchResponse](docs/DataTypesCombinedSearchResponse.md)
|
|
@@ -338,6 +342,7 @@ Class | Method | HTTP request | Description
|
|
|
338
342
|
- [DataTypesPurchaseCreditsRequest](docs/DataTypesPurchaseCreditsRequest.md)
|
|
339
343
|
- [DataTypesPurchaseCreditsResponse](docs/DataTypesPurchaseCreditsResponse.md)
|
|
340
344
|
- [DataTypesRemoveWordsFromCustomListRequest](docs/DataTypesRemoveWordsFromCustomListRequest.md)
|
|
345
|
+
- [DataTypesRemoveWordsFromLanguageListRequest](docs/DataTypesRemoveWordsFromLanguageListRequest.md)
|
|
341
346
|
- [DataTypesResponse](docs/DataTypesResponse.md)
|
|
342
347
|
- [DataTypesRole](docs/DataTypesRole.md)
|
|
343
348
|
- [DataTypesRoleResponse](docs/DataTypesRoleResponse.md)
|
|
@@ -399,9 +404,13 @@ Class | Method | HTTP request | Description
|
|
|
399
404
|
- [DataTypesVerifyOTPResponseWrapper](docs/DataTypesVerifyOTPResponseWrapper.md)
|
|
400
405
|
- [DataTypesWidgetSearchResult](docs/DataTypesWidgetSearchResult.md)
|
|
401
406
|
- [DataTypesWordListWithWords](docs/DataTypesWordListWithWords.md)
|
|
407
|
+
- [DataTypesWordListWithWordsEnhanced](docs/DataTypesWordListWithWordsEnhanced.md)
|
|
402
408
|
- [DataTypesWordListsResponse](docs/DataTypesWordListsResponse.md)
|
|
409
|
+
- [DataTypesWordListsResponseEnhanced](docs/DataTypesWordListsResponseEnhanced.md)
|
|
410
|
+
- [DataTypesWordListsResponseEnhancedWrapper](docs/DataTypesWordListsResponseEnhancedWrapper.md)
|
|
403
411
|
- [DataTypesWordListsResponseWrapper](docs/DataTypesWordListsResponseWrapper.md)
|
|
404
412
|
- [DataTypesWordWithStatus](docs/DataTypesWordWithStatus.md)
|
|
413
|
+
- [DataTypesWordWithStatusEnhanced](docs/DataTypesWordWithStatusEnhanced.md)
|
|
405
414
|
- [MgDocumentTypesArticle](docs/MgDocumentTypesArticle.md)
|
|
406
415
|
- [MgDocumentTypesCreateArticleRequestDto](docs/MgDocumentTypesCreateArticleRequestDto.md)
|
|
407
416
|
- [MultipartFileHeader](docs/MultipartFileHeader.md)
|
package/api.ts
CHANGED
|
@@ -368,6 +368,19 @@ export interface DataTypesAddWordsToCustomListRequest {
|
|
|
368
368
|
*/
|
|
369
369
|
'words': Array<string>;
|
|
370
370
|
}
|
|
371
|
+
/**
|
|
372
|
+
*
|
|
373
|
+
* @export
|
|
374
|
+
* @interface DataTypesAddWordsToLanguageListRequest
|
|
375
|
+
*/
|
|
376
|
+
export interface DataTypesAddWordsToLanguageListRequest {
|
|
377
|
+
/**
|
|
378
|
+
*
|
|
379
|
+
* @type {Array<string>}
|
|
380
|
+
* @memberof DataTypesAddWordsToLanguageListRequest
|
|
381
|
+
*/
|
|
382
|
+
'words': Array<string>;
|
|
383
|
+
}
|
|
371
384
|
/**
|
|
372
385
|
*
|
|
373
386
|
* @export
|
|
@@ -5054,6 +5067,19 @@ export interface DataTypesRemoveWordsFromCustomListRequest {
|
|
|
5054
5067
|
*/
|
|
5055
5068
|
'custom_word_ids': Array<number>;
|
|
5056
5069
|
}
|
|
5070
|
+
/**
|
|
5071
|
+
*
|
|
5072
|
+
* @export
|
|
5073
|
+
* @interface DataTypesRemoveWordsFromLanguageListRequest
|
|
5074
|
+
*/
|
|
5075
|
+
export interface DataTypesRemoveWordsFromLanguageListRequest {
|
|
5076
|
+
/**
|
|
5077
|
+
*
|
|
5078
|
+
* @type {Array<string>}
|
|
5079
|
+
* @memberof DataTypesRemoveWordsFromLanguageListRequest
|
|
5080
|
+
*/
|
|
5081
|
+
'words': Array<string>;
|
|
5082
|
+
}
|
|
5057
5083
|
/**
|
|
5058
5084
|
*
|
|
5059
5085
|
* @export
|
|
@@ -7497,6 +7523,55 @@ export interface DataTypesWordListWithWords {
|
|
|
7497
7523
|
*/
|
|
7498
7524
|
'words'?: Array<DataTypesWordWithStatus>;
|
|
7499
7525
|
}
|
|
7526
|
+
/**
|
|
7527
|
+
*
|
|
7528
|
+
* @export
|
|
7529
|
+
* @interface DataTypesWordListWithWordsEnhanced
|
|
7530
|
+
*/
|
|
7531
|
+
export interface DataTypesWordListWithWordsEnhanced {
|
|
7532
|
+
/**
|
|
7533
|
+
*
|
|
7534
|
+
* @type {string}
|
|
7535
|
+
* @memberof DataTypesWordListWithWordsEnhanced
|
|
7536
|
+
*/
|
|
7537
|
+
'created_at'?: string;
|
|
7538
|
+
/**
|
|
7539
|
+
*
|
|
7540
|
+
* @type {string}
|
|
7541
|
+
* @memberof DataTypesWordListWithWordsEnhanced
|
|
7542
|
+
*/
|
|
7543
|
+
'lang'?: string;
|
|
7544
|
+
/**
|
|
7545
|
+
*
|
|
7546
|
+
* @type {string}
|
|
7547
|
+
* @memberof DataTypesWordListWithWordsEnhanced
|
|
7548
|
+
*/
|
|
7549
|
+
'locale'?: string;
|
|
7550
|
+
/**
|
|
7551
|
+
*
|
|
7552
|
+
* @type {string}
|
|
7553
|
+
* @memberof DataTypesWordListWithWordsEnhanced
|
|
7554
|
+
*/
|
|
7555
|
+
'type'?: string;
|
|
7556
|
+
/**
|
|
7557
|
+
*
|
|
7558
|
+
* @type {string}
|
|
7559
|
+
* @memberof DataTypesWordListWithWordsEnhanced
|
|
7560
|
+
*/
|
|
7561
|
+
'updated_at'?: string;
|
|
7562
|
+
/**
|
|
7563
|
+
*
|
|
7564
|
+
* @type {number}
|
|
7565
|
+
* @memberof DataTypesWordListWithWordsEnhanced
|
|
7566
|
+
*/
|
|
7567
|
+
'wordlistid'?: number;
|
|
7568
|
+
/**
|
|
7569
|
+
*
|
|
7570
|
+
* @type {Array<DataTypesWordWithStatusEnhanced>}
|
|
7571
|
+
* @memberof DataTypesWordListWithWordsEnhanced
|
|
7572
|
+
*/
|
|
7573
|
+
'words'?: Array<DataTypesWordWithStatusEnhanced>;
|
|
7574
|
+
}
|
|
7500
7575
|
/**
|
|
7501
7576
|
*
|
|
7502
7577
|
* @export
|
|
@@ -7534,6 +7609,68 @@ export interface DataTypesWordListsResponse {
|
|
|
7534
7609
|
*/
|
|
7535
7610
|
'wordlists'?: Array<DataTypesWordListWithWords>;
|
|
7536
7611
|
}
|
|
7612
|
+
/**
|
|
7613
|
+
*
|
|
7614
|
+
* @export
|
|
7615
|
+
* @interface DataTypesWordListsResponseEnhanced
|
|
7616
|
+
*/
|
|
7617
|
+
export interface DataTypesWordListsResponseEnhanced {
|
|
7618
|
+
/**
|
|
7619
|
+
*
|
|
7620
|
+
* @type {number}
|
|
7621
|
+
* @memberof DataTypesWordListsResponseEnhanced
|
|
7622
|
+
*/
|
|
7623
|
+
'limit'?: number;
|
|
7624
|
+
/**
|
|
7625
|
+
*
|
|
7626
|
+
* @type {number}
|
|
7627
|
+
* @memberof DataTypesWordListsResponseEnhanced
|
|
7628
|
+
*/
|
|
7629
|
+
'page'?: number;
|
|
7630
|
+
/**
|
|
7631
|
+
*
|
|
7632
|
+
* @type {number}
|
|
7633
|
+
* @memberof DataTypesWordListsResponseEnhanced
|
|
7634
|
+
*/
|
|
7635
|
+
'total'?: number;
|
|
7636
|
+
/**
|
|
7637
|
+
*
|
|
7638
|
+
* @type {number}
|
|
7639
|
+
* @memberof DataTypesWordListsResponseEnhanced
|
|
7640
|
+
*/
|
|
7641
|
+
'total_pages'?: number;
|
|
7642
|
+
/**
|
|
7643
|
+
*
|
|
7644
|
+
* @type {Array<DataTypesWordListWithWordsEnhanced>}
|
|
7645
|
+
* @memberof DataTypesWordListsResponseEnhanced
|
|
7646
|
+
*/
|
|
7647
|
+
'wordlists'?: Array<DataTypesWordListWithWordsEnhanced>;
|
|
7648
|
+
}
|
|
7649
|
+
/**
|
|
7650
|
+
*
|
|
7651
|
+
* @export
|
|
7652
|
+
* @interface DataTypesWordListsResponseEnhancedWrapper
|
|
7653
|
+
*/
|
|
7654
|
+
export interface DataTypesWordListsResponseEnhancedWrapper {
|
|
7655
|
+
/**
|
|
7656
|
+
*
|
|
7657
|
+
* @type {DataTypesWordListsResponseEnhanced}
|
|
7658
|
+
* @memberof DataTypesWordListsResponseEnhancedWrapper
|
|
7659
|
+
*/
|
|
7660
|
+
'data'?: DataTypesWordListsResponseEnhanced;
|
|
7661
|
+
/**
|
|
7662
|
+
*
|
|
7663
|
+
* @type {string}
|
|
7664
|
+
* @memberof DataTypesWordListsResponseEnhancedWrapper
|
|
7665
|
+
*/
|
|
7666
|
+
'message'?: string;
|
|
7667
|
+
/**
|
|
7668
|
+
*
|
|
7669
|
+
* @type {number}
|
|
7670
|
+
* @memberof DataTypesWordListsResponseEnhancedWrapper
|
|
7671
|
+
*/
|
|
7672
|
+
'status'?: number;
|
|
7673
|
+
}
|
|
7537
7674
|
/**
|
|
7538
7675
|
*
|
|
7539
7676
|
* @export
|
|
@@ -7584,6 +7721,43 @@ export interface DataTypesWordWithStatus {
|
|
|
7584
7721
|
*/
|
|
7585
7722
|
'wordid'?: number;
|
|
7586
7723
|
}
|
|
7724
|
+
/**
|
|
7725
|
+
*
|
|
7726
|
+
* @export
|
|
7727
|
+
* @interface DataTypesWordWithStatusEnhanced
|
|
7728
|
+
*/
|
|
7729
|
+
export interface DataTypesWordWithStatusEnhanced {
|
|
7730
|
+
/**
|
|
7731
|
+
*
|
|
7732
|
+
* @type {boolean}
|
|
7733
|
+
* @memberof DataTypesWordWithStatusEnhanced
|
|
7734
|
+
*/
|
|
7735
|
+
'is_enabled'?: boolean;
|
|
7736
|
+
/**
|
|
7737
|
+
* True if this is a store-added word
|
|
7738
|
+
* @type {boolean}
|
|
7739
|
+
* @memberof DataTypesWordWithStatusEnhanced
|
|
7740
|
+
*/
|
|
7741
|
+
'is_store_specific'?: boolean;
|
|
7742
|
+
/**
|
|
7743
|
+
* For store-specific words
|
|
7744
|
+
* @type {number}
|
|
7745
|
+
* @memberof DataTypesWordWithStatusEnhanced
|
|
7746
|
+
*/
|
|
7747
|
+
'store_language_wordid'?: number;
|
|
7748
|
+
/**
|
|
7749
|
+
*
|
|
7750
|
+
* @type {string}
|
|
7751
|
+
* @memberof DataTypesWordWithStatusEnhanced
|
|
7752
|
+
*/
|
|
7753
|
+
'word'?: string;
|
|
7754
|
+
/**
|
|
7755
|
+
* For default words
|
|
7756
|
+
* @type {number}
|
|
7757
|
+
* @memberof DataTypesWordWithStatusEnhanced
|
|
7758
|
+
*/
|
|
7759
|
+
'wordid'?: number;
|
|
7760
|
+
}
|
|
7587
7761
|
/**
|
|
7588
7762
|
*
|
|
7589
7763
|
* @export
|
|
@@ -19007,6 +19181,162 @@ export const StopwordsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
19007
19181
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19008
19182
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
19009
19183
|
|
|
19184
|
+
return {
|
|
19185
|
+
url: toPathString(localVarUrlObj),
|
|
19186
|
+
options: localVarRequestOptions,
|
|
19187
|
+
};
|
|
19188
|
+
},
|
|
19189
|
+
/**
|
|
19190
|
+
* Fetches word lists by language with pagination, store-specific enabled/disabled status, and store-specific added words. Supports search functionality.
|
|
19191
|
+
* @summary Get word lists by language (includes store-specific words)
|
|
19192
|
+
* @param {string} xStoreID X-Store ID
|
|
19193
|
+
* @param {string} [lang] Language filter
|
|
19194
|
+
* @param {string} [type] Type filter (stopwords, synonyms)
|
|
19195
|
+
* @param {string} [q] Search query to filter words (case-insensitive)
|
|
19196
|
+
* @param {number} [page] Page number (default: 1)
|
|
19197
|
+
* @param {number} [limit] Items per page (default: 10)
|
|
19198
|
+
* @param {*} [options] Override http request option.
|
|
19199
|
+
* @throws {RequiredError}
|
|
19200
|
+
*/
|
|
19201
|
+
adminStoresXStoreIDStopwordsWordlistsWithStoreWordsGet: async (xStoreID: string, lang?: string, type?: string, q?: string, page?: number, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
19202
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
19203
|
+
assertParamExists('adminStoresXStoreIDStopwordsWordlistsWithStoreWordsGet', 'xStoreID', xStoreID)
|
|
19204
|
+
const localVarPath = `/admin/Stores/{xStoreID}/stopwords/wordlists/with-store-words`
|
|
19205
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
19206
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19207
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
19208
|
+
let baseOptions;
|
|
19209
|
+
if (configuration) {
|
|
19210
|
+
baseOptions = configuration.baseOptions;
|
|
19211
|
+
}
|
|
19212
|
+
|
|
19213
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
19214
|
+
const localVarHeaderParameter = {} as any;
|
|
19215
|
+
const localVarQueryParameter = {} as any;
|
|
19216
|
+
|
|
19217
|
+
// authentication BearerAuth required
|
|
19218
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
19219
|
+
|
|
19220
|
+
if (lang !== undefined) {
|
|
19221
|
+
localVarQueryParameter['lang'] = lang;
|
|
19222
|
+
}
|
|
19223
|
+
|
|
19224
|
+
if (type !== undefined) {
|
|
19225
|
+
localVarQueryParameter['type'] = type;
|
|
19226
|
+
}
|
|
19227
|
+
|
|
19228
|
+
if (q !== undefined) {
|
|
19229
|
+
localVarQueryParameter['q'] = q;
|
|
19230
|
+
}
|
|
19231
|
+
|
|
19232
|
+
if (page !== undefined) {
|
|
19233
|
+
localVarQueryParameter['page'] = page;
|
|
19234
|
+
}
|
|
19235
|
+
|
|
19236
|
+
if (limit !== undefined) {
|
|
19237
|
+
localVarQueryParameter['limit'] = limit;
|
|
19238
|
+
}
|
|
19239
|
+
|
|
19240
|
+
|
|
19241
|
+
|
|
19242
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19243
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19244
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
19245
|
+
|
|
19246
|
+
return {
|
|
19247
|
+
url: toPathString(localVarUrlObj),
|
|
19248
|
+
options: localVarRequestOptions,
|
|
19249
|
+
};
|
|
19250
|
+
},
|
|
19251
|
+
/**
|
|
19252
|
+
* Removes store-specific words from a language word list
|
|
19253
|
+
* @summary Remove words from language word list
|
|
19254
|
+
* @param {string} xStoreID X-Store ID
|
|
19255
|
+
* @param {number} wordListID Word List ID
|
|
19256
|
+
* @param {DataTypesRemoveWordsFromLanguageListRequest} body Remove words request
|
|
19257
|
+
* @param {*} [options] Override http request option.
|
|
19258
|
+
* @throws {RequiredError}
|
|
19259
|
+
*/
|
|
19260
|
+
adminStoresXStoreIDStopwordsWordlistsWordListIDWordsDelete: async (xStoreID: string, wordListID: number, body: DataTypesRemoveWordsFromLanguageListRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
19261
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
19262
|
+
assertParamExists('adminStoresXStoreIDStopwordsWordlistsWordListIDWordsDelete', 'xStoreID', xStoreID)
|
|
19263
|
+
// verify required parameter 'wordListID' is not null or undefined
|
|
19264
|
+
assertParamExists('adminStoresXStoreIDStopwordsWordlistsWordListIDWordsDelete', 'wordListID', wordListID)
|
|
19265
|
+
// verify required parameter 'body' is not null or undefined
|
|
19266
|
+
assertParamExists('adminStoresXStoreIDStopwordsWordlistsWordListIDWordsDelete', 'body', body)
|
|
19267
|
+
const localVarPath = `/admin/Stores/{xStoreID}/stopwords/wordlists/{wordListID}/words`
|
|
19268
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)))
|
|
19269
|
+
.replace(`{${"wordListID"}}`, encodeURIComponent(String(wordListID)));
|
|
19270
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19271
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
19272
|
+
let baseOptions;
|
|
19273
|
+
if (configuration) {
|
|
19274
|
+
baseOptions = configuration.baseOptions;
|
|
19275
|
+
}
|
|
19276
|
+
|
|
19277
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
19278
|
+
const localVarHeaderParameter = {} as any;
|
|
19279
|
+
const localVarQueryParameter = {} as any;
|
|
19280
|
+
|
|
19281
|
+
// authentication BearerAuth required
|
|
19282
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
19283
|
+
|
|
19284
|
+
|
|
19285
|
+
|
|
19286
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
19287
|
+
|
|
19288
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19289
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19290
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
19291
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
19292
|
+
|
|
19293
|
+
return {
|
|
19294
|
+
url: toPathString(localVarUrlObj),
|
|
19295
|
+
options: localVarRequestOptions,
|
|
19296
|
+
};
|
|
19297
|
+
},
|
|
19298
|
+
/**
|
|
19299
|
+
* Adds words directly to a language word list for a specific store
|
|
19300
|
+
* @summary Add words to language word list
|
|
19301
|
+
* @param {string} xStoreID X-Store ID
|
|
19302
|
+
* @param {number} wordListID Word List ID
|
|
19303
|
+
* @param {DataTypesAddWordsToLanguageListRequest} body Add words request
|
|
19304
|
+
* @param {*} [options] Override http request option.
|
|
19305
|
+
* @throws {RequiredError}
|
|
19306
|
+
*/
|
|
19307
|
+
adminStoresXStoreIDStopwordsWordlistsWordListIDWordsPost: async (xStoreID: string, wordListID: number, body: DataTypesAddWordsToLanguageListRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
19308
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
19309
|
+
assertParamExists('adminStoresXStoreIDStopwordsWordlistsWordListIDWordsPost', 'xStoreID', xStoreID)
|
|
19310
|
+
// verify required parameter 'wordListID' is not null or undefined
|
|
19311
|
+
assertParamExists('adminStoresXStoreIDStopwordsWordlistsWordListIDWordsPost', 'wordListID', wordListID)
|
|
19312
|
+
// verify required parameter 'body' is not null or undefined
|
|
19313
|
+
assertParamExists('adminStoresXStoreIDStopwordsWordlistsWordListIDWordsPost', 'body', body)
|
|
19314
|
+
const localVarPath = `/admin/Stores/{xStoreID}/stopwords/wordlists/{wordListID}/words`
|
|
19315
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)))
|
|
19316
|
+
.replace(`{${"wordListID"}}`, encodeURIComponent(String(wordListID)));
|
|
19317
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19318
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
19319
|
+
let baseOptions;
|
|
19320
|
+
if (configuration) {
|
|
19321
|
+
baseOptions = configuration.baseOptions;
|
|
19322
|
+
}
|
|
19323
|
+
|
|
19324
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
19325
|
+
const localVarHeaderParameter = {} as any;
|
|
19326
|
+
const localVarQueryParameter = {} as any;
|
|
19327
|
+
|
|
19328
|
+
// authentication BearerAuth required
|
|
19329
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
19330
|
+
|
|
19331
|
+
|
|
19332
|
+
|
|
19333
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
19334
|
+
|
|
19335
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19336
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19337
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
19338
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
19339
|
+
|
|
19010
19340
|
return {
|
|
19011
19341
|
url: toPathString(localVarUrlObj),
|
|
19012
19342
|
options: localVarRequestOptions,
|
|
@@ -19068,6 +19398,54 @@ export const StopwordsApiFp = function(configuration?: Configuration) {
|
|
|
19068
19398
|
const localVarOperationServerBasePath = operationServerMap['StopwordsApi.adminStoresXStoreIDStopwordsWordlistsGet']?.[localVarOperationServerIndex]?.url;
|
|
19069
19399
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19070
19400
|
},
|
|
19401
|
+
/**
|
|
19402
|
+
* Fetches word lists by language with pagination, store-specific enabled/disabled status, and store-specific added words. Supports search functionality.
|
|
19403
|
+
* @summary Get word lists by language (includes store-specific words)
|
|
19404
|
+
* @param {string} xStoreID X-Store ID
|
|
19405
|
+
* @param {string} [lang] Language filter
|
|
19406
|
+
* @param {string} [type] Type filter (stopwords, synonyms)
|
|
19407
|
+
* @param {string} [q] Search query to filter words (case-insensitive)
|
|
19408
|
+
* @param {number} [page] Page number (default: 1)
|
|
19409
|
+
* @param {number} [limit] Items per page (default: 10)
|
|
19410
|
+
* @param {*} [options] Override http request option.
|
|
19411
|
+
* @throws {RequiredError}
|
|
19412
|
+
*/
|
|
19413
|
+
async adminStoresXStoreIDStopwordsWordlistsWithStoreWordsGet(xStoreID: string, lang?: string, type?: string, q?: string, page?: number, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesWordListsResponseEnhancedWrapper>> {
|
|
19414
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminStoresXStoreIDStopwordsWordlistsWithStoreWordsGet(xStoreID, lang, type, q, page, limit, options);
|
|
19415
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
19416
|
+
const localVarOperationServerBasePath = operationServerMap['StopwordsApi.adminStoresXStoreIDStopwordsWordlistsWithStoreWordsGet']?.[localVarOperationServerIndex]?.url;
|
|
19417
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19418
|
+
},
|
|
19419
|
+
/**
|
|
19420
|
+
* Removes store-specific words from a language word list
|
|
19421
|
+
* @summary Remove words from language word list
|
|
19422
|
+
* @param {string} xStoreID X-Store ID
|
|
19423
|
+
* @param {number} wordListID Word List ID
|
|
19424
|
+
* @param {DataTypesRemoveWordsFromLanguageListRequest} body Remove words request
|
|
19425
|
+
* @param {*} [options] Override http request option.
|
|
19426
|
+
* @throws {RequiredError}
|
|
19427
|
+
*/
|
|
19428
|
+
async adminStoresXStoreIDStopwordsWordlistsWordListIDWordsDelete(xStoreID: string, wordListID: number, body: DataTypesRemoveWordsFromLanguageListRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesUpdateWordStatusResponseWrapper>> {
|
|
19429
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminStoresXStoreIDStopwordsWordlistsWordListIDWordsDelete(xStoreID, wordListID, body, options);
|
|
19430
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
19431
|
+
const localVarOperationServerBasePath = operationServerMap['StopwordsApi.adminStoresXStoreIDStopwordsWordlistsWordListIDWordsDelete']?.[localVarOperationServerIndex]?.url;
|
|
19432
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19433
|
+
},
|
|
19434
|
+
/**
|
|
19435
|
+
* Adds words directly to a language word list for a specific store
|
|
19436
|
+
* @summary Add words to language word list
|
|
19437
|
+
* @param {string} xStoreID X-Store ID
|
|
19438
|
+
* @param {number} wordListID Word List ID
|
|
19439
|
+
* @param {DataTypesAddWordsToLanguageListRequest} body Add words request
|
|
19440
|
+
* @param {*} [options] Override http request option.
|
|
19441
|
+
* @throws {RequiredError}
|
|
19442
|
+
*/
|
|
19443
|
+
async adminStoresXStoreIDStopwordsWordlistsWordListIDWordsPost(xStoreID: string, wordListID: number, body: DataTypesAddWordsToLanguageListRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesUpdateWordStatusResponseWrapper>> {
|
|
19444
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.adminStoresXStoreIDStopwordsWordlistsWordListIDWordsPost(xStoreID, wordListID, body, options);
|
|
19445
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
19446
|
+
const localVarOperationServerBasePath = operationServerMap['StopwordsApi.adminStoresXStoreIDStopwordsWordlistsWordListIDWordsPost']?.[localVarOperationServerIndex]?.url;
|
|
19447
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19448
|
+
},
|
|
19071
19449
|
}
|
|
19072
19450
|
};
|
|
19073
19451
|
|
|
@@ -19115,6 +19493,45 @@ export const StopwordsApiFactory = function (configuration?: Configuration, base
|
|
|
19115
19493
|
adminStoresXStoreIDStopwordsWordlistsGet(xStoreID: string, lang?: string, type?: string, page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesWordListsResponseWrapper> {
|
|
19116
19494
|
return localVarFp.adminStoresXStoreIDStopwordsWordlistsGet(xStoreID, lang, type, page, limit, options).then((request) => request(axios, basePath));
|
|
19117
19495
|
},
|
|
19496
|
+
/**
|
|
19497
|
+
* Fetches word lists by language with pagination, store-specific enabled/disabled status, and store-specific added words. Supports search functionality.
|
|
19498
|
+
* @summary Get word lists by language (includes store-specific words)
|
|
19499
|
+
* @param {string} xStoreID X-Store ID
|
|
19500
|
+
* @param {string} [lang] Language filter
|
|
19501
|
+
* @param {string} [type] Type filter (stopwords, synonyms)
|
|
19502
|
+
* @param {string} [q] Search query to filter words (case-insensitive)
|
|
19503
|
+
* @param {number} [page] Page number (default: 1)
|
|
19504
|
+
* @param {number} [limit] Items per page (default: 10)
|
|
19505
|
+
* @param {*} [options] Override http request option.
|
|
19506
|
+
* @throws {RequiredError}
|
|
19507
|
+
*/
|
|
19508
|
+
adminStoresXStoreIDStopwordsWordlistsWithStoreWordsGet(xStoreID: string, lang?: string, type?: string, q?: string, page?: number, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesWordListsResponseEnhancedWrapper> {
|
|
19509
|
+
return localVarFp.adminStoresXStoreIDStopwordsWordlistsWithStoreWordsGet(xStoreID, lang, type, q, page, limit, options).then((request) => request(axios, basePath));
|
|
19510
|
+
},
|
|
19511
|
+
/**
|
|
19512
|
+
* Removes store-specific words from a language word list
|
|
19513
|
+
* @summary Remove words from language word list
|
|
19514
|
+
* @param {string} xStoreID X-Store ID
|
|
19515
|
+
* @param {number} wordListID Word List ID
|
|
19516
|
+
* @param {DataTypesRemoveWordsFromLanguageListRequest} body Remove words request
|
|
19517
|
+
* @param {*} [options] Override http request option.
|
|
19518
|
+
* @throws {RequiredError}
|
|
19519
|
+
*/
|
|
19520
|
+
adminStoresXStoreIDStopwordsWordlistsWordListIDWordsDelete(xStoreID: string, wordListID: number, body: DataTypesRemoveWordsFromLanguageListRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesUpdateWordStatusResponseWrapper> {
|
|
19521
|
+
return localVarFp.adminStoresXStoreIDStopwordsWordlistsWordListIDWordsDelete(xStoreID, wordListID, body, options).then((request) => request(axios, basePath));
|
|
19522
|
+
},
|
|
19523
|
+
/**
|
|
19524
|
+
* Adds words directly to a language word list for a specific store
|
|
19525
|
+
* @summary Add words to language word list
|
|
19526
|
+
* @param {string} xStoreID X-Store ID
|
|
19527
|
+
* @param {number} wordListID Word List ID
|
|
19528
|
+
* @param {DataTypesAddWordsToLanguageListRequest} body Add words request
|
|
19529
|
+
* @param {*} [options] Override http request option.
|
|
19530
|
+
* @throws {RequiredError}
|
|
19531
|
+
*/
|
|
19532
|
+
adminStoresXStoreIDStopwordsWordlistsWordListIDWordsPost(xStoreID: string, wordListID: number, body: DataTypesAddWordsToLanguageListRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesUpdateWordStatusResponseWrapper> {
|
|
19533
|
+
return localVarFp.adminStoresXStoreIDStopwordsWordlistsWordListIDWordsPost(xStoreID, wordListID, body, options).then((request) => request(axios, basePath));
|
|
19534
|
+
},
|
|
19118
19535
|
};
|
|
19119
19536
|
};
|
|
19120
19537
|
|
|
@@ -19167,6 +19584,51 @@ export class StopwordsApi extends BaseAPI {
|
|
|
19167
19584
|
public adminStoresXStoreIDStopwordsWordlistsGet(xStoreID: string, lang?: string, type?: string, page?: number, limit?: number, options?: RawAxiosRequestConfig) {
|
|
19168
19585
|
return StopwordsApiFp(this.configuration).adminStoresXStoreIDStopwordsWordlistsGet(xStoreID, lang, type, page, limit, options).then((request) => request(this.axios, this.basePath));
|
|
19169
19586
|
}
|
|
19587
|
+
|
|
19588
|
+
/**
|
|
19589
|
+
* Fetches word lists by language with pagination, store-specific enabled/disabled status, and store-specific added words. Supports search functionality.
|
|
19590
|
+
* @summary Get word lists by language (includes store-specific words)
|
|
19591
|
+
* @param {string} xStoreID X-Store ID
|
|
19592
|
+
* @param {string} [lang] Language filter
|
|
19593
|
+
* @param {string} [type] Type filter (stopwords, synonyms)
|
|
19594
|
+
* @param {string} [q] Search query to filter words (case-insensitive)
|
|
19595
|
+
* @param {number} [page] Page number (default: 1)
|
|
19596
|
+
* @param {number} [limit] Items per page (default: 10)
|
|
19597
|
+
* @param {*} [options] Override http request option.
|
|
19598
|
+
* @throws {RequiredError}
|
|
19599
|
+
* @memberof StopwordsApi
|
|
19600
|
+
*/
|
|
19601
|
+
public adminStoresXStoreIDStopwordsWordlistsWithStoreWordsGet(xStoreID: string, lang?: string, type?: string, q?: string, page?: number, limit?: number, options?: RawAxiosRequestConfig) {
|
|
19602
|
+
return StopwordsApiFp(this.configuration).adminStoresXStoreIDStopwordsWordlistsWithStoreWordsGet(xStoreID, lang, type, q, page, limit, options).then((request) => request(this.axios, this.basePath));
|
|
19603
|
+
}
|
|
19604
|
+
|
|
19605
|
+
/**
|
|
19606
|
+
* Removes store-specific words from a language word list
|
|
19607
|
+
* @summary Remove words from language word list
|
|
19608
|
+
* @param {string} xStoreID X-Store ID
|
|
19609
|
+
* @param {number} wordListID Word List ID
|
|
19610
|
+
* @param {DataTypesRemoveWordsFromLanguageListRequest} body Remove words request
|
|
19611
|
+
* @param {*} [options] Override http request option.
|
|
19612
|
+
* @throws {RequiredError}
|
|
19613
|
+
* @memberof StopwordsApi
|
|
19614
|
+
*/
|
|
19615
|
+
public adminStoresXStoreIDStopwordsWordlistsWordListIDWordsDelete(xStoreID: string, wordListID: number, body: DataTypesRemoveWordsFromLanguageListRequest, options?: RawAxiosRequestConfig) {
|
|
19616
|
+
return StopwordsApiFp(this.configuration).adminStoresXStoreIDStopwordsWordlistsWordListIDWordsDelete(xStoreID, wordListID, body, options).then((request) => request(this.axios, this.basePath));
|
|
19617
|
+
}
|
|
19618
|
+
|
|
19619
|
+
/**
|
|
19620
|
+
* Adds words directly to a language word list for a specific store
|
|
19621
|
+
* @summary Add words to language word list
|
|
19622
|
+
* @param {string} xStoreID X-Store ID
|
|
19623
|
+
* @param {number} wordListID Word List ID
|
|
19624
|
+
* @param {DataTypesAddWordsToLanguageListRequest} body Add words request
|
|
19625
|
+
* @param {*} [options] Override http request option.
|
|
19626
|
+
* @throws {RequiredError}
|
|
19627
|
+
* @memberof StopwordsApi
|
|
19628
|
+
*/
|
|
19629
|
+
public adminStoresXStoreIDStopwordsWordlistsWordListIDWordsPost(xStoreID: string, wordListID: number, body: DataTypesAddWordsToLanguageListRequest, options?: RawAxiosRequestConfig) {
|
|
19630
|
+
return StopwordsApiFp(this.configuration).adminStoresXStoreIDStopwordsWordlistsWordListIDWordsPost(xStoreID, wordListID, body, options).then((request) => request(this.axios, this.basePath));
|
|
19631
|
+
}
|
|
19170
19632
|
}
|
|
19171
19633
|
|
|
19172
19634
|
|