@integrahub/vergefy-client 0.11.0 → 0.13.0
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 +2 -2
- package/dist/apis/APIAFLFlagApi.d.ts +68 -12
- package/dist/apis/APIAFLFlagApi.js +191 -11
- package/dist/esm/apis/APIAFLFlagApi.js +190 -10
- package/dist/esm/ext/telemetry.js +1 -1
- package/dist/esm/models/AffiliateTierHistoryDTO.js +9 -3
- package/dist/esm/models/AgentHierarchyCreateDTO.js +3 -1
- package/dist/esm/models/ArticleChannelStockCreateDTO.js +3 -1
- package/dist/esm/models/DataResponseDTOFlagEnvironmentDefinitionDTO.js +42 -0
- package/dist/esm/models/DataResponseDTOListFlagEnvironmentDefinitionDTO.js +42 -0
- package/dist/esm/models/DealCloseDTO.js +3 -1
- package/dist/esm/models/DealStageUpdateDTO.js +3 -1
- package/dist/esm/models/FlagEnvironmentCreateApiDTO.js +51 -0
- package/dist/esm/models/FlagEnvironmentDefinitionDTO.js +88 -0
- package/dist/esm/models/FleetDeviceConsumableCreateDTO.js +6 -2
- package/dist/esm/models/FleetGeofenceCreateDTO.js +9 -3
- package/dist/esm/models/FleetTelemetryCreateDTO.js +6 -2
- package/dist/esm/models/GoodsReceiptDTO.js +3 -1
- package/dist/esm/models/InsuranceBrokerCreateDTO.js +6 -2
- package/dist/esm/models/InsuranceCarrierCreateDTO.js +3 -1
- package/dist/esm/models/InsuranceClaimCreateDTO.js +10 -4
- package/dist/esm/models/InsuranceCommissionCreateDTO.js +9 -3
- package/dist/esm/models/InsuranceCommissionStatementCreateDTO.js +11 -5
- package/dist/esm/models/InsurancePolicyCreateDTO.js +14 -6
- package/dist/esm/models/LoyaltyMemberEnrollDTO.js +6 -2
- package/dist/esm/models/ManufacturingProcessProfileCreateDTO.js +3 -1
- package/dist/esm/models/ManufacturingWorkOrderMaterialCreateDTO.js +6 -2
- package/dist/esm/models/PlatformPaymentMethodDTO.js +3 -1
- package/dist/esm/models/SocialWorkflowCreateDTO.js +3 -1
- package/dist/esm/models/StockDTO.js +6 -2
- package/dist/esm/models/index.js +4 -0
- package/dist/ext/telemetry.d.ts +1 -1
- package/dist/ext/telemetry.js +1 -1
- package/dist/models/AffiliateTierHistoryDTO.d.ts +3 -3
- package/dist/models/AffiliateTierHistoryDTO.js +9 -3
- package/dist/models/AgentHierarchyCreateDTO.d.ts +1 -1
- package/dist/models/AgentHierarchyCreateDTO.js +3 -1
- package/dist/models/ArticleChannelStockCreateDTO.d.ts +1 -1
- package/dist/models/ArticleChannelStockCreateDTO.js +3 -1
- package/dist/models/DataResponseDTOFlagEnvironmentDefinitionDTO.d.ts +33 -0
- package/dist/models/DataResponseDTOFlagEnvironmentDefinitionDTO.js +49 -0
- package/dist/models/DataResponseDTOListFlagEnvironmentDefinitionDTO.d.ts +33 -0
- package/dist/models/DataResponseDTOListFlagEnvironmentDefinitionDTO.js +49 -0
- package/dist/models/DealCloseDTO.d.ts +1 -1
- package/dist/models/DealCloseDTO.js +3 -1
- package/dist/models/DealStageUpdateDTO.d.ts +1 -1
- package/dist/models/DealStageUpdateDTO.js +3 -1
- package/dist/models/FlagEnvironmentCreateApiDTO.d.ts +50 -0
- package/dist/models/FlagEnvironmentCreateApiDTO.js +58 -0
- package/dist/models/FlagEnvironmentDefinitionDTO.d.ts +140 -0
- package/dist/models/FlagEnvironmentDefinitionDTO.js +96 -0
- package/dist/models/FleetDeviceConsumableCreateDTO.d.ts +2 -2
- package/dist/models/FleetDeviceConsumableCreateDTO.js +6 -2
- package/dist/models/FleetGeofenceCreateDTO.d.ts +3 -3
- package/dist/models/FleetGeofenceCreateDTO.js +9 -3
- package/dist/models/FleetTelemetryCreateDTO.d.ts +2 -2
- package/dist/models/FleetTelemetryCreateDTO.js +6 -2
- package/dist/models/GoodsReceiptDTO.d.ts +1 -1
- package/dist/models/GoodsReceiptDTO.js +3 -1
- package/dist/models/InsuranceBrokerCreateDTO.d.ts +2 -2
- package/dist/models/InsuranceBrokerCreateDTO.js +6 -2
- package/dist/models/InsuranceCarrierCreateDTO.d.ts +1 -1
- package/dist/models/InsuranceCarrierCreateDTO.js +3 -1
- package/dist/models/InsuranceClaimCreateDTO.d.ts +3 -3
- package/dist/models/InsuranceClaimCreateDTO.js +10 -4
- package/dist/models/InsuranceCommissionCreateDTO.d.ts +3 -3
- package/dist/models/InsuranceCommissionCreateDTO.js +9 -3
- package/dist/models/InsuranceCommissionStatementCreateDTO.d.ts +3 -3
- package/dist/models/InsuranceCommissionStatementCreateDTO.js +11 -5
- package/dist/models/InsurancePolicyCreateDTO.d.ts +4 -4
- package/dist/models/InsurancePolicyCreateDTO.js +14 -6
- package/dist/models/LoyaltyMemberEnrollDTO.d.ts +2 -2
- package/dist/models/LoyaltyMemberEnrollDTO.js +6 -2
- package/dist/models/ManufacturingProcessProfileCreateDTO.d.ts +1 -1
- package/dist/models/ManufacturingProcessProfileCreateDTO.js +3 -1
- package/dist/models/ManufacturingWorkOrderMaterialCreateDTO.d.ts +2 -2
- package/dist/models/ManufacturingWorkOrderMaterialCreateDTO.js +6 -2
- package/dist/models/PlatformPaymentMethodDTO.d.ts +1 -1
- package/dist/models/PlatformPaymentMethodDTO.js +3 -1
- package/dist/models/SocialWorkflowCreateDTO.d.ts +1 -1
- package/dist/models/SocialWorkflowCreateDTO.js +3 -1
- package/dist/models/StockDTO.d.ts +2 -2
- package/dist/models/StockDTO.js +6 -2
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @integrahub/vergefy-client@0.
|
|
1
|
+
# @integrahub/vergefy-client@0.13.0
|
|
2
2
|
|
|
3
3
|
A TypeScript SDK client for the your-vergefy-host.invalid API.
|
|
4
4
|
|
|
@@ -90,7 +90,7 @@ and is automatically generated by the
|
|
|
90
90
|
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
91
91
|
|
|
92
92
|
- API version: `2026-05-30`
|
|
93
|
-
- Package version: `0.
|
|
93
|
+
- Package version: `0.13.0`
|
|
94
94
|
- Generator version: `7.22.0`
|
|
95
95
|
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
96
96
|
|
|
@@ -11,9 +11,12 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
13
|
import { type DataResponseDTOFlagDTO } from '../models/DataResponseDTOFlagDTO';
|
|
14
|
+
import { type DataResponseDTOFlagEnvironmentDefinitionDTO } from '../models/DataResponseDTOFlagEnvironmentDefinitionDTO';
|
|
14
15
|
import { type DataResponseDTOFlagEnvironmentValueDTO } from '../models/DataResponseDTOFlagEnvironmentValueDTO';
|
|
16
|
+
import { type DataResponseDTOListFlagEnvironmentDefinitionDTO } from '../models/DataResponseDTOListFlagEnvironmentDefinitionDTO';
|
|
15
17
|
import { type DataResponseDTOListFlagEvaluationResultDTO } from '../models/DataResponseDTOListFlagEvaluationResultDTO';
|
|
16
18
|
import { type FlagCreateApiDTO } from '../models/FlagCreateApiDTO';
|
|
19
|
+
import { type FlagEnvironmentCreateApiDTO } from '../models/FlagEnvironmentCreateApiDTO';
|
|
17
20
|
import { type FlagEnvironmentValueDTO } from '../models/FlagEnvironmentValueDTO';
|
|
18
21
|
import { type FlagEvaluationRequestDTO } from '../models/FlagEvaluationRequestDTO';
|
|
19
22
|
import { type FlagUpdateApiDTO } from '../models/FlagUpdateApiDTO';
|
|
@@ -77,13 +80,33 @@ export interface AFL006Request {
|
|
|
77
80
|
}
|
|
78
81
|
export interface AFL007Request {
|
|
79
82
|
id: string;
|
|
80
|
-
environment:
|
|
83
|
+
environment: string;
|
|
81
84
|
xAppAccountId: string;
|
|
82
85
|
flagEnvironmentValueDTO: Omit<FlagEnvironmentValueDTO, 'flagId'>;
|
|
83
86
|
acceptLanguage?: string;
|
|
84
87
|
vergefyVersion?: string;
|
|
85
88
|
acceptTimezone?: string;
|
|
86
89
|
}
|
|
90
|
+
export interface AFL008Request {
|
|
91
|
+
xAppAccountId: string;
|
|
92
|
+
acceptLanguage?: string;
|
|
93
|
+
vergefyVersion?: string;
|
|
94
|
+
acceptTimezone?: string;
|
|
95
|
+
}
|
|
96
|
+
export interface AFL009Request {
|
|
97
|
+
xAppAccountId: string;
|
|
98
|
+
flagEnvironmentCreateApiDTO: FlagEnvironmentCreateApiDTO;
|
|
99
|
+
acceptLanguage?: string;
|
|
100
|
+
vergefyVersion?: string;
|
|
101
|
+
acceptTimezone?: string;
|
|
102
|
+
}
|
|
103
|
+
export interface AFL010Request {
|
|
104
|
+
environment: string;
|
|
105
|
+
xAppAccountId: string;
|
|
106
|
+
acceptLanguage?: string;
|
|
107
|
+
vergefyVersion?: string;
|
|
108
|
+
acceptTimezone?: string;
|
|
109
|
+
}
|
|
87
110
|
/**
|
|
88
111
|
*
|
|
89
112
|
*/
|
|
@@ -177,15 +200,57 @@ export declare class APIAFLFlagApi extends runtime.BaseAPI {
|
|
|
177
200
|
*/
|
|
178
201
|
aFL007RequestOpts(requestParameters: AFL007Request): Promise<runtime.RequestOpts>;
|
|
179
202
|
/**
|
|
180
|
-
* Sets the value of a flag in one environment, creating the row on first write. The environment in the path is authoritative; any environment in the body is ignored.
|
|
203
|
+
* Sets the value of a flag in one environment, creating the row on first write. The environment in the path is authoritative; any environment in the body is ignored. The environment is a tenant-defined KEY (AFL008 lists them), not one of a fixed three; an unknown key is a 404 rather than a silent create.
|
|
181
204
|
* AFL007 - Set Flag Environment Value
|
|
182
205
|
*/
|
|
183
206
|
aFL007Raw(requestParameters: AFL007Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseDTOFlagEnvironmentValueDTO>>;
|
|
184
207
|
/**
|
|
185
|
-
* Sets the value of a flag in one environment, creating the row on first write. The environment in the path is authoritative; any environment in the body is ignored.
|
|
208
|
+
* Sets the value of a flag in one environment, creating the row on first write. The environment in the path is authoritative; any environment in the body is ignored. The environment is a tenant-defined KEY (AFL008 lists them), not one of a fixed three; an unknown key is a 404 rather than a silent create.
|
|
186
209
|
* AFL007 - Set Flag Environment Value
|
|
187
210
|
*/
|
|
188
211
|
aFL007(requestParameters: AFL007Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseDTOFlagEnvironmentValueDTO>;
|
|
212
|
+
/**
|
|
213
|
+
* Creates request options for aFL008 without sending the request
|
|
214
|
+
*/
|
|
215
|
+
aFL008RequestOpts(requestParameters: AFL008Request): Promise<runtime.RequestOpts>;
|
|
216
|
+
/**
|
|
217
|
+
* Lists the environments this workspace has defined, in display order. The set is tenant-defined and unbounded — callers must treat the environment as an opaque key and must not assume the three that ship by default.
|
|
218
|
+
* AFL008 - List Flag Environments
|
|
219
|
+
*/
|
|
220
|
+
aFL008Raw(requestParameters: AFL008Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseDTOListFlagEnvironmentDefinitionDTO>>;
|
|
221
|
+
/**
|
|
222
|
+
* Lists the environments this workspace has defined, in display order. The set is tenant-defined and unbounded — callers must treat the environment as an opaque key and must not assume the three that ship by default.
|
|
223
|
+
* AFL008 - List Flag Environments
|
|
224
|
+
*/
|
|
225
|
+
aFL008(requestParameters: AFL008Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseDTOListFlagEnvironmentDefinitionDTO>;
|
|
226
|
+
/**
|
|
227
|
+
* Creates request options for aFL009 without sending the request
|
|
228
|
+
*/
|
|
229
|
+
aFL009RequestOpts(requestParameters: AFL009Request): Promise<runtime.RequestOpts>;
|
|
230
|
+
/**
|
|
231
|
+
* Defines a new environment for this workspace. Environments are tenant-defined: the three seeded at provisioning (PRODUCTION, PREVIEW, DEVELOPMENT) are a starting point, not the permitted set. The key is case-insensitive and becomes addressable immediately on AFL006 and AFL007.
|
|
232
|
+
* AFL009 - Define Flag Environment
|
|
233
|
+
*/
|
|
234
|
+
aFL009Raw(requestParameters: AFL009Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseDTOFlagEnvironmentDefinitionDTO>>;
|
|
235
|
+
/**
|
|
236
|
+
* Defines a new environment for this workspace. Environments are tenant-defined: the three seeded at provisioning (PRODUCTION, PREVIEW, DEVELOPMENT) are a starting point, not the permitted set. The key is case-insensitive and becomes addressable immediately on AFL006 and AFL007.
|
|
237
|
+
* AFL009 - Define Flag Environment
|
|
238
|
+
*/
|
|
239
|
+
aFL009(requestParameters: AFL009Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseDTOFlagEnvironmentDefinitionDTO>;
|
|
240
|
+
/**
|
|
241
|
+
* Creates request options for aFL010 without sending the request
|
|
242
|
+
*/
|
|
243
|
+
aFL010RequestOpts(requestParameters: AFL010Request): Promise<runtime.RequestOpts>;
|
|
244
|
+
/**
|
|
245
|
+
* Removes an environment from this workspace. Refused with 400 while any flag still holds a value in it — deleting would discard that configuration irrecoverably behind what looks like an ordinary success. Clear the values first. Soft delete, so the key can be reused afterwards. A seeded built-in is deletable like any other.
|
|
246
|
+
* AFL010 - Delete Flag Environment
|
|
247
|
+
*/
|
|
248
|
+
aFL010Raw(requestParameters: AFL010Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
249
|
+
/**
|
|
250
|
+
* Removes an environment from this workspace. Refused with 400 while any flag still holds a value in it — deleting would discard that configuration irrecoverably behind what looks like an ordinary success. Clear the values first. Soft delete, so the key can be reused afterwards. A seeded built-in is deletable like any other.
|
|
251
|
+
* AFL010 - Delete Flag Environment
|
|
252
|
+
*/
|
|
253
|
+
aFL010(requestParameters: AFL010Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
189
254
|
}
|
|
190
255
|
/**
|
|
191
256
|
* @export
|
|
@@ -198,12 +263,3 @@ export declare const AFL004EntityStatusesEnum: {
|
|
|
198
263
|
readonly Pending: "PENDING";
|
|
199
264
|
};
|
|
200
265
|
export type AFL004EntityStatusesEnum = typeof AFL004EntityStatusesEnum[keyof typeof AFL004EntityStatusesEnum];
|
|
201
|
-
/**
|
|
202
|
-
* @export
|
|
203
|
-
*/
|
|
204
|
-
export declare const AFL007EnvironmentEnum: {
|
|
205
|
-
readonly Production: "PRODUCTION";
|
|
206
|
-
readonly Preview: "PREVIEW";
|
|
207
|
-
readonly Development: "DEVELOPMENT";
|
|
208
|
-
};
|
|
209
|
-
export type AFL007EnvironmentEnum = typeof AFL007EnvironmentEnum[keyof typeof AFL007EnvironmentEnum];
|
|
@@ -22,12 +22,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
25
|
+
exports.AFL004EntityStatusesEnum = exports.APIAFLFlagApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
27
|
const DataResponseDTOFlagDTO_1 = require("../models/DataResponseDTOFlagDTO");
|
|
28
|
+
const DataResponseDTOFlagEnvironmentDefinitionDTO_1 = require("../models/DataResponseDTOFlagEnvironmentDefinitionDTO");
|
|
28
29
|
const DataResponseDTOFlagEnvironmentValueDTO_1 = require("../models/DataResponseDTOFlagEnvironmentValueDTO");
|
|
30
|
+
const DataResponseDTOListFlagEnvironmentDefinitionDTO_1 = require("../models/DataResponseDTOListFlagEnvironmentDefinitionDTO");
|
|
29
31
|
const DataResponseDTOListFlagEvaluationResultDTO_1 = require("../models/DataResponseDTOListFlagEvaluationResultDTO");
|
|
30
32
|
const FlagCreateApiDTO_1 = require("../models/FlagCreateApiDTO");
|
|
33
|
+
const FlagEnvironmentCreateApiDTO_1 = require("../models/FlagEnvironmentCreateApiDTO");
|
|
31
34
|
const FlagEnvironmentValueDTO_1 = require("../models/FlagEnvironmentValueDTO");
|
|
32
35
|
const FlagEvaluationRequestDTO_1 = require("../models/FlagEvaluationRequestDTO");
|
|
33
36
|
const FlagUpdateApiDTO_1 = require("../models/FlagUpdateApiDTO");
|
|
@@ -512,7 +515,7 @@ class APIAFLFlagApi extends runtime.BaseAPI {
|
|
|
512
515
|
});
|
|
513
516
|
}
|
|
514
517
|
/**
|
|
515
|
-
* Sets the value of a flag in one environment, creating the row on first write. The environment in the path is authoritative; any environment in the body is ignored.
|
|
518
|
+
* Sets the value of a flag in one environment, creating the row on first write. The environment in the path is authoritative; any environment in the body is ignored. The environment is a tenant-defined KEY (AFL008 lists them), not one of a fixed three; an unknown key is a 404 rather than a silent create.
|
|
516
519
|
* AFL007 - Set Flag Environment Value
|
|
517
520
|
*/
|
|
518
521
|
aFL007Raw(requestParameters, initOverrides) {
|
|
@@ -523,7 +526,7 @@ class APIAFLFlagApi extends runtime.BaseAPI {
|
|
|
523
526
|
});
|
|
524
527
|
}
|
|
525
528
|
/**
|
|
526
|
-
* Sets the value of a flag in one environment, creating the row on first write. The environment in the path is authoritative; any environment in the body is ignored.
|
|
529
|
+
* Sets the value of a flag in one environment, creating the row on first write. The environment in the path is authoritative; any environment in the body is ignored. The environment is a tenant-defined KEY (AFL008 lists them), not one of a fixed three; an unknown key is a 404 rather than a silent create.
|
|
527
530
|
* AFL007 - Set Flag Environment Value
|
|
528
531
|
*/
|
|
529
532
|
aFL007(requestParameters, initOverrides) {
|
|
@@ -532,6 +535,191 @@ class APIAFLFlagApi extends runtime.BaseAPI {
|
|
|
532
535
|
return yield response.value();
|
|
533
536
|
});
|
|
534
537
|
}
|
|
538
|
+
/**
|
|
539
|
+
* Creates request options for aFL008 without sending the request
|
|
540
|
+
*/
|
|
541
|
+
aFL008RequestOpts(requestParameters) {
|
|
542
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
543
|
+
if (requestParameters['xAppAccountId'] == null) {
|
|
544
|
+
throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aFL008().');
|
|
545
|
+
}
|
|
546
|
+
const queryParameters = {};
|
|
547
|
+
const headerParameters = {};
|
|
548
|
+
if (requestParameters['acceptLanguage'] != null) {
|
|
549
|
+
headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
|
|
550
|
+
}
|
|
551
|
+
if (requestParameters['xAppAccountId'] != null) {
|
|
552
|
+
headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
|
|
553
|
+
}
|
|
554
|
+
if (requestParameters['vergefyVersion'] != null) {
|
|
555
|
+
headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
|
|
556
|
+
}
|
|
557
|
+
if (requestParameters['acceptTimezone'] != null) {
|
|
558
|
+
headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
|
|
559
|
+
}
|
|
560
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
561
|
+
const token = this.configuration.accessToken;
|
|
562
|
+
const tokenString = yield token("BearerAuth", []);
|
|
563
|
+
if (tokenString) {
|
|
564
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
let urlPath = `/api/flags/environments`;
|
|
568
|
+
return {
|
|
569
|
+
path: urlPath,
|
|
570
|
+
method: 'GET',
|
|
571
|
+
headers: headerParameters,
|
|
572
|
+
query: queryParameters,
|
|
573
|
+
};
|
|
574
|
+
});
|
|
575
|
+
}
|
|
576
|
+
/**
|
|
577
|
+
* Lists the environments this workspace has defined, in display order. The set is tenant-defined and unbounded — callers must treat the environment as an opaque key and must not assume the three that ship by default.
|
|
578
|
+
* AFL008 - List Flag Environments
|
|
579
|
+
*/
|
|
580
|
+
aFL008Raw(requestParameters, initOverrides) {
|
|
581
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
582
|
+
const requestOptions = yield this.aFL008RequestOpts(requestParameters);
|
|
583
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
584
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOListFlagEnvironmentDefinitionDTO_1.DataResponseDTOListFlagEnvironmentDefinitionDTOFromJSON)(jsonValue));
|
|
585
|
+
});
|
|
586
|
+
}
|
|
587
|
+
/**
|
|
588
|
+
* Lists the environments this workspace has defined, in display order. The set is tenant-defined and unbounded — callers must treat the environment as an opaque key and must not assume the three that ship by default.
|
|
589
|
+
* AFL008 - List Flag Environments
|
|
590
|
+
*/
|
|
591
|
+
aFL008(requestParameters, initOverrides) {
|
|
592
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
593
|
+
const response = yield this.aFL008Raw(requestParameters, initOverrides);
|
|
594
|
+
return yield response.value();
|
|
595
|
+
});
|
|
596
|
+
}
|
|
597
|
+
/**
|
|
598
|
+
* Creates request options for aFL009 without sending the request
|
|
599
|
+
*/
|
|
600
|
+
aFL009RequestOpts(requestParameters) {
|
|
601
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
602
|
+
if (requestParameters['xAppAccountId'] == null) {
|
|
603
|
+
throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aFL009().');
|
|
604
|
+
}
|
|
605
|
+
if (requestParameters['flagEnvironmentCreateApiDTO'] == null) {
|
|
606
|
+
throw new runtime.RequiredError('flagEnvironmentCreateApiDTO', 'Required parameter "flagEnvironmentCreateApiDTO" was null or undefined when calling aFL009().');
|
|
607
|
+
}
|
|
608
|
+
const queryParameters = {};
|
|
609
|
+
const headerParameters = {};
|
|
610
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
611
|
+
if (requestParameters['acceptLanguage'] != null) {
|
|
612
|
+
headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
|
|
613
|
+
}
|
|
614
|
+
if (requestParameters['xAppAccountId'] != null) {
|
|
615
|
+
headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
|
|
616
|
+
}
|
|
617
|
+
if (requestParameters['vergefyVersion'] != null) {
|
|
618
|
+
headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
|
|
619
|
+
}
|
|
620
|
+
if (requestParameters['acceptTimezone'] != null) {
|
|
621
|
+
headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
|
|
622
|
+
}
|
|
623
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
624
|
+
const token = this.configuration.accessToken;
|
|
625
|
+
const tokenString = yield token("BearerAuth", []);
|
|
626
|
+
if (tokenString) {
|
|
627
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
let urlPath = `/api/flags/environments`;
|
|
631
|
+
return {
|
|
632
|
+
path: urlPath,
|
|
633
|
+
method: 'POST',
|
|
634
|
+
headers: headerParameters,
|
|
635
|
+
query: queryParameters,
|
|
636
|
+
body: (0, FlagEnvironmentCreateApiDTO_1.FlagEnvironmentCreateApiDTOToJSON)(requestParameters['flagEnvironmentCreateApiDTO']),
|
|
637
|
+
};
|
|
638
|
+
});
|
|
639
|
+
}
|
|
640
|
+
/**
|
|
641
|
+
* Defines a new environment for this workspace. Environments are tenant-defined: the three seeded at provisioning (PRODUCTION, PREVIEW, DEVELOPMENT) are a starting point, not the permitted set. The key is case-insensitive and becomes addressable immediately on AFL006 and AFL007.
|
|
642
|
+
* AFL009 - Define Flag Environment
|
|
643
|
+
*/
|
|
644
|
+
aFL009Raw(requestParameters, initOverrides) {
|
|
645
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
646
|
+
const requestOptions = yield this.aFL009RequestOpts(requestParameters);
|
|
647
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
648
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, DataResponseDTOFlagEnvironmentDefinitionDTO_1.DataResponseDTOFlagEnvironmentDefinitionDTOFromJSON)(jsonValue));
|
|
649
|
+
});
|
|
650
|
+
}
|
|
651
|
+
/**
|
|
652
|
+
* Defines a new environment for this workspace. Environments are tenant-defined: the three seeded at provisioning (PRODUCTION, PREVIEW, DEVELOPMENT) are a starting point, not the permitted set. The key is case-insensitive and becomes addressable immediately on AFL006 and AFL007.
|
|
653
|
+
* AFL009 - Define Flag Environment
|
|
654
|
+
*/
|
|
655
|
+
aFL009(requestParameters, initOverrides) {
|
|
656
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
657
|
+
const response = yield this.aFL009Raw(requestParameters, initOverrides);
|
|
658
|
+
return yield response.value();
|
|
659
|
+
});
|
|
660
|
+
}
|
|
661
|
+
/**
|
|
662
|
+
* Creates request options for aFL010 without sending the request
|
|
663
|
+
*/
|
|
664
|
+
aFL010RequestOpts(requestParameters) {
|
|
665
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
666
|
+
if (requestParameters['environment'] == null) {
|
|
667
|
+
throw new runtime.RequiredError('environment', 'Required parameter "environment" was null or undefined when calling aFL010().');
|
|
668
|
+
}
|
|
669
|
+
if (requestParameters['xAppAccountId'] == null) {
|
|
670
|
+
throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aFL010().');
|
|
671
|
+
}
|
|
672
|
+
const queryParameters = {};
|
|
673
|
+
const headerParameters = {};
|
|
674
|
+
if (requestParameters['acceptLanguage'] != null) {
|
|
675
|
+
headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
|
|
676
|
+
}
|
|
677
|
+
if (requestParameters['xAppAccountId'] != null) {
|
|
678
|
+
headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
|
|
679
|
+
}
|
|
680
|
+
if (requestParameters['vergefyVersion'] != null) {
|
|
681
|
+
headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
|
|
682
|
+
}
|
|
683
|
+
if (requestParameters['acceptTimezone'] != null) {
|
|
684
|
+
headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
|
|
685
|
+
}
|
|
686
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
687
|
+
const token = this.configuration.accessToken;
|
|
688
|
+
const tokenString = yield token("BearerAuth", []);
|
|
689
|
+
if (tokenString) {
|
|
690
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
691
|
+
}
|
|
692
|
+
}
|
|
693
|
+
let urlPath = `/api/flags/environments/{environment}`;
|
|
694
|
+
urlPath = urlPath.replace('{environment}', encodeURIComponent(String(requestParameters['environment'])));
|
|
695
|
+
return {
|
|
696
|
+
path: urlPath,
|
|
697
|
+
method: 'DELETE',
|
|
698
|
+
headers: headerParameters,
|
|
699
|
+
query: queryParameters,
|
|
700
|
+
};
|
|
701
|
+
});
|
|
702
|
+
}
|
|
703
|
+
/**
|
|
704
|
+
* Removes an environment from this workspace. Refused with 400 while any flag still holds a value in it — deleting would discard that configuration irrecoverably behind what looks like an ordinary success. Clear the values first. Soft delete, so the key can be reused afterwards. A seeded built-in is deletable like any other.
|
|
705
|
+
* AFL010 - Delete Flag Environment
|
|
706
|
+
*/
|
|
707
|
+
aFL010Raw(requestParameters, initOverrides) {
|
|
708
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
709
|
+
const requestOptions = yield this.aFL010RequestOpts(requestParameters);
|
|
710
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
711
|
+
return new runtime.VoidApiResponse(response);
|
|
712
|
+
});
|
|
713
|
+
}
|
|
714
|
+
/**
|
|
715
|
+
* Removes an environment from this workspace. Refused with 400 while any flag still holds a value in it — deleting would discard that configuration irrecoverably behind what looks like an ordinary success. Clear the values first. Soft delete, so the key can be reused afterwards. A seeded built-in is deletable like any other.
|
|
716
|
+
* AFL010 - Delete Flag Environment
|
|
717
|
+
*/
|
|
718
|
+
aFL010(requestParameters, initOverrides) {
|
|
719
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
720
|
+
yield this.aFL010Raw(requestParameters, initOverrides);
|
|
721
|
+
});
|
|
722
|
+
}
|
|
535
723
|
}
|
|
536
724
|
exports.APIAFLFlagApi = APIAFLFlagApi;
|
|
537
725
|
/**
|
|
@@ -544,11 +732,3 @@ exports.AFL004EntityStatusesEnum = {
|
|
|
544
732
|
Deleted: 'DELETED',
|
|
545
733
|
Pending: 'PENDING'
|
|
546
734
|
};
|
|
547
|
-
/**
|
|
548
|
-
* @export
|
|
549
|
-
*/
|
|
550
|
-
exports.AFL007EnvironmentEnum = {
|
|
551
|
-
Production: 'PRODUCTION',
|
|
552
|
-
Preview: 'PREVIEW',
|
|
553
|
-
Development: 'DEVELOPMENT'
|
|
554
|
-
};
|
|
@@ -22,9 +22,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
24
|
import { DataResponseDTOFlagDTOFromJSON, } from '../models/DataResponseDTOFlagDTO';
|
|
25
|
+
import { DataResponseDTOFlagEnvironmentDefinitionDTOFromJSON, } from '../models/DataResponseDTOFlagEnvironmentDefinitionDTO';
|
|
25
26
|
import { DataResponseDTOFlagEnvironmentValueDTOFromJSON, } from '../models/DataResponseDTOFlagEnvironmentValueDTO';
|
|
27
|
+
import { DataResponseDTOListFlagEnvironmentDefinitionDTOFromJSON, } from '../models/DataResponseDTOListFlagEnvironmentDefinitionDTO';
|
|
26
28
|
import { DataResponseDTOListFlagEvaluationResultDTOFromJSON, } from '../models/DataResponseDTOListFlagEvaluationResultDTO';
|
|
27
29
|
import { FlagCreateApiDTOToJSON, } from '../models/FlagCreateApiDTO';
|
|
30
|
+
import { FlagEnvironmentCreateApiDTOToJSON, } from '../models/FlagEnvironmentCreateApiDTO';
|
|
28
31
|
import { FlagEnvironmentValueDTOToJSON, } from '../models/FlagEnvironmentValueDTO';
|
|
29
32
|
import { FlagEvaluationRequestDTOToJSON, } from '../models/FlagEvaluationRequestDTO';
|
|
30
33
|
import { FlagUpdateApiDTOToJSON, } from '../models/FlagUpdateApiDTO';
|
|
@@ -509,7 +512,7 @@ export class APIAFLFlagApi extends runtime.BaseAPI {
|
|
|
509
512
|
});
|
|
510
513
|
}
|
|
511
514
|
/**
|
|
512
|
-
* Sets the value of a flag in one environment, creating the row on first write. The environment in the path is authoritative; any environment in the body is ignored.
|
|
515
|
+
* Sets the value of a flag in one environment, creating the row on first write. The environment in the path is authoritative; any environment in the body is ignored. The environment is a tenant-defined KEY (AFL008 lists them), not one of a fixed three; an unknown key is a 404 rather than a silent create.
|
|
513
516
|
* AFL007 - Set Flag Environment Value
|
|
514
517
|
*/
|
|
515
518
|
aFL007Raw(requestParameters, initOverrides) {
|
|
@@ -520,7 +523,7 @@ export class APIAFLFlagApi extends runtime.BaseAPI {
|
|
|
520
523
|
});
|
|
521
524
|
}
|
|
522
525
|
/**
|
|
523
|
-
* Sets the value of a flag in one environment, creating the row on first write. The environment in the path is authoritative; any environment in the body is ignored.
|
|
526
|
+
* Sets the value of a flag in one environment, creating the row on first write. The environment in the path is authoritative; any environment in the body is ignored. The environment is a tenant-defined KEY (AFL008 lists them), not one of a fixed three; an unknown key is a 404 rather than a silent create.
|
|
524
527
|
* AFL007 - Set Flag Environment Value
|
|
525
528
|
*/
|
|
526
529
|
aFL007(requestParameters, initOverrides) {
|
|
@@ -529,6 +532,191 @@ export class APIAFLFlagApi extends runtime.BaseAPI {
|
|
|
529
532
|
return yield response.value();
|
|
530
533
|
});
|
|
531
534
|
}
|
|
535
|
+
/**
|
|
536
|
+
* Creates request options for aFL008 without sending the request
|
|
537
|
+
*/
|
|
538
|
+
aFL008RequestOpts(requestParameters) {
|
|
539
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
540
|
+
if (requestParameters['xAppAccountId'] == null) {
|
|
541
|
+
throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aFL008().');
|
|
542
|
+
}
|
|
543
|
+
const queryParameters = {};
|
|
544
|
+
const headerParameters = {};
|
|
545
|
+
if (requestParameters['acceptLanguage'] != null) {
|
|
546
|
+
headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
|
|
547
|
+
}
|
|
548
|
+
if (requestParameters['xAppAccountId'] != null) {
|
|
549
|
+
headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
|
|
550
|
+
}
|
|
551
|
+
if (requestParameters['vergefyVersion'] != null) {
|
|
552
|
+
headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
|
|
553
|
+
}
|
|
554
|
+
if (requestParameters['acceptTimezone'] != null) {
|
|
555
|
+
headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
|
|
556
|
+
}
|
|
557
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
558
|
+
const token = this.configuration.accessToken;
|
|
559
|
+
const tokenString = yield token("BearerAuth", []);
|
|
560
|
+
if (tokenString) {
|
|
561
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
562
|
+
}
|
|
563
|
+
}
|
|
564
|
+
let urlPath = `/api/flags/environments`;
|
|
565
|
+
return {
|
|
566
|
+
path: urlPath,
|
|
567
|
+
method: 'GET',
|
|
568
|
+
headers: headerParameters,
|
|
569
|
+
query: queryParameters,
|
|
570
|
+
};
|
|
571
|
+
});
|
|
572
|
+
}
|
|
573
|
+
/**
|
|
574
|
+
* Lists the environments this workspace has defined, in display order. The set is tenant-defined and unbounded — callers must treat the environment as an opaque key and must not assume the three that ship by default.
|
|
575
|
+
* AFL008 - List Flag Environments
|
|
576
|
+
*/
|
|
577
|
+
aFL008Raw(requestParameters, initOverrides) {
|
|
578
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
579
|
+
const requestOptions = yield this.aFL008RequestOpts(requestParameters);
|
|
580
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
581
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseDTOListFlagEnvironmentDefinitionDTOFromJSON(jsonValue));
|
|
582
|
+
});
|
|
583
|
+
}
|
|
584
|
+
/**
|
|
585
|
+
* Lists the environments this workspace has defined, in display order. The set is tenant-defined and unbounded — callers must treat the environment as an opaque key and must not assume the three that ship by default.
|
|
586
|
+
* AFL008 - List Flag Environments
|
|
587
|
+
*/
|
|
588
|
+
aFL008(requestParameters, initOverrides) {
|
|
589
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
590
|
+
const response = yield this.aFL008Raw(requestParameters, initOverrides);
|
|
591
|
+
return yield response.value();
|
|
592
|
+
});
|
|
593
|
+
}
|
|
594
|
+
/**
|
|
595
|
+
* Creates request options for aFL009 without sending the request
|
|
596
|
+
*/
|
|
597
|
+
aFL009RequestOpts(requestParameters) {
|
|
598
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
599
|
+
if (requestParameters['xAppAccountId'] == null) {
|
|
600
|
+
throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aFL009().');
|
|
601
|
+
}
|
|
602
|
+
if (requestParameters['flagEnvironmentCreateApiDTO'] == null) {
|
|
603
|
+
throw new runtime.RequiredError('flagEnvironmentCreateApiDTO', 'Required parameter "flagEnvironmentCreateApiDTO" was null or undefined when calling aFL009().');
|
|
604
|
+
}
|
|
605
|
+
const queryParameters = {};
|
|
606
|
+
const headerParameters = {};
|
|
607
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
608
|
+
if (requestParameters['acceptLanguage'] != null) {
|
|
609
|
+
headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
|
|
610
|
+
}
|
|
611
|
+
if (requestParameters['xAppAccountId'] != null) {
|
|
612
|
+
headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
|
|
613
|
+
}
|
|
614
|
+
if (requestParameters['vergefyVersion'] != null) {
|
|
615
|
+
headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
|
|
616
|
+
}
|
|
617
|
+
if (requestParameters['acceptTimezone'] != null) {
|
|
618
|
+
headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
|
|
619
|
+
}
|
|
620
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
621
|
+
const token = this.configuration.accessToken;
|
|
622
|
+
const tokenString = yield token("BearerAuth", []);
|
|
623
|
+
if (tokenString) {
|
|
624
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
let urlPath = `/api/flags/environments`;
|
|
628
|
+
return {
|
|
629
|
+
path: urlPath,
|
|
630
|
+
method: 'POST',
|
|
631
|
+
headers: headerParameters,
|
|
632
|
+
query: queryParameters,
|
|
633
|
+
body: FlagEnvironmentCreateApiDTOToJSON(requestParameters['flagEnvironmentCreateApiDTO']),
|
|
634
|
+
};
|
|
635
|
+
});
|
|
636
|
+
}
|
|
637
|
+
/**
|
|
638
|
+
* Defines a new environment for this workspace. Environments are tenant-defined: the three seeded at provisioning (PRODUCTION, PREVIEW, DEVELOPMENT) are a starting point, not the permitted set. The key is case-insensitive and becomes addressable immediately on AFL006 and AFL007.
|
|
639
|
+
* AFL009 - Define Flag Environment
|
|
640
|
+
*/
|
|
641
|
+
aFL009Raw(requestParameters, initOverrides) {
|
|
642
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
643
|
+
const requestOptions = yield this.aFL009RequestOpts(requestParameters);
|
|
644
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
645
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseDTOFlagEnvironmentDefinitionDTOFromJSON(jsonValue));
|
|
646
|
+
});
|
|
647
|
+
}
|
|
648
|
+
/**
|
|
649
|
+
* Defines a new environment for this workspace. Environments are tenant-defined: the three seeded at provisioning (PRODUCTION, PREVIEW, DEVELOPMENT) are a starting point, not the permitted set. The key is case-insensitive and becomes addressable immediately on AFL006 and AFL007.
|
|
650
|
+
* AFL009 - Define Flag Environment
|
|
651
|
+
*/
|
|
652
|
+
aFL009(requestParameters, initOverrides) {
|
|
653
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
654
|
+
const response = yield this.aFL009Raw(requestParameters, initOverrides);
|
|
655
|
+
return yield response.value();
|
|
656
|
+
});
|
|
657
|
+
}
|
|
658
|
+
/**
|
|
659
|
+
* Creates request options for aFL010 without sending the request
|
|
660
|
+
*/
|
|
661
|
+
aFL010RequestOpts(requestParameters) {
|
|
662
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
663
|
+
if (requestParameters['environment'] == null) {
|
|
664
|
+
throw new runtime.RequiredError('environment', 'Required parameter "environment" was null or undefined when calling aFL010().');
|
|
665
|
+
}
|
|
666
|
+
if (requestParameters['xAppAccountId'] == null) {
|
|
667
|
+
throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling aFL010().');
|
|
668
|
+
}
|
|
669
|
+
const queryParameters = {};
|
|
670
|
+
const headerParameters = {};
|
|
671
|
+
if (requestParameters['acceptLanguage'] != null) {
|
|
672
|
+
headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
|
|
673
|
+
}
|
|
674
|
+
if (requestParameters['xAppAccountId'] != null) {
|
|
675
|
+
headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
|
|
676
|
+
}
|
|
677
|
+
if (requestParameters['vergefyVersion'] != null) {
|
|
678
|
+
headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
|
|
679
|
+
}
|
|
680
|
+
if (requestParameters['acceptTimezone'] != null) {
|
|
681
|
+
headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
|
|
682
|
+
}
|
|
683
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
684
|
+
const token = this.configuration.accessToken;
|
|
685
|
+
const tokenString = yield token("BearerAuth", []);
|
|
686
|
+
if (tokenString) {
|
|
687
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
let urlPath = `/api/flags/environments/{environment}`;
|
|
691
|
+
urlPath = urlPath.replace('{environment}', encodeURIComponent(String(requestParameters['environment'])));
|
|
692
|
+
return {
|
|
693
|
+
path: urlPath,
|
|
694
|
+
method: 'DELETE',
|
|
695
|
+
headers: headerParameters,
|
|
696
|
+
query: queryParameters,
|
|
697
|
+
};
|
|
698
|
+
});
|
|
699
|
+
}
|
|
700
|
+
/**
|
|
701
|
+
* Removes an environment from this workspace. Refused with 400 while any flag still holds a value in it — deleting would discard that configuration irrecoverably behind what looks like an ordinary success. Clear the values first. Soft delete, so the key can be reused afterwards. A seeded built-in is deletable like any other.
|
|
702
|
+
* AFL010 - Delete Flag Environment
|
|
703
|
+
*/
|
|
704
|
+
aFL010Raw(requestParameters, initOverrides) {
|
|
705
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
706
|
+
const requestOptions = yield this.aFL010RequestOpts(requestParameters);
|
|
707
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
708
|
+
return new runtime.VoidApiResponse(response);
|
|
709
|
+
});
|
|
710
|
+
}
|
|
711
|
+
/**
|
|
712
|
+
* Removes an environment from this workspace. Refused with 400 while any flag still holds a value in it — deleting would discard that configuration irrecoverably behind what looks like an ordinary success. Clear the values first. Soft delete, so the key can be reused afterwards. A seeded built-in is deletable like any other.
|
|
713
|
+
* AFL010 - Delete Flag Environment
|
|
714
|
+
*/
|
|
715
|
+
aFL010(requestParameters, initOverrides) {
|
|
716
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
717
|
+
yield this.aFL010Raw(requestParameters, initOverrides);
|
|
718
|
+
});
|
|
719
|
+
}
|
|
532
720
|
}
|
|
533
721
|
/**
|
|
534
722
|
* @export
|
|
@@ -540,11 +728,3 @@ export const AFL004EntityStatusesEnum = {
|
|
|
540
728
|
Deleted: 'DELETED',
|
|
541
729
|
Pending: 'PENDING'
|
|
542
730
|
};
|
|
543
|
-
/**
|
|
544
|
-
* @export
|
|
545
|
-
*/
|
|
546
|
-
export const AFL007EnvironmentEnum = {
|
|
547
|
-
Production: 'PRODUCTION',
|
|
548
|
-
Preview: 'PREVIEW',
|
|
549
|
-
Development: 'DEVELOPMENT'
|
|
550
|
-
};
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* Mirrors the canonical Java `ext/Telemetry`.
|
|
9
9
|
*/
|
|
10
10
|
/** Kept in sync with `vergefySdkVersion` (the published artifact version). */
|
|
11
|
-
export const VERSION = '0.
|
|
11
|
+
export const VERSION = '0.13.0';
|
|
12
12
|
const NAME = 'vergefy-typescript-client';
|
|
13
13
|
/** The `User-Agent` value, e.g. `vergefy-typescript-client/0.1.0`. */
|
|
14
14
|
export function userAgent() {
|
|
@@ -37,6 +37,12 @@ export const AffiliateTierHistoryDTOReasonEnum = {
|
|
|
37
37
|
* Check if a given object implements the AffiliateTierHistoryDTO interface.
|
|
38
38
|
*/
|
|
39
39
|
export function instanceOfAffiliateTierHistoryDTO(value) {
|
|
40
|
+
if (!('affiliateAccountId' in value) || value['affiliateAccountId'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('newTierId' in value) || value['newTierId'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
if (!('reason' in value) || value['reason'] === undefined)
|
|
45
|
+
return false;
|
|
40
46
|
return true;
|
|
41
47
|
}
|
|
42
48
|
export function AffiliateTierHistoryDTOFromJSON(json) {
|
|
@@ -47,7 +53,7 @@ export function AffiliateTierHistoryDTOFromJSONTyped(json, ignoreDiscriminator)
|
|
|
47
53
|
return json;
|
|
48
54
|
}
|
|
49
55
|
return {
|
|
50
|
-
'affiliateAccountId': json['affiliateAccountId']
|
|
56
|
+
'affiliateAccountId': json['affiliateAccountId'],
|
|
51
57
|
'changedAt': json['changedAt'] == null ? undefined : (new Date(json['changedAt'])),
|
|
52
58
|
'changedBy': json['changedBy'] == null ? undefined : json['changedBy'],
|
|
53
59
|
'createdAt': json['createdAt'] == null ? undefined : (new Date(json['createdAt'])),
|
|
@@ -60,12 +66,12 @@ export function AffiliateTierHistoryDTOFromJSONTyped(json, ignoreDiscriminator)
|
|
|
60
66
|
'lastModifiedAt': json['lastModifiedAt'] == null ? undefined : (new Date(json['lastModifiedAt'])),
|
|
61
67
|
'lastModifiedBy': json['lastModifiedBy'] == null ? undefined : json['lastModifiedBy'],
|
|
62
68
|
'namespaceKey': json['namespaceKey'] == null ? undefined : json['namespaceKey'],
|
|
63
|
-
'newTierId': json['newTierId']
|
|
69
|
+
'newTierId': json['newTierId'],
|
|
64
70
|
'notes': json['notes'] == null ? undefined : json['notes'],
|
|
65
71
|
'orderNumber': json['orderNumber'] == null ? undefined : json['orderNumber'],
|
|
66
72
|
'permission': json['permission'] == null ? undefined : ElementPermissionBasedEntityEmbeddableDTOFromJSON(json['permission']),
|
|
67
73
|
'previousTierId': json['previousTierId'] == null ? undefined : json['previousTierId'],
|
|
68
|
-
'reason': json['reason']
|
|
74
|
+
'reason': json['reason'],
|
|
69
75
|
'salesAmountAtChange': json['salesAmountAtChange'] == null ? undefined : json['salesAmountAtChange'],
|
|
70
76
|
'salesCountAtChange': json['salesCountAtChange'] == null ? undefined : json['salesCountAtChange'],
|
|
71
77
|
'version': json['version'] == null ? undefined : json['version'],
|