@seekora-ai/admin-api 1.1.84 → 1.1.85
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 +21 -2
- package/api.ts +1387 -0
- package/dist/api.d.ts +971 -0
- package/dist/api.js +778 -10
- package/dist/esm/api.d.ts +971 -0
- package/dist/esm/api.js +764 -0
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.1.85.tgz +0 -0
- package/seekora-ai-admin-api-1.1.84.tgz +0 -0
package/dist/api.js
CHANGED
|
@@ -22,16 +22,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.
|
|
32
|
-
exports.
|
|
33
|
-
exports.
|
|
34
|
-
exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.UserProfilesApi = exports.UserProfilesApiFactory = exports.UserProfilesApiFp = exports.UserProfilesApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TeamApi = exports.TeamApiFactory = exports.TeamApiFp = exports.TeamApiAxiosParamCreator = exports.TaxManagementApi = void 0;
|
|
25
|
+
exports.ActivityLogsApiFactory = exports.ActivityLogsApiFp = exports.ActivityLogsApiAxiosParamCreator = exports.AccountSettingsApi = exports.AccountSettingsApiFactory = exports.AccountSettingsApiFp = exports.AccountSettingsApiAxiosParamCreator = exports.APICallsApi = exports.APICallsApiFactory = exports.APICallsApiFp = exports.APICallsApiAxiosParamCreator = exports.RefundRefundPreviewRequestDtoRefundTypeEnum = exports.QuerySuggestionsServiceRuleType = exports.QuerySuggestionsServiceQuerySuggestionStatus = exports.QuerySuggestionsServiceQuerySuggestionSource = exports.QuerySuggestionsServiceBulkOperation = exports.QuerySuggestionsServiceBannedMatchType = exports.ModelsCreateCustomEventFieldRequestFieldTypeEnum = exports.MenuRoutesAddMenuRequestModuleTypeEnum = exports.MenuRoutesAddMenuRequestMenuLocationEnum = exports.MenuRoutesAddMenuRequestMenuLevelEnum = exports.DataTypesUpdateWordStatusRequestWordTypeEnum = exports.DataTypesUpdateStoreAccessRequestAccessLevelEnum = exports.DataTypesUpdatePluralDeclensionRequestTypeEnum = exports.DataTypesUpdateMemberRoleRequestMemberRoleEnum = exports.DataTypesStoreLevelMenuRightAccessLevelEnum = exports.DataTypesStoreAccessRequestAccessLevelEnum = exports.DataTypesRefundCalculationRequestDtoRefundTypeEnum = exports.DataTypesRefundApprovalDtoActionEnum = exports.DataTypesProcessRefundRequestDtoRefundTypeEnum = exports.DataTypesNotificationType = exports.DataTypesNotificationStatus = exports.DataTypesNotificationPriority = exports.DataTypesNotificationChannel = exports.DataTypesGrantStoreAccessRequestAccessLevelEnum = exports.DataTypesExperimentType = exports.DataTypesExperimentStatus = exports.DataTypesCreateTaskRequestTypeEnum = exports.DataTypesCreateTaskRequestIndexingStrategyEnum = exports.DataTypesCreateTaskRequestFrequencyEnum = exports.DataTypesCreateRefundRequestDtoRefundTypeEnum = exports.DataTypesCreatePluralDeclensionRequestTypeEnum = exports.DataTypesCreatePaymentOrderRequestPaymentTypeEnum = exports.DataTypesCreateCustomWordListRequestTypeEnum = exports.DataTypesBillingAlertRequestThresholdUnitEnum = exports.DataTypesBillingAlertRequestAlertTypeEnum = exports.DataTypesAcceptInvitationWithOAuthRequestTypeEnum = exports.ConnectorsCreateConnectorRequestConnectorTypeEnum = exports.AnalyticsThresholdType = exports.AnalyticsRuleType = void 0;
|
|
26
|
+
exports.AdminAnalyticsStoreXStoreIDQueriesNoClicksGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDQueriesGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDQueriesGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDKpiGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDKpiGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDKpiGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDGeoInsightsGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDGeoInsightsGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDGeoGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDGeoGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDGeoGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDGeoGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDGeoGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDFiltersTrendsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDFiltersTrendsGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDFiltersTrendsGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDFiltersGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDFiltersGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDFiltersGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDFiltersEffectivenessGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDFiltersEffectivenessGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDFiltersCombinationsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDFiltersCombinationsGetSortByEnum = exports.AdminAnalyticsOrgKpiGetTagsMatchModeEnum = exports.AdminAnalyticsOrgKpiGetGranularityEnum = exports.AnalyticsApi = exports.AnalyticsApiFactory = exports.AnalyticsApiFp = exports.AnalyticsApiAxiosParamCreator = exports.AdminPagesApi = exports.AdminPagesApiFactory = exports.AdminPagesApiFp = exports.AdminPagesApiAxiosParamCreator = exports.AdminNotificationsApi = exports.AdminNotificationsApiFactory = exports.AdminNotificationsApiFp = exports.AdminNotificationsApiAxiosParamCreator = exports.AdminNotificationTemplatesApi = exports.AdminNotificationTemplatesApiFactory = exports.AdminNotificationTemplatesApiFp = exports.AdminNotificationTemplatesApiAxiosParamCreator = exports.AdminAnalyticsApi = exports.AdminAnalyticsApiFactory = exports.AdminAnalyticsApiFp = exports.AdminAnalyticsApiAxiosParamCreator = exports.AnalyticsActivityLogsGetActionEnum = exports.ActivityLogsApi = void 0;
|
|
27
|
+
exports.AnalyticsV3ClicksApiFp = exports.AnalyticsV3ClicksApiAxiosParamCreator = exports.AnalyticsRulesApi = exports.AnalyticsRulesApiFactory = exports.AnalyticsRulesApiFp = exports.AnalyticsRulesApiAxiosParamCreator = exports.AnalyticsRecommendationsApi = exports.AnalyticsRecommendationsApiFactory = exports.AnalyticsRecommendationsApiFp = exports.AnalyticsRecommendationsApiAxiosParamCreator = exports.AnalyticsFunnelsApi = exports.AnalyticsFunnelsApiFactory = exports.AnalyticsFunnelsApiFp = exports.AnalyticsFunnelsApiAxiosParamCreator = exports.AnalyticsEventsApi = exports.AnalyticsEventsApiFactory = exports.AnalyticsEventsApiFp = exports.AnalyticsEventsApiAxiosParamCreator = exports.AnalyticsCohortsApi = exports.AnalyticsCohortsApiFactory = exports.AnalyticsCohortsApiFp = exports.AnalyticsCohortsApiAxiosParamCreator = exports.AdminAnalyticsStoreXStoreIDTagsSummaryGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDTagsSummaryGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDTagsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDTagsGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDSuggestionsQueryInsightsGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDSuggestionsQueryInsightsGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDSuggestionsQueriesGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDSuggestionsQueriesGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDSuggestionsQueriesGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDSuggestionsNoResultsGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDSuggestionsNoResultsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDSuggestionsNoResultsGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDSuggestionsKpiGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDSuggestionsKpiGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDSuggestionsGeoGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDResultsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDResultsGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDResultsGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDResultsGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesQueryInsightsGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesQueryInsightsGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoResultsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoResultsGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoResultsGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoResultsGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoClicksGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoClicksGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDQueriesNoClicksGetCompareTagsMatchModeEnum = void 0;
|
|
28
|
+
exports.AdminBillingPaymentTransactionsGetSortOrderEnum = exports.AdminBillingPaymentTransactionsGetSortByEnum = exports.AdminBillingOrdersGetSortOrderEnum = exports.AdminBillingOrdersGetSortByEnum = exports.AdminBillingInvoicesGetSortOrderEnum = exports.AdminBillingInvoicesGetSortByEnum = exports.AdminBillingCreditTransactionsGetSortOrderEnum = exports.AdminBillingCreditTransactionsGetSortByEnum = exports.AdminBillingCreditPurchasesGetSortOrderEnum = exports.AdminBillingCreditPurchasesGetSortByEnum = exports.AdminBillingCreditLedgerGetSortOrderEnum = exports.AdminBillingCreditLedgerGetSortByEnum = exports.BillingDashboardApi = exports.BillingDashboardApiFactory = exports.BillingDashboardApiFp = exports.BillingDashboardApiAxiosParamCreator = exports.AutomatedRefundManagementApi = exports.AutomatedRefundManagementApiFactory = exports.AutomatedRefundManagementApiFp = exports.AutomatedRefundManagementApiAxiosParamCreator = exports.AuthApi = exports.AuthApiFactory = exports.AuthApiFp = exports.AuthApiAxiosParamCreator = exports.ArticlesApi = exports.ArticlesApiFactory = exports.ArticlesApiFp = exports.ArticlesApiAxiosParamCreator = exports.AnalyticsV3SearchApi = exports.AnalyticsV3SearchApiFactory = exports.AnalyticsV3SearchApiFp = exports.AnalyticsV3SearchApiAxiosParamCreator = exports.AnalyticsV3RecommendationsApi = exports.AnalyticsV3RecommendationsApiFactory = exports.AnalyticsV3RecommendationsApiFp = exports.AnalyticsV3RecommendationsApiAxiosParamCreator = exports.AnalyticsV3JourneyApi = exports.AnalyticsV3JourneyApiFactory = exports.AnalyticsV3JourneyApiFp = exports.AnalyticsV3JourneyApiAxiosParamCreator = exports.AnalyticsV3FunnelApi = exports.AnalyticsV3FunnelApiFactory = exports.AnalyticsV3FunnelApiFp = exports.AnalyticsV3FunnelApiAxiosParamCreator = exports.AnalyticsV3ConversionsApi = exports.AnalyticsV3ConversionsApiFactory = exports.AnalyticsV3ConversionsApiFp = exports.AnalyticsV3ConversionsApiAxiosParamCreator = exports.AnalyticsV3ClicksApi = exports.AnalyticsV3ClicksApiFactory = void 0;
|
|
29
|
+
exports.DefaultMenuManagementApi = exports.DefaultMenuManagementApiFactory = exports.DefaultMenuManagementApiFp = exports.DefaultMenuManagementApiAxiosParamCreator = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = exports.DataQualityApi = exports.DataQualityApiFactory = exports.DataQualityApiFp = exports.DataQualityApiAxiosParamCreator = exports.CustomStopwordsApi = exports.CustomStopwordsApiFactory = exports.CustomStopwordsApiFp = exports.CustomStopwordsApiAxiosParamCreator = exports.CustomEventsApi = exports.CustomEventsApiFactory = exports.CustomEventsApiFp = exports.CustomEventsApiAxiosParamCreator = exports.CreditsTransactionsGetTypeEnum = exports.CreditsApi = exports.CreditsApiFactory = exports.CreditsApiFp = exports.CreditsApiAxiosParamCreator = exports.ConnectorsApi = exports.ConnectorsApiFactory = exports.ConnectorsApiFp = exports.ConnectorsApiAxiosParamCreator = exports.CompanyConfigApi = exports.CompanyConfigApiFactory = exports.CompanyConfigApiFp = exports.CompanyConfigApiAxiosParamCreator = exports.CommonApi = exports.CommonApiFactory = exports.CommonApiFp = exports.CommonApiAxiosParamCreator = exports.BillingUserPaymentsApi = exports.BillingUserPaymentsApiFactory = exports.BillingUserPaymentsApiFp = exports.BillingUserPaymentsApiAxiosParamCreator = exports.AdminBillingGraphsUsageBreakdownGetGranularityEnum = exports.AdminBillingGraphsTimeseriesConsumptionGetGranularityEnum = exports.AdminBillingGraphsSearchRequestsGetGranularityEnum = exports.AdminBillingGraphsCreditsConsumedGetGranularityEnum = exports.BillingDashboardGraphsApi = exports.BillingDashboardGraphsApiFactory = exports.BillingDashboardGraphsApiFp = exports.BillingDashboardGraphsApiAxiosParamCreator = exports.AdminBillingUsageDetailsGetGranularityEnum = void 0;
|
|
30
|
+
exports.LimitsApi = exports.LimitsApiFactory = exports.LimitsApiFp = exports.LimitsApiAxiosParamCreator = exports.JourneyBuilderApi = exports.JourneyBuilderApiFactory = exports.JourneyBuilderApiFp = exports.JourneyBuilderApiAxiosParamCreator = exports.AdminAnalyticsStoreXStoreIDQueriesItemPerformanceGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDQueriesItemPerformanceGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDItemsTrendsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDItemsTrendsGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDItemsTrendsGetGranularityEnum = exports.AdminAnalyticsStoreXStoreIDItemsPerformanceGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDItemsPerformanceGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDItemsItemIdInsightsGetGroupByEnum = exports.AdminAnalyticsStoreXStoreIDItemsItemIdInsightsGetCompareTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDItemsItemIdInsightsGetTagsMatchModeEnum = exports.AdminAnalyticsStoreXStoreIDItemsGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDItemsGetSortByEnum = exports.AdminAnalyticsStoreXStoreIDItemsDiscoveryGetSortOrderEnum = exports.AdminAnalyticsStoreXStoreIDItemsDiscoveryGetSortByEnum = exports.ItemAnalyticsApi = exports.ItemAnalyticsApiFactory = exports.ItemAnalyticsApiFp = exports.ItemAnalyticsApiAxiosParamCreator = exports.FeatureLimitsAdminApi = exports.FeatureLimitsAdminApiFactory = exports.FeatureLimitsAdminApiFp = exports.FeatureLimitsAdminApiAxiosParamCreator = exports.FeatureLimitsApi = exports.FeatureLimitsApiFactory = exports.FeatureLimitsApiFp = exports.FeatureLimitsApiAxiosParamCreator = exports.ExternalAPINotificationsApi = exports.ExternalAPINotificationsApiFactory = exports.ExternalAPINotificationsApiFp = exports.ExternalAPINotificationsApiAxiosParamCreator = exports.ExperimentsApi = exports.ExperimentsApiFactory = exports.ExperimentsApiFp = exports.ExperimentsApiAxiosParamCreator = exports.DocumentsApi = exports.DocumentsApiFactory = exports.DocumentsApiFp = exports.DocumentsApiAxiosParamCreator = exports.DocumentationApi = exports.DocumentationApiFactory = exports.DocumentationApiFp = exports.DocumentationApiAxiosParamCreator = void 0;
|
|
31
|
+
exports.OrganizationsApiFactory = exports.OrganizationsApiFp = exports.OrganizationsApiAxiosParamCreator = exports.OnboardingApi = exports.OnboardingApiFactory = exports.OnboardingApiFp = exports.OnboardingApiAxiosParamCreator = exports.V1NotificationsGetSortOrderEnum = exports.V1NotificationsGetSortByEnum = exports.V1NotificationsGetPriorityEnum = exports.V1NotificationsGetIsReadEnum = exports.V1NotificationsGetTypeEnum = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.NotificationPreferencesApi = exports.NotificationPreferencesApiFactory = exports.NotificationPreferencesApiFp = exports.NotificationPreferencesApiAxiosParamCreator = exports.NewsLettersApi = exports.NewsLettersApiFactory = exports.NewsLettersApiFp = exports.NewsLettersApiAxiosParamCreator = exports.MongoDbApi = exports.MongoDbApiFactory = exports.MongoDbApiFp = exports.MongoDbApiAxiosParamCreator = exports.ModulesApi = exports.ModulesApiFactory = exports.ModulesApiFp = exports.ModulesApiAxiosParamCreator = exports.MenusApi = exports.MenusApiFactory = exports.MenusApiFp = exports.MenusApiAxiosParamCreator = exports.MenuRouteMetricsAdminApi = exports.MenuRouteMetricsAdminApiFactory = exports.MenuRouteMetricsAdminApiFp = exports.MenuRouteMetricsAdminApiAxiosParamCreator = exports.MenuRouteMetricGetFormnameEnum = exports.MenuRouteMetricGetRouteEnum = exports.MenuRouteMetricsApi = exports.MenuRouteMetricsApiFactory = exports.MenuRouteMetricsApiFp = exports.MenuRouteMetricsApiAxiosParamCreator = exports.MenuManagementApi = exports.MenuManagementApiFactory = exports.MenuManagementApiFp = exports.MenuManagementApiAxiosParamCreator = void 0;
|
|
32
|
+
exports.RolesApiFactory = exports.RolesApiFp = exports.RolesApiAxiosParamCreator = exports.RoleRightsApi = exports.RoleRightsApiFactory = exports.RoleRightsApiFp = exports.RoleRightsApiAxiosParamCreator = exports.RequestsApi = exports.RequestsApiFactory = exports.RequestsApiFp = exports.RequestsApiAxiosParamCreator = exports.RegisterApi = exports.RegisterApiFactory = exports.RegisterApiFp = exports.RegisterApiAxiosParamCreator = exports.RefundManagementApi = exports.RefundManagementApiFactory = exports.RefundManagementApiFp = exports.RefundManagementApiAxiosParamCreator = exports.QuerySuggestionsManagementApi = exports.QuerySuggestionsManagementApiFactory = exports.QuerySuggestionsManagementApiFp = exports.QuerySuggestionsManagementApiAxiosParamCreator = exports.V1SuggestionsQueriesGetTimeRangeEnum = exports.V1SuggestionsQueriesGetTagsMatchModeEnum = exports.QuerySuggestionsApi = exports.QuerySuggestionsApiFactory = exports.QuerySuggestionsApiFp = exports.QuerySuggestionsApiAxiosParamCreator = exports.PluralsDeclensionsApi = exports.PluralsDeclensionsApiFactory = exports.PluralsDeclensionsApiFp = exports.PluralsDeclensionsApiAxiosParamCreator = exports.PlansApi = exports.PlansApiFactory = exports.PlansApiFp = exports.PlansApiAxiosParamCreator = exports.PaymentsApi = exports.PaymentsApiFactory = exports.PaymentsApiFp = exports.PaymentsApiAxiosParamCreator = exports.PaymentGatewayApi = exports.PaymentGatewayApiFactory = exports.PaymentGatewayApiFp = exports.PaymentGatewayApiAxiosParamCreator = exports.ParentMenusApi = exports.ParentMenusApiFactory = exports.ParentMenusApiFp = exports.ParentMenusApiAxiosParamCreator = exports.OrganizationsApi = void 0;
|
|
33
|
+
exports.SubscriptionsApiAxiosParamCreator = exports.SubscriptionPaymentsApi = exports.SubscriptionPaymentsApiFactory = exports.SubscriptionPaymentsApiFp = exports.SubscriptionPaymentsApiAxiosParamCreator = exports.StoresApi = exports.StoresApiFactory = exports.StoresApiFp = exports.StoresApiAxiosParamCreator = exports.StoreDocumentsApi = exports.StoreDocumentsApiFactory = exports.StoreDocumentsApiFp = exports.StoreDocumentsApiAxiosParamCreator = exports.StoreCreationApi = exports.StoreCreationApiFactory = exports.StoreCreationApiFp = exports.StoreCreationApiAxiosParamCreator = exports.StopwordsApi = exports.StopwordsApiFactory = exports.StopwordsApiFp = exports.StopwordsApiAxiosParamCreator = exports.SearchApi = exports.SearchApiFactory = exports.SearchApiFp = exports.SearchApiAxiosParamCreator = exports.SDKStoreInfoApi = exports.SDKStoreInfoApiFactory = exports.SDKStoreInfoApiFp = exports.SDKStoreInfoApiAxiosParamCreator = exports.SDKStoreCreationApi = exports.SDKStoreCreationApiFactory = exports.SDKStoreCreationApiFp = exports.SDKStoreCreationApiAxiosParamCreator = exports.SDKStoreConfigApi = exports.SDKStoreConfigApiFactory = exports.SDKStoreConfigApiFp = exports.SDKStoreConfigApiAxiosParamCreator = exports.SDKSchemaApi = exports.SDKSchemaApiFactory = exports.SDKSchemaApiFp = exports.SDKSchemaApiAxiosParamCreator = exports.SDKQuerySuggestionsConfigApi = exports.SDKQuerySuggestionsConfigApiFactory = exports.SDKQuerySuggestionsConfigApiFp = exports.SDKQuerySuggestionsConfigApiAxiosParamCreator = exports.SDKDocumentsApi = exports.SDKDocumentsApiFactory = exports.SDKDocumentsApiFp = exports.SDKDocumentsApiAxiosParamCreator = exports.RolesApi = void 0;
|
|
34
|
+
exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.UserProfilesApi = exports.UserProfilesApiFactory = exports.UserProfilesApiFp = exports.UserProfilesApiAxiosParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiAxiosParamCreator = exports.TeamApi = exports.TeamApiFactory = exports.TeamApiFp = exports.TeamApiAxiosParamCreator = exports.TaxManagementApi = exports.TaxManagementApiFactory = exports.TaxManagementApiFp = exports.TaxManagementApiAxiosParamCreator = exports.SubscriptionsApi = exports.SubscriptionsApiFactory = exports.SubscriptionsApiFp = void 0;
|
|
35
35
|
const axios_1 = require("axios");
|
|
36
36
|
// Some imports not used depending on template conditions
|
|
37
37
|
// @ts-ignore
|
|
@@ -116,6 +116,32 @@ exports.DataTypesCreateTaskRequestTypeEnum = {
|
|
|
116
116
|
Manual: 'manual',
|
|
117
117
|
PluginConnector: 'plugin_connector'
|
|
118
118
|
};
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @export
|
|
122
|
+
* @enum {string}
|
|
123
|
+
*/
|
|
124
|
+
exports.DataTypesExperimentStatus = {
|
|
125
|
+
ExperimentStatusDraft: 'draft',
|
|
126
|
+
ExperimentStatusScheduled: 'scheduled',
|
|
127
|
+
ExperimentStatusRunning: 'running',
|
|
128
|
+
ExperimentStatusPaused: 'paused',
|
|
129
|
+
ExperimentStatusCompleted: 'completed',
|
|
130
|
+
ExperimentStatusArchived: 'archived'
|
|
131
|
+
};
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @export
|
|
135
|
+
* @enum {string}
|
|
136
|
+
*/
|
|
137
|
+
exports.DataTypesExperimentType = {
|
|
138
|
+
ExperimentTypeSearchRanking: 'search_ranking',
|
|
139
|
+
ExperimentTypeRecommendation: 'recommendation',
|
|
140
|
+
ExperimentTypePersonalization: 'personalization',
|
|
141
|
+
ExperimentTypeUI: 'ui',
|
|
142
|
+
ExperimentTypePricing: 'pricing',
|
|
143
|
+
ExperimentTypeOther: 'other'
|
|
144
|
+
};
|
|
119
145
|
exports.DataTypesGrantStoreAccessRequestAccessLevelEnum = {
|
|
120
146
|
Read: 'read',
|
|
121
147
|
Write: 'write',
|
|
@@ -23488,6 +23514,748 @@ class DocumentsApi extends base_1.BaseAPI {
|
|
|
23488
23514
|
}
|
|
23489
23515
|
}
|
|
23490
23516
|
exports.DocumentsApi = DocumentsApi;
|
|
23517
|
+
/**
|
|
23518
|
+
* ExperimentsApi - axios parameter creator
|
|
23519
|
+
* @export
|
|
23520
|
+
*/
|
|
23521
|
+
const ExperimentsApiAxiosParamCreator = function (configuration) {
|
|
23522
|
+
return {
|
|
23523
|
+
/**
|
|
23524
|
+
* Returns all experiments for the authenticated organization, optionally filtered by store.
|
|
23525
|
+
* @summary List all experiments
|
|
23526
|
+
* @param {*} [options] Override http request option.
|
|
23527
|
+
* @throws {RequiredError}
|
|
23528
|
+
*/
|
|
23529
|
+
v1AdminExperimentsGet: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
23530
|
+
const localVarPath = `/v1/admin/experiments/`;
|
|
23531
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
23532
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
23533
|
+
let baseOptions;
|
|
23534
|
+
if (configuration) {
|
|
23535
|
+
baseOptions = configuration.baseOptions;
|
|
23536
|
+
}
|
|
23537
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
23538
|
+
const localVarHeaderParameter = {};
|
|
23539
|
+
const localVarQueryParameter = {};
|
|
23540
|
+
// authentication BearerAuth required
|
|
23541
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
23542
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
23543
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
23544
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
23545
|
+
return {
|
|
23546
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
23547
|
+
options: localVarRequestOptions,
|
|
23548
|
+
};
|
|
23549
|
+
}),
|
|
23550
|
+
/**
|
|
23551
|
+
* Transitions a running or paused experiment to completed status, optionally declaring a winner.
|
|
23552
|
+
* @summary Complete an experiment
|
|
23553
|
+
* @param {string} id Experiment ID (slug)
|
|
23554
|
+
* @param {object} [body] Optional winner variant ID
|
|
23555
|
+
* @param {*} [options] Override http request option.
|
|
23556
|
+
* @throws {RequiredError}
|
|
23557
|
+
*/
|
|
23558
|
+
v1AdminExperimentsIdCompletePost: (id_1, body_1, ...args_1) => __awaiter(this, [id_1, body_1, ...args_1], void 0, function* (id, body, options = {}) {
|
|
23559
|
+
// verify required parameter 'id' is not null or undefined
|
|
23560
|
+
(0, common_1.assertParamExists)('v1AdminExperimentsIdCompletePost', 'id', id);
|
|
23561
|
+
const localVarPath = `/v1/admin/experiments/{id}/complete`
|
|
23562
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
23563
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
23564
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
23565
|
+
let baseOptions;
|
|
23566
|
+
if (configuration) {
|
|
23567
|
+
baseOptions = configuration.baseOptions;
|
|
23568
|
+
}
|
|
23569
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
23570
|
+
const localVarHeaderParameter = {};
|
|
23571
|
+
const localVarQueryParameter = {};
|
|
23572
|
+
// authentication BearerAuth required
|
|
23573
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
23574
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
23575
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
23576
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
23577
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
23578
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
23579
|
+
return {
|
|
23580
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
23581
|
+
options: localVarRequestOptions,
|
|
23582
|
+
};
|
|
23583
|
+
}),
|
|
23584
|
+
/**
|
|
23585
|
+
* Deletes an experiment. Only experiments in draft status can be deleted.
|
|
23586
|
+
* @summary Delete a draft experiment
|
|
23587
|
+
* @param {string} id Experiment ID (slug)
|
|
23588
|
+
* @param {*} [options] Override http request option.
|
|
23589
|
+
* @throws {RequiredError}
|
|
23590
|
+
*/
|
|
23591
|
+
v1AdminExperimentsIdDelete: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
23592
|
+
// verify required parameter 'id' is not null or undefined
|
|
23593
|
+
(0, common_1.assertParamExists)('v1AdminExperimentsIdDelete', 'id', id);
|
|
23594
|
+
const localVarPath = `/v1/admin/experiments/{id}`
|
|
23595
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
23596
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
23597
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
23598
|
+
let baseOptions;
|
|
23599
|
+
if (configuration) {
|
|
23600
|
+
baseOptions = configuration.baseOptions;
|
|
23601
|
+
}
|
|
23602
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
23603
|
+
const localVarHeaderParameter = {};
|
|
23604
|
+
const localVarQueryParameter = {};
|
|
23605
|
+
// authentication BearerAuth required
|
|
23606
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
23607
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
23608
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
23609
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
23610
|
+
return {
|
|
23611
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
23612
|
+
options: localVarRequestOptions,
|
|
23613
|
+
};
|
|
23614
|
+
}),
|
|
23615
|
+
/**
|
|
23616
|
+
* Returns a single experiment by its experiment_id slug.
|
|
23617
|
+
* @summary Get experiment by ID
|
|
23618
|
+
* @param {string} id Experiment ID (slug)
|
|
23619
|
+
* @param {*} [options] Override http request option.
|
|
23620
|
+
* @throws {RequiredError}
|
|
23621
|
+
*/
|
|
23622
|
+
v1AdminExperimentsIdGet: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
23623
|
+
// verify required parameter 'id' is not null or undefined
|
|
23624
|
+
(0, common_1.assertParamExists)('v1AdminExperimentsIdGet', 'id', id);
|
|
23625
|
+
const localVarPath = `/v1/admin/experiments/{id}`
|
|
23626
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
23627
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
23628
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
23629
|
+
let baseOptions;
|
|
23630
|
+
if (configuration) {
|
|
23631
|
+
baseOptions = configuration.baseOptions;
|
|
23632
|
+
}
|
|
23633
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
23634
|
+
const localVarHeaderParameter = {};
|
|
23635
|
+
const localVarQueryParameter = {};
|
|
23636
|
+
// authentication BearerAuth required
|
|
23637
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
23638
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
23639
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
23640
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
23641
|
+
return {
|
|
23642
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
23643
|
+
options: localVarRequestOptions,
|
|
23644
|
+
};
|
|
23645
|
+
}),
|
|
23646
|
+
/**
|
|
23647
|
+
* Transitions a running experiment to paused status.
|
|
23648
|
+
* @summary Pause an experiment
|
|
23649
|
+
* @param {string} id Experiment ID (slug)
|
|
23650
|
+
* @param {*} [options] Override http request option.
|
|
23651
|
+
* @throws {RequiredError}
|
|
23652
|
+
*/
|
|
23653
|
+
v1AdminExperimentsIdPausePost: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
23654
|
+
// verify required parameter 'id' is not null or undefined
|
|
23655
|
+
(0, common_1.assertParamExists)('v1AdminExperimentsIdPausePost', 'id', id);
|
|
23656
|
+
const localVarPath = `/v1/admin/experiments/{id}/pause`
|
|
23657
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
23658
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
23659
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
23660
|
+
let baseOptions;
|
|
23661
|
+
if (configuration) {
|
|
23662
|
+
baseOptions = configuration.baseOptions;
|
|
23663
|
+
}
|
|
23664
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
23665
|
+
const localVarHeaderParameter = {};
|
|
23666
|
+
const localVarQueryParameter = {};
|
|
23667
|
+
// authentication BearerAuth required
|
|
23668
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
23669
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
23670
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
23671
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
23672
|
+
return {
|
|
23673
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
23674
|
+
options: localVarRequestOptions,
|
|
23675
|
+
};
|
|
23676
|
+
}),
|
|
23677
|
+
/**
|
|
23678
|
+
* Updates an existing experiment. Only draft experiments can be fully updated.
|
|
23679
|
+
* @summary Update an experiment
|
|
23680
|
+
* @param {string} id Experiment ID (slug)
|
|
23681
|
+
* @param {DataTypesUpdateExperimentRequest} dataTypesUpdateExperimentRequest Fields to update
|
|
23682
|
+
* @param {*} [options] Override http request option.
|
|
23683
|
+
* @throws {RequiredError}
|
|
23684
|
+
*/
|
|
23685
|
+
v1AdminExperimentsIdPut: (id_1, dataTypesUpdateExperimentRequest_1, ...args_1) => __awaiter(this, [id_1, dataTypesUpdateExperimentRequest_1, ...args_1], void 0, function* (id, dataTypesUpdateExperimentRequest, options = {}) {
|
|
23686
|
+
// verify required parameter 'id' is not null or undefined
|
|
23687
|
+
(0, common_1.assertParamExists)('v1AdminExperimentsIdPut', 'id', id);
|
|
23688
|
+
// verify required parameter 'dataTypesUpdateExperimentRequest' is not null or undefined
|
|
23689
|
+
(0, common_1.assertParamExists)('v1AdminExperimentsIdPut', 'dataTypesUpdateExperimentRequest', dataTypesUpdateExperimentRequest);
|
|
23690
|
+
const localVarPath = `/v1/admin/experiments/{id}`
|
|
23691
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
23692
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
23693
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
23694
|
+
let baseOptions;
|
|
23695
|
+
if (configuration) {
|
|
23696
|
+
baseOptions = configuration.baseOptions;
|
|
23697
|
+
}
|
|
23698
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
23699
|
+
const localVarHeaderParameter = {};
|
|
23700
|
+
const localVarQueryParameter = {};
|
|
23701
|
+
// authentication BearerAuth required
|
|
23702
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
23703
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
23704
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
23705
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
23706
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
23707
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dataTypesUpdateExperimentRequest, localVarRequestOptions, configuration);
|
|
23708
|
+
return {
|
|
23709
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
23710
|
+
options: localVarRequestOptions,
|
|
23711
|
+
};
|
|
23712
|
+
}),
|
|
23713
|
+
/**
|
|
23714
|
+
* Returns analytics results for an experiment from ClickHouse, including per-variant metrics, lifts, and statistical significance.
|
|
23715
|
+
* @summary Get experiment results
|
|
23716
|
+
* @param {string} id Experiment ID (slug)
|
|
23717
|
+
* @param {*} [options] Override http request option.
|
|
23718
|
+
* @throws {RequiredError}
|
|
23719
|
+
*/
|
|
23720
|
+
v1AdminExperimentsIdResultsGet: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
23721
|
+
// verify required parameter 'id' is not null or undefined
|
|
23722
|
+
(0, common_1.assertParamExists)('v1AdminExperimentsIdResultsGet', 'id', id);
|
|
23723
|
+
const localVarPath = `/v1/admin/experiments/{id}/results`
|
|
23724
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
23725
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
23726
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
23727
|
+
let baseOptions;
|
|
23728
|
+
if (configuration) {
|
|
23729
|
+
baseOptions = configuration.baseOptions;
|
|
23730
|
+
}
|
|
23731
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
23732
|
+
const localVarHeaderParameter = {};
|
|
23733
|
+
const localVarQueryParameter = {};
|
|
23734
|
+
// authentication BearerAuth required
|
|
23735
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
23736
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
23737
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
23738
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
23739
|
+
return {
|
|
23740
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
23741
|
+
options: localVarRequestOptions,
|
|
23742
|
+
};
|
|
23743
|
+
}),
|
|
23744
|
+
/**
|
|
23745
|
+
* Transitions a draft or paused experiment to running status.
|
|
23746
|
+
* @summary Start an experiment
|
|
23747
|
+
* @param {string} id Experiment ID (slug)
|
|
23748
|
+
* @param {*} [options] Override http request option.
|
|
23749
|
+
* @throws {RequiredError}
|
|
23750
|
+
*/
|
|
23751
|
+
v1AdminExperimentsIdStartPost: (id_1, ...args_1) => __awaiter(this, [id_1, ...args_1], void 0, function* (id, options = {}) {
|
|
23752
|
+
// verify required parameter 'id' is not null or undefined
|
|
23753
|
+
(0, common_1.assertParamExists)('v1AdminExperimentsIdStartPost', 'id', id);
|
|
23754
|
+
const localVarPath = `/v1/admin/experiments/{id}/start`
|
|
23755
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
23756
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
23757
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
23758
|
+
let baseOptions;
|
|
23759
|
+
if (configuration) {
|
|
23760
|
+
baseOptions = configuration.baseOptions;
|
|
23761
|
+
}
|
|
23762
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
23763
|
+
const localVarHeaderParameter = {};
|
|
23764
|
+
const localVarQueryParameter = {};
|
|
23765
|
+
// authentication BearerAuth required
|
|
23766
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
23767
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
23768
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
23769
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
23770
|
+
return {
|
|
23771
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
23772
|
+
options: localVarRequestOptions,
|
|
23773
|
+
};
|
|
23774
|
+
}),
|
|
23775
|
+
/**
|
|
23776
|
+
* Creates a new A/B test experiment in draft status.
|
|
23777
|
+
* @summary Create a new experiment
|
|
23778
|
+
* @param {DataTypesCreateExperimentRequest} dataTypesCreateExperimentRequest Experiment data
|
|
23779
|
+
* @param {*} [options] Override http request option.
|
|
23780
|
+
* @throws {RequiredError}
|
|
23781
|
+
*/
|
|
23782
|
+
v1AdminExperimentsPost: (dataTypesCreateExperimentRequest_1, ...args_1) => __awaiter(this, [dataTypesCreateExperimentRequest_1, ...args_1], void 0, function* (dataTypesCreateExperimentRequest, options = {}) {
|
|
23783
|
+
// verify required parameter 'dataTypesCreateExperimentRequest' is not null or undefined
|
|
23784
|
+
(0, common_1.assertParamExists)('v1AdminExperimentsPost', 'dataTypesCreateExperimentRequest', dataTypesCreateExperimentRequest);
|
|
23785
|
+
const localVarPath = `/v1/admin/experiments/`;
|
|
23786
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
23787
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
23788
|
+
let baseOptions;
|
|
23789
|
+
if (configuration) {
|
|
23790
|
+
baseOptions = configuration.baseOptions;
|
|
23791
|
+
}
|
|
23792
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
23793
|
+
const localVarHeaderParameter = {};
|
|
23794
|
+
const localVarQueryParameter = {};
|
|
23795
|
+
// authentication BearerAuth required
|
|
23796
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
23797
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
23798
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
23799
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
23800
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
23801
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dataTypesCreateExperimentRequest, localVarRequestOptions, configuration);
|
|
23802
|
+
return {
|
|
23803
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
23804
|
+
options: localVarRequestOptions,
|
|
23805
|
+
};
|
|
23806
|
+
}),
|
|
23807
|
+
/**
|
|
23808
|
+
* Returns variant assignments for all running experiments for the requesting user. Uses hash-based consistent assignment.
|
|
23809
|
+
* @summary Get experiment assignments for a user
|
|
23810
|
+
* @param {string} xStoreid Store ID
|
|
23811
|
+
* @param {string} [xUserId] User ID (provide either x-user-id or x-anon-id)
|
|
23812
|
+
* @param {string} [xAnonId] Anonymous ID (provide either x-user-id or x-anon-id)
|
|
23813
|
+
* @param {*} [options] Override http request option.
|
|
23814
|
+
* @throws {RequiredError}
|
|
23815
|
+
*/
|
|
23816
|
+
v1ExperimentsAssignmentGet: (xStoreid_1, xUserId_1, xAnonId_1, ...args_1) => __awaiter(this, [xStoreid_1, xUserId_1, xAnonId_1, ...args_1], void 0, function* (xStoreid, xUserId, xAnonId, options = {}) {
|
|
23817
|
+
// verify required parameter 'xStoreid' is not null or undefined
|
|
23818
|
+
(0, common_1.assertParamExists)('v1ExperimentsAssignmentGet', 'xStoreid', xStoreid);
|
|
23819
|
+
const localVarPath = `/v1/experiments/assignment`;
|
|
23820
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
23821
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
23822
|
+
let baseOptions;
|
|
23823
|
+
if (configuration) {
|
|
23824
|
+
baseOptions = configuration.baseOptions;
|
|
23825
|
+
}
|
|
23826
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
23827
|
+
const localVarHeaderParameter = {};
|
|
23828
|
+
const localVarQueryParameter = {};
|
|
23829
|
+
// authentication ApiKeyAuth required
|
|
23830
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-storesecret", configuration);
|
|
23831
|
+
if (xStoreid != null) {
|
|
23832
|
+
localVarHeaderParameter['x-storeid'] = String(xStoreid);
|
|
23833
|
+
}
|
|
23834
|
+
if (xUserId != null) {
|
|
23835
|
+
localVarHeaderParameter['x-user-id'] = String(xUserId);
|
|
23836
|
+
}
|
|
23837
|
+
if (xAnonId != null) {
|
|
23838
|
+
localVarHeaderParameter['x-anon-id'] = String(xAnonId);
|
|
23839
|
+
}
|
|
23840
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
23841
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
23842
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
23843
|
+
return {
|
|
23844
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
23845
|
+
options: localVarRequestOptions,
|
|
23846
|
+
};
|
|
23847
|
+
}),
|
|
23848
|
+
};
|
|
23849
|
+
};
|
|
23850
|
+
exports.ExperimentsApiAxiosParamCreator = ExperimentsApiAxiosParamCreator;
|
|
23851
|
+
/**
|
|
23852
|
+
* ExperimentsApi - functional programming interface
|
|
23853
|
+
* @export
|
|
23854
|
+
*/
|
|
23855
|
+
const ExperimentsApiFp = function (configuration) {
|
|
23856
|
+
const localVarAxiosParamCreator = (0, exports.ExperimentsApiAxiosParamCreator)(configuration);
|
|
23857
|
+
return {
|
|
23858
|
+
/**
|
|
23859
|
+
* Returns all experiments for the authenticated organization, optionally filtered by store.
|
|
23860
|
+
* @summary List all experiments
|
|
23861
|
+
* @param {*} [options] Override http request option.
|
|
23862
|
+
* @throws {RequiredError}
|
|
23863
|
+
*/
|
|
23864
|
+
v1AdminExperimentsGet(options) {
|
|
23865
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23866
|
+
var _a, _b, _c;
|
|
23867
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.v1AdminExperimentsGet(options);
|
|
23868
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
23869
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ExperimentsApi.v1AdminExperimentsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
23870
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
23871
|
+
});
|
|
23872
|
+
},
|
|
23873
|
+
/**
|
|
23874
|
+
* Transitions a running or paused experiment to completed status, optionally declaring a winner.
|
|
23875
|
+
* @summary Complete an experiment
|
|
23876
|
+
* @param {string} id Experiment ID (slug)
|
|
23877
|
+
* @param {object} [body] Optional winner variant ID
|
|
23878
|
+
* @param {*} [options] Override http request option.
|
|
23879
|
+
* @throws {RequiredError}
|
|
23880
|
+
*/
|
|
23881
|
+
v1AdminExperimentsIdCompletePost(id, body, options) {
|
|
23882
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23883
|
+
var _a, _b, _c;
|
|
23884
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.v1AdminExperimentsIdCompletePost(id, body, options);
|
|
23885
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
23886
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ExperimentsApi.v1AdminExperimentsIdCompletePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
23887
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
23888
|
+
});
|
|
23889
|
+
},
|
|
23890
|
+
/**
|
|
23891
|
+
* Deletes an experiment. Only experiments in draft status can be deleted.
|
|
23892
|
+
* @summary Delete a draft experiment
|
|
23893
|
+
* @param {string} id Experiment ID (slug)
|
|
23894
|
+
* @param {*} [options] Override http request option.
|
|
23895
|
+
* @throws {RequiredError}
|
|
23896
|
+
*/
|
|
23897
|
+
v1AdminExperimentsIdDelete(id, options) {
|
|
23898
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23899
|
+
var _a, _b, _c;
|
|
23900
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.v1AdminExperimentsIdDelete(id, options);
|
|
23901
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
23902
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ExperimentsApi.v1AdminExperimentsIdDelete']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
23903
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
23904
|
+
});
|
|
23905
|
+
},
|
|
23906
|
+
/**
|
|
23907
|
+
* Returns a single experiment by its experiment_id slug.
|
|
23908
|
+
* @summary Get experiment by ID
|
|
23909
|
+
* @param {string} id Experiment ID (slug)
|
|
23910
|
+
* @param {*} [options] Override http request option.
|
|
23911
|
+
* @throws {RequiredError}
|
|
23912
|
+
*/
|
|
23913
|
+
v1AdminExperimentsIdGet(id, options) {
|
|
23914
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23915
|
+
var _a, _b, _c;
|
|
23916
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.v1AdminExperimentsIdGet(id, options);
|
|
23917
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
23918
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ExperimentsApi.v1AdminExperimentsIdGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
23919
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
23920
|
+
});
|
|
23921
|
+
},
|
|
23922
|
+
/**
|
|
23923
|
+
* Transitions a running experiment to paused status.
|
|
23924
|
+
* @summary Pause an experiment
|
|
23925
|
+
* @param {string} id Experiment ID (slug)
|
|
23926
|
+
* @param {*} [options] Override http request option.
|
|
23927
|
+
* @throws {RequiredError}
|
|
23928
|
+
*/
|
|
23929
|
+
v1AdminExperimentsIdPausePost(id, options) {
|
|
23930
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23931
|
+
var _a, _b, _c;
|
|
23932
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.v1AdminExperimentsIdPausePost(id, options);
|
|
23933
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
23934
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ExperimentsApi.v1AdminExperimentsIdPausePost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
23935
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
23936
|
+
});
|
|
23937
|
+
},
|
|
23938
|
+
/**
|
|
23939
|
+
* Updates an existing experiment. Only draft experiments can be fully updated.
|
|
23940
|
+
* @summary Update an experiment
|
|
23941
|
+
* @param {string} id Experiment ID (slug)
|
|
23942
|
+
* @param {DataTypesUpdateExperimentRequest} dataTypesUpdateExperimentRequest Fields to update
|
|
23943
|
+
* @param {*} [options] Override http request option.
|
|
23944
|
+
* @throws {RequiredError}
|
|
23945
|
+
*/
|
|
23946
|
+
v1AdminExperimentsIdPut(id, dataTypesUpdateExperimentRequest, options) {
|
|
23947
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23948
|
+
var _a, _b, _c;
|
|
23949
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.v1AdminExperimentsIdPut(id, dataTypesUpdateExperimentRequest, options);
|
|
23950
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
23951
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ExperimentsApi.v1AdminExperimentsIdPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
23952
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
23953
|
+
});
|
|
23954
|
+
},
|
|
23955
|
+
/**
|
|
23956
|
+
* Returns analytics results for an experiment from ClickHouse, including per-variant metrics, lifts, and statistical significance.
|
|
23957
|
+
* @summary Get experiment results
|
|
23958
|
+
* @param {string} id Experiment ID (slug)
|
|
23959
|
+
* @param {*} [options] Override http request option.
|
|
23960
|
+
* @throws {RequiredError}
|
|
23961
|
+
*/
|
|
23962
|
+
v1AdminExperimentsIdResultsGet(id, options) {
|
|
23963
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23964
|
+
var _a, _b, _c;
|
|
23965
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.v1AdminExperimentsIdResultsGet(id, options);
|
|
23966
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
23967
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ExperimentsApi.v1AdminExperimentsIdResultsGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
23968
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
23969
|
+
});
|
|
23970
|
+
},
|
|
23971
|
+
/**
|
|
23972
|
+
* Transitions a draft or paused experiment to running status.
|
|
23973
|
+
* @summary Start an experiment
|
|
23974
|
+
* @param {string} id Experiment ID (slug)
|
|
23975
|
+
* @param {*} [options] Override http request option.
|
|
23976
|
+
* @throws {RequiredError}
|
|
23977
|
+
*/
|
|
23978
|
+
v1AdminExperimentsIdStartPost(id, options) {
|
|
23979
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23980
|
+
var _a, _b, _c;
|
|
23981
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.v1AdminExperimentsIdStartPost(id, options);
|
|
23982
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
23983
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ExperimentsApi.v1AdminExperimentsIdStartPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
23984
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
23985
|
+
});
|
|
23986
|
+
},
|
|
23987
|
+
/**
|
|
23988
|
+
* Creates a new A/B test experiment in draft status.
|
|
23989
|
+
* @summary Create a new experiment
|
|
23990
|
+
* @param {DataTypesCreateExperimentRequest} dataTypesCreateExperimentRequest Experiment data
|
|
23991
|
+
* @param {*} [options] Override http request option.
|
|
23992
|
+
* @throws {RequiredError}
|
|
23993
|
+
*/
|
|
23994
|
+
v1AdminExperimentsPost(dataTypesCreateExperimentRequest, options) {
|
|
23995
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23996
|
+
var _a, _b, _c;
|
|
23997
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.v1AdminExperimentsPost(dataTypesCreateExperimentRequest, options);
|
|
23998
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
23999
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ExperimentsApi.v1AdminExperimentsPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
24000
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
24001
|
+
});
|
|
24002
|
+
},
|
|
24003
|
+
/**
|
|
24004
|
+
* Returns variant assignments for all running experiments for the requesting user. Uses hash-based consistent assignment.
|
|
24005
|
+
* @summary Get experiment assignments for a user
|
|
24006
|
+
* @param {string} xStoreid Store ID
|
|
24007
|
+
* @param {string} [xUserId] User ID (provide either x-user-id or x-anon-id)
|
|
24008
|
+
* @param {string} [xAnonId] Anonymous ID (provide either x-user-id or x-anon-id)
|
|
24009
|
+
* @param {*} [options] Override http request option.
|
|
24010
|
+
* @throws {RequiredError}
|
|
24011
|
+
*/
|
|
24012
|
+
v1ExperimentsAssignmentGet(xStoreid, xUserId, xAnonId, options) {
|
|
24013
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24014
|
+
var _a, _b, _c;
|
|
24015
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.v1ExperimentsAssignmentGet(xStoreid, xUserId, xAnonId, options);
|
|
24016
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
24017
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ExperimentsApi.v1ExperimentsAssignmentGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
24018
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
24019
|
+
});
|
|
24020
|
+
},
|
|
24021
|
+
};
|
|
24022
|
+
};
|
|
24023
|
+
exports.ExperimentsApiFp = ExperimentsApiFp;
|
|
24024
|
+
/**
|
|
24025
|
+
* ExperimentsApi - factory interface
|
|
24026
|
+
* @export
|
|
24027
|
+
*/
|
|
24028
|
+
const ExperimentsApiFactory = function (configuration, basePath, axios) {
|
|
24029
|
+
const localVarFp = (0, exports.ExperimentsApiFp)(configuration);
|
|
24030
|
+
return {
|
|
24031
|
+
/**
|
|
24032
|
+
* Returns all experiments for the authenticated organization, optionally filtered by store.
|
|
24033
|
+
* @summary List all experiments
|
|
24034
|
+
* @param {*} [options] Override http request option.
|
|
24035
|
+
* @throws {RequiredError}
|
|
24036
|
+
*/
|
|
24037
|
+
v1AdminExperimentsGet(options) {
|
|
24038
|
+
return localVarFp.v1AdminExperimentsGet(options).then((request) => request(axios, basePath));
|
|
24039
|
+
},
|
|
24040
|
+
/**
|
|
24041
|
+
* Transitions a running or paused experiment to completed status, optionally declaring a winner.
|
|
24042
|
+
* @summary Complete an experiment
|
|
24043
|
+
* @param {string} id Experiment ID (slug)
|
|
24044
|
+
* @param {object} [body] Optional winner variant ID
|
|
24045
|
+
* @param {*} [options] Override http request option.
|
|
24046
|
+
* @throws {RequiredError}
|
|
24047
|
+
*/
|
|
24048
|
+
v1AdminExperimentsIdCompletePost(id, body, options) {
|
|
24049
|
+
return localVarFp.v1AdminExperimentsIdCompletePost(id, body, options).then((request) => request(axios, basePath));
|
|
24050
|
+
},
|
|
24051
|
+
/**
|
|
24052
|
+
* Deletes an experiment. Only experiments in draft status can be deleted.
|
|
24053
|
+
* @summary Delete a draft experiment
|
|
24054
|
+
* @param {string} id Experiment ID (slug)
|
|
24055
|
+
* @param {*} [options] Override http request option.
|
|
24056
|
+
* @throws {RequiredError}
|
|
24057
|
+
*/
|
|
24058
|
+
v1AdminExperimentsIdDelete(id, options) {
|
|
24059
|
+
return localVarFp.v1AdminExperimentsIdDelete(id, options).then((request) => request(axios, basePath));
|
|
24060
|
+
},
|
|
24061
|
+
/**
|
|
24062
|
+
* Returns a single experiment by its experiment_id slug.
|
|
24063
|
+
* @summary Get experiment by ID
|
|
24064
|
+
* @param {string} id Experiment ID (slug)
|
|
24065
|
+
* @param {*} [options] Override http request option.
|
|
24066
|
+
* @throws {RequiredError}
|
|
24067
|
+
*/
|
|
24068
|
+
v1AdminExperimentsIdGet(id, options) {
|
|
24069
|
+
return localVarFp.v1AdminExperimentsIdGet(id, options).then((request) => request(axios, basePath));
|
|
24070
|
+
},
|
|
24071
|
+
/**
|
|
24072
|
+
* Transitions a running experiment to paused status.
|
|
24073
|
+
* @summary Pause an experiment
|
|
24074
|
+
* @param {string} id Experiment ID (slug)
|
|
24075
|
+
* @param {*} [options] Override http request option.
|
|
24076
|
+
* @throws {RequiredError}
|
|
24077
|
+
*/
|
|
24078
|
+
v1AdminExperimentsIdPausePost(id, options) {
|
|
24079
|
+
return localVarFp.v1AdminExperimentsIdPausePost(id, options).then((request) => request(axios, basePath));
|
|
24080
|
+
},
|
|
24081
|
+
/**
|
|
24082
|
+
* Updates an existing experiment. Only draft experiments can be fully updated.
|
|
24083
|
+
* @summary Update an experiment
|
|
24084
|
+
* @param {string} id Experiment ID (slug)
|
|
24085
|
+
* @param {DataTypesUpdateExperimentRequest} dataTypesUpdateExperimentRequest Fields to update
|
|
24086
|
+
* @param {*} [options] Override http request option.
|
|
24087
|
+
* @throws {RequiredError}
|
|
24088
|
+
*/
|
|
24089
|
+
v1AdminExperimentsIdPut(id, dataTypesUpdateExperimentRequest, options) {
|
|
24090
|
+
return localVarFp.v1AdminExperimentsIdPut(id, dataTypesUpdateExperimentRequest, options).then((request) => request(axios, basePath));
|
|
24091
|
+
},
|
|
24092
|
+
/**
|
|
24093
|
+
* Returns analytics results for an experiment from ClickHouse, including per-variant metrics, lifts, and statistical significance.
|
|
24094
|
+
* @summary Get experiment results
|
|
24095
|
+
* @param {string} id Experiment ID (slug)
|
|
24096
|
+
* @param {*} [options] Override http request option.
|
|
24097
|
+
* @throws {RequiredError}
|
|
24098
|
+
*/
|
|
24099
|
+
v1AdminExperimentsIdResultsGet(id, options) {
|
|
24100
|
+
return localVarFp.v1AdminExperimentsIdResultsGet(id, options).then((request) => request(axios, basePath));
|
|
24101
|
+
},
|
|
24102
|
+
/**
|
|
24103
|
+
* Transitions a draft or paused experiment to running status.
|
|
24104
|
+
* @summary Start an experiment
|
|
24105
|
+
* @param {string} id Experiment ID (slug)
|
|
24106
|
+
* @param {*} [options] Override http request option.
|
|
24107
|
+
* @throws {RequiredError}
|
|
24108
|
+
*/
|
|
24109
|
+
v1AdminExperimentsIdStartPost(id, options) {
|
|
24110
|
+
return localVarFp.v1AdminExperimentsIdStartPost(id, options).then((request) => request(axios, basePath));
|
|
24111
|
+
},
|
|
24112
|
+
/**
|
|
24113
|
+
* Creates a new A/B test experiment in draft status.
|
|
24114
|
+
* @summary Create a new experiment
|
|
24115
|
+
* @param {DataTypesCreateExperimentRequest} dataTypesCreateExperimentRequest Experiment data
|
|
24116
|
+
* @param {*} [options] Override http request option.
|
|
24117
|
+
* @throws {RequiredError}
|
|
24118
|
+
*/
|
|
24119
|
+
v1AdminExperimentsPost(dataTypesCreateExperimentRequest, options) {
|
|
24120
|
+
return localVarFp.v1AdminExperimentsPost(dataTypesCreateExperimentRequest, options).then((request) => request(axios, basePath));
|
|
24121
|
+
},
|
|
24122
|
+
/**
|
|
24123
|
+
* Returns variant assignments for all running experiments for the requesting user. Uses hash-based consistent assignment.
|
|
24124
|
+
* @summary Get experiment assignments for a user
|
|
24125
|
+
* @param {string} xStoreid Store ID
|
|
24126
|
+
* @param {string} [xUserId] User ID (provide either x-user-id or x-anon-id)
|
|
24127
|
+
* @param {string} [xAnonId] Anonymous ID (provide either x-user-id or x-anon-id)
|
|
24128
|
+
* @param {*} [options] Override http request option.
|
|
24129
|
+
* @throws {RequiredError}
|
|
24130
|
+
*/
|
|
24131
|
+
v1ExperimentsAssignmentGet(xStoreid, xUserId, xAnonId, options) {
|
|
24132
|
+
return localVarFp.v1ExperimentsAssignmentGet(xStoreid, xUserId, xAnonId, options).then((request) => request(axios, basePath));
|
|
24133
|
+
},
|
|
24134
|
+
};
|
|
24135
|
+
};
|
|
24136
|
+
exports.ExperimentsApiFactory = ExperimentsApiFactory;
|
|
24137
|
+
/**
|
|
24138
|
+
* ExperimentsApi - object-oriented interface
|
|
24139
|
+
* @export
|
|
24140
|
+
* @class ExperimentsApi
|
|
24141
|
+
* @extends {BaseAPI}
|
|
24142
|
+
*/
|
|
24143
|
+
class ExperimentsApi extends base_1.BaseAPI {
|
|
24144
|
+
/**
|
|
24145
|
+
* Returns all experiments for the authenticated organization, optionally filtered by store.
|
|
24146
|
+
* @summary List all experiments
|
|
24147
|
+
* @param {*} [options] Override http request option.
|
|
24148
|
+
* @throws {RequiredError}
|
|
24149
|
+
* @memberof ExperimentsApi
|
|
24150
|
+
*/
|
|
24151
|
+
v1AdminExperimentsGet(options) {
|
|
24152
|
+
return (0, exports.ExperimentsApiFp)(this.configuration).v1AdminExperimentsGet(options).then((request) => request(this.axios, this.basePath));
|
|
24153
|
+
}
|
|
24154
|
+
/**
|
|
24155
|
+
* Transitions a running or paused experiment to completed status, optionally declaring a winner.
|
|
24156
|
+
* @summary Complete an experiment
|
|
24157
|
+
* @param {string} id Experiment ID (slug)
|
|
24158
|
+
* @param {object} [body] Optional winner variant ID
|
|
24159
|
+
* @param {*} [options] Override http request option.
|
|
24160
|
+
* @throws {RequiredError}
|
|
24161
|
+
* @memberof ExperimentsApi
|
|
24162
|
+
*/
|
|
24163
|
+
v1AdminExperimentsIdCompletePost(id, body, options) {
|
|
24164
|
+
return (0, exports.ExperimentsApiFp)(this.configuration).v1AdminExperimentsIdCompletePost(id, body, options).then((request) => request(this.axios, this.basePath));
|
|
24165
|
+
}
|
|
24166
|
+
/**
|
|
24167
|
+
* Deletes an experiment. Only experiments in draft status can be deleted.
|
|
24168
|
+
* @summary Delete a draft experiment
|
|
24169
|
+
* @param {string} id Experiment ID (slug)
|
|
24170
|
+
* @param {*} [options] Override http request option.
|
|
24171
|
+
* @throws {RequiredError}
|
|
24172
|
+
* @memberof ExperimentsApi
|
|
24173
|
+
*/
|
|
24174
|
+
v1AdminExperimentsIdDelete(id, options) {
|
|
24175
|
+
return (0, exports.ExperimentsApiFp)(this.configuration).v1AdminExperimentsIdDelete(id, options).then((request) => request(this.axios, this.basePath));
|
|
24176
|
+
}
|
|
24177
|
+
/**
|
|
24178
|
+
* Returns a single experiment by its experiment_id slug.
|
|
24179
|
+
* @summary Get experiment by ID
|
|
24180
|
+
* @param {string} id Experiment ID (slug)
|
|
24181
|
+
* @param {*} [options] Override http request option.
|
|
24182
|
+
* @throws {RequiredError}
|
|
24183
|
+
* @memberof ExperimentsApi
|
|
24184
|
+
*/
|
|
24185
|
+
v1AdminExperimentsIdGet(id, options) {
|
|
24186
|
+
return (0, exports.ExperimentsApiFp)(this.configuration).v1AdminExperimentsIdGet(id, options).then((request) => request(this.axios, this.basePath));
|
|
24187
|
+
}
|
|
24188
|
+
/**
|
|
24189
|
+
* Transitions a running experiment to paused status.
|
|
24190
|
+
* @summary Pause an experiment
|
|
24191
|
+
* @param {string} id Experiment ID (slug)
|
|
24192
|
+
* @param {*} [options] Override http request option.
|
|
24193
|
+
* @throws {RequiredError}
|
|
24194
|
+
* @memberof ExperimentsApi
|
|
24195
|
+
*/
|
|
24196
|
+
v1AdminExperimentsIdPausePost(id, options) {
|
|
24197
|
+
return (0, exports.ExperimentsApiFp)(this.configuration).v1AdminExperimentsIdPausePost(id, options).then((request) => request(this.axios, this.basePath));
|
|
24198
|
+
}
|
|
24199
|
+
/**
|
|
24200
|
+
* Updates an existing experiment. Only draft experiments can be fully updated.
|
|
24201
|
+
* @summary Update an experiment
|
|
24202
|
+
* @param {string} id Experiment ID (slug)
|
|
24203
|
+
* @param {DataTypesUpdateExperimentRequest} dataTypesUpdateExperimentRequest Fields to update
|
|
24204
|
+
* @param {*} [options] Override http request option.
|
|
24205
|
+
* @throws {RequiredError}
|
|
24206
|
+
* @memberof ExperimentsApi
|
|
24207
|
+
*/
|
|
24208
|
+
v1AdminExperimentsIdPut(id, dataTypesUpdateExperimentRequest, options) {
|
|
24209
|
+
return (0, exports.ExperimentsApiFp)(this.configuration).v1AdminExperimentsIdPut(id, dataTypesUpdateExperimentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
24210
|
+
}
|
|
24211
|
+
/**
|
|
24212
|
+
* Returns analytics results for an experiment from ClickHouse, including per-variant metrics, lifts, and statistical significance.
|
|
24213
|
+
* @summary Get experiment results
|
|
24214
|
+
* @param {string} id Experiment ID (slug)
|
|
24215
|
+
* @param {*} [options] Override http request option.
|
|
24216
|
+
* @throws {RequiredError}
|
|
24217
|
+
* @memberof ExperimentsApi
|
|
24218
|
+
*/
|
|
24219
|
+
v1AdminExperimentsIdResultsGet(id, options) {
|
|
24220
|
+
return (0, exports.ExperimentsApiFp)(this.configuration).v1AdminExperimentsIdResultsGet(id, options).then((request) => request(this.axios, this.basePath));
|
|
24221
|
+
}
|
|
24222
|
+
/**
|
|
24223
|
+
* Transitions a draft or paused experiment to running status.
|
|
24224
|
+
* @summary Start an experiment
|
|
24225
|
+
* @param {string} id Experiment ID (slug)
|
|
24226
|
+
* @param {*} [options] Override http request option.
|
|
24227
|
+
* @throws {RequiredError}
|
|
24228
|
+
* @memberof ExperimentsApi
|
|
24229
|
+
*/
|
|
24230
|
+
v1AdminExperimentsIdStartPost(id, options) {
|
|
24231
|
+
return (0, exports.ExperimentsApiFp)(this.configuration).v1AdminExperimentsIdStartPost(id, options).then((request) => request(this.axios, this.basePath));
|
|
24232
|
+
}
|
|
24233
|
+
/**
|
|
24234
|
+
* Creates a new A/B test experiment in draft status.
|
|
24235
|
+
* @summary Create a new experiment
|
|
24236
|
+
* @param {DataTypesCreateExperimentRequest} dataTypesCreateExperimentRequest Experiment data
|
|
24237
|
+
* @param {*} [options] Override http request option.
|
|
24238
|
+
* @throws {RequiredError}
|
|
24239
|
+
* @memberof ExperimentsApi
|
|
24240
|
+
*/
|
|
24241
|
+
v1AdminExperimentsPost(dataTypesCreateExperimentRequest, options) {
|
|
24242
|
+
return (0, exports.ExperimentsApiFp)(this.configuration).v1AdminExperimentsPost(dataTypesCreateExperimentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
24243
|
+
}
|
|
24244
|
+
/**
|
|
24245
|
+
* Returns variant assignments for all running experiments for the requesting user. Uses hash-based consistent assignment.
|
|
24246
|
+
* @summary Get experiment assignments for a user
|
|
24247
|
+
* @param {string} xStoreid Store ID
|
|
24248
|
+
* @param {string} [xUserId] User ID (provide either x-user-id or x-anon-id)
|
|
24249
|
+
* @param {string} [xAnonId] Anonymous ID (provide either x-user-id or x-anon-id)
|
|
24250
|
+
* @param {*} [options] Override http request option.
|
|
24251
|
+
* @throws {RequiredError}
|
|
24252
|
+
* @memberof ExperimentsApi
|
|
24253
|
+
*/
|
|
24254
|
+
v1ExperimentsAssignmentGet(xStoreid, xUserId, xAnonId, options) {
|
|
24255
|
+
return (0, exports.ExperimentsApiFp)(this.configuration).v1ExperimentsAssignmentGet(xStoreid, xUserId, xAnonId, options).then((request) => request(this.axios, this.basePath));
|
|
24256
|
+
}
|
|
24257
|
+
}
|
|
24258
|
+
exports.ExperimentsApi = ExperimentsApi;
|
|
23491
24259
|
/**
|
|
23492
24260
|
* ExternalAPINotificationsApi - axios parameter creator
|
|
23493
24261
|
* @export
|