@integrahub/vergefy-client 0.9.0 → 0.11.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/AIIAGAgentApi.d.ts +4 -4
- package/dist/apis/AIIAGAgentApi.js +3 -8
- package/dist/apis/APIAFLFlagApi.d.ts +209 -0
- package/dist/apis/APIAFLFlagApi.js +554 -0
- package/dist/apis/APIAISOIntegrationShopifyApi.d.ts +22 -0
- package/dist/apis/APIAISOIntegrationShopifyApi.js +66 -0
- package/dist/apis/APIASUPSubscriptionPublicBridgeApi.d.ts +19 -0
- package/dist/apis/APIASUPSubscriptionPublicBridgeApi.js +54 -0
- package/dist/apis/PLATFORMLTNATenantManagementAccountApi.d.ts +25 -0
- package/dist/apis/PLATFORMLTNATenantManagementAccountApi.js +77 -0
- package/dist/apis/PLATFORMLTNTenantManagementApi.d.ts +21 -0
- package/dist/apis/PLATFORMLTNTenantManagementApi.js +60 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/AIIAGAgentApi.js +3 -8
- package/dist/esm/apis/APIAFLFlagApi.js +550 -0
- package/dist/esm/apis/APIAISOIntegrationShopifyApi.js +66 -0
- package/dist/esm/apis/APIASUPSubscriptionPublicBridgeApi.js +54 -0
- package/dist/esm/apis/PLATFORMLTNATenantManagementAccountApi.js +77 -0
- package/dist/esm/apis/PLATFORMLTNTenantManagementApi.js +60 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/ext/telemetry.js +1 -1
- package/dist/esm/models/DataResponseDTOFlagDTO.js +42 -0
- package/dist/esm/models/DataResponseDTOFlagEnvironmentValueDTO.js +42 -0
- package/dist/esm/models/DataResponseDTOListFlagEvaluationResultDTO.js +42 -0
- package/dist/esm/models/DataResponseDTOListTenantDTO.js +42 -0
- package/dist/esm/models/EntitlementSummaryResponseDTO.js +58 -0
- package/dist/esm/models/EventDTO.js +2 -0
- package/dist/esm/models/FlagCreateApiDTO.js +67 -0
- package/dist/esm/models/FlagDTO.js +98 -0
- package/dist/esm/models/FlagEnvironmentValueDTO.js +83 -0
- package/dist/esm/models/FlagEvaluationRequestDTO.js +47 -0
- package/dist/esm/models/FlagEvaluationResultDTO.js +55 -0
- package/dist/esm/models/FlagUpdateApiDTO.js +61 -0
- package/dist/esm/models/FlagVariantDTO.js +85 -0
- package/dist/esm/models/PageFlagDTO.js +64 -0
- package/dist/esm/models/ShopifyConfigurationLookupDTO.js +59 -0
- package/dist/esm/models/index.js +14 -0
- package/dist/ext/telemetry.d.ts +1 -1
- package/dist/ext/telemetry.js +1 -1
- package/dist/models/CapabilityCreateApiDTO.d.ts +2 -4
- package/dist/models/CapabilityDTO.d.ts +2 -4
- package/dist/models/CapabilityUpdateApiDTO.d.ts +2 -4
- package/dist/models/DataResponseDTOFlagDTO.d.ts +33 -0
- package/dist/models/DataResponseDTOFlagDTO.js +49 -0
- package/dist/models/DataResponseDTOFlagEnvironmentValueDTO.d.ts +33 -0
- package/dist/models/DataResponseDTOFlagEnvironmentValueDTO.js +49 -0
- package/dist/models/DataResponseDTOListFlagEvaluationResultDTO.d.ts +33 -0
- package/dist/models/DataResponseDTOListFlagEvaluationResultDTO.js +49 -0
- package/dist/models/DataResponseDTOListTenantDTO.d.ts +33 -0
- package/dist/models/DataResponseDTOListTenantDTO.js +49 -0
- package/dist/models/EntitlementSummaryResponseDTO.d.ts +70 -0
- package/dist/models/EntitlementSummaryResponseDTO.js +66 -0
- package/dist/models/EventDTO.d.ts +6 -0
- package/dist/models/EventDTO.js +2 -0
- package/dist/models/FlagCreateApiDTO.d.ts +79 -0
- package/dist/models/FlagCreateApiDTO.js +75 -0
- package/dist/models/FlagDTO.d.ts +166 -0
- package/dist/models/FlagDTO.js +106 -0
- package/dist/models/FlagEnvironmentValueDTO.d.ts +140 -0
- package/dist/models/FlagEnvironmentValueDTO.js +91 -0
- package/dist/models/FlagEvaluationRequestDTO.d.ts +44 -0
- package/dist/models/FlagEvaluationRequestDTO.js +54 -0
- package/dist/models/FlagEvaluationResultDTO.d.ts +74 -0
- package/dist/models/FlagEvaluationResultDTO.js +62 -0
- package/dist/models/FlagUpdateApiDTO.d.ts +73 -0
- package/dist/models/FlagUpdateApiDTO.js +69 -0
- package/dist/models/FlagVariantDTO.d.ts +140 -0
- package/dist/models/FlagVariantDTO.js +93 -0
- package/dist/models/PageFlagDTO.d.ts +95 -0
- package/dist/models/PageFlagDTO.js +71 -0
- package/dist/models/ShopifyConfigurationLookupDTO.d.ts +63 -0
- package/dist/models/ShopifyConfigurationLookupDTO.js +67 -0
- package/dist/models/index.d.ts +14 -0
- package/dist/models/index.js +14 -0
- package/package.json +1 -1
|
@@ -22,6 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
24
|
import { EntitledAppDTOFromJSON, } from '../models/EntitledAppDTO';
|
|
25
|
+
import { EntitlementSummaryResponseDTOFromJSON, } from '../models/EntitlementSummaryResponseDTO';
|
|
25
26
|
import { QuotaCheckResponseDTOFromJSON, } from '../models/QuotaCheckResponseDTO';
|
|
26
27
|
/**
|
|
27
28
|
*
|
|
@@ -127,4 +128,57 @@ export class APIASUPSubscriptionPublicBridgeApi extends runtime.BaseAPI {
|
|
|
127
128
|
return yield response.value();
|
|
128
129
|
});
|
|
129
130
|
}
|
|
131
|
+
/**
|
|
132
|
+
* Creates request options for aSUP003 without sending the request
|
|
133
|
+
*/
|
|
134
|
+
aSUP003RequestOpts(requestParameters) {
|
|
135
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
136
|
+
if (requestParameters['featureKey'] == null) {
|
|
137
|
+
throw new runtime.RequiredError('featureKey', 'Required parameter "featureKey" was null or undefined when calling aSUP003().');
|
|
138
|
+
}
|
|
139
|
+
const queryParameters = {};
|
|
140
|
+
if (requestParameters['featureKey'] != null) {
|
|
141
|
+
queryParameters['featureKey'] = requestParameters['featureKey'];
|
|
142
|
+
}
|
|
143
|
+
const headerParameters = {};
|
|
144
|
+
if (requestParameters['xServiceTenantId'] != null) {
|
|
145
|
+
headerParameters['X-Service-Tenant-Id'] = String(requestParameters['xServiceTenantId']);
|
|
146
|
+
}
|
|
147
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
148
|
+
const token = this.configuration.accessToken;
|
|
149
|
+
const tokenString = yield token("BearerAuth", []);
|
|
150
|
+
if (tokenString) {
|
|
151
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
let urlPath = `/pb/platform/entitlements/summary`;
|
|
155
|
+
return {
|
|
156
|
+
path: urlPath,
|
|
157
|
+
method: 'GET',
|
|
158
|
+
headers: headerParameters,
|
|
159
|
+
query: queryParameters,
|
|
160
|
+
};
|
|
161
|
+
});
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Entitlement state for display: allocated, used, remaining and enforcement for a feature key. Distinguishes \'no entitlement record\' (known=false) from \'unlimited\' (known=true, allocated=null), which the quota-check gate deliberately conflates.
|
|
165
|
+
* ASUP003 - Entitlement Summary (Public Bridge)
|
|
166
|
+
*/
|
|
167
|
+
aSUP003Raw(requestParameters, initOverrides) {
|
|
168
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
169
|
+
const requestOptions = yield this.aSUP003RequestOpts(requestParameters);
|
|
170
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
171
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => EntitlementSummaryResponseDTOFromJSON(jsonValue));
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Entitlement state for display: allocated, used, remaining and enforcement for a feature key. Distinguishes \'no entitlement record\' (known=false) from \'unlimited\' (known=true, allocated=null), which the quota-check gate deliberately conflates.
|
|
176
|
+
* ASUP003 - Entitlement Summary (Public Bridge)
|
|
177
|
+
*/
|
|
178
|
+
aSUP003(requestParameters, initOverrides) {
|
|
179
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
180
|
+
const response = yield this.aSUP003Raw(requestParameters, initOverrides);
|
|
181
|
+
return yield response.value();
|
|
182
|
+
});
|
|
183
|
+
}
|
|
130
184
|
}
|
|
@@ -561,4 +561,81 @@ export class PLATFORMLTNATenantManagementAccountApi extends runtime.BaseAPI {
|
|
|
561
561
|
yield this.lTN110Raw(requestParameters, initOverrides);
|
|
562
562
|
});
|
|
563
563
|
}
|
|
564
|
+
/**
|
|
565
|
+
* Creates request options for lTN123 without sending the request
|
|
566
|
+
*/
|
|
567
|
+
lTN123RequestOpts(requestParameters) {
|
|
568
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
569
|
+
if (requestParameters['search'] == null) {
|
|
570
|
+
throw new runtime.RequiredError('search', 'Required parameter "search" was null or undefined when calling lTN123().');
|
|
571
|
+
}
|
|
572
|
+
if (requestParameters['xAppAccountId'] == null) {
|
|
573
|
+
throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling lTN123().');
|
|
574
|
+
}
|
|
575
|
+
const queryParameters = {};
|
|
576
|
+
if (requestParameters['search'] != null) {
|
|
577
|
+
queryParameters['search'] = requestParameters['search'];
|
|
578
|
+
}
|
|
579
|
+
if (requestParameters['includes'] != null) {
|
|
580
|
+
queryParameters['includes'] = requestParameters['includes'];
|
|
581
|
+
}
|
|
582
|
+
if (requestParameters['page'] != null) {
|
|
583
|
+
queryParameters['page'] = requestParameters['page'];
|
|
584
|
+
}
|
|
585
|
+
if (requestParameters['size'] != null) {
|
|
586
|
+
queryParameters['size'] = requestParameters['size'];
|
|
587
|
+
}
|
|
588
|
+
if (requestParameters['sort'] != null) {
|
|
589
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
590
|
+
}
|
|
591
|
+
const headerParameters = {};
|
|
592
|
+
if (requestParameters['acceptLanguage'] != null) {
|
|
593
|
+
headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
|
|
594
|
+
}
|
|
595
|
+
if (requestParameters['xAppAccountId'] != null) {
|
|
596
|
+
headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
|
|
597
|
+
}
|
|
598
|
+
if (requestParameters['vergefyVersion'] != null) {
|
|
599
|
+
headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
|
|
600
|
+
}
|
|
601
|
+
if (requestParameters['acceptTimezone'] != null) {
|
|
602
|
+
headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
|
|
603
|
+
}
|
|
604
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
605
|
+
const token = this.configuration.accessToken;
|
|
606
|
+
const tokenString = yield token("BearerAuth", []);
|
|
607
|
+
if (tokenString) {
|
|
608
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
let urlPath = `/platform/accounts/my-tenant`;
|
|
612
|
+
return {
|
|
613
|
+
path: urlPath,
|
|
614
|
+
method: 'GET',
|
|
615
|
+
headers: headerParameters,
|
|
616
|
+
query: queryParameters,
|
|
617
|
+
};
|
|
618
|
+
});
|
|
619
|
+
}
|
|
620
|
+
/**
|
|
621
|
+
* Lists the accounts in the CALLER\'S OWN tenant. This is the within-tenant counterpart to LTN024: it takes no tenantId parameter, so it cannot address another tenant at all, and is therefore safe to expose to ordinary tenant users.
|
|
622
|
+
* LTN123 - Search My Tenant Accounts
|
|
623
|
+
*/
|
|
624
|
+
lTN123Raw(requestParameters, initOverrides) {
|
|
625
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
626
|
+
const requestOptions = yield this.lTN123RequestOpts(requestParameters);
|
|
627
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
628
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PageAccountDTOFromJSON(jsonValue));
|
|
629
|
+
});
|
|
630
|
+
}
|
|
631
|
+
/**
|
|
632
|
+
* Lists the accounts in the CALLER\'S OWN tenant. This is the within-tenant counterpart to LTN024: it takes no tenantId parameter, so it cannot address another tenant at all, and is therefore safe to expose to ordinary tenant users.
|
|
633
|
+
* LTN123 - Search My Tenant Accounts
|
|
634
|
+
*/
|
|
635
|
+
lTN123(requestParameters, initOverrides) {
|
|
636
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
637
|
+
const response = yield this.lTN123Raw(requestParameters, initOverrides);
|
|
638
|
+
return yield response.value();
|
|
639
|
+
});
|
|
640
|
+
}
|
|
564
641
|
}
|
|
@@ -22,6 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime';
|
|
24
24
|
import { DataResponseDTOFromJSON, } from '../models/DataResponseDTO';
|
|
25
|
+
import { DataResponseDTOListTenantDTOFromJSON, } from '../models/DataResponseDTOListTenantDTO';
|
|
25
26
|
import { PageFromJSON, } from '../models/Page';
|
|
26
27
|
import { TenantDTOToJSON, } from '../models/TenantDTO';
|
|
27
28
|
/**
|
|
@@ -372,6 +373,65 @@ export class PLATFORMLTNTenantManagementApi extends runtime.BaseAPI {
|
|
|
372
373
|
return yield response.value();
|
|
373
374
|
});
|
|
374
375
|
}
|
|
376
|
+
/**
|
|
377
|
+
* Creates request options for lTN124 without sending the request
|
|
378
|
+
*/
|
|
379
|
+
lTN124RequestOpts(requestParameters) {
|
|
380
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
381
|
+
if (requestParameters['xAppAccountId'] == null) {
|
|
382
|
+
throw new runtime.RequiredError('xAppAccountId', 'Required parameter "xAppAccountId" was null or undefined when calling lTN124().');
|
|
383
|
+
}
|
|
384
|
+
const queryParameters = {};
|
|
385
|
+
const headerParameters = {};
|
|
386
|
+
if (requestParameters['acceptLanguage'] != null) {
|
|
387
|
+
headerParameters['Accept-Language'] = String(requestParameters['acceptLanguage']);
|
|
388
|
+
}
|
|
389
|
+
if (requestParameters['xAppAccountId'] != null) {
|
|
390
|
+
headerParameters['X-App-Account-Id'] = String(requestParameters['xAppAccountId']);
|
|
391
|
+
}
|
|
392
|
+
if (requestParameters['vergefyVersion'] != null) {
|
|
393
|
+
headerParameters['Vergefy-Version'] = String(requestParameters['vergefyVersion']);
|
|
394
|
+
}
|
|
395
|
+
if (requestParameters['acceptTimezone'] != null) {
|
|
396
|
+
headerParameters['Accept-Timezone'] = String(requestParameters['acceptTimezone']);
|
|
397
|
+
}
|
|
398
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
399
|
+
const token = this.configuration.accessToken;
|
|
400
|
+
const tokenString = yield token("BearerAuth", []);
|
|
401
|
+
if (tokenString) {
|
|
402
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
let urlPath = `/platform/tenants/my-group`;
|
|
406
|
+
return {
|
|
407
|
+
path: urlPath,
|
|
408
|
+
method: 'GET',
|
|
409
|
+
headers: headerParameters,
|
|
410
|
+
query: queryParameters,
|
|
411
|
+
};
|
|
412
|
+
});
|
|
413
|
+
}
|
|
414
|
+
/**
|
|
415
|
+
* Lists the CALLER\'S OWN tenant plus every non-deleted tenant beneath it in the group hierarchy, nearest first. This is the within-tenant counterpart to LTN001: it takes no parameters at all, so it cannot inspect another group\'s structure, and is therefore safe to expose to ordinary tenant users.
|
|
416
|
+
* LTN124 - List My Tenant Group
|
|
417
|
+
*/
|
|
418
|
+
lTN124Raw(requestParameters, initOverrides) {
|
|
419
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
420
|
+
const requestOptions = yield this.lTN124RequestOpts(requestParameters);
|
|
421
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
422
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseDTOListTenantDTOFromJSON(jsonValue));
|
|
423
|
+
});
|
|
424
|
+
}
|
|
425
|
+
/**
|
|
426
|
+
* Lists the CALLER\'S OWN tenant plus every non-deleted tenant beneath it in the group hierarchy, nearest first. This is the within-tenant counterpart to LTN001: it takes no parameters at all, so it cannot inspect another group\'s structure, and is therefore safe to expose to ordinary tenant users.
|
|
427
|
+
* LTN124 - List My Tenant Group
|
|
428
|
+
*/
|
|
429
|
+
lTN124(requestParameters, initOverrides) {
|
|
430
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
431
|
+
const response = yield this.lTN124Raw(requestParameters, initOverrides);
|
|
432
|
+
return yield response.value();
|
|
433
|
+
});
|
|
434
|
+
}
|
|
375
435
|
}
|
|
376
436
|
/**
|
|
377
437
|
* @export
|
package/dist/esm/apis/index.js
CHANGED
|
@@ -84,6 +84,7 @@ export * from './APIADSCouponDiscountApi';
|
|
|
84
84
|
export * from './APIADTNotificationDeviceTokenApi';
|
|
85
85
|
export * from './APIAETNotificationEmailTemplateApi';
|
|
86
86
|
export * from './APIAEXExchangeApi';
|
|
87
|
+
export * from './APIAFLFlagApi';
|
|
87
88
|
export * from './APIAFTFilterApi';
|
|
88
89
|
export * from './APIAGMGamificationApi';
|
|
89
90
|
export * from './APIAGRGoodsReceiptApi';
|
|
@@ -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.11.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() {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Vergefy API
|
|
5
|
+
* <h1>AI Agent Management</h1><p>Create, configure, and orchestrate AI agents with multi-provider support.</p><h2>Modules</h2><ul><li><b>Agent (IAG):</b> Agent creation, configuration, lifecycle, insight and analytics (IAG001-057, IAG500-505, IAG700-701)</li><li><b>Template (IAT):</b> Agent template management — /ai/agents-templates</li><li><b>Template Advanced (IATEMP):</b> Versions, analytics, recommendations, diffs — /ai/agents-templates (IATEMP001-008)</li><li><b>Agent Upgrade (IAGENT):</b> Upgrade, rollback, version management — /ai/agents/{id}/upgrade|rollback (IAGENT001-005)</li><li><b>Hierarchy (IAH):</b> Supervisor-worker relationships, delegation — /ai/agents/hierarchies</li><li><b>Goal (IAGG):</b> Autonomous goals, success criteria — /ai/agents/goals</li><li><b>Pool (IAGP):</b> Agent pool management, allocation, coordination (queries IAGP001-023, commands IAGP101-109) — /ai/agents/pools</li><li><b>Execution (IAGE):</b> Execution tracking, history — /ai/agents/executions</li><li><b>Health (IAGH):</b> Health checks, recovery — /ai/agents/health</li><li><b>Communication (IAGC):</b> Channels (IAGC001-019) and inter-agent messages (IAGC020-052) — /ai/agents/channels, /ai/agents/messages</li><li><b>Handoff (IAGD):</b> Agent handoff and transfer — /ai/agents/handoffs</li><li><b>Orchestration (IAGO):</b> Orchestration sessions — /ai/agents/orchestration/sessions</li><li><b>Workflow (IAGW):</b> Workflow assignment and execution — /ai/agents-workflows</li><li><b>Capability (IACAP):</b> Capability definitions, permissions (queries IACAP001-011, commands IACAP101-105) — /ai/capabilities</li><li><b>Capability Mapping (IACF):</b> Capability to feature mapping — /ai/agents/capability-feature-mappings</li></ul><p><b>Providers:</b> OpenAI GPT-4, Anthropic Claude, Google Gemini</p>
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2026-05-30
|
|
8
|
+
* Contact: support@integrahub.co
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { FlagDTOFromJSON, FlagDTOToJSON, } from './FlagDTO';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the DataResponseDTOFlagDTO interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfDataResponseDTOFlagDTO(value) {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
export function DataResponseDTOFlagDTOFromJSON(json) {
|
|
22
|
+
return DataResponseDTOFlagDTOFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
export function DataResponseDTOFlagDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if (json == null) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'data': json['data'] == null ? undefined : FlagDTOFromJSON(json['data']),
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export function DataResponseDTOFlagDTOToJSON(json) {
|
|
33
|
+
return DataResponseDTOFlagDTOToJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function DataResponseDTOFlagDTOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
36
|
+
if (value == null) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'data': FlagDTOToJSON(value['data']),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Vergefy API
|
|
5
|
+
* <h1>AI Agent Management</h1><p>Create, configure, and orchestrate AI agents with multi-provider support.</p><h2>Modules</h2><ul><li><b>Agent (IAG):</b> Agent creation, configuration, lifecycle, insight and analytics (IAG001-057, IAG500-505, IAG700-701)</li><li><b>Template (IAT):</b> Agent template management — /ai/agents-templates</li><li><b>Template Advanced (IATEMP):</b> Versions, analytics, recommendations, diffs — /ai/agents-templates (IATEMP001-008)</li><li><b>Agent Upgrade (IAGENT):</b> Upgrade, rollback, version management — /ai/agents/{id}/upgrade|rollback (IAGENT001-005)</li><li><b>Hierarchy (IAH):</b> Supervisor-worker relationships, delegation — /ai/agents/hierarchies</li><li><b>Goal (IAGG):</b> Autonomous goals, success criteria — /ai/agents/goals</li><li><b>Pool (IAGP):</b> Agent pool management, allocation, coordination (queries IAGP001-023, commands IAGP101-109) — /ai/agents/pools</li><li><b>Execution (IAGE):</b> Execution tracking, history — /ai/agents/executions</li><li><b>Health (IAGH):</b> Health checks, recovery — /ai/agents/health</li><li><b>Communication (IAGC):</b> Channels (IAGC001-019) and inter-agent messages (IAGC020-052) — /ai/agents/channels, /ai/agents/messages</li><li><b>Handoff (IAGD):</b> Agent handoff and transfer — /ai/agents/handoffs</li><li><b>Orchestration (IAGO):</b> Orchestration sessions — /ai/agents/orchestration/sessions</li><li><b>Workflow (IAGW):</b> Workflow assignment and execution — /ai/agents-workflows</li><li><b>Capability (IACAP):</b> Capability definitions, permissions (queries IACAP001-011, commands IACAP101-105) — /ai/capabilities</li><li><b>Capability Mapping (IACF):</b> Capability to feature mapping — /ai/agents/capability-feature-mappings</li></ul><p><b>Providers:</b> OpenAI GPT-4, Anthropic Claude, Google Gemini</p>
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2026-05-30
|
|
8
|
+
* Contact: support@integrahub.co
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { FlagEnvironmentValueDTOFromJSON, FlagEnvironmentValueDTOToJSON, } from './FlagEnvironmentValueDTO';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the DataResponseDTOFlagEnvironmentValueDTO interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfDataResponseDTOFlagEnvironmentValueDTO(value) {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
export function DataResponseDTOFlagEnvironmentValueDTOFromJSON(json) {
|
|
22
|
+
return DataResponseDTOFlagEnvironmentValueDTOFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
export function DataResponseDTOFlagEnvironmentValueDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if (json == null) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'data': json['data'] == null ? undefined : FlagEnvironmentValueDTOFromJSON(json['data']),
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export function DataResponseDTOFlagEnvironmentValueDTOToJSON(json) {
|
|
33
|
+
return DataResponseDTOFlagEnvironmentValueDTOToJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function DataResponseDTOFlagEnvironmentValueDTOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
36
|
+
if (value == null) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'data': FlagEnvironmentValueDTOToJSON(value['data']),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Vergefy API
|
|
5
|
+
* <h1>AI Agent Management</h1><p>Create, configure, and orchestrate AI agents with multi-provider support.</p><h2>Modules</h2><ul><li><b>Agent (IAG):</b> Agent creation, configuration, lifecycle, insight and analytics (IAG001-057, IAG500-505, IAG700-701)</li><li><b>Template (IAT):</b> Agent template management — /ai/agents-templates</li><li><b>Template Advanced (IATEMP):</b> Versions, analytics, recommendations, diffs — /ai/agents-templates (IATEMP001-008)</li><li><b>Agent Upgrade (IAGENT):</b> Upgrade, rollback, version management — /ai/agents/{id}/upgrade|rollback (IAGENT001-005)</li><li><b>Hierarchy (IAH):</b> Supervisor-worker relationships, delegation — /ai/agents/hierarchies</li><li><b>Goal (IAGG):</b> Autonomous goals, success criteria — /ai/agents/goals</li><li><b>Pool (IAGP):</b> Agent pool management, allocation, coordination (queries IAGP001-023, commands IAGP101-109) — /ai/agents/pools</li><li><b>Execution (IAGE):</b> Execution tracking, history — /ai/agents/executions</li><li><b>Health (IAGH):</b> Health checks, recovery — /ai/agents/health</li><li><b>Communication (IAGC):</b> Channels (IAGC001-019) and inter-agent messages (IAGC020-052) — /ai/agents/channels, /ai/agents/messages</li><li><b>Handoff (IAGD):</b> Agent handoff and transfer — /ai/agents/handoffs</li><li><b>Orchestration (IAGO):</b> Orchestration sessions — /ai/agents/orchestration/sessions</li><li><b>Workflow (IAGW):</b> Workflow assignment and execution — /ai/agents-workflows</li><li><b>Capability (IACAP):</b> Capability definitions, permissions (queries IACAP001-011, commands IACAP101-105) — /ai/capabilities</li><li><b>Capability Mapping (IACF):</b> Capability to feature mapping — /ai/agents/capability-feature-mappings</li></ul><p><b>Providers:</b> OpenAI GPT-4, Anthropic Claude, Google Gemini</p>
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2026-05-30
|
|
8
|
+
* Contact: support@integrahub.co
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { FlagEvaluationResultDTOFromJSON, FlagEvaluationResultDTOToJSON, } from './FlagEvaluationResultDTO';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the DataResponseDTOListFlagEvaluationResultDTO interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfDataResponseDTOListFlagEvaluationResultDTO(value) {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
export function DataResponseDTOListFlagEvaluationResultDTOFromJSON(json) {
|
|
22
|
+
return DataResponseDTOListFlagEvaluationResultDTOFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
export function DataResponseDTOListFlagEvaluationResultDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if (json == null) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'data': json['data'] == null ? undefined : (json['data'].map(FlagEvaluationResultDTOFromJSON)),
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export function DataResponseDTOListFlagEvaluationResultDTOToJSON(json) {
|
|
33
|
+
return DataResponseDTOListFlagEvaluationResultDTOToJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function DataResponseDTOListFlagEvaluationResultDTOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
36
|
+
if (value == null) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'data': value['data'] == null ? undefined : (value['data'].map(FlagEvaluationResultDTOToJSON)),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Vergefy API
|
|
5
|
+
* <h1>AI Agent Management</h1><p>Create, configure, and orchestrate AI agents with multi-provider support.</p><h2>Modules</h2><ul><li><b>Agent (IAG):</b> Agent creation, configuration, lifecycle, insight and analytics (IAG001-057, IAG500-505, IAG700-701)</li><li><b>Template (IAT):</b> Agent template management — /ai/agents-templates</li><li><b>Template Advanced (IATEMP):</b> Versions, analytics, recommendations, diffs — /ai/agents-templates (IATEMP001-008)</li><li><b>Agent Upgrade (IAGENT):</b> Upgrade, rollback, version management — /ai/agents/{id}/upgrade|rollback (IAGENT001-005)</li><li><b>Hierarchy (IAH):</b> Supervisor-worker relationships, delegation — /ai/agents/hierarchies</li><li><b>Goal (IAGG):</b> Autonomous goals, success criteria — /ai/agents/goals</li><li><b>Pool (IAGP):</b> Agent pool management, allocation, coordination (queries IAGP001-023, commands IAGP101-109) — /ai/agents/pools</li><li><b>Execution (IAGE):</b> Execution tracking, history — /ai/agents/executions</li><li><b>Health (IAGH):</b> Health checks, recovery — /ai/agents/health</li><li><b>Communication (IAGC):</b> Channels (IAGC001-019) and inter-agent messages (IAGC020-052) — /ai/agents/channels, /ai/agents/messages</li><li><b>Handoff (IAGD):</b> Agent handoff and transfer — /ai/agents/handoffs</li><li><b>Orchestration (IAGO):</b> Orchestration sessions — /ai/agents/orchestration/sessions</li><li><b>Workflow (IAGW):</b> Workflow assignment and execution — /ai/agents-workflows</li><li><b>Capability (IACAP):</b> Capability definitions, permissions (queries IACAP001-011, commands IACAP101-105) — /ai/capabilities</li><li><b>Capability Mapping (IACF):</b> Capability to feature mapping — /ai/agents/capability-feature-mappings</li></ul><p><b>Providers:</b> OpenAI GPT-4, Anthropic Claude, Google Gemini</p>
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2026-05-30
|
|
8
|
+
* Contact: support@integrahub.co
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { TenantDTOFromJSON, TenantDTOToJSON, } from './TenantDTO';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the DataResponseDTOListTenantDTO interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfDataResponseDTOListTenantDTO(value) {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
export function DataResponseDTOListTenantDTOFromJSON(json) {
|
|
22
|
+
return DataResponseDTOListTenantDTOFromJSONTyped(json, false);
|
|
23
|
+
}
|
|
24
|
+
export function DataResponseDTOListTenantDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
25
|
+
if (json == null) {
|
|
26
|
+
return json;
|
|
27
|
+
}
|
|
28
|
+
return {
|
|
29
|
+
'data': json['data'] == null ? undefined : (json['data'].map(TenantDTOFromJSON)),
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
export function DataResponseDTOListTenantDTOToJSON(json) {
|
|
33
|
+
return DataResponseDTOListTenantDTOToJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function DataResponseDTOListTenantDTOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
36
|
+
if (value == null) {
|
|
37
|
+
return value;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'data': value['data'] == null ? undefined : (value['data'].map(TenantDTOToJSON)),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Vergefy API
|
|
5
|
+
* <h1>AI Agent Management</h1><p>Create, configure, and orchestrate AI agents with multi-provider support.</p><h2>Modules</h2><ul><li><b>Agent (IAG):</b> Agent creation, configuration, lifecycle, insight and analytics (IAG001-057, IAG500-505, IAG700-701)</li><li><b>Template (IAT):</b> Agent template management — /ai/agents-templates</li><li><b>Template Advanced (IATEMP):</b> Versions, analytics, recommendations, diffs — /ai/agents-templates (IATEMP001-008)</li><li><b>Agent Upgrade (IAGENT):</b> Upgrade, rollback, version management — /ai/agents/{id}/upgrade|rollback (IAGENT001-005)</li><li><b>Hierarchy (IAH):</b> Supervisor-worker relationships, delegation — /ai/agents/hierarchies</li><li><b>Goal (IAGG):</b> Autonomous goals, success criteria — /ai/agents/goals</li><li><b>Pool (IAGP):</b> Agent pool management, allocation, coordination (queries IAGP001-023, commands IAGP101-109) — /ai/agents/pools</li><li><b>Execution (IAGE):</b> Execution tracking, history — /ai/agents/executions</li><li><b>Health (IAGH):</b> Health checks, recovery — /ai/agents/health</li><li><b>Communication (IAGC):</b> Channels (IAGC001-019) and inter-agent messages (IAGC020-052) — /ai/agents/channels, /ai/agents/messages</li><li><b>Handoff (IAGD):</b> Agent handoff and transfer — /ai/agents/handoffs</li><li><b>Orchestration (IAGO):</b> Orchestration sessions — /ai/agents/orchestration/sessions</li><li><b>Workflow (IAGW):</b> Workflow assignment and execution — /ai/agents-workflows</li><li><b>Capability (IACAP):</b> Capability definitions, permissions (queries IACAP001-011, commands IACAP101-105) — /ai/capabilities</li><li><b>Capability Mapping (IACF):</b> Capability to feature mapping — /ai/agents/capability-feature-mappings</li></ul><p><b>Providers:</b> OpenAI GPT-4, Anthropic Claude, Google Gemini</p>
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2026-05-30
|
|
8
|
+
* Contact: support@integrahub.co
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @export
|
|
16
|
+
*/
|
|
17
|
+
export const EntitlementSummaryResponseDTOEnforcementEnum = {
|
|
18
|
+
Hard: 'HARD',
|
|
19
|
+
Soft: 'SOFT'
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the EntitlementSummaryResponseDTO interface.
|
|
23
|
+
*/
|
|
24
|
+
export function instanceOfEntitlementSummaryResponseDTO(value) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
export function EntitlementSummaryResponseDTOFromJSON(json) {
|
|
28
|
+
return EntitlementSummaryResponseDTOFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
export function EntitlementSummaryResponseDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'allocated': json['allocated'] == null ? undefined : json['allocated'],
|
|
36
|
+
'enforcement': json['enforcement'] == null ? undefined : json['enforcement'],
|
|
37
|
+
'featureKey': json['featureKey'] == null ? undefined : json['featureKey'],
|
|
38
|
+
'known': json['known'] == null ? undefined : json['known'],
|
|
39
|
+
'remaining': json['remaining'] == null ? undefined : json['remaining'],
|
|
40
|
+
'used': json['used'] == null ? undefined : json['used'],
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
export function EntitlementSummaryResponseDTOToJSON(json) {
|
|
44
|
+
return EntitlementSummaryResponseDTOToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
export function EntitlementSummaryResponseDTOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'allocated': value['allocated'],
|
|
52
|
+
'enforcement': value['enforcement'],
|
|
53
|
+
'featureKey': value['featureKey'],
|
|
54
|
+
'known': value['known'],
|
|
55
|
+
'remaining': value['remaining'],
|
|
56
|
+
'used': value['used'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
@@ -79,6 +79,7 @@ export function EventDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
79
79
|
'externalId': json['externalId'] == null ? undefined : json['externalId'],
|
|
80
80
|
'format': json['format'] == null ? undefined : json['format'],
|
|
81
81
|
'id': json['id'] == null ? undefined : json['id'],
|
|
82
|
+
'isFeatured': json['isFeatured'] == null ? undefined : json['isFeatured'],
|
|
82
83
|
'lastModifiedAt': json['lastModifiedAt'] == null ? undefined : (new Date(json['lastModifiedAt'])),
|
|
83
84
|
'lastModifiedBy': json['lastModifiedBy'] == null ? undefined : json['lastModifiedBy'],
|
|
84
85
|
'maxAttendees': json['maxAttendees'] == null ? undefined : json['maxAttendees'],
|
|
@@ -120,6 +121,7 @@ export function EventDTOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
120
121
|
'externalId': value['externalId'],
|
|
121
122
|
'format': value['format'],
|
|
122
123
|
'id': value['id'],
|
|
124
|
+
'isFeatured': value['isFeatured'],
|
|
123
125
|
'lastModifiedAt': value['lastModifiedAt'] == null ? value['lastModifiedAt'] : value['lastModifiedAt'].toISOString(),
|
|
124
126
|
'lastModifiedBy': value['lastModifiedBy'],
|
|
125
127
|
'maxAttendees': value['maxAttendees'],
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Vergefy API
|
|
5
|
+
* <h1>AI Agent Management</h1><p>Create, configure, and orchestrate AI agents with multi-provider support.</p><h2>Modules</h2><ul><li><b>Agent (IAG):</b> Agent creation, configuration, lifecycle, insight and analytics (IAG001-057, IAG500-505, IAG700-701)</li><li><b>Template (IAT):</b> Agent template management — /ai/agents-templates</li><li><b>Template Advanced (IATEMP):</b> Versions, analytics, recommendations, diffs — /ai/agents-templates (IATEMP001-008)</li><li><b>Agent Upgrade (IAGENT):</b> Upgrade, rollback, version management — /ai/agents/{id}/upgrade|rollback (IAGENT001-005)</li><li><b>Hierarchy (IAH):</b> Supervisor-worker relationships, delegation — /ai/agents/hierarchies</li><li><b>Goal (IAGG):</b> Autonomous goals, success criteria — /ai/agents/goals</li><li><b>Pool (IAGP):</b> Agent pool management, allocation, coordination (queries IAGP001-023, commands IAGP101-109) — /ai/agents/pools</li><li><b>Execution (IAGE):</b> Execution tracking, history — /ai/agents/executions</li><li><b>Health (IAGH):</b> Health checks, recovery — /ai/agents/health</li><li><b>Communication (IAGC):</b> Channels (IAGC001-019) and inter-agent messages (IAGC020-052) — /ai/agents/channels, /ai/agents/messages</li><li><b>Handoff (IAGD):</b> Agent handoff and transfer — /ai/agents/handoffs</li><li><b>Orchestration (IAGO):</b> Orchestration sessions — /ai/agents/orchestration/sessions</li><li><b>Workflow (IAGW):</b> Workflow assignment and execution — /ai/agents-workflows</li><li><b>Capability (IACAP):</b> Capability definitions, permissions (queries IACAP001-011, commands IACAP101-105) — /ai/capabilities</li><li><b>Capability Mapping (IACF):</b> Capability to feature mapping — /ai/agents/capability-feature-mappings</li></ul><p><b>Providers:</b> OpenAI GPT-4, Anthropic Claude, Google Gemini</p>
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2026-05-30
|
|
8
|
+
* Contact: support@integrahub.co
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
import { FlagVariantDTOFromJSON, FlagVariantDTOToJSON, } from './FlagVariantDTO';
|
|
15
|
+
/**
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export const FlagCreateApiDTOFlagTypeEnum = {
|
|
19
|
+
Boolean: 'BOOLEAN',
|
|
20
|
+
String: 'STRING',
|
|
21
|
+
Number: 'NUMBER',
|
|
22
|
+
Json: 'JSON'
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the FlagCreateApiDTO interface.
|
|
26
|
+
*/
|
|
27
|
+
export function instanceOfFlagCreateApiDTO(value) {
|
|
28
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('slug' in value) || value['slug'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
export function FlagCreateApiDTOFromJSON(json) {
|
|
35
|
+
return FlagCreateApiDTOFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
export function FlagCreateApiDTOFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'description': json['description'] == null ? undefined : json['description'],
|
|
43
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
44
|
+
'flagType': json['flagType'] == null ? undefined : json['flagType'],
|
|
45
|
+
'name': json['name'],
|
|
46
|
+
'projectKey': json['projectKey'] == null ? undefined : json['projectKey'],
|
|
47
|
+
'slug': json['slug'],
|
|
48
|
+
'variants': json['variants'] == null ? undefined : (json['variants'].map(FlagVariantDTOFromJSON)),
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export function FlagCreateApiDTOToJSON(json) {
|
|
52
|
+
return FlagCreateApiDTOToJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
export function FlagCreateApiDTOToJSONTyped(value, ignoreDiscriminator = false) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'description': value['description'],
|
|
60
|
+
'enabled': value['enabled'],
|
|
61
|
+
'flagType': value['flagType'],
|
|
62
|
+
'name': value['name'],
|
|
63
|
+
'projectKey': value['projectKey'],
|
|
64
|
+
'slug': value['slug'],
|
|
65
|
+
'variants': value['variants'] == null ? undefined : (value['variants'].map(FlagVariantDTOToJSON)),
|
|
66
|
+
};
|
|
67
|
+
}
|