@seekora-ai/admin-api 1.2.11 → 1.2.12
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 +4 -2
- package/api.ts +103 -0
- package/dist/api.d.ts +62 -0
- package/dist/api.js +74 -0
- package/dist/esm/api.d.ts +62 -0
- package/dist/esm/api.js +74 -0
- package/package.json +1 -1
- package/seekora-ai-admin-api-1.2.12.tgz +0 -0
- package/seekora-ai-admin-api-1.2.11.tgz +0 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @seekora-ai/admin-api@1.2.
|
|
1
|
+
## @seekora-ai/admin-api@1.2.12
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @seekora-ai/admin-api@1.2.
|
|
39
|
+
npm install @seekora-ai/admin-api@1.2.12 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -479,6 +479,7 @@ Class | Method | HTTP request | Description
|
|
|
479
479
|
*ExperimentsApi* | [**v1AdminExperimentsPost**](docs/ExperimentsApi.md#v1adminexperimentspost) | **POST** /v1/admin/experiments/ | Create a new experiment
|
|
480
480
|
*ExternalAPINotificationsApi* | [**v1ExternalNotificationsSchedulePost**](docs/ExternalAPINotificationsApi.md#v1externalnotificationsschedulepost) | **POST** /v1/external/notifications/schedule | Schedule notification (External API)
|
|
481
481
|
*ExternalAPINotificationsApi* | [**v1ExternalNotificationsSendPost**](docs/ExternalAPINotificationsApi.md#v1externalnotificationssendpost) | **POST** /v1/external/notifications/send | Send notification (External API)
|
|
482
|
+
*FeatureFlagsApi* | [**internalV1FeatureFlagsFlagNameBulkPut**](docs/FeatureFlagsApi.md#internalv1featureflagsflagnamebulkput) | **PUT** /internal/v1/feature-flags/{flagName}/bulk | Bulk update a feature flag across many orgs
|
|
482
483
|
*FeatureFlagsApi* | [**internalV1FeatureFlagsFlagNameGet**](docs/FeatureFlagsApi.md#internalv1featureflagsflagnameget) | **GET** /internal/v1/feature-flags/{flagName} | Get a specific feature flag
|
|
483
484
|
*FeatureFlagsApi* | [**internalV1FeatureFlagsFlagNamePut**](docs/FeatureFlagsApi.md#internalv1featureflagsflagnameput) | **PUT** /internal/v1/feature-flags/{flagName} | Set a feature flag for organization
|
|
484
485
|
*FeatureFlagsApi* | [**internalV1FeatureFlagsGet**](docs/FeatureFlagsApi.md#internalv1featureflagsget) | **GET** /internal/v1/feature-flags | List all feature flags for organization
|
|
@@ -1714,6 +1715,7 @@ Class | Method | HTTP request | Description
|
|
|
1714
1715
|
- [DefaultMenuRoutesUpdateMenuVisibilityResponse](docs/DefaultMenuRoutesUpdateMenuVisibilityResponse.md)
|
|
1715
1716
|
- [DiscoveryTypeSpec](docs/DiscoveryTypeSpec.md)
|
|
1716
1717
|
- [FeatureFlagsFeatureFlagResponse](docs/FeatureFlagsFeatureFlagResponse.md)
|
|
1718
|
+
- [FeatureFlagsSetFlagBulkRequest](docs/FeatureFlagsSetFlagBulkRequest.md)
|
|
1717
1719
|
- [FeatureFlagsSetFlagRequest](docs/FeatureFlagsSetFlagRequest.md)
|
|
1718
1720
|
- [FeatureLimitServiceAPICallStatus](docs/FeatureLimitServiceAPICallStatus.md)
|
|
1719
1721
|
- [FeatureLimitServiceCreditStatus](docs/FeatureLimitServiceCreditStatus.md)
|
package/api.ts
CHANGED
|
@@ -38423,6 +38423,31 @@ export interface FeatureFlagsFeatureFlagResponse {
|
|
|
38423
38423
|
*/
|
|
38424
38424
|
'flag_name'?: string;
|
|
38425
38425
|
}
|
|
38426
|
+
/**
|
|
38427
|
+
*
|
|
38428
|
+
* @export
|
|
38429
|
+
* @interface FeatureFlagsSetFlagBulkRequest
|
|
38430
|
+
*/
|
|
38431
|
+
export interface FeatureFlagsSetFlagBulkRequest {
|
|
38432
|
+
/**
|
|
38433
|
+
* AllOrgs, when true, applies the flip to every live org (morganization.isdeleted=FALSE).
|
|
38434
|
+
* @type {boolean}
|
|
38435
|
+
* @memberof FeatureFlagsSetFlagBulkRequest
|
|
38436
|
+
*/
|
|
38437
|
+
'all_orgs'?: boolean;
|
|
38438
|
+
/**
|
|
38439
|
+
*
|
|
38440
|
+
* @type {boolean}
|
|
38441
|
+
* @memberof FeatureFlagsSetFlagBulkRequest
|
|
38442
|
+
*/
|
|
38443
|
+
'enabled'?: boolean;
|
|
38444
|
+
/**
|
|
38445
|
+
*
|
|
38446
|
+
* @type {Array<number>}
|
|
38447
|
+
* @memberof FeatureFlagsSetFlagBulkRequest
|
|
38448
|
+
*/
|
|
38449
|
+
'org_ids'?: Array<number>;
|
|
38450
|
+
}
|
|
38426
38451
|
/**
|
|
38427
38452
|
*
|
|
38428
38453
|
* @export
|
|
@@ -83800,6 +83825,46 @@ export class ExternalAPINotificationsApi extends BaseAPI {
|
|
|
83800
83825
|
*/
|
|
83801
83826
|
export const FeatureFlagsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
83802
83827
|
return {
|
|
83828
|
+
/**
|
|
83829
|
+
* Flip a flag for many orgs in a single call. Either pass org_ids=[...] or all_orgs=true.
|
|
83830
|
+
* @summary Bulk update a feature flag across many orgs
|
|
83831
|
+
* @param {string} flagName Flag name
|
|
83832
|
+
* @param {FeatureFlagsSetFlagBulkRequest} featureFlagsSetFlagBulkRequest Bulk flag update
|
|
83833
|
+
* @param {*} [options] Override http request option.
|
|
83834
|
+
* @throws {RequiredError}
|
|
83835
|
+
*/
|
|
83836
|
+
internalV1FeatureFlagsFlagNameBulkPut: async (flagName: string, featureFlagsSetFlagBulkRequest: FeatureFlagsSetFlagBulkRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
83837
|
+
// verify required parameter 'flagName' is not null or undefined
|
|
83838
|
+
assertParamExists('internalV1FeatureFlagsFlagNameBulkPut', 'flagName', flagName)
|
|
83839
|
+
// verify required parameter 'featureFlagsSetFlagBulkRequest' is not null or undefined
|
|
83840
|
+
assertParamExists('internalV1FeatureFlagsFlagNameBulkPut', 'featureFlagsSetFlagBulkRequest', featureFlagsSetFlagBulkRequest)
|
|
83841
|
+
const localVarPath = `/internal/v1/feature-flags/{flagName}/bulk`
|
|
83842
|
+
.replace(`{${"flagName"}}`, encodeURIComponent(String(flagName)));
|
|
83843
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
83844
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
83845
|
+
let baseOptions;
|
|
83846
|
+
if (configuration) {
|
|
83847
|
+
baseOptions = configuration.baseOptions;
|
|
83848
|
+
}
|
|
83849
|
+
|
|
83850
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
83851
|
+
const localVarHeaderParameter = {} as any;
|
|
83852
|
+
const localVarQueryParameter = {} as any;
|
|
83853
|
+
|
|
83854
|
+
|
|
83855
|
+
|
|
83856
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
83857
|
+
|
|
83858
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
83859
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
83860
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
83861
|
+
localVarRequestOptions.data = serializeDataIfNeeded(featureFlagsSetFlagBulkRequest, localVarRequestOptions, configuration)
|
|
83862
|
+
|
|
83863
|
+
return {
|
|
83864
|
+
url: toPathString(localVarUrlObj),
|
|
83865
|
+
options: localVarRequestOptions,
|
|
83866
|
+
};
|
|
83867
|
+
},
|
|
83803
83868
|
/**
|
|
83804
83869
|
* Returns the enabled/disabled status of one feature flag for the caller\'s org
|
|
83805
83870
|
* @summary Get a specific feature flag
|
|
@@ -83914,6 +83979,20 @@ export const FeatureFlagsApiAxiosParamCreator = function (configuration?: Config
|
|
|
83914
83979
|
export const FeatureFlagsApiFp = function(configuration?: Configuration) {
|
|
83915
83980
|
const localVarAxiosParamCreator = FeatureFlagsApiAxiosParamCreator(configuration)
|
|
83916
83981
|
return {
|
|
83982
|
+
/**
|
|
83983
|
+
* Flip a flag for many orgs in a single call. Either pass org_ids=[...] or all_orgs=true.
|
|
83984
|
+
* @summary Bulk update a feature flag across many orgs
|
|
83985
|
+
* @param {string} flagName Flag name
|
|
83986
|
+
* @param {FeatureFlagsSetFlagBulkRequest} featureFlagsSetFlagBulkRequest Bulk flag update
|
|
83987
|
+
* @param {*} [options] Override http request option.
|
|
83988
|
+
* @throws {RequiredError}
|
|
83989
|
+
*/
|
|
83990
|
+
async internalV1FeatureFlagsFlagNameBulkPut(flagName: string, featureFlagsSetFlagBulkRequest: FeatureFlagsSetFlagBulkRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>> {
|
|
83991
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.internalV1FeatureFlagsFlagNameBulkPut(flagName, featureFlagsSetFlagBulkRequest, options);
|
|
83992
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
83993
|
+
const localVarOperationServerBasePath = operationServerMap['FeatureFlagsApi.internalV1FeatureFlagsFlagNameBulkPut']?.[localVarOperationServerIndex]?.url;
|
|
83994
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
83995
|
+
},
|
|
83917
83996
|
/**
|
|
83918
83997
|
* Returns the enabled/disabled status of one feature flag for the caller\'s org
|
|
83919
83998
|
* @summary Get a specific feature flag
|
|
@@ -83963,6 +84042,17 @@ export const FeatureFlagsApiFp = function(configuration?: Configuration) {
|
|
|
83963
84042
|
export const FeatureFlagsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
83964
84043
|
const localVarFp = FeatureFlagsApiFp(configuration)
|
|
83965
84044
|
return {
|
|
84045
|
+
/**
|
|
84046
|
+
* Flip a flag for many orgs in a single call. Either pass org_ids=[...] or all_orgs=true.
|
|
84047
|
+
* @summary Bulk update a feature flag across many orgs
|
|
84048
|
+
* @param {string} flagName Flag name
|
|
84049
|
+
* @param {FeatureFlagsSetFlagBulkRequest} featureFlagsSetFlagBulkRequest Bulk flag update
|
|
84050
|
+
* @param {*} [options] Override http request option.
|
|
84051
|
+
* @throws {RequiredError}
|
|
84052
|
+
*/
|
|
84053
|
+
internalV1FeatureFlagsFlagNameBulkPut(flagName: string, featureFlagsSetFlagBulkRequest: FeatureFlagsSetFlagBulkRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse> {
|
|
84054
|
+
return localVarFp.internalV1FeatureFlagsFlagNameBulkPut(flagName, featureFlagsSetFlagBulkRequest, options).then((request) => request(axios, basePath));
|
|
84055
|
+
},
|
|
83966
84056
|
/**
|
|
83967
84057
|
* Returns the enabled/disabled status of one feature flag for the caller\'s org
|
|
83968
84058
|
* @summary Get a specific feature flag
|
|
@@ -84003,6 +84093,19 @@ export const FeatureFlagsApiFactory = function (configuration?: Configuration, b
|
|
|
84003
84093
|
* @extends {BaseAPI}
|
|
84004
84094
|
*/
|
|
84005
84095
|
export class FeatureFlagsApi extends BaseAPI {
|
|
84096
|
+
/**
|
|
84097
|
+
* Flip a flag for many orgs in a single call. Either pass org_ids=[...] or all_orgs=true.
|
|
84098
|
+
* @summary Bulk update a feature flag across many orgs
|
|
84099
|
+
* @param {string} flagName Flag name
|
|
84100
|
+
* @param {FeatureFlagsSetFlagBulkRequest} featureFlagsSetFlagBulkRequest Bulk flag update
|
|
84101
|
+
* @param {*} [options] Override http request option.
|
|
84102
|
+
* @throws {RequiredError}
|
|
84103
|
+
* @memberof FeatureFlagsApi
|
|
84104
|
+
*/
|
|
84105
|
+
public internalV1FeatureFlagsFlagNameBulkPut(flagName: string, featureFlagsSetFlagBulkRequest: FeatureFlagsSetFlagBulkRequest, options?: RawAxiosRequestConfig) {
|
|
84106
|
+
return FeatureFlagsApiFp(this.configuration).internalV1FeatureFlagsFlagNameBulkPut(flagName, featureFlagsSetFlagBulkRequest, options).then((request) => request(this.axios, this.basePath));
|
|
84107
|
+
}
|
|
84108
|
+
|
|
84006
84109
|
/**
|
|
84007
84110
|
* Returns the enabled/disabled status of one feature flag for the caller\'s org
|
|
84008
84111
|
* @summary Get a specific feature flag
|
package/dist/api.d.ts
CHANGED
|
@@ -38471,6 +38471,31 @@ export interface FeatureFlagsFeatureFlagResponse {
|
|
|
38471
38471
|
*/
|
|
38472
38472
|
'flag_name'?: string;
|
|
38473
38473
|
}
|
|
38474
|
+
/**
|
|
38475
|
+
*
|
|
38476
|
+
* @export
|
|
38477
|
+
* @interface FeatureFlagsSetFlagBulkRequest
|
|
38478
|
+
*/
|
|
38479
|
+
export interface FeatureFlagsSetFlagBulkRequest {
|
|
38480
|
+
/**
|
|
38481
|
+
* AllOrgs, when true, applies the flip to every live org (morganization.isdeleted=FALSE).
|
|
38482
|
+
* @type {boolean}
|
|
38483
|
+
* @memberof FeatureFlagsSetFlagBulkRequest
|
|
38484
|
+
*/
|
|
38485
|
+
'all_orgs'?: boolean;
|
|
38486
|
+
/**
|
|
38487
|
+
*
|
|
38488
|
+
* @type {boolean}
|
|
38489
|
+
* @memberof FeatureFlagsSetFlagBulkRequest
|
|
38490
|
+
*/
|
|
38491
|
+
'enabled'?: boolean;
|
|
38492
|
+
/**
|
|
38493
|
+
*
|
|
38494
|
+
* @type {Array<number>}
|
|
38495
|
+
* @memberof FeatureFlagsSetFlagBulkRequest
|
|
38496
|
+
*/
|
|
38497
|
+
'org_ids'?: Array<number>;
|
|
38498
|
+
}
|
|
38474
38499
|
/**
|
|
38475
38500
|
*
|
|
38476
38501
|
* @export
|
|
@@ -63833,6 +63858,15 @@ export declare class ExternalAPINotificationsApi extends BaseAPI {
|
|
|
63833
63858
|
* @export
|
|
63834
63859
|
*/
|
|
63835
63860
|
export declare const FeatureFlagsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
63861
|
+
/**
|
|
63862
|
+
* Flip a flag for many orgs in a single call. Either pass org_ids=[...] or all_orgs=true.
|
|
63863
|
+
* @summary Bulk update a feature flag across many orgs
|
|
63864
|
+
* @param {string} flagName Flag name
|
|
63865
|
+
* @param {FeatureFlagsSetFlagBulkRequest} featureFlagsSetFlagBulkRequest Bulk flag update
|
|
63866
|
+
* @param {*} [options] Override http request option.
|
|
63867
|
+
* @throws {RequiredError}
|
|
63868
|
+
*/
|
|
63869
|
+
internalV1FeatureFlagsFlagNameBulkPut: (flagName: string, featureFlagsSetFlagBulkRequest: FeatureFlagsSetFlagBulkRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
63836
63870
|
/**
|
|
63837
63871
|
* Returns the enabled/disabled status of one feature flag for the caller\'s org
|
|
63838
63872
|
* @summary Get a specific feature flag
|
|
@@ -63863,6 +63897,15 @@ export declare const FeatureFlagsApiAxiosParamCreator: (configuration?: Configur
|
|
|
63863
63897
|
* @export
|
|
63864
63898
|
*/
|
|
63865
63899
|
export declare const FeatureFlagsApiFp: (configuration?: Configuration) => {
|
|
63900
|
+
/**
|
|
63901
|
+
* Flip a flag for many orgs in a single call. Either pass org_ids=[...] or all_orgs=true.
|
|
63902
|
+
* @summary Bulk update a feature flag across many orgs
|
|
63903
|
+
* @param {string} flagName Flag name
|
|
63904
|
+
* @param {FeatureFlagsSetFlagBulkRequest} featureFlagsSetFlagBulkRequest Bulk flag update
|
|
63905
|
+
* @param {*} [options] Override http request option.
|
|
63906
|
+
* @throws {RequiredError}
|
|
63907
|
+
*/
|
|
63908
|
+
internalV1FeatureFlagsFlagNameBulkPut(flagName: string, featureFlagsSetFlagBulkRequest: FeatureFlagsSetFlagBulkRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
|
|
63866
63909
|
/**
|
|
63867
63910
|
* Returns the enabled/disabled status of one feature flag for the caller\'s org
|
|
63868
63911
|
* @summary Get a specific feature flag
|
|
@@ -63893,6 +63936,15 @@ export declare const FeatureFlagsApiFp: (configuration?: Configuration) => {
|
|
|
63893
63936
|
* @export
|
|
63894
63937
|
*/
|
|
63895
63938
|
export declare const FeatureFlagsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
63939
|
+
/**
|
|
63940
|
+
* Flip a flag for many orgs in a single call. Either pass org_ids=[...] or all_orgs=true.
|
|
63941
|
+
* @summary Bulk update a feature flag across many orgs
|
|
63942
|
+
* @param {string} flagName Flag name
|
|
63943
|
+
* @param {FeatureFlagsSetFlagBulkRequest} featureFlagsSetFlagBulkRequest Bulk flag update
|
|
63944
|
+
* @param {*} [options] Override http request option.
|
|
63945
|
+
* @throws {RequiredError}
|
|
63946
|
+
*/
|
|
63947
|
+
internalV1FeatureFlagsFlagNameBulkPut(flagName: string, featureFlagsSetFlagBulkRequest: FeatureFlagsSetFlagBulkRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
|
|
63896
63948
|
/**
|
|
63897
63949
|
* Returns the enabled/disabled status of one feature flag for the caller\'s org
|
|
63898
63950
|
* @summary Get a specific feature flag
|
|
@@ -63925,6 +63977,16 @@ export declare const FeatureFlagsApiFactory: (configuration?: Configuration, bas
|
|
|
63925
63977
|
* @extends {BaseAPI}
|
|
63926
63978
|
*/
|
|
63927
63979
|
export declare class FeatureFlagsApi extends BaseAPI {
|
|
63980
|
+
/**
|
|
63981
|
+
* Flip a flag for many orgs in a single call. Either pass org_ids=[...] or all_orgs=true.
|
|
63982
|
+
* @summary Bulk update a feature flag across many orgs
|
|
63983
|
+
* @param {string} flagName Flag name
|
|
63984
|
+
* @param {FeatureFlagsSetFlagBulkRequest} featureFlagsSetFlagBulkRequest Bulk flag update
|
|
63985
|
+
* @param {*} [options] Override http request option.
|
|
63986
|
+
* @throws {RequiredError}
|
|
63987
|
+
* @memberof FeatureFlagsApi
|
|
63988
|
+
*/
|
|
63989
|
+
internalV1FeatureFlagsFlagNameBulkPut(flagName: string, featureFlagsSetFlagBulkRequest: FeatureFlagsSetFlagBulkRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
|
|
63928
63990
|
/**
|
|
63929
63991
|
* Returns the enabled/disabled status of one feature flag for the caller\'s org
|
|
63930
63992
|
* @summary Get a specific feature flag
|
package/dist/api.js
CHANGED
|
@@ -37423,6 +37423,40 @@ exports.ExternalAPINotificationsApi = ExternalAPINotificationsApi;
|
|
|
37423
37423
|
*/
|
|
37424
37424
|
const FeatureFlagsApiAxiosParamCreator = function (configuration) {
|
|
37425
37425
|
return {
|
|
37426
|
+
/**
|
|
37427
|
+
* Flip a flag for many orgs in a single call. Either pass org_ids=[...] or all_orgs=true.
|
|
37428
|
+
* @summary Bulk update a feature flag across many orgs
|
|
37429
|
+
* @param {string} flagName Flag name
|
|
37430
|
+
* @param {FeatureFlagsSetFlagBulkRequest} featureFlagsSetFlagBulkRequest Bulk flag update
|
|
37431
|
+
* @param {*} [options] Override http request option.
|
|
37432
|
+
* @throws {RequiredError}
|
|
37433
|
+
*/
|
|
37434
|
+
internalV1FeatureFlagsFlagNameBulkPut: (flagName_1, featureFlagsSetFlagBulkRequest_1, ...args_1) => __awaiter(this, [flagName_1, featureFlagsSetFlagBulkRequest_1, ...args_1], void 0, function* (flagName, featureFlagsSetFlagBulkRequest, options = {}) {
|
|
37435
|
+
// verify required parameter 'flagName' is not null or undefined
|
|
37436
|
+
(0, common_1.assertParamExists)('internalV1FeatureFlagsFlagNameBulkPut', 'flagName', flagName);
|
|
37437
|
+
// verify required parameter 'featureFlagsSetFlagBulkRequest' is not null or undefined
|
|
37438
|
+
(0, common_1.assertParamExists)('internalV1FeatureFlagsFlagNameBulkPut', 'featureFlagsSetFlagBulkRequest', featureFlagsSetFlagBulkRequest);
|
|
37439
|
+
const localVarPath = `/internal/v1/feature-flags/{flagName}/bulk`
|
|
37440
|
+
.replace(`{${"flagName"}}`, encodeURIComponent(String(flagName)));
|
|
37441
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
37442
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
37443
|
+
let baseOptions;
|
|
37444
|
+
if (configuration) {
|
|
37445
|
+
baseOptions = configuration.baseOptions;
|
|
37446
|
+
}
|
|
37447
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
37448
|
+
const localVarHeaderParameter = {};
|
|
37449
|
+
const localVarQueryParameter = {};
|
|
37450
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
37451
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
37452
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
37453
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
37454
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(featureFlagsSetFlagBulkRequest, localVarRequestOptions, configuration);
|
|
37455
|
+
return {
|
|
37456
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
37457
|
+
options: localVarRequestOptions,
|
|
37458
|
+
};
|
|
37459
|
+
}),
|
|
37426
37460
|
/**
|
|
37427
37461
|
* Returns the enabled/disabled status of one feature flag for the caller\'s org
|
|
37428
37462
|
* @summary Get a specific feature flag
|
|
@@ -37521,6 +37555,23 @@ exports.FeatureFlagsApiAxiosParamCreator = FeatureFlagsApiAxiosParamCreator;
|
|
|
37521
37555
|
const FeatureFlagsApiFp = function (configuration) {
|
|
37522
37556
|
const localVarAxiosParamCreator = (0, exports.FeatureFlagsApiAxiosParamCreator)(configuration);
|
|
37523
37557
|
return {
|
|
37558
|
+
/**
|
|
37559
|
+
* Flip a flag for many orgs in a single call. Either pass org_ids=[...] or all_orgs=true.
|
|
37560
|
+
* @summary Bulk update a feature flag across many orgs
|
|
37561
|
+
* @param {string} flagName Flag name
|
|
37562
|
+
* @param {FeatureFlagsSetFlagBulkRequest} featureFlagsSetFlagBulkRequest Bulk flag update
|
|
37563
|
+
* @param {*} [options] Override http request option.
|
|
37564
|
+
* @throws {RequiredError}
|
|
37565
|
+
*/
|
|
37566
|
+
internalV1FeatureFlagsFlagNameBulkPut(flagName, featureFlagsSetFlagBulkRequest, options) {
|
|
37567
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37568
|
+
var _a, _b, _c;
|
|
37569
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.internalV1FeatureFlagsFlagNameBulkPut(flagName, featureFlagsSetFlagBulkRequest, options);
|
|
37570
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
37571
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['FeatureFlagsApi.internalV1FeatureFlagsFlagNameBulkPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
37572
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
37573
|
+
});
|
|
37574
|
+
},
|
|
37524
37575
|
/**
|
|
37525
37576
|
* Returns the enabled/disabled status of one feature flag for the caller\'s org
|
|
37526
37577
|
* @summary Get a specific feature flag
|
|
@@ -37579,6 +37630,17 @@ exports.FeatureFlagsApiFp = FeatureFlagsApiFp;
|
|
|
37579
37630
|
const FeatureFlagsApiFactory = function (configuration, basePath, axios) {
|
|
37580
37631
|
const localVarFp = (0, exports.FeatureFlagsApiFp)(configuration);
|
|
37581
37632
|
return {
|
|
37633
|
+
/**
|
|
37634
|
+
* Flip a flag for many orgs in a single call. Either pass org_ids=[...] or all_orgs=true.
|
|
37635
|
+
* @summary Bulk update a feature flag across many orgs
|
|
37636
|
+
* @param {string} flagName Flag name
|
|
37637
|
+
* @param {FeatureFlagsSetFlagBulkRequest} featureFlagsSetFlagBulkRequest Bulk flag update
|
|
37638
|
+
* @param {*} [options] Override http request option.
|
|
37639
|
+
* @throws {RequiredError}
|
|
37640
|
+
*/
|
|
37641
|
+
internalV1FeatureFlagsFlagNameBulkPut(flagName, featureFlagsSetFlagBulkRequest, options) {
|
|
37642
|
+
return localVarFp.internalV1FeatureFlagsFlagNameBulkPut(flagName, featureFlagsSetFlagBulkRequest, options).then((request) => request(axios, basePath));
|
|
37643
|
+
},
|
|
37582
37644
|
/**
|
|
37583
37645
|
* Returns the enabled/disabled status of one feature flag for the caller\'s org
|
|
37584
37646
|
* @summary Get a specific feature flag
|
|
@@ -37619,6 +37681,18 @@ exports.FeatureFlagsApiFactory = FeatureFlagsApiFactory;
|
|
|
37619
37681
|
* @extends {BaseAPI}
|
|
37620
37682
|
*/
|
|
37621
37683
|
class FeatureFlagsApi extends base_1.BaseAPI {
|
|
37684
|
+
/**
|
|
37685
|
+
* Flip a flag for many orgs in a single call. Either pass org_ids=[...] or all_orgs=true.
|
|
37686
|
+
* @summary Bulk update a feature flag across many orgs
|
|
37687
|
+
* @param {string} flagName Flag name
|
|
37688
|
+
* @param {FeatureFlagsSetFlagBulkRequest} featureFlagsSetFlagBulkRequest Bulk flag update
|
|
37689
|
+
* @param {*} [options] Override http request option.
|
|
37690
|
+
* @throws {RequiredError}
|
|
37691
|
+
* @memberof FeatureFlagsApi
|
|
37692
|
+
*/
|
|
37693
|
+
internalV1FeatureFlagsFlagNameBulkPut(flagName, featureFlagsSetFlagBulkRequest, options) {
|
|
37694
|
+
return (0, exports.FeatureFlagsApiFp)(this.configuration).internalV1FeatureFlagsFlagNameBulkPut(flagName, featureFlagsSetFlagBulkRequest, options).then((request) => request(this.axios, this.basePath));
|
|
37695
|
+
}
|
|
37622
37696
|
/**
|
|
37623
37697
|
* Returns the enabled/disabled status of one feature flag for the caller\'s org
|
|
37624
37698
|
* @summary Get a specific feature flag
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -38471,6 +38471,31 @@ export interface FeatureFlagsFeatureFlagResponse {
|
|
|
38471
38471
|
*/
|
|
38472
38472
|
'flag_name'?: string;
|
|
38473
38473
|
}
|
|
38474
|
+
/**
|
|
38475
|
+
*
|
|
38476
|
+
* @export
|
|
38477
|
+
* @interface FeatureFlagsSetFlagBulkRequest
|
|
38478
|
+
*/
|
|
38479
|
+
export interface FeatureFlagsSetFlagBulkRequest {
|
|
38480
|
+
/**
|
|
38481
|
+
* AllOrgs, when true, applies the flip to every live org (morganization.isdeleted=FALSE).
|
|
38482
|
+
* @type {boolean}
|
|
38483
|
+
* @memberof FeatureFlagsSetFlagBulkRequest
|
|
38484
|
+
*/
|
|
38485
|
+
'all_orgs'?: boolean;
|
|
38486
|
+
/**
|
|
38487
|
+
*
|
|
38488
|
+
* @type {boolean}
|
|
38489
|
+
* @memberof FeatureFlagsSetFlagBulkRequest
|
|
38490
|
+
*/
|
|
38491
|
+
'enabled'?: boolean;
|
|
38492
|
+
/**
|
|
38493
|
+
*
|
|
38494
|
+
* @type {Array<number>}
|
|
38495
|
+
* @memberof FeatureFlagsSetFlagBulkRequest
|
|
38496
|
+
*/
|
|
38497
|
+
'org_ids'?: Array<number>;
|
|
38498
|
+
}
|
|
38474
38499
|
/**
|
|
38475
38500
|
*
|
|
38476
38501
|
* @export
|
|
@@ -63833,6 +63858,15 @@ export declare class ExternalAPINotificationsApi extends BaseAPI {
|
|
|
63833
63858
|
* @export
|
|
63834
63859
|
*/
|
|
63835
63860
|
export declare const FeatureFlagsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
63861
|
+
/**
|
|
63862
|
+
* Flip a flag for many orgs in a single call. Either pass org_ids=[...] or all_orgs=true.
|
|
63863
|
+
* @summary Bulk update a feature flag across many orgs
|
|
63864
|
+
* @param {string} flagName Flag name
|
|
63865
|
+
* @param {FeatureFlagsSetFlagBulkRequest} featureFlagsSetFlagBulkRequest Bulk flag update
|
|
63866
|
+
* @param {*} [options] Override http request option.
|
|
63867
|
+
* @throws {RequiredError}
|
|
63868
|
+
*/
|
|
63869
|
+
internalV1FeatureFlagsFlagNameBulkPut: (flagName: string, featureFlagsSetFlagBulkRequest: FeatureFlagsSetFlagBulkRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
63836
63870
|
/**
|
|
63837
63871
|
* Returns the enabled/disabled status of one feature flag for the caller\'s org
|
|
63838
63872
|
* @summary Get a specific feature flag
|
|
@@ -63863,6 +63897,15 @@ export declare const FeatureFlagsApiAxiosParamCreator: (configuration?: Configur
|
|
|
63863
63897
|
* @export
|
|
63864
63898
|
*/
|
|
63865
63899
|
export declare const FeatureFlagsApiFp: (configuration?: Configuration) => {
|
|
63900
|
+
/**
|
|
63901
|
+
* Flip a flag for many orgs in a single call. Either pass org_ids=[...] or all_orgs=true.
|
|
63902
|
+
* @summary Bulk update a feature flag across many orgs
|
|
63903
|
+
* @param {string} flagName Flag name
|
|
63904
|
+
* @param {FeatureFlagsSetFlagBulkRequest} featureFlagsSetFlagBulkRequest Bulk flag update
|
|
63905
|
+
* @param {*} [options] Override http request option.
|
|
63906
|
+
* @throws {RequiredError}
|
|
63907
|
+
*/
|
|
63908
|
+
internalV1FeatureFlagsFlagNameBulkPut(flagName: string, featureFlagsSetFlagBulkRequest: FeatureFlagsSetFlagBulkRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DataTypesResponse>>;
|
|
63866
63909
|
/**
|
|
63867
63910
|
* Returns the enabled/disabled status of one feature flag for the caller\'s org
|
|
63868
63911
|
* @summary Get a specific feature flag
|
|
@@ -63893,6 +63936,15 @@ export declare const FeatureFlagsApiFp: (configuration?: Configuration) => {
|
|
|
63893
63936
|
* @export
|
|
63894
63937
|
*/
|
|
63895
63938
|
export declare const FeatureFlagsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
63939
|
+
/**
|
|
63940
|
+
* Flip a flag for many orgs in a single call. Either pass org_ids=[...] or all_orgs=true.
|
|
63941
|
+
* @summary Bulk update a feature flag across many orgs
|
|
63942
|
+
* @param {string} flagName Flag name
|
|
63943
|
+
* @param {FeatureFlagsSetFlagBulkRequest} featureFlagsSetFlagBulkRequest Bulk flag update
|
|
63944
|
+
* @param {*} [options] Override http request option.
|
|
63945
|
+
* @throws {RequiredError}
|
|
63946
|
+
*/
|
|
63947
|
+
internalV1FeatureFlagsFlagNameBulkPut(flagName: string, featureFlagsSetFlagBulkRequest: FeatureFlagsSetFlagBulkRequest, options?: RawAxiosRequestConfig): AxiosPromise<DataTypesResponse>;
|
|
63896
63948
|
/**
|
|
63897
63949
|
* Returns the enabled/disabled status of one feature flag for the caller\'s org
|
|
63898
63950
|
* @summary Get a specific feature flag
|
|
@@ -63925,6 +63977,16 @@ export declare const FeatureFlagsApiFactory: (configuration?: Configuration, bas
|
|
|
63925
63977
|
* @extends {BaseAPI}
|
|
63926
63978
|
*/
|
|
63927
63979
|
export declare class FeatureFlagsApi extends BaseAPI {
|
|
63980
|
+
/**
|
|
63981
|
+
* Flip a flag for many orgs in a single call. Either pass org_ids=[...] or all_orgs=true.
|
|
63982
|
+
* @summary Bulk update a feature flag across many orgs
|
|
63983
|
+
* @param {string} flagName Flag name
|
|
63984
|
+
* @param {FeatureFlagsSetFlagBulkRequest} featureFlagsSetFlagBulkRequest Bulk flag update
|
|
63985
|
+
* @param {*} [options] Override http request option.
|
|
63986
|
+
* @throws {RequiredError}
|
|
63987
|
+
* @memberof FeatureFlagsApi
|
|
63988
|
+
*/
|
|
63989
|
+
internalV1FeatureFlagsFlagNameBulkPut(flagName: string, featureFlagsSetFlagBulkRequest: FeatureFlagsSetFlagBulkRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<DataTypesResponse, any, {}>>;
|
|
63928
63990
|
/**
|
|
63929
63991
|
* Returns the enabled/disabled status of one feature flag for the caller\'s org
|
|
63930
63992
|
* @summary Get a specific feature flag
|
package/dist/esm/api.js
CHANGED
|
@@ -37161,6 +37161,40 @@ export class ExternalAPINotificationsApi extends BaseAPI {
|
|
|
37161
37161
|
*/
|
|
37162
37162
|
export const FeatureFlagsApiAxiosParamCreator = function (configuration) {
|
|
37163
37163
|
return {
|
|
37164
|
+
/**
|
|
37165
|
+
* Flip a flag for many orgs in a single call. Either pass org_ids=[...] or all_orgs=true.
|
|
37166
|
+
* @summary Bulk update a feature flag across many orgs
|
|
37167
|
+
* @param {string} flagName Flag name
|
|
37168
|
+
* @param {FeatureFlagsSetFlagBulkRequest} featureFlagsSetFlagBulkRequest Bulk flag update
|
|
37169
|
+
* @param {*} [options] Override http request option.
|
|
37170
|
+
* @throws {RequiredError}
|
|
37171
|
+
*/
|
|
37172
|
+
internalV1FeatureFlagsFlagNameBulkPut: (flagName_1, featureFlagsSetFlagBulkRequest_1, ...args_1) => __awaiter(this, [flagName_1, featureFlagsSetFlagBulkRequest_1, ...args_1], void 0, function* (flagName, featureFlagsSetFlagBulkRequest, options = {}) {
|
|
37173
|
+
// verify required parameter 'flagName' is not null or undefined
|
|
37174
|
+
assertParamExists('internalV1FeatureFlagsFlagNameBulkPut', 'flagName', flagName);
|
|
37175
|
+
// verify required parameter 'featureFlagsSetFlagBulkRequest' is not null or undefined
|
|
37176
|
+
assertParamExists('internalV1FeatureFlagsFlagNameBulkPut', 'featureFlagsSetFlagBulkRequest', featureFlagsSetFlagBulkRequest);
|
|
37177
|
+
const localVarPath = `/internal/v1/feature-flags/{flagName}/bulk`
|
|
37178
|
+
.replace(`{${"flagName"}}`, encodeURIComponent(String(flagName)));
|
|
37179
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
37180
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
37181
|
+
let baseOptions;
|
|
37182
|
+
if (configuration) {
|
|
37183
|
+
baseOptions = configuration.baseOptions;
|
|
37184
|
+
}
|
|
37185
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
37186
|
+
const localVarHeaderParameter = {};
|
|
37187
|
+
const localVarQueryParameter = {};
|
|
37188
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
37189
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
37190
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
37191
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
37192
|
+
localVarRequestOptions.data = serializeDataIfNeeded(featureFlagsSetFlagBulkRequest, localVarRequestOptions, configuration);
|
|
37193
|
+
return {
|
|
37194
|
+
url: toPathString(localVarUrlObj),
|
|
37195
|
+
options: localVarRequestOptions,
|
|
37196
|
+
};
|
|
37197
|
+
}),
|
|
37164
37198
|
/**
|
|
37165
37199
|
* Returns the enabled/disabled status of one feature flag for the caller\'s org
|
|
37166
37200
|
* @summary Get a specific feature flag
|
|
@@ -37258,6 +37292,23 @@ export const FeatureFlagsApiAxiosParamCreator = function (configuration) {
|
|
|
37258
37292
|
export const FeatureFlagsApiFp = function (configuration) {
|
|
37259
37293
|
const localVarAxiosParamCreator = FeatureFlagsApiAxiosParamCreator(configuration);
|
|
37260
37294
|
return {
|
|
37295
|
+
/**
|
|
37296
|
+
* Flip a flag for many orgs in a single call. Either pass org_ids=[...] or all_orgs=true.
|
|
37297
|
+
* @summary Bulk update a feature flag across many orgs
|
|
37298
|
+
* @param {string} flagName Flag name
|
|
37299
|
+
* @param {FeatureFlagsSetFlagBulkRequest} featureFlagsSetFlagBulkRequest Bulk flag update
|
|
37300
|
+
* @param {*} [options] Override http request option.
|
|
37301
|
+
* @throws {RequiredError}
|
|
37302
|
+
*/
|
|
37303
|
+
internalV1FeatureFlagsFlagNameBulkPut(flagName, featureFlagsSetFlagBulkRequest, options) {
|
|
37304
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37305
|
+
var _a, _b, _c;
|
|
37306
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.internalV1FeatureFlagsFlagNameBulkPut(flagName, featureFlagsSetFlagBulkRequest, options);
|
|
37307
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
37308
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FeatureFlagsApi.internalV1FeatureFlagsFlagNameBulkPut']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
37309
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
37310
|
+
});
|
|
37311
|
+
},
|
|
37261
37312
|
/**
|
|
37262
37313
|
* Returns the enabled/disabled status of one feature flag for the caller\'s org
|
|
37263
37314
|
* @summary Get a specific feature flag
|
|
@@ -37315,6 +37366,17 @@ export const FeatureFlagsApiFp = function (configuration) {
|
|
|
37315
37366
|
export const FeatureFlagsApiFactory = function (configuration, basePath, axios) {
|
|
37316
37367
|
const localVarFp = FeatureFlagsApiFp(configuration);
|
|
37317
37368
|
return {
|
|
37369
|
+
/**
|
|
37370
|
+
* Flip a flag for many orgs in a single call. Either pass org_ids=[...] or all_orgs=true.
|
|
37371
|
+
* @summary Bulk update a feature flag across many orgs
|
|
37372
|
+
* @param {string} flagName Flag name
|
|
37373
|
+
* @param {FeatureFlagsSetFlagBulkRequest} featureFlagsSetFlagBulkRequest Bulk flag update
|
|
37374
|
+
* @param {*} [options] Override http request option.
|
|
37375
|
+
* @throws {RequiredError}
|
|
37376
|
+
*/
|
|
37377
|
+
internalV1FeatureFlagsFlagNameBulkPut(flagName, featureFlagsSetFlagBulkRequest, options) {
|
|
37378
|
+
return localVarFp.internalV1FeatureFlagsFlagNameBulkPut(flagName, featureFlagsSetFlagBulkRequest, options).then((request) => request(axios, basePath));
|
|
37379
|
+
},
|
|
37318
37380
|
/**
|
|
37319
37381
|
* Returns the enabled/disabled status of one feature flag for the caller\'s org
|
|
37320
37382
|
* @summary Get a specific feature flag
|
|
@@ -37354,6 +37416,18 @@ export const FeatureFlagsApiFactory = function (configuration, basePath, axios)
|
|
|
37354
37416
|
* @extends {BaseAPI}
|
|
37355
37417
|
*/
|
|
37356
37418
|
export class FeatureFlagsApi extends BaseAPI {
|
|
37419
|
+
/**
|
|
37420
|
+
* Flip a flag for many orgs in a single call. Either pass org_ids=[...] or all_orgs=true.
|
|
37421
|
+
* @summary Bulk update a feature flag across many orgs
|
|
37422
|
+
* @param {string} flagName Flag name
|
|
37423
|
+
* @param {FeatureFlagsSetFlagBulkRequest} featureFlagsSetFlagBulkRequest Bulk flag update
|
|
37424
|
+
* @param {*} [options] Override http request option.
|
|
37425
|
+
* @throws {RequiredError}
|
|
37426
|
+
* @memberof FeatureFlagsApi
|
|
37427
|
+
*/
|
|
37428
|
+
internalV1FeatureFlagsFlagNameBulkPut(flagName, featureFlagsSetFlagBulkRequest, options) {
|
|
37429
|
+
return FeatureFlagsApiFp(this.configuration).internalV1FeatureFlagsFlagNameBulkPut(flagName, featureFlagsSetFlagBulkRequest, options).then((request) => request(this.axios, this.basePath));
|
|
37430
|
+
}
|
|
37357
37431
|
/**
|
|
37358
37432
|
* Returns the enabled/disabled status of one feature flag for the caller\'s org
|
|
37359
37433
|
* @summary Get a specific feature flag
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|