@seekora-ai/admin-api 1.1.42 → 1.1.44
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 +12 -2
- package/api.ts +762 -8
- package/dist/api.d.ts +490 -8
- package/dist/api.js +546 -9
- package/dist/esm/api.d.ts +490 -8
- package/dist/esm/api.js +532 -8
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.1.44.tgz +0 -0
- package/seekora-ai-admin-api-1.1.42.tgz +0 -0
package/api.ts
CHANGED
|
@@ -6719,6 +6719,12 @@ export interface DataTypesCombinedSearchResponse {
|
|
|
6719
6719
|
* @memberof DataTypesCombinedSearchResponse
|
|
6720
6720
|
*/
|
|
6721
6721
|
'results'?: Array<DataTypesCombinedSearchResult>;
|
|
6722
|
+
/**
|
|
6723
|
+
* Unique search identifier for analytics linking
|
|
6724
|
+
* @type {string}
|
|
6725
|
+
* @memberof DataTypesCombinedSearchResponse
|
|
6726
|
+
*/
|
|
6727
|
+
'search_id'?: string;
|
|
6722
6728
|
/**
|
|
6723
6729
|
*
|
|
6724
6730
|
* @type {Array<DataTypesAutocompleteSuggestion>}
|
|
@@ -9364,6 +9370,12 @@ export interface DataTypesEventPayload {
|
|
|
9364
9370
|
* @memberof DataTypesEventPayload
|
|
9365
9371
|
*/
|
|
9366
9372
|
'clicked_item_id'?: string;
|
|
9373
|
+
/**
|
|
9374
|
+
* Primary journey key across search → clicks → conversions
|
|
9375
|
+
* @type {string}
|
|
9376
|
+
* @memberof DataTypesEventPayload
|
|
9377
|
+
*/
|
|
9378
|
+
'correlation_id'?: string;
|
|
9367
9379
|
/**
|
|
9368
9380
|
* Enhanced Geo data fields for direct submission
|
|
9369
9381
|
* @type {string}
|
|
@@ -9454,6 +9466,12 @@ export interface DataTypesEventPayload {
|
|
|
9454
9466
|
* @memberof DataTypesEventPayload
|
|
9455
9467
|
*/
|
|
9456
9468
|
'results_count'?: number;
|
|
9469
|
+
/**
|
|
9470
|
+
* Optional search-scoped identifier (mirrors correlation_id when you have a natural search key)
|
|
9471
|
+
* @type {string}
|
|
9472
|
+
* @memberof DataTypesEventPayload
|
|
9473
|
+
*/
|
|
9474
|
+
'search_id'?: string;
|
|
9457
9475
|
/**
|
|
9458
9476
|
* Session identifier for journey tracking
|
|
9459
9477
|
* @type {string}
|
|
@@ -10430,6 +10448,56 @@ export interface DataTypesGenericResponseDataTypesPayInvoiceResponse {
|
|
|
10430
10448
|
*/
|
|
10431
10449
|
'status'?: number;
|
|
10432
10450
|
}
|
|
10451
|
+
/**
|
|
10452
|
+
*
|
|
10453
|
+
* @export
|
|
10454
|
+
* @interface DataTypesGenericResponseDataTypesPublicCreateStoreResponse
|
|
10455
|
+
*/
|
|
10456
|
+
export interface DataTypesGenericResponseDataTypesPublicCreateStoreResponse {
|
|
10457
|
+
/**
|
|
10458
|
+
*
|
|
10459
|
+
* @type {DataTypesPublicCreateStoreResponse}
|
|
10460
|
+
* @memberof DataTypesGenericResponseDataTypesPublicCreateStoreResponse
|
|
10461
|
+
*/
|
|
10462
|
+
'data'?: DataTypesPublicCreateStoreResponse;
|
|
10463
|
+
/**
|
|
10464
|
+
*
|
|
10465
|
+
* @type {string}
|
|
10466
|
+
* @memberof DataTypesGenericResponseDataTypesPublicCreateStoreResponse
|
|
10467
|
+
*/
|
|
10468
|
+
'message'?: string;
|
|
10469
|
+
/**
|
|
10470
|
+
*
|
|
10471
|
+
* @type {number}
|
|
10472
|
+
* @memberof DataTypesGenericResponseDataTypesPublicCreateStoreResponse
|
|
10473
|
+
*/
|
|
10474
|
+
'status'?: number;
|
|
10475
|
+
}
|
|
10476
|
+
/**
|
|
10477
|
+
*
|
|
10478
|
+
* @export
|
|
10479
|
+
* @interface DataTypesGenericResponseDataTypesPublicStoreInfoResponse
|
|
10480
|
+
*/
|
|
10481
|
+
export interface DataTypesGenericResponseDataTypesPublicStoreInfoResponse {
|
|
10482
|
+
/**
|
|
10483
|
+
*
|
|
10484
|
+
* @type {DataTypesPublicStoreInfoResponse}
|
|
10485
|
+
* @memberof DataTypesGenericResponseDataTypesPublicStoreInfoResponse
|
|
10486
|
+
*/
|
|
10487
|
+
'data'?: DataTypesPublicStoreInfoResponse;
|
|
10488
|
+
/**
|
|
10489
|
+
*
|
|
10490
|
+
* @type {string}
|
|
10491
|
+
* @memberof DataTypesGenericResponseDataTypesPublicStoreInfoResponse
|
|
10492
|
+
*/
|
|
10493
|
+
'message'?: string;
|
|
10494
|
+
/**
|
|
10495
|
+
*
|
|
10496
|
+
* @type {number}
|
|
10497
|
+
* @memberof DataTypesGenericResponseDataTypesPublicStoreInfoResponse
|
|
10498
|
+
*/
|
|
10499
|
+
'status'?: number;
|
|
10500
|
+
}
|
|
10433
10501
|
/**
|
|
10434
10502
|
*
|
|
10435
10503
|
* @export
|
|
@@ -14431,6 +14499,12 @@ export interface DataTypesOfficialSearchResponse {
|
|
|
14431
14499
|
* @memberof DataTypesOfficialSearchResponse
|
|
14432
14500
|
*/
|
|
14433
14501
|
'results'?: Array<DataTypesOfficialSearchResult>;
|
|
14502
|
+
/**
|
|
14503
|
+
* Unique search identifier for analytics linking
|
|
14504
|
+
* @type {string}
|
|
14505
|
+
* @memberof DataTypesOfficialSearchResponse
|
|
14506
|
+
*/
|
|
14507
|
+
'search_id'?: string;
|
|
14434
14508
|
/**
|
|
14435
14509
|
*
|
|
14436
14510
|
* @type {Array<DataTypesAutocompleteSuggestion>}
|
|
@@ -16598,6 +16672,86 @@ export interface DataTypesProfileResponseWrapper {
|
|
|
16598
16672
|
*/
|
|
16599
16673
|
'status'?: number;
|
|
16600
16674
|
}
|
|
16675
|
+
/**
|
|
16676
|
+
*
|
|
16677
|
+
* @export
|
|
16678
|
+
* @interface DataTypesPublicCreateStoreRequest
|
|
16679
|
+
*/
|
|
16680
|
+
export interface DataTypesPublicCreateStoreRequest {
|
|
16681
|
+
/**
|
|
16682
|
+
* Optional: array of documents to import immediately
|
|
16683
|
+
* @type {Array<{ [key: string]: any; }>}
|
|
16684
|
+
* @memberof DataTypesPublicCreateStoreRequest
|
|
16685
|
+
*/
|
|
16686
|
+
'dataset'?: Array<{ [key: string]: any; }>;
|
|
16687
|
+
/**
|
|
16688
|
+
*
|
|
16689
|
+
* @type {string}
|
|
16690
|
+
* @memberof DataTypesPublicCreateStoreRequest
|
|
16691
|
+
*/
|
|
16692
|
+
'industry'?: string;
|
|
16693
|
+
/**
|
|
16694
|
+
*
|
|
16695
|
+
* @type {string}
|
|
16696
|
+
* @memberof DataTypesPublicCreateStoreRequest
|
|
16697
|
+
*/
|
|
16698
|
+
'location'?: string;
|
|
16699
|
+
/**
|
|
16700
|
+
*
|
|
16701
|
+
* @type {string}
|
|
16702
|
+
* @memberof DataTypesPublicCreateStoreRequest
|
|
16703
|
+
*/
|
|
16704
|
+
'storeName': string;
|
|
16705
|
+
}
|
|
16706
|
+
/**
|
|
16707
|
+
*
|
|
16708
|
+
* @export
|
|
16709
|
+
* @interface DataTypesPublicCreateStoreResponse
|
|
16710
|
+
*/
|
|
16711
|
+
export interface DataTypesPublicCreateStoreResponse {
|
|
16712
|
+
/**
|
|
16713
|
+
* Job ID if dataset was imported
|
|
16714
|
+
* @type {string}
|
|
16715
|
+
* @memberof DataTypesPublicCreateStoreResponse
|
|
16716
|
+
*/
|
|
16717
|
+
'importJobId'?: string;
|
|
16718
|
+
/**
|
|
16719
|
+
* Number of documents imported
|
|
16720
|
+
* @type {number}
|
|
16721
|
+
* @memberof DataTypesPublicCreateStoreResponse
|
|
16722
|
+
*/
|
|
16723
|
+
'importedCount'?: number;
|
|
16724
|
+
/**
|
|
16725
|
+
*
|
|
16726
|
+
* @type {number}
|
|
16727
|
+
* @memberof DataTypesPublicCreateStoreResponse
|
|
16728
|
+
*/
|
|
16729
|
+
'storeId'?: number;
|
|
16730
|
+
/**
|
|
16731
|
+
*
|
|
16732
|
+
* @type {string}
|
|
16733
|
+
* @memberof DataTypesPublicCreateStoreResponse
|
|
16734
|
+
*/
|
|
16735
|
+
'storeName'?: string;
|
|
16736
|
+
/**
|
|
16737
|
+
*
|
|
16738
|
+
* @type {string}
|
|
16739
|
+
* @memberof DataTypesPublicCreateStoreResponse
|
|
16740
|
+
*/
|
|
16741
|
+
'xStoreId'?: string;
|
|
16742
|
+
/**
|
|
16743
|
+
*
|
|
16744
|
+
* @type {string}
|
|
16745
|
+
* @memberof DataTypesPublicCreateStoreResponse
|
|
16746
|
+
*/
|
|
16747
|
+
'xStoreSecret'?: string;
|
|
16748
|
+
/**
|
|
16749
|
+
*
|
|
16750
|
+
* @type {string}
|
|
16751
|
+
* @memberof DataTypesPublicCreateStoreResponse
|
|
16752
|
+
*/
|
|
16753
|
+
'xStoreWriteSecret'?: string;
|
|
16754
|
+
}
|
|
16601
16755
|
/**
|
|
16602
16756
|
*
|
|
16603
16757
|
* @export
|
|
@@ -16683,6 +16837,49 @@ export interface DataTypesPublicSearchRequest {
|
|
|
16683
16837
|
*/
|
|
16684
16838
|
'widget_mode'?: boolean;
|
|
16685
16839
|
}
|
|
16840
|
+
/**
|
|
16841
|
+
*
|
|
16842
|
+
* @export
|
|
16843
|
+
* @interface DataTypesPublicStoreInfoResponse
|
|
16844
|
+
*/
|
|
16845
|
+
export interface DataTypesPublicStoreInfoResponse {
|
|
16846
|
+
/**
|
|
16847
|
+
*
|
|
16848
|
+
* @type {string}
|
|
16849
|
+
* @memberof DataTypesPublicStoreInfoResponse
|
|
16850
|
+
*/
|
|
16851
|
+
'createdAt'?: string;
|
|
16852
|
+
/**
|
|
16853
|
+
*
|
|
16854
|
+
* @type {boolean}
|
|
16855
|
+
* @memberof DataTypesPublicStoreInfoResponse
|
|
16856
|
+
*/
|
|
16857
|
+
'isActive'?: boolean;
|
|
16858
|
+
/**
|
|
16859
|
+
*
|
|
16860
|
+
* @type {string}
|
|
16861
|
+
* @memberof DataTypesPublicStoreInfoResponse
|
|
16862
|
+
*/
|
|
16863
|
+
'location'?: string;
|
|
16864
|
+
/**
|
|
16865
|
+
*
|
|
16866
|
+
* @type {number}
|
|
16867
|
+
* @memberof DataTypesPublicStoreInfoResponse
|
|
16868
|
+
*/
|
|
16869
|
+
'storeId'?: number;
|
|
16870
|
+
/**
|
|
16871
|
+
*
|
|
16872
|
+
* @type {string}
|
|
16873
|
+
* @memberof DataTypesPublicStoreInfoResponse
|
|
16874
|
+
*/
|
|
16875
|
+
'storeName'?: string;
|
|
16876
|
+
/**
|
|
16877
|
+
*
|
|
16878
|
+
* @type {string}
|
|
16879
|
+
* @memberof DataTypesPublicStoreInfoResponse
|
|
16880
|
+
*/
|
|
16881
|
+
'xStoreId'?: string;
|
|
16882
|
+
}
|
|
16686
16883
|
/**
|
|
16687
16884
|
*
|
|
16688
16885
|
* @export
|
|
@@ -26703,7 +26900,7 @@ export class AccountSettingsApi extends BaseAPI {
|
|
|
26703
26900
|
export const ActivityLogsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
26704
26901
|
return {
|
|
26705
26902
|
/**
|
|
26706
|
-
* Retrieve user activity logs from ClickHouse
|
|
26903
|
+
* Retrieve user activity logs from ClickHouse fact_events table with full filtering, search, and pagination.
|
|
26707
26904
|
* @summary Get Activity Logs
|
|
26708
26905
|
* @param {string} [startDate] Start date (ISO 8601 format)
|
|
26709
26906
|
* @param {string} [endDate] End date (ISO 8601 format)
|
|
@@ -26781,7 +26978,7 @@ export const ActivityLogsApiFp = function(configuration?: Configuration) {
|
|
|
26781
26978
|
const localVarAxiosParamCreator = ActivityLogsApiAxiosParamCreator(configuration)
|
|
26782
26979
|
return {
|
|
26783
26980
|
/**
|
|
26784
|
-
* Retrieve user activity logs from ClickHouse
|
|
26981
|
+
* Retrieve user activity logs from ClickHouse fact_events table with full filtering, search, and pagination.
|
|
26785
26982
|
* @summary Get Activity Logs
|
|
26786
26983
|
* @param {string} [startDate] Start date (ISO 8601 format)
|
|
26787
26984
|
* @param {string} [endDate] End date (ISO 8601 format)
|
|
@@ -26810,7 +27007,7 @@ export const ActivityLogsApiFactory = function (configuration?: Configuration, b
|
|
|
26810
27007
|
const localVarFp = ActivityLogsApiFp(configuration)
|
|
26811
27008
|
return {
|
|
26812
27009
|
/**
|
|
26813
|
-
* Retrieve user activity logs from ClickHouse
|
|
27010
|
+
* Retrieve user activity logs from ClickHouse fact_events table with full filtering, search, and pagination.
|
|
26814
27011
|
* @summary Get Activity Logs
|
|
26815
27012
|
* @param {string} [startDate] Start date (ISO 8601 format)
|
|
26816
27013
|
* @param {string} [endDate] End date (ISO 8601 format)
|
|
@@ -26836,7 +27033,7 @@ export const ActivityLogsApiFactory = function (configuration?: Configuration, b
|
|
|
26836
27033
|
*/
|
|
26837
27034
|
export class ActivityLogsApi extends BaseAPI {
|
|
26838
27035
|
/**
|
|
26839
|
-
* Retrieve user activity logs from ClickHouse
|
|
27036
|
+
* Retrieve user activity logs from ClickHouse fact_events table with full filtering, search, and pagination.
|
|
26840
27037
|
* @summary Get Activity Logs
|
|
26841
27038
|
* @param {string} [startDate] Start date (ISO 8601 format)
|
|
26842
27039
|
* @param {string} [endDate] End date (ISO 8601 format)
|
|
@@ -30296,7 +30493,7 @@ export const AnalyticsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
30296
30493
|
};
|
|
30297
30494
|
},
|
|
30298
30495
|
/**
|
|
30299
|
-
* Retrieve API usage logs from ClickHouse
|
|
30496
|
+
* Retrieve API usage logs from ClickHouse fact_events table with filtering and pagination
|
|
30300
30497
|
* @summary Get API Usage Logs
|
|
30301
30498
|
* @param {string} [startDate] Start date (ISO 8601 format)
|
|
30302
30499
|
* @param {string} [endDate] End date (ISO 8601 format)
|
|
@@ -30970,7 +31167,7 @@ export const AnalyticsApiFp = function(configuration?: Configuration) {
|
|
|
30970
31167
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
30971
31168
|
},
|
|
30972
31169
|
/**
|
|
30973
|
-
* Retrieve API usage logs from ClickHouse
|
|
31170
|
+
* Retrieve API usage logs from ClickHouse fact_events table with filtering and pagination
|
|
30974
31171
|
* @summary Get API Usage Logs
|
|
30975
31172
|
* @param {string} [startDate] Start date (ISO 8601 format)
|
|
30976
31173
|
* @param {string} [endDate] End date (ISO 8601 format)
|
|
@@ -31473,7 +31670,7 @@ export const AnalyticsApiFactory = function (configuration?: Configuration, base
|
|
|
31473
31670
|
return localVarFp.adminAnalyticsStoreXStoreIDTagsSummaryGet(xStoreID, startTime, endTime, limit, offset, page, pageSize, sortBy, sortOrder, sort, options).then((request) => request(axios, basePath));
|
|
31474
31671
|
},
|
|
31475
31672
|
/**
|
|
31476
|
-
* Retrieve API usage logs from ClickHouse
|
|
31673
|
+
* Retrieve API usage logs from ClickHouse fact_events table with filtering and pagination
|
|
31477
31674
|
* @summary Get API Usage Logs
|
|
31478
31675
|
* @param {string} [startDate] Start date (ISO 8601 format)
|
|
31479
31676
|
* @param {string} [endDate] End date (ISO 8601 format)
|
|
@@ -32003,7 +32200,7 @@ export class AnalyticsApi extends BaseAPI {
|
|
|
32003
32200
|
}
|
|
32004
32201
|
|
|
32005
32202
|
/**
|
|
32006
|
-
* Retrieve API usage logs from ClickHouse
|
|
32203
|
+
* Retrieve API usage logs from ClickHouse fact_events table with filtering and pagination
|
|
32007
32204
|
* @summary Get API Usage Logs
|
|
32008
32205
|
* @param {string} [startDate] Start date (ISO 8601 format)
|
|
32009
32206
|
* @param {string} [endDate] End date (ISO 8601 format)
|
|
@@ -58269,6 +58466,563 @@ export class RolesApi extends BaseAPI {
|
|
|
58269
58466
|
|
|
58270
58467
|
|
|
58271
58468
|
|
|
58469
|
+
/**
|
|
58470
|
+
* SDKStoreConfigApi - axios parameter creator
|
|
58471
|
+
* @export
|
|
58472
|
+
*/
|
|
58473
|
+
export const SDKStoreConfigApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
58474
|
+
return {
|
|
58475
|
+
/**
|
|
58476
|
+
* Retrieves the store configuration using x-store ID and read secret. This is a public API for SDK integration. Uses read secret (x-storesecret).
|
|
58477
|
+
* @summary Get Store Config (Public SDK API)
|
|
58478
|
+
* @param {string} xStoreid Store ID
|
|
58479
|
+
* @param {string} xStoresecret Store Read Secret (for read operations)
|
|
58480
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
58481
|
+
* @param {*} [options] Override http request option.
|
|
58482
|
+
* @throws {RequiredError}
|
|
58483
|
+
*/
|
|
58484
|
+
apiV1StoresXStoreIDConfigGet: async (xStoreid: string, xStoresecret: string, xStoreID: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
58485
|
+
// verify required parameter 'xStoreid' is not null or undefined
|
|
58486
|
+
assertParamExists('apiV1StoresXStoreIDConfigGet', 'xStoreid', xStoreid)
|
|
58487
|
+
// verify required parameter 'xStoresecret' is not null or undefined
|
|
58488
|
+
assertParamExists('apiV1StoresXStoreIDConfigGet', 'xStoresecret', xStoresecret)
|
|
58489
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
58490
|
+
assertParamExists('apiV1StoresXStoreIDConfigGet', 'xStoreID', xStoreID)
|
|
58491
|
+
const localVarPath = `/api/v1/stores/{xStoreID}/config`
|
|
58492
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
58493
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
58494
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
58495
|
+
let baseOptions;
|
|
58496
|
+
if (configuration) {
|
|
58497
|
+
baseOptions = configuration.baseOptions;
|
|
58498
|
+
}
|
|
58499
|
+
|
|
58500
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
58501
|
+
const localVarHeaderParameter = {} as any;
|
|
58502
|
+
const localVarQueryParameter = {} as any;
|
|
58503
|
+
|
|
58504
|
+
|
|
58505
|
+
|
|
58506
|
+
if (xStoreid != null) {
|
|
58507
|
+
localVarHeaderParameter['x-storeid'] = String(xStoreid);
|
|
58508
|
+
}
|
|
58509
|
+
if (xStoresecret != null) {
|
|
58510
|
+
localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
|
|
58511
|
+
}
|
|
58512
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
58513
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
58514
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
58515
|
+
|
|
58516
|
+
return {
|
|
58517
|
+
url: toPathString(localVarUrlObj),
|
|
58518
|
+
options: localVarRequestOptions,
|
|
58519
|
+
};
|
|
58520
|
+
},
|
|
58521
|
+
/**
|
|
58522
|
+
* Updates the store configuration using x-store ID and write secret. Supports partial updates. This is a public API for SDK integration. Requires write secret for security.
|
|
58523
|
+
* @summary Update Store Config (Public SDK API)
|
|
58524
|
+
* @param {string} xStoreid Store ID
|
|
58525
|
+
* @param {string} xStoreWriteSecret Store Write Secret (required for write operations)
|
|
58526
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
58527
|
+
* @param {DataTypesIndexConfig} dataTypesIndexConfig Store configuration (partial updates supported)
|
|
58528
|
+
* @param {*} [options] Override http request option.
|
|
58529
|
+
* @throws {RequiredError}
|
|
58530
|
+
*/
|
|
58531
|
+
apiV1StoresXStoreIDConfigPut: async (xStoreid: string, xStoreWriteSecret: string, xStoreID: string, dataTypesIndexConfig: DataTypesIndexConfig, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
58532
|
+
// verify required parameter 'xStoreid' is not null or undefined
|
|
58533
|
+
assertParamExists('apiV1StoresXStoreIDConfigPut', 'xStoreid', xStoreid)
|
|
58534
|
+
// verify required parameter 'xStoreWriteSecret' is not null or undefined
|
|
58535
|
+
assertParamExists('apiV1StoresXStoreIDConfigPut', 'xStoreWriteSecret', xStoreWriteSecret)
|
|
58536
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
58537
|
+
assertParamExists('apiV1StoresXStoreIDConfigPut', 'xStoreID', xStoreID)
|
|
58538
|
+
// verify required parameter 'dataTypesIndexConfig' is not null or undefined
|
|
58539
|
+
assertParamExists('apiV1StoresXStoreIDConfigPut', 'dataTypesIndexConfig', dataTypesIndexConfig)
|
|
58540
|
+
const localVarPath = `/api/v1/stores/{xStoreID}/config`
|
|
58541
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
58542
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
58543
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
58544
|
+
let baseOptions;
|
|
58545
|
+
if (configuration) {
|
|
58546
|
+
baseOptions = configuration.baseOptions;
|
|
58547
|
+
}
|
|
58548
|
+
|
|
58549
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
58550
|
+
const localVarHeaderParameter = {} as any;
|
|
58551
|
+
const localVarQueryParameter = {} as any;
|
|
58552
|
+
|
|
58553
|
+
|
|
58554
|
+
|
|
58555
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
58556
|
+
|
|
58557
|
+
if (xStoreid != null) {
|
|
58558
|
+
localVarHeaderParameter['x-storeid'] = String(xStoreid);
|
|
58559
|
+
}
|
|
58560
|
+
if (xStoreWriteSecret != null) {
|
|
58561
|
+
localVarHeaderParameter['x-store-write-secret'] = String(xStoreWriteSecret);
|
|
58562
|
+
}
|
|
58563
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
58564
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
58565
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
58566
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesIndexConfig, localVarRequestOptions, configuration)
|
|
58567
|
+
|
|
58568
|
+
return {
|
|
58569
|
+
url: toPathString(localVarUrlObj),
|
|
58570
|
+
options: localVarRequestOptions,
|
|
58571
|
+
};
|
|
58572
|
+
},
|
|
58573
|
+
/**
|
|
58574
|
+
* Get metadata about all configurable fields for store configuration. This is a public API for SDK integration.
|
|
58575
|
+
* @summary Get Store Config Schema (Public SDK API)
|
|
58576
|
+
* @param {string} xStoreid Store ID
|
|
58577
|
+
* @param {string} xStoresecret Store Secret
|
|
58578
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
58579
|
+
* @param {*} [options] Override http request option.
|
|
58580
|
+
* @throws {RequiredError}
|
|
58581
|
+
*/
|
|
58582
|
+
apiV1StoresXStoreIDConfigSchemaGet: async (xStoreid: string, xStoresecret: string, xStoreID: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
58583
|
+
// verify required parameter 'xStoreid' is not null or undefined
|
|
58584
|
+
assertParamExists('apiV1StoresXStoreIDConfigSchemaGet', 'xStoreid', xStoreid)
|
|
58585
|
+
// verify required parameter 'xStoresecret' is not null or undefined
|
|
58586
|
+
assertParamExists('apiV1StoresXStoreIDConfigSchemaGet', 'xStoresecret', xStoresecret)
|
|
58587
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
58588
|
+
assertParamExists('apiV1StoresXStoreIDConfigSchemaGet', 'xStoreID', xStoreID)
|
|
58589
|
+
const localVarPath = `/api/v1/stores/{xStoreID}/config-schema`
|
|
58590
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
58591
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
58592
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
58593
|
+
let baseOptions;
|
|
58594
|
+
if (configuration) {
|
|
58595
|
+
baseOptions = configuration.baseOptions;
|
|
58596
|
+
}
|
|
58597
|
+
|
|
58598
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
58599
|
+
const localVarHeaderParameter = {} as any;
|
|
58600
|
+
const localVarQueryParameter = {} as any;
|
|
58601
|
+
|
|
58602
|
+
|
|
58603
|
+
|
|
58604
|
+
if (xStoreid != null) {
|
|
58605
|
+
localVarHeaderParameter['x-storeid'] = String(xStoreid);
|
|
58606
|
+
}
|
|
58607
|
+
if (xStoresecret != null) {
|
|
58608
|
+
localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
|
|
58609
|
+
}
|
|
58610
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
58611
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
58612
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
58613
|
+
|
|
58614
|
+
return {
|
|
58615
|
+
url: toPathString(localVarUrlObj),
|
|
58616
|
+
options: localVarRequestOptions,
|
|
58617
|
+
};
|
|
58618
|
+
},
|
|
58619
|
+
}
|
|
58620
|
+
};
|
|
58621
|
+
|
|
58622
|
+
/**
|
|
58623
|
+
* SDKStoreConfigApi - functional programming interface
|
|
58624
|
+
* @export
|
|
58625
|
+
*/
|
|
58626
|
+
export const SDKStoreConfigApiFp = function(configuration?: Configuration) {
|
|
58627
|
+
const localVarAxiosParamCreator = SDKStoreConfigApiAxiosParamCreator(configuration)
|
|
58628
|
+
return {
|
|
58629
|
+
/**
|
|
58630
|
+
* Retrieves the store configuration using x-store ID and read secret. This is a public API for SDK integration. Uses read secret (x-storesecret).
|
|
58631
|
+
* @summary Get Store Config (Public SDK API)
|
|
58632
|
+
* @param {string} xStoreid Store ID
|
|
58633
|
+
* @param {string} xStoresecret Store Read Secret (for read operations)
|
|
58634
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
58635
|
+
* @param {*} [options] Override http request option.
|
|
58636
|
+
* @throws {RequiredError}
|
|
58637
|
+
*/
|
|
58638
|
+
async apiV1StoresXStoreIDConfigGet(xStoreid: string, xStoresecret: string, xStoreID: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseDataTypesStoreConfigWithOnboardingResponse>> {
|
|
58639
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1StoresXStoreIDConfigGet(xStoreid, xStoresecret, xStoreID, options);
|
|
58640
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
58641
|
+
const localVarOperationServerBasePath = operationServerMap['SDKStoreConfigApi.apiV1StoresXStoreIDConfigGet']?.[localVarOperationServerIndex]?.url;
|
|
58642
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
58643
|
+
},
|
|
58644
|
+
/**
|
|
58645
|
+
* Updates the store configuration using x-store ID and write secret. Supports partial updates. This is a public API for SDK integration. Requires write secret for security.
|
|
58646
|
+
* @summary Update Store Config (Public SDK API)
|
|
58647
|
+
* @param {string} xStoreid Store ID
|
|
58648
|
+
* @param {string} xStoreWriteSecret Store Write Secret (required for write operations)
|
|
58649
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
58650
|
+
* @param {DataTypesIndexConfig} dataTypesIndexConfig Store configuration (partial updates supported)
|
|
58651
|
+
* @param {*} [options] Override http request option.
|
|
58652
|
+
* @throws {RequiredError}
|
|
58653
|
+
*/
|
|
58654
|
+
async apiV1StoresXStoreIDConfigPut(xStoreid: string, xStoreWriteSecret: string, xStoreID: string, dataTypesIndexConfig: DataTypesIndexConfig, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesIndexConfigResponseWrapper>> {
|
|
58655
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1StoresXStoreIDConfigPut(xStoreid, xStoreWriteSecret, xStoreID, dataTypesIndexConfig, options);
|
|
58656
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
58657
|
+
const localVarOperationServerBasePath = operationServerMap['SDKStoreConfigApi.apiV1StoresXStoreIDConfigPut']?.[localVarOperationServerIndex]?.url;
|
|
58658
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
58659
|
+
},
|
|
58660
|
+
/**
|
|
58661
|
+
* Get metadata about all configurable fields for store configuration. This is a public API for SDK integration.
|
|
58662
|
+
* @summary Get Store Config Schema (Public SDK API)
|
|
58663
|
+
* @param {string} xStoreid Store ID
|
|
58664
|
+
* @param {string} xStoresecret Store Secret
|
|
58665
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
58666
|
+
* @param {*} [options] Override http request option.
|
|
58667
|
+
* @throws {RequiredError}
|
|
58668
|
+
*/
|
|
58669
|
+
async apiV1StoresXStoreIDConfigSchemaGet(xStoreid: string, xStoresecret: string, xStoreID: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesConfigurationSchemaResponseWrapper>> {
|
|
58670
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1StoresXStoreIDConfigSchemaGet(xStoreid, xStoresecret, xStoreID, options);
|
|
58671
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
58672
|
+
const localVarOperationServerBasePath = operationServerMap['SDKStoreConfigApi.apiV1StoresXStoreIDConfigSchemaGet']?.[localVarOperationServerIndex]?.url;
|
|
58673
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
58674
|
+
},
|
|
58675
|
+
}
|
|
58676
|
+
};
|
|
58677
|
+
|
|
58678
|
+
/**
|
|
58679
|
+
* SDKStoreConfigApi - factory interface
|
|
58680
|
+
* @export
|
|
58681
|
+
*/
|
|
58682
|
+
export const SDKStoreConfigApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
58683
|
+
const localVarFp = SDKStoreConfigApiFp(configuration)
|
|
58684
|
+
return {
|
|
58685
|
+
/**
|
|
58686
|
+
* Retrieves the store configuration using x-store ID and read secret. This is a public API for SDK integration. Uses read secret (x-storesecret).
|
|
58687
|
+
* @summary Get Store Config (Public SDK API)
|
|
58688
|
+
* @param {string} xStoreid Store ID
|
|
58689
|
+
* @param {string} xStoresecret Store Read Secret (for read operations)
|
|
58690
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
58691
|
+
* @param {*} [options] Override http request option.
|
|
58692
|
+
* @throws {RequiredError}
|
|
58693
|
+
*/
|
|
58694
|
+
apiV1StoresXStoreIDConfigGet(xStoreid: string, xStoresecret: string, xStoreID: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseDataTypesStoreConfigWithOnboardingResponse> {
|
|
58695
|
+
return localVarFp.apiV1StoresXStoreIDConfigGet(xStoreid, xStoresecret, xStoreID, options).then((request) => request(axios, basePath));
|
|
58696
|
+
},
|
|
58697
|
+
/**
|
|
58698
|
+
* Updates the store configuration using x-store ID and write secret. Supports partial updates. This is a public API for SDK integration. Requires write secret for security.
|
|
58699
|
+
* @summary Update Store Config (Public SDK API)
|
|
58700
|
+
* @param {string} xStoreid Store ID
|
|
58701
|
+
* @param {string} xStoreWriteSecret Store Write Secret (required for write operations)
|
|
58702
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
58703
|
+
* @param {DataTypesIndexConfig} dataTypesIndexConfig Store configuration (partial updates supported)
|
|
58704
|
+
* @param {*} [options] Override http request option.
|
|
58705
|
+
* @throws {RequiredError}
|
|
58706
|
+
*/
|
|
58707
|
+
apiV1StoresXStoreIDConfigPut(xStoreid: string, xStoreWriteSecret: string, xStoreID: string, dataTypesIndexConfig: DataTypesIndexConfig, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesIndexConfigResponseWrapper> {
|
|
58708
|
+
return localVarFp.apiV1StoresXStoreIDConfigPut(xStoreid, xStoreWriteSecret, xStoreID, dataTypesIndexConfig, options).then((request) => request(axios, basePath));
|
|
58709
|
+
},
|
|
58710
|
+
/**
|
|
58711
|
+
* Get metadata about all configurable fields for store configuration. This is a public API for SDK integration.
|
|
58712
|
+
* @summary Get Store Config Schema (Public SDK API)
|
|
58713
|
+
* @param {string} xStoreid Store ID
|
|
58714
|
+
* @param {string} xStoresecret Store Secret
|
|
58715
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
58716
|
+
* @param {*} [options] Override http request option.
|
|
58717
|
+
* @throws {RequiredError}
|
|
58718
|
+
*/
|
|
58719
|
+
apiV1StoresXStoreIDConfigSchemaGet(xStoreid: string, xStoresecret: string, xStoreID: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesConfigurationSchemaResponseWrapper> {
|
|
58720
|
+
return localVarFp.apiV1StoresXStoreIDConfigSchemaGet(xStoreid, xStoresecret, xStoreID, options).then((request) => request(axios, basePath));
|
|
58721
|
+
},
|
|
58722
|
+
};
|
|
58723
|
+
};
|
|
58724
|
+
|
|
58725
|
+
/**
|
|
58726
|
+
* SDKStoreConfigApi - object-oriented interface
|
|
58727
|
+
* @export
|
|
58728
|
+
* @class SDKStoreConfigApi
|
|
58729
|
+
* @extends {BaseAPI}
|
|
58730
|
+
*/
|
|
58731
|
+
export class SDKStoreConfigApi extends BaseAPI {
|
|
58732
|
+
/**
|
|
58733
|
+
* Retrieves the store configuration using x-store ID and read secret. This is a public API for SDK integration. Uses read secret (x-storesecret).
|
|
58734
|
+
* @summary Get Store Config (Public SDK API)
|
|
58735
|
+
* @param {string} xStoreid Store ID
|
|
58736
|
+
* @param {string} xStoresecret Store Read Secret (for read operations)
|
|
58737
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
58738
|
+
* @param {*} [options] Override http request option.
|
|
58739
|
+
* @throws {RequiredError}
|
|
58740
|
+
* @memberof SDKStoreConfigApi
|
|
58741
|
+
*/
|
|
58742
|
+
public apiV1StoresXStoreIDConfigGet(xStoreid: string, xStoresecret: string, xStoreID: string, options?: RawAxiosRequestConfig) {
|
|
58743
|
+
return SDKStoreConfigApiFp(this.configuration).apiV1StoresXStoreIDConfigGet(xStoreid, xStoresecret, xStoreID, options).then((request) => request(this.axios, this.basePath));
|
|
58744
|
+
}
|
|
58745
|
+
|
|
58746
|
+
/**
|
|
58747
|
+
* Updates the store configuration using x-store ID and write secret. Supports partial updates. This is a public API for SDK integration. Requires write secret for security.
|
|
58748
|
+
* @summary Update Store Config (Public SDK API)
|
|
58749
|
+
* @param {string} xStoreid Store ID
|
|
58750
|
+
* @param {string} xStoreWriteSecret Store Write Secret (required for write operations)
|
|
58751
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
58752
|
+
* @param {DataTypesIndexConfig} dataTypesIndexConfig Store configuration (partial updates supported)
|
|
58753
|
+
* @param {*} [options] Override http request option.
|
|
58754
|
+
* @throws {RequiredError}
|
|
58755
|
+
* @memberof SDKStoreConfigApi
|
|
58756
|
+
*/
|
|
58757
|
+
public apiV1StoresXStoreIDConfigPut(xStoreid: string, xStoreWriteSecret: string, xStoreID: string, dataTypesIndexConfig: DataTypesIndexConfig, options?: RawAxiosRequestConfig) {
|
|
58758
|
+
return SDKStoreConfigApiFp(this.configuration).apiV1StoresXStoreIDConfigPut(xStoreid, xStoreWriteSecret, xStoreID, dataTypesIndexConfig, options).then((request) => request(this.axios, this.basePath));
|
|
58759
|
+
}
|
|
58760
|
+
|
|
58761
|
+
/**
|
|
58762
|
+
* Get metadata about all configurable fields for store configuration. This is a public API for SDK integration.
|
|
58763
|
+
* @summary Get Store Config Schema (Public SDK API)
|
|
58764
|
+
* @param {string} xStoreid Store ID
|
|
58765
|
+
* @param {string} xStoresecret Store Secret
|
|
58766
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
58767
|
+
* @param {*} [options] Override http request option.
|
|
58768
|
+
* @throws {RequiredError}
|
|
58769
|
+
* @memberof SDKStoreConfigApi
|
|
58770
|
+
*/
|
|
58771
|
+
public apiV1StoresXStoreIDConfigSchemaGet(xStoreid: string, xStoresecret: string, xStoreID: string, options?: RawAxiosRequestConfig) {
|
|
58772
|
+
return SDKStoreConfigApiFp(this.configuration).apiV1StoresXStoreIDConfigSchemaGet(xStoreid, xStoresecret, xStoreID, options).then((request) => request(this.axios, this.basePath));
|
|
58773
|
+
}
|
|
58774
|
+
}
|
|
58775
|
+
|
|
58776
|
+
|
|
58777
|
+
|
|
58778
|
+
/**
|
|
58779
|
+
* SDKStoreCreationApi - axios parameter creator
|
|
58780
|
+
* @export
|
|
58781
|
+
*/
|
|
58782
|
+
export const SDKStoreCreationApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
58783
|
+
return {
|
|
58784
|
+
/**
|
|
58785
|
+
* Creates a new store with minimal information. Returns store credentials (xStoreID, xStoreSecret, xStoreWriteSecret) immediately. This is a public API for SDK integration. Requires JWT authentication.
|
|
58786
|
+
* @summary Create Store (Public SDK API)
|
|
58787
|
+
* @param {string} authorization Bearer JWT Token
|
|
58788
|
+
* @param {DataTypesPublicCreateStoreRequest} dataTypesPublicCreateStoreRequest Store creation request
|
|
58789
|
+
* @param {*} [options] Override http request option.
|
|
58790
|
+
* @throws {RequiredError}
|
|
58791
|
+
*/
|
|
58792
|
+
apiV1StoresPost: async (authorization: string, dataTypesPublicCreateStoreRequest: DataTypesPublicCreateStoreRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
58793
|
+
// verify required parameter 'authorization' is not null or undefined
|
|
58794
|
+
assertParamExists('apiV1StoresPost', 'authorization', authorization)
|
|
58795
|
+
// verify required parameter 'dataTypesPublicCreateStoreRequest' is not null or undefined
|
|
58796
|
+
assertParamExists('apiV1StoresPost', 'dataTypesPublicCreateStoreRequest', dataTypesPublicCreateStoreRequest)
|
|
58797
|
+
const localVarPath = `/api/v1/stores`;
|
|
58798
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
58799
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
58800
|
+
let baseOptions;
|
|
58801
|
+
if (configuration) {
|
|
58802
|
+
baseOptions = configuration.baseOptions;
|
|
58803
|
+
}
|
|
58804
|
+
|
|
58805
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
58806
|
+
const localVarHeaderParameter = {} as any;
|
|
58807
|
+
const localVarQueryParameter = {} as any;
|
|
58808
|
+
|
|
58809
|
+
// authentication BearerAuth required
|
|
58810
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
58811
|
+
|
|
58812
|
+
|
|
58813
|
+
|
|
58814
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
58815
|
+
|
|
58816
|
+
if (authorization != null) {
|
|
58817
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
58818
|
+
}
|
|
58819
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
58820
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
58821
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
58822
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataTypesPublicCreateStoreRequest, localVarRequestOptions, configuration)
|
|
58823
|
+
|
|
58824
|
+
return {
|
|
58825
|
+
url: toPathString(localVarUrlObj),
|
|
58826
|
+
options: localVarRequestOptions,
|
|
58827
|
+
};
|
|
58828
|
+
},
|
|
58829
|
+
}
|
|
58830
|
+
};
|
|
58831
|
+
|
|
58832
|
+
/**
|
|
58833
|
+
* SDKStoreCreationApi - functional programming interface
|
|
58834
|
+
* @export
|
|
58835
|
+
*/
|
|
58836
|
+
export const SDKStoreCreationApiFp = function(configuration?: Configuration) {
|
|
58837
|
+
const localVarAxiosParamCreator = SDKStoreCreationApiAxiosParamCreator(configuration)
|
|
58838
|
+
return {
|
|
58839
|
+
/**
|
|
58840
|
+
* Creates a new store with minimal information. Returns store credentials (xStoreID, xStoreSecret, xStoreWriteSecret) immediately. This is a public API for SDK integration. Requires JWT authentication.
|
|
58841
|
+
* @summary Create Store (Public SDK API)
|
|
58842
|
+
* @param {string} authorization Bearer JWT Token
|
|
58843
|
+
* @param {DataTypesPublicCreateStoreRequest} dataTypesPublicCreateStoreRequest Store creation request
|
|
58844
|
+
* @param {*} [options] Override http request option.
|
|
58845
|
+
* @throws {RequiredError}
|
|
58846
|
+
*/
|
|
58847
|
+
async apiV1StoresPost(authorization: string, dataTypesPublicCreateStoreRequest: DataTypesPublicCreateStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseDataTypesPublicCreateStoreResponse>> {
|
|
58848
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1StoresPost(authorization, dataTypesPublicCreateStoreRequest, options);
|
|
58849
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
58850
|
+
const localVarOperationServerBasePath = operationServerMap['SDKStoreCreationApi.apiV1StoresPost']?.[localVarOperationServerIndex]?.url;
|
|
58851
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
58852
|
+
},
|
|
58853
|
+
}
|
|
58854
|
+
};
|
|
58855
|
+
|
|
58856
|
+
/**
|
|
58857
|
+
* SDKStoreCreationApi - factory interface
|
|
58858
|
+
* @export
|
|
58859
|
+
*/
|
|
58860
|
+
export const SDKStoreCreationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
58861
|
+
const localVarFp = SDKStoreCreationApiFp(configuration)
|
|
58862
|
+
return {
|
|
58863
|
+
/**
|
|
58864
|
+
* Creates a new store with minimal information. Returns store credentials (xStoreID, xStoreSecret, xStoreWriteSecret) immediately. This is a public API for SDK integration. Requires JWT authentication.
|
|
58865
|
+
* @summary Create Store (Public SDK API)
|
|
58866
|
+
* @param {string} authorization Bearer JWT Token
|
|
58867
|
+
* @param {DataTypesPublicCreateStoreRequest} dataTypesPublicCreateStoreRequest Store creation request
|
|
58868
|
+
* @param {*} [options] Override http request option.
|
|
58869
|
+
* @throws {RequiredError}
|
|
58870
|
+
*/
|
|
58871
|
+
apiV1StoresPost(authorization: string, dataTypesPublicCreateStoreRequest: DataTypesPublicCreateStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseDataTypesPublicCreateStoreResponse> {
|
|
58872
|
+
return localVarFp.apiV1StoresPost(authorization, dataTypesPublicCreateStoreRequest, options).then((request) => request(axios, basePath));
|
|
58873
|
+
},
|
|
58874
|
+
};
|
|
58875
|
+
};
|
|
58876
|
+
|
|
58877
|
+
/**
|
|
58878
|
+
* SDKStoreCreationApi - object-oriented interface
|
|
58879
|
+
* @export
|
|
58880
|
+
* @class SDKStoreCreationApi
|
|
58881
|
+
* @extends {BaseAPI}
|
|
58882
|
+
*/
|
|
58883
|
+
export class SDKStoreCreationApi extends BaseAPI {
|
|
58884
|
+
/**
|
|
58885
|
+
* Creates a new store with minimal information. Returns store credentials (xStoreID, xStoreSecret, xStoreWriteSecret) immediately. This is a public API for SDK integration. Requires JWT authentication.
|
|
58886
|
+
* @summary Create Store (Public SDK API)
|
|
58887
|
+
* @param {string} authorization Bearer JWT Token
|
|
58888
|
+
* @param {DataTypesPublicCreateStoreRequest} dataTypesPublicCreateStoreRequest Store creation request
|
|
58889
|
+
* @param {*} [options] Override http request option.
|
|
58890
|
+
* @throws {RequiredError}
|
|
58891
|
+
* @memberof SDKStoreCreationApi
|
|
58892
|
+
*/
|
|
58893
|
+
public apiV1StoresPost(authorization: string, dataTypesPublicCreateStoreRequest: DataTypesPublicCreateStoreRequest, options?: RawAxiosRequestConfig) {
|
|
58894
|
+
return SDKStoreCreationApiFp(this.configuration).apiV1StoresPost(authorization, dataTypesPublicCreateStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
58895
|
+
}
|
|
58896
|
+
}
|
|
58897
|
+
|
|
58898
|
+
|
|
58899
|
+
|
|
58900
|
+
/**
|
|
58901
|
+
* SDKStoreInfoApi - axios parameter creator
|
|
58902
|
+
* @export
|
|
58903
|
+
*/
|
|
58904
|
+
export const SDKStoreInfoApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
58905
|
+
return {
|
|
58906
|
+
/**
|
|
58907
|
+
* Retrieves basic store information (name, location, status) using x-store ID and read secret. This is a public API for SDK integration. Uses read secret (x-storesecret).
|
|
58908
|
+
* @summary Get Store Info (Public SDK API)
|
|
58909
|
+
* @param {string} xStoreid Store ID
|
|
58910
|
+
* @param {string} xStoresecret Store Read Secret (for read operations)
|
|
58911
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
58912
|
+
* @param {*} [options] Override http request option.
|
|
58913
|
+
* @throws {RequiredError}
|
|
58914
|
+
*/
|
|
58915
|
+
apiV1StoresXStoreIDGet: async (xStoreid: string, xStoresecret: string, xStoreID: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
58916
|
+
// verify required parameter 'xStoreid' is not null or undefined
|
|
58917
|
+
assertParamExists('apiV1StoresXStoreIDGet', 'xStoreid', xStoreid)
|
|
58918
|
+
// verify required parameter 'xStoresecret' is not null or undefined
|
|
58919
|
+
assertParamExists('apiV1StoresXStoreIDGet', 'xStoresecret', xStoresecret)
|
|
58920
|
+
// verify required parameter 'xStoreID' is not null or undefined
|
|
58921
|
+
assertParamExists('apiV1StoresXStoreIDGet', 'xStoreID', xStoreID)
|
|
58922
|
+
const localVarPath = `/api/v1/stores/{xStoreID}`
|
|
58923
|
+
.replace(`{${"xStoreID"}}`, encodeURIComponent(String(xStoreID)));
|
|
58924
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
58925
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
58926
|
+
let baseOptions;
|
|
58927
|
+
if (configuration) {
|
|
58928
|
+
baseOptions = configuration.baseOptions;
|
|
58929
|
+
}
|
|
58930
|
+
|
|
58931
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
58932
|
+
const localVarHeaderParameter = {} as any;
|
|
58933
|
+
const localVarQueryParameter = {} as any;
|
|
58934
|
+
|
|
58935
|
+
|
|
58936
|
+
|
|
58937
|
+
if (xStoreid != null) {
|
|
58938
|
+
localVarHeaderParameter['x-storeid'] = String(xStoreid);
|
|
58939
|
+
}
|
|
58940
|
+
if (xStoresecret != null) {
|
|
58941
|
+
localVarHeaderParameter['x-storesecret'] = String(xStoresecret);
|
|
58942
|
+
}
|
|
58943
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
58944
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
58945
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
58946
|
+
|
|
58947
|
+
return {
|
|
58948
|
+
url: toPathString(localVarUrlObj),
|
|
58949
|
+
options: localVarRequestOptions,
|
|
58950
|
+
};
|
|
58951
|
+
},
|
|
58952
|
+
}
|
|
58953
|
+
};
|
|
58954
|
+
|
|
58955
|
+
/**
|
|
58956
|
+
* SDKStoreInfoApi - functional programming interface
|
|
58957
|
+
* @export
|
|
58958
|
+
*/
|
|
58959
|
+
export const SDKStoreInfoApiFp = function(configuration?: Configuration) {
|
|
58960
|
+
const localVarAxiosParamCreator = SDKStoreInfoApiAxiosParamCreator(configuration)
|
|
58961
|
+
return {
|
|
58962
|
+
/**
|
|
58963
|
+
* Retrieves basic store information (name, location, status) using x-store ID and read secret. This is a public API for SDK integration. Uses read secret (x-storesecret).
|
|
58964
|
+
* @summary Get Store Info (Public SDK API)
|
|
58965
|
+
* @param {string} xStoreid Store ID
|
|
58966
|
+
* @param {string} xStoresecret Store Read Secret (for read operations)
|
|
58967
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
58968
|
+
* @param {*} [options] Override http request option.
|
|
58969
|
+
* @throws {RequiredError}
|
|
58970
|
+
*/
|
|
58971
|
+
async apiV1StoresXStoreIDGet(xStoreid: string, xStoresecret: string, xStoreID: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesGenericResponseDataTypesPublicStoreInfoResponse>> {
|
|
58972
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1StoresXStoreIDGet(xStoreid, xStoresecret, xStoreID, options);
|
|
58973
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
58974
|
+
const localVarOperationServerBasePath = operationServerMap['SDKStoreInfoApi.apiV1StoresXStoreIDGet']?.[localVarOperationServerIndex]?.url;
|
|
58975
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
58976
|
+
},
|
|
58977
|
+
}
|
|
58978
|
+
};
|
|
58979
|
+
|
|
58980
|
+
/**
|
|
58981
|
+
* SDKStoreInfoApi - factory interface
|
|
58982
|
+
* @export
|
|
58983
|
+
*/
|
|
58984
|
+
export const SDKStoreInfoApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
58985
|
+
const localVarFp = SDKStoreInfoApiFp(configuration)
|
|
58986
|
+
return {
|
|
58987
|
+
/**
|
|
58988
|
+
* Retrieves basic store information (name, location, status) using x-store ID and read secret. This is a public API for SDK integration. Uses read secret (x-storesecret).
|
|
58989
|
+
* @summary Get Store Info (Public SDK API)
|
|
58990
|
+
* @param {string} xStoreid Store ID
|
|
58991
|
+
* @param {string} xStoresecret Store Read Secret (for read operations)
|
|
58992
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
58993
|
+
* @param {*} [options] Override http request option.
|
|
58994
|
+
* @throws {RequiredError}
|
|
58995
|
+
*/
|
|
58996
|
+
apiV1StoresXStoreIDGet(xStoreid: string, xStoresecret: string, xStoreID: string, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesGenericResponseDataTypesPublicStoreInfoResponse> {
|
|
58997
|
+
return localVarFp.apiV1StoresXStoreIDGet(xStoreid, xStoresecret, xStoreID, options).then((request) => request(axios, basePath));
|
|
58998
|
+
},
|
|
58999
|
+
};
|
|
59000
|
+
};
|
|
59001
|
+
|
|
59002
|
+
/**
|
|
59003
|
+
* SDKStoreInfoApi - object-oriented interface
|
|
59004
|
+
* @export
|
|
59005
|
+
* @class SDKStoreInfoApi
|
|
59006
|
+
* @extends {BaseAPI}
|
|
59007
|
+
*/
|
|
59008
|
+
export class SDKStoreInfoApi extends BaseAPI {
|
|
59009
|
+
/**
|
|
59010
|
+
* Retrieves basic store information (name, location, status) using x-store ID and read secret. This is a public API for SDK integration. Uses read secret (x-storesecret).
|
|
59011
|
+
* @summary Get Store Info (Public SDK API)
|
|
59012
|
+
* @param {string} xStoreid Store ID
|
|
59013
|
+
* @param {string} xStoresecret Store Read Secret (for read operations)
|
|
59014
|
+
* @param {string} xStoreID X-Store ID (must match x-storeid header)
|
|
59015
|
+
* @param {*} [options] Override http request option.
|
|
59016
|
+
* @throws {RequiredError}
|
|
59017
|
+
* @memberof SDKStoreInfoApi
|
|
59018
|
+
*/
|
|
59019
|
+
public apiV1StoresXStoreIDGet(xStoreid: string, xStoresecret: string, xStoreID: string, options?: RawAxiosRequestConfig) {
|
|
59020
|
+
return SDKStoreInfoApiFp(this.configuration).apiV1StoresXStoreIDGet(xStoreid, xStoresecret, xStoreID, options).then((request) => request(this.axios, this.basePath));
|
|
59021
|
+
}
|
|
59022
|
+
}
|
|
59023
|
+
|
|
59024
|
+
|
|
59025
|
+
|
|
58272
59026
|
/**
|
|
58273
59027
|
* SearchApi - axios parameter creator
|
|
58274
59028
|
* @export
|