@schematichq/schematic-typescript-node 1.0.21 → 1.0.22
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/dist/schematic.cjs.js +500 -747
- package/dist/schematic.d.ts +436 -747
- package/dist/schematic.esm.js +468 -703
- package/package.json +1 -1
package/dist/schematic.esm.js
CHANGED
|
@@ -16661,6 +16661,112 @@ function BillingCustomerWithSubscriptionsResponseDataToJSON(value) {
|
|
|
16661
16661
|
};
|
|
16662
16662
|
}
|
|
16663
16663
|
|
|
16664
|
+
// src/api/models/BillingPriceResponseData.ts
|
|
16665
|
+
function instanceOfBillingPriceResponseData(value) {
|
|
16666
|
+
if (!("externalPriceId" in value) || value["externalPriceId"] === void 0)
|
|
16667
|
+
return false;
|
|
16668
|
+
if (!("id" in value) || value["id"] === void 0)
|
|
16669
|
+
return false;
|
|
16670
|
+
if (!("interval" in value) || value["interval"] === void 0)
|
|
16671
|
+
return false;
|
|
16672
|
+
if (!("price" in value) || value["price"] === void 0)
|
|
16673
|
+
return false;
|
|
16674
|
+
return true;
|
|
16675
|
+
}
|
|
16676
|
+
function BillingPriceResponseDataFromJSON(json) {
|
|
16677
|
+
return BillingPriceResponseDataFromJSONTyped(json, false);
|
|
16678
|
+
}
|
|
16679
|
+
function BillingPriceResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
16680
|
+
if (json == null) {
|
|
16681
|
+
return json;
|
|
16682
|
+
}
|
|
16683
|
+
return {
|
|
16684
|
+
externalPriceId: json["external_price_id"],
|
|
16685
|
+
id: json["id"],
|
|
16686
|
+
interval: json["interval"],
|
|
16687
|
+
price: json["price"]
|
|
16688
|
+
};
|
|
16689
|
+
}
|
|
16690
|
+
function BillingPriceResponseDataToJSON(value) {
|
|
16691
|
+
if (value == null) {
|
|
16692
|
+
return value;
|
|
16693
|
+
}
|
|
16694
|
+
return {
|
|
16695
|
+
external_price_id: value["externalPriceId"],
|
|
16696
|
+
id: value["id"],
|
|
16697
|
+
interval: value["interval"],
|
|
16698
|
+
price: value["price"]
|
|
16699
|
+
};
|
|
16700
|
+
}
|
|
16701
|
+
|
|
16702
|
+
// src/api/models/BillingProductDetailResponseData.ts
|
|
16703
|
+
function instanceOfBillingProductDetailResponseData(value) {
|
|
16704
|
+
if (!("prices" in value) || value["prices"] === void 0)
|
|
16705
|
+
return false;
|
|
16706
|
+
if (!("accountId" in value) || value["accountId"] === void 0)
|
|
16707
|
+
return false;
|
|
16708
|
+
if (!("createdAt" in value) || value["createdAt"] === void 0)
|
|
16709
|
+
return false;
|
|
16710
|
+
if (!("currency" in value) || value["currency"] === void 0)
|
|
16711
|
+
return false;
|
|
16712
|
+
if (!("environmentId" in value) || value["environmentId"] === void 0)
|
|
16713
|
+
return false;
|
|
16714
|
+
if (!("externalId" in value) || value["externalId"] === void 0)
|
|
16715
|
+
return false;
|
|
16716
|
+
if (!("name" in value) || value["name"] === void 0)
|
|
16717
|
+
return false;
|
|
16718
|
+
if (!("price" in value) || value["price"] === void 0)
|
|
16719
|
+
return false;
|
|
16720
|
+
if (!("productId" in value) || value["productId"] === void 0)
|
|
16721
|
+
return false;
|
|
16722
|
+
if (!("quantity" in value) || value["quantity"] === void 0)
|
|
16723
|
+
return false;
|
|
16724
|
+
if (!("updatedAt" in value) || value["updatedAt"] === void 0)
|
|
16725
|
+
return false;
|
|
16726
|
+
return true;
|
|
16727
|
+
}
|
|
16728
|
+
function BillingProductDetailResponseDataFromJSON(json) {
|
|
16729
|
+
return BillingProductDetailResponseDataFromJSONTyped(json, false);
|
|
16730
|
+
}
|
|
16731
|
+
function BillingProductDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
16732
|
+
if (json == null) {
|
|
16733
|
+
return json;
|
|
16734
|
+
}
|
|
16735
|
+
return {
|
|
16736
|
+
prices: json["Prices"].map(
|
|
16737
|
+
BillingPriceResponseDataFromJSON
|
|
16738
|
+
),
|
|
16739
|
+
accountId: json["account_id"],
|
|
16740
|
+
createdAt: new Date(json["created_at"]),
|
|
16741
|
+
currency: json["currency"],
|
|
16742
|
+
environmentId: json["environment_id"],
|
|
16743
|
+
externalId: json["external_id"],
|
|
16744
|
+
name: json["name"],
|
|
16745
|
+
price: json["price"],
|
|
16746
|
+
productId: json["product_id"],
|
|
16747
|
+
quantity: json["quantity"],
|
|
16748
|
+
updatedAt: new Date(json["updated_at"])
|
|
16749
|
+
};
|
|
16750
|
+
}
|
|
16751
|
+
function BillingProductDetailResponseDataToJSON(value) {
|
|
16752
|
+
if (value == null) {
|
|
16753
|
+
return value;
|
|
16754
|
+
}
|
|
16755
|
+
return {
|
|
16756
|
+
Prices: value["prices"].map(BillingPriceResponseDataToJSON),
|
|
16757
|
+
account_id: value["accountId"],
|
|
16758
|
+
created_at: value["createdAt"].toISOString(),
|
|
16759
|
+
currency: value["currency"],
|
|
16760
|
+
environment_id: value["environmentId"],
|
|
16761
|
+
external_id: value["externalId"],
|
|
16762
|
+
name: value["name"],
|
|
16763
|
+
price: value["price"],
|
|
16764
|
+
product_id: value["productId"],
|
|
16765
|
+
quantity: value["quantity"],
|
|
16766
|
+
updated_at: value["updatedAt"].toISOString()
|
|
16767
|
+
};
|
|
16768
|
+
}
|
|
16769
|
+
|
|
16664
16770
|
// src/api/models/BillingProductPlanResponseData.ts
|
|
16665
16771
|
function instanceOfBillingProductPlanResponseData(value) {
|
|
16666
16772
|
if (!("accountId" in value) || value["accountId"] === void 0)
|
|
@@ -17567,6 +17673,8 @@ function instanceOfFeatureResponseData(value) {
|
|
|
17567
17673
|
return false;
|
|
17568
17674
|
if (!("featureType" in value) || value["featureType"] === void 0)
|
|
17569
17675
|
return false;
|
|
17676
|
+
if (!("icon" in value) || value["icon"] === void 0)
|
|
17677
|
+
return false;
|
|
17570
17678
|
if (!("id" in value) || value["id"] === void 0)
|
|
17571
17679
|
return false;
|
|
17572
17680
|
if (!("name" in value) || value["name"] === void 0)
|
|
@@ -17587,7 +17695,7 @@ function FeatureResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
17587
17695
|
description: json["description"],
|
|
17588
17696
|
eventSubtype: json["event_subtype"] == null ? void 0 : json["event_subtype"],
|
|
17589
17697
|
featureType: json["feature_type"],
|
|
17590
|
-
icon: json["icon"]
|
|
17698
|
+
icon: json["icon"],
|
|
17591
17699
|
id: json["id"],
|
|
17592
17700
|
lifecyclePhase: json["lifecycle_phase"] == null ? void 0 : json["lifecycle_phase"],
|
|
17593
17701
|
maintainerId: json["maintainer_id"] == null ? void 0 : json["maintainer_id"],
|
|
@@ -18115,74 +18223,6 @@ function RuleDetailResponseDataToJSON(value) {
|
|
|
18115
18223
|
};
|
|
18116
18224
|
}
|
|
18117
18225
|
|
|
18118
|
-
// src/api/models/FlagCheckLogResponseData.ts
|
|
18119
|
-
function instanceOfFlagCheckLogResponseData(value) {
|
|
18120
|
-
if (!("checkStatus" in value) || value["checkStatus"] === void 0)
|
|
18121
|
-
return false;
|
|
18122
|
-
if (!("createdAt" in value) || value["createdAt"] === void 0)
|
|
18123
|
-
return false;
|
|
18124
|
-
if (!("environmentId" in value) || value["environmentId"] === void 0)
|
|
18125
|
-
return false;
|
|
18126
|
-
if (!("flagKey" in value) || value["flagKey"] === void 0)
|
|
18127
|
-
return false;
|
|
18128
|
-
if (!("id" in value) || value["id"] === void 0)
|
|
18129
|
-
return false;
|
|
18130
|
-
if (!("reason" in value) || value["reason"] === void 0)
|
|
18131
|
-
return false;
|
|
18132
|
-
if (!("updatedAt" in value) || value["updatedAt"] === void 0)
|
|
18133
|
-
return false;
|
|
18134
|
-
if (!("value" in value) || value["value"] === void 0)
|
|
18135
|
-
return false;
|
|
18136
|
-
return true;
|
|
18137
|
-
}
|
|
18138
|
-
function FlagCheckLogResponseDataFromJSON(json) {
|
|
18139
|
-
return FlagCheckLogResponseDataFromJSONTyped(json, false);
|
|
18140
|
-
}
|
|
18141
|
-
function FlagCheckLogResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
18142
|
-
if (json == null) {
|
|
18143
|
-
return json;
|
|
18144
|
-
}
|
|
18145
|
-
return {
|
|
18146
|
-
checkStatus: json["check_status"],
|
|
18147
|
-
companyId: json["company_id"] == null ? void 0 : json["company_id"],
|
|
18148
|
-
createdAt: new Date(json["created_at"]),
|
|
18149
|
-
environmentId: json["environment_id"],
|
|
18150
|
-
error: json["error"] == null ? void 0 : json["error"],
|
|
18151
|
-
flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
|
|
18152
|
-
flagKey: json["flag_key"],
|
|
18153
|
-
id: json["id"],
|
|
18154
|
-
reason: json["reason"],
|
|
18155
|
-
reqCompany: json["req_company"] == null ? void 0 : json["req_company"],
|
|
18156
|
-
reqUser: json["req_user"] == null ? void 0 : json["req_user"],
|
|
18157
|
-
ruleId: json["rule_id"] == null ? void 0 : json["rule_id"],
|
|
18158
|
-
updatedAt: new Date(json["updated_at"]),
|
|
18159
|
-
userId: json["user_id"] == null ? void 0 : json["user_id"],
|
|
18160
|
-
value: json["value"]
|
|
18161
|
-
};
|
|
18162
|
-
}
|
|
18163
|
-
function FlagCheckLogResponseDataToJSON(value) {
|
|
18164
|
-
if (value == null) {
|
|
18165
|
-
return value;
|
|
18166
|
-
}
|
|
18167
|
-
return {
|
|
18168
|
-
check_status: value["checkStatus"],
|
|
18169
|
-
company_id: value["companyId"],
|
|
18170
|
-
created_at: value["createdAt"].toISOString(),
|
|
18171
|
-
environment_id: value["environmentId"],
|
|
18172
|
-
error: value["error"],
|
|
18173
|
-
flag_id: value["flagId"],
|
|
18174
|
-
flag_key: value["flagKey"],
|
|
18175
|
-
id: value["id"],
|
|
18176
|
-
reason: value["reason"],
|
|
18177
|
-
req_company: value["reqCompany"],
|
|
18178
|
-
req_user: value["reqUser"],
|
|
18179
|
-
rule_id: value["ruleId"],
|
|
18180
|
-
updated_at: value["updatedAt"].toISOString(),
|
|
18181
|
-
user_id: value["userId"],
|
|
18182
|
-
value: value["value"]
|
|
18183
|
-
};
|
|
18184
|
-
}
|
|
18185
|
-
|
|
18186
18226
|
// src/api/models/FlagDetailResponseData.ts
|
|
18187
18227
|
function instanceOfFlagDetailResponseData(value) {
|
|
18188
18228
|
if (!("createdAt" in value) || value["createdAt"] === void 0)
|
|
@@ -18222,7 +18262,6 @@ function FlagDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
18222
18262
|
id: json["id"],
|
|
18223
18263
|
key: json["key"],
|
|
18224
18264
|
lastCheckedAt: json["last_checked_at"] == null ? void 0 : new Date(json["last_checked_at"]),
|
|
18225
|
-
latestCheck: json["latest_check"] == null ? void 0 : FlagCheckLogResponseDataFromJSON(json["latest_check"]),
|
|
18226
18265
|
maintainerId: json["maintainer_id"] == null ? void 0 : json["maintainer_id"],
|
|
18227
18266
|
name: json["name"],
|
|
18228
18267
|
rules: json["rules"].map(RuleDetailResponseDataFromJSON),
|
|
@@ -18243,7 +18282,6 @@ function FlagDetailResponseDataToJSON(value) {
|
|
|
18243
18282
|
id: value["id"],
|
|
18244
18283
|
key: value["key"],
|
|
18245
18284
|
last_checked_at: value["lastCheckedAt"] == null ? void 0 : value["lastCheckedAt"].toISOString(),
|
|
18246
|
-
latest_check: FlagCheckLogResponseDataToJSON(value["latestCheck"]),
|
|
18247
18285
|
maintainer_id: value["maintainerId"],
|
|
18248
18286
|
name: value["name"],
|
|
18249
18287
|
rules: value["rules"].map(RuleDetailResponseDataToJSON),
|
|
@@ -18261,6 +18299,8 @@ function instanceOfFeatureDetailResponseData(value) {
|
|
|
18261
18299
|
return false;
|
|
18262
18300
|
if (!("flags" in value) || value["flags"] === void 0)
|
|
18263
18301
|
return false;
|
|
18302
|
+
if (!("icon" in value) || value["icon"] === void 0)
|
|
18303
|
+
return false;
|
|
18264
18304
|
if (!("id" in value) || value["id"] === void 0)
|
|
18265
18305
|
return false;
|
|
18266
18306
|
if (!("name" in value) || value["name"] === void 0)
|
|
@@ -18285,7 +18325,7 @@ function FeatureDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
18285
18325
|
eventSummary: json["event_summary"] == null ? void 0 : EventSummaryResponseDataFromJSON(json["event_summary"]),
|
|
18286
18326
|
featureType: json["feature_type"],
|
|
18287
18327
|
flags: json["flags"].map(FlagDetailResponseDataFromJSON),
|
|
18288
|
-
icon: json["icon"]
|
|
18328
|
+
icon: json["icon"],
|
|
18289
18329
|
id: json["id"],
|
|
18290
18330
|
lifecyclePhase: json["lifecycle_phase"] == null ? void 0 : json["lifecycle_phase"],
|
|
18291
18331
|
maintainerId: json["maintainer_id"] == null ? void 0 : json["maintainer_id"],
|
|
@@ -18327,6 +18367,8 @@ function instanceOfPlanResponseData(value) {
|
|
|
18327
18367
|
return false;
|
|
18328
18368
|
if (!("description" in value) || value["description"] === void 0)
|
|
18329
18369
|
return false;
|
|
18370
|
+
if (!("icon" in value) || value["icon"] === void 0)
|
|
18371
|
+
return false;
|
|
18330
18372
|
if (!("id" in value) || value["id"] === void 0)
|
|
18331
18373
|
return false;
|
|
18332
18374
|
if (!("name" in value) || value["name"] === void 0)
|
|
@@ -18348,7 +18390,7 @@ function PlanResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
18348
18390
|
audienceType: json["audience_type"],
|
|
18349
18391
|
createdAt: new Date(json["created_at"]),
|
|
18350
18392
|
description: json["description"],
|
|
18351
|
-
icon: json["icon"]
|
|
18393
|
+
icon: json["icon"],
|
|
18352
18394
|
id: json["id"],
|
|
18353
18395
|
name: json["name"],
|
|
18354
18396
|
planType: json["plan_type"],
|
|
@@ -19333,68 +19375,6 @@ function CountFeaturesResponseToJSON(value) {
|
|
|
19333
19375
|
};
|
|
19334
19376
|
}
|
|
19335
19377
|
|
|
19336
|
-
// src/api/models/CountFlagChecksParams.ts
|
|
19337
|
-
function instanceOfCountFlagChecksParams(value) {
|
|
19338
|
-
return true;
|
|
19339
|
-
}
|
|
19340
|
-
function CountFlagChecksParamsFromJSON(json) {
|
|
19341
|
-
return CountFlagChecksParamsFromJSONTyped(json, false);
|
|
19342
|
-
}
|
|
19343
|
-
function CountFlagChecksParamsFromJSONTyped(json, ignoreDiscriminator) {
|
|
19344
|
-
if (json == null) {
|
|
19345
|
-
return json;
|
|
19346
|
-
}
|
|
19347
|
-
return {
|
|
19348
|
-
flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
|
|
19349
|
-
flagIds: json["flag_ids"] == null ? void 0 : json["flag_ids"],
|
|
19350
|
-
id: json["id"] == null ? void 0 : json["id"],
|
|
19351
|
-
limit: json["limit"] == null ? void 0 : json["limit"],
|
|
19352
|
-
offset: json["offset"] == null ? void 0 : json["offset"]
|
|
19353
|
-
};
|
|
19354
|
-
}
|
|
19355
|
-
function CountFlagChecksParamsToJSON(value) {
|
|
19356
|
-
if (value == null) {
|
|
19357
|
-
return value;
|
|
19358
|
-
}
|
|
19359
|
-
return {
|
|
19360
|
-
flag_id: value["flagId"],
|
|
19361
|
-
flag_ids: value["flagIds"],
|
|
19362
|
-
id: value["id"],
|
|
19363
|
-
limit: value["limit"],
|
|
19364
|
-
offset: value["offset"]
|
|
19365
|
-
};
|
|
19366
|
-
}
|
|
19367
|
-
|
|
19368
|
-
// src/api/models/CountFlagChecksResponse.ts
|
|
19369
|
-
function instanceOfCountFlagChecksResponse(value) {
|
|
19370
|
-
if (!("data" in value) || value["data"] === void 0)
|
|
19371
|
-
return false;
|
|
19372
|
-
if (!("params" in value) || value["params"] === void 0)
|
|
19373
|
-
return false;
|
|
19374
|
-
return true;
|
|
19375
|
-
}
|
|
19376
|
-
function CountFlagChecksResponseFromJSON(json) {
|
|
19377
|
-
return CountFlagChecksResponseFromJSONTyped(json, false);
|
|
19378
|
-
}
|
|
19379
|
-
function CountFlagChecksResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
19380
|
-
if (json == null) {
|
|
19381
|
-
return json;
|
|
19382
|
-
}
|
|
19383
|
-
return {
|
|
19384
|
-
data: CountResponseFromJSON(json["data"]),
|
|
19385
|
-
params: CountFlagChecksParamsFromJSON(json["params"])
|
|
19386
|
-
};
|
|
19387
|
-
}
|
|
19388
|
-
function CountFlagChecksResponseToJSON(value) {
|
|
19389
|
-
if (value == null) {
|
|
19390
|
-
return value;
|
|
19391
|
-
}
|
|
19392
|
-
return {
|
|
19393
|
-
data: CountResponseToJSON(value["data"]),
|
|
19394
|
-
params: CountFlagChecksParamsToJSON(value["params"])
|
|
19395
|
-
};
|
|
19396
|
-
}
|
|
19397
|
-
|
|
19398
19378
|
// src/api/models/CountFlagsParams.ts
|
|
19399
19379
|
function instanceOfCountFlagsParams(value) {
|
|
19400
19380
|
return true;
|
|
@@ -19877,6 +19857,44 @@ function CreateBillingCustomerRequestBodyToJSON(value) {
|
|
|
19877
19857
|
};
|
|
19878
19858
|
}
|
|
19879
19859
|
|
|
19860
|
+
// src/api/models/CreateBillingPriceRequestBody.ts
|
|
19861
|
+
function instanceOfCreateBillingPriceRequestBody(value) {
|
|
19862
|
+
if (!("interval" in value) || value["interval"] === void 0)
|
|
19863
|
+
return false;
|
|
19864
|
+
if (!("price" in value) || value["price"] === void 0)
|
|
19865
|
+
return false;
|
|
19866
|
+
if (!("priceExternalId" in value) || value["priceExternalId"] === void 0)
|
|
19867
|
+
return false;
|
|
19868
|
+
if (!("productExternalId" in value) || value["productExternalId"] === void 0)
|
|
19869
|
+
return false;
|
|
19870
|
+
return true;
|
|
19871
|
+
}
|
|
19872
|
+
function CreateBillingPriceRequestBodyFromJSON(json) {
|
|
19873
|
+
return CreateBillingPriceRequestBodyFromJSONTyped(json, false);
|
|
19874
|
+
}
|
|
19875
|
+
function CreateBillingPriceRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
19876
|
+
if (json == null) {
|
|
19877
|
+
return json;
|
|
19878
|
+
}
|
|
19879
|
+
return {
|
|
19880
|
+
interval: json["interval"],
|
|
19881
|
+
price: json["price"],
|
|
19882
|
+
priceExternalId: json["price_external_id"],
|
|
19883
|
+
productExternalId: json["product_external_id"]
|
|
19884
|
+
};
|
|
19885
|
+
}
|
|
19886
|
+
function CreateBillingPriceRequestBodyToJSON(value) {
|
|
19887
|
+
if (value == null) {
|
|
19888
|
+
return value;
|
|
19889
|
+
}
|
|
19890
|
+
return {
|
|
19891
|
+
interval: value["interval"],
|
|
19892
|
+
price: value["price"],
|
|
19893
|
+
price_external_id: value["priceExternalId"],
|
|
19894
|
+
product_external_id: value["productExternalId"]
|
|
19895
|
+
};
|
|
19896
|
+
}
|
|
19897
|
+
|
|
19880
19898
|
// src/api/models/CreateBillingProductRequestBody.ts
|
|
19881
19899
|
function instanceOfCreateBillingProductRequestBody(value) {
|
|
19882
19900
|
if (!("currency" in value) || value["currency"] === void 0)
|
|
@@ -21317,8 +21335,6 @@ function CreatePlanRequestBodyToJSON(value) {
|
|
|
21317
21335
|
function instanceOfPlanDetailResponseData(value) {
|
|
21318
21336
|
if (!("audienceType" in value) || value["audienceType"] === void 0)
|
|
21319
21337
|
return false;
|
|
21320
|
-
if (!("billingProducts" in value) || value["billingProducts"] === void 0)
|
|
21321
|
-
return false;
|
|
21322
21338
|
if (!("companyCount" in value) || value["companyCount"] === void 0)
|
|
21323
21339
|
return false;
|
|
21324
21340
|
if (!("createdAt" in value) || value["createdAt"] === void 0)
|
|
@@ -21327,6 +21343,8 @@ function instanceOfPlanDetailResponseData(value) {
|
|
|
21327
21343
|
return false;
|
|
21328
21344
|
if (!("features" in value) || value["features"] === void 0)
|
|
21329
21345
|
return false;
|
|
21346
|
+
if (!("icon" in value) || value["icon"] === void 0)
|
|
21347
|
+
return false;
|
|
21330
21348
|
if (!("id" in value) || value["id"] === void 0)
|
|
21331
21349
|
return false;
|
|
21332
21350
|
if (!("name" in value) || value["name"] === void 0)
|
|
@@ -21346,16 +21364,14 @@ function PlanDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
21346
21364
|
}
|
|
21347
21365
|
return {
|
|
21348
21366
|
audienceType: json["audience_type"],
|
|
21349
|
-
|
|
21350
|
-
BillingProductResponseDataFromJSON
|
|
21351
|
-
),
|
|
21367
|
+
billingProduct: json["billing_product"] == null ? void 0 : BillingProductDetailResponseDataFromJSON(json["billing_product"]),
|
|
21352
21368
|
companyCount: json["company_count"],
|
|
21353
21369
|
createdAt: new Date(json["created_at"]),
|
|
21354
21370
|
description: json["description"],
|
|
21355
21371
|
features: json["features"].map(
|
|
21356
21372
|
FeatureDetailResponseDataFromJSON
|
|
21357
21373
|
),
|
|
21358
|
-
icon: json["icon"]
|
|
21374
|
+
icon: json["icon"],
|
|
21359
21375
|
id: json["id"],
|
|
21360
21376
|
name: json["name"],
|
|
21361
21377
|
planType: json["plan_type"],
|
|
@@ -21368,8 +21384,8 @@ function PlanDetailResponseDataToJSON(value) {
|
|
|
21368
21384
|
}
|
|
21369
21385
|
return {
|
|
21370
21386
|
audience_type: value["audienceType"],
|
|
21371
|
-
|
|
21372
|
-
|
|
21387
|
+
billing_product: BillingProductDetailResponseDataToJSON(
|
|
21388
|
+
value["billingProduct"]
|
|
21373
21389
|
),
|
|
21374
21390
|
company_count: value["companyCount"],
|
|
21375
21391
|
created_at: value["createdAt"].toISOString(),
|
|
@@ -22885,148 +22901,12 @@ function FlagResponseDataToJSON(value) {
|
|
|
22885
22901
|
};
|
|
22886
22902
|
}
|
|
22887
22903
|
|
|
22888
|
-
// src/api/models/
|
|
22889
|
-
function
|
|
22890
|
-
if (!("createdAt" in value) || value["createdAt"] === void 0)
|
|
22891
|
-
return false;
|
|
22892
|
-
if (!("environmentId" in value) || value["environmentId"] === void 0)
|
|
22893
|
-
return false;
|
|
22894
|
-
if (!("id" in value) || value["id"] === void 0)
|
|
22895
|
-
return false;
|
|
22896
|
-
if (!("name" in value) || value["name"] === void 0)
|
|
22897
|
-
return false;
|
|
22898
|
-
if (!("priority" in value) || value["priority"] === void 0)
|
|
22899
|
-
return false;
|
|
22900
|
-
if (!("ruleType" in value) || value["ruleType"] === void 0)
|
|
22901
|
-
return false;
|
|
22902
|
-
if (!("updatedAt" in value) || value["updatedAt"] === void 0)
|
|
22903
|
-
return false;
|
|
22904
|
-
if (!("value" in value) || value["value"] === void 0)
|
|
22905
|
-
return false;
|
|
22904
|
+
// src/api/models/GetActiveCompanySubscriptionParams.ts
|
|
22905
|
+
function instanceOfGetActiveCompanySubscriptionParams(value) {
|
|
22906
22906
|
return true;
|
|
22907
22907
|
}
|
|
22908
|
-
function
|
|
22909
|
-
return
|
|
22910
|
-
}
|
|
22911
|
-
function RuleResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
22912
|
-
if (json == null) {
|
|
22913
|
-
return json;
|
|
22914
|
-
}
|
|
22915
|
-
return {
|
|
22916
|
-
createdAt: new Date(json["created_at"]),
|
|
22917
|
-
environmentId: json["environment_id"],
|
|
22918
|
-
flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
|
|
22919
|
-
id: json["id"],
|
|
22920
|
-
name: json["name"],
|
|
22921
|
-
planId: json["plan_id"] == null ? void 0 : json["plan_id"],
|
|
22922
|
-
priority: json["priority"],
|
|
22923
|
-
ruleType: json["rule_type"],
|
|
22924
|
-
updatedAt: new Date(json["updated_at"]),
|
|
22925
|
-
value: json["value"]
|
|
22926
|
-
};
|
|
22927
|
-
}
|
|
22928
|
-
function RuleResponseDataToJSON(value) {
|
|
22929
|
-
if (value == null) {
|
|
22930
|
-
return value;
|
|
22931
|
-
}
|
|
22932
|
-
return {
|
|
22933
|
-
created_at: value["createdAt"].toISOString(),
|
|
22934
|
-
environment_id: value["environmentId"],
|
|
22935
|
-
flag_id: value["flagId"],
|
|
22936
|
-
id: value["id"],
|
|
22937
|
-
name: value["name"],
|
|
22938
|
-
plan_id: value["planId"],
|
|
22939
|
-
priority: value["priority"],
|
|
22940
|
-
rule_type: value["ruleType"],
|
|
22941
|
-
updated_at: value["updatedAt"].toISOString(),
|
|
22942
|
-
value: value["value"]
|
|
22943
|
-
};
|
|
22944
|
-
}
|
|
22945
|
-
|
|
22946
|
-
// src/api/models/FlagCheckLogDetailResponseData.ts
|
|
22947
|
-
function instanceOfFlagCheckLogDetailResponseData(value) {
|
|
22948
|
-
if (!("checkStatus" in value) || value["checkStatus"] === void 0)
|
|
22949
|
-
return false;
|
|
22950
|
-
if (!("createdAt" in value) || value["createdAt"] === void 0)
|
|
22951
|
-
return false;
|
|
22952
|
-
if (!("environmentId" in value) || value["environmentId"] === void 0)
|
|
22953
|
-
return false;
|
|
22954
|
-
if (!("flagKey" in value) || value["flagKey"] === void 0)
|
|
22955
|
-
return false;
|
|
22956
|
-
if (!("id" in value) || value["id"] === void 0)
|
|
22957
|
-
return false;
|
|
22958
|
-
if (!("reason" in value) || value["reason"] === void 0)
|
|
22959
|
-
return false;
|
|
22960
|
-
if (!("updatedAt" in value) || value["updatedAt"] === void 0)
|
|
22961
|
-
return false;
|
|
22962
|
-
if (!("value" in value) || value["value"] === void 0)
|
|
22963
|
-
return false;
|
|
22964
|
-
return true;
|
|
22965
|
-
}
|
|
22966
|
-
function FlagCheckLogDetailResponseDataFromJSON(json) {
|
|
22967
|
-
return FlagCheckLogDetailResponseDataFromJSONTyped(json, false);
|
|
22968
|
-
}
|
|
22969
|
-
function FlagCheckLogDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
22970
|
-
if (json == null) {
|
|
22971
|
-
return json;
|
|
22972
|
-
}
|
|
22973
|
-
return {
|
|
22974
|
-
checkStatus: json["check_status"],
|
|
22975
|
-
company: json["company"] == null ? void 0 : CompanyResponseDataFromJSON(json["company"]),
|
|
22976
|
-
companyId: json["company_id"] == null ? void 0 : json["company_id"],
|
|
22977
|
-
createdAt: new Date(json["created_at"]),
|
|
22978
|
-
environment: json["environment"] == null ? void 0 : EnvironmentResponseDataFromJSON(json["environment"]),
|
|
22979
|
-
environmentId: json["environment_id"],
|
|
22980
|
-
error: json["error"] == null ? void 0 : json["error"],
|
|
22981
|
-
flag: json["flag"] == null ? void 0 : FlagResponseDataFromJSON(json["flag"]),
|
|
22982
|
-
flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
|
|
22983
|
-
flagKey: json["flag_key"],
|
|
22984
|
-
id: json["id"],
|
|
22985
|
-
reason: json["reason"],
|
|
22986
|
-
reqCompany: json["req_company"] == null ? void 0 : json["req_company"],
|
|
22987
|
-
reqUser: json["req_user"] == null ? void 0 : json["req_user"],
|
|
22988
|
-
rule: json["rule"] == null ? void 0 : RuleResponseDataFromJSON(json["rule"]),
|
|
22989
|
-
ruleId: json["rule_id"] == null ? void 0 : json["rule_id"],
|
|
22990
|
-
updatedAt: new Date(json["updated_at"]),
|
|
22991
|
-
user: json["user"] == null ? void 0 : UserResponseDataFromJSON(json["user"]),
|
|
22992
|
-
userId: json["user_id"] == null ? void 0 : json["user_id"],
|
|
22993
|
-
value: json["value"]
|
|
22994
|
-
};
|
|
22995
|
-
}
|
|
22996
|
-
function FlagCheckLogDetailResponseDataToJSON(value) {
|
|
22997
|
-
if (value == null) {
|
|
22998
|
-
return value;
|
|
22999
|
-
}
|
|
23000
|
-
return {
|
|
23001
|
-
check_status: value["checkStatus"],
|
|
23002
|
-
company: CompanyResponseDataToJSON(value["company"]),
|
|
23003
|
-
company_id: value["companyId"],
|
|
23004
|
-
created_at: value["createdAt"].toISOString(),
|
|
23005
|
-
environment: EnvironmentResponseDataToJSON(value["environment"]),
|
|
23006
|
-
environment_id: value["environmentId"],
|
|
23007
|
-
error: value["error"],
|
|
23008
|
-
flag: FlagResponseDataToJSON(value["flag"]),
|
|
23009
|
-
flag_id: value["flagId"],
|
|
23010
|
-
flag_key: value["flagKey"],
|
|
23011
|
-
id: value["id"],
|
|
23012
|
-
reason: value["reason"],
|
|
23013
|
-
req_company: value["reqCompany"],
|
|
23014
|
-
req_user: value["reqUser"],
|
|
23015
|
-
rule: RuleResponseDataToJSON(value["rule"]),
|
|
23016
|
-
rule_id: value["ruleId"],
|
|
23017
|
-
updated_at: value["updatedAt"].toISOString(),
|
|
23018
|
-
user: UserResponseDataToJSON(value["user"]),
|
|
23019
|
-
user_id: value["userId"],
|
|
23020
|
-
value: value["value"]
|
|
23021
|
-
};
|
|
23022
|
-
}
|
|
23023
|
-
|
|
23024
|
-
// src/api/models/GetActiveCompanySubscriptionParams.ts
|
|
23025
|
-
function instanceOfGetActiveCompanySubscriptionParams(value) {
|
|
23026
|
-
return true;
|
|
23027
|
-
}
|
|
23028
|
-
function GetActiveCompanySubscriptionParamsFromJSON(json) {
|
|
23029
|
-
return GetActiveCompanySubscriptionParamsFromJSONTyped(json, false);
|
|
22908
|
+
function GetActiveCompanySubscriptionParamsFromJSON(json) {
|
|
22909
|
+
return GetActiveCompanySubscriptionParamsFromJSONTyped(json, false);
|
|
23030
22910
|
}
|
|
23031
22911
|
function GetActiveCompanySubscriptionParamsFromJSONTyped(json, ignoreDiscriminator) {
|
|
23032
22912
|
if (json == null) {
|
|
@@ -23721,36 +23601,6 @@ function GetFeatureUsageByCompanyResponseToJSON(value) {
|
|
|
23721
23601
|
};
|
|
23722
23602
|
}
|
|
23723
23603
|
|
|
23724
|
-
// src/api/models/GetFlagCheckResponse.ts
|
|
23725
|
-
function instanceOfGetFlagCheckResponse(value) {
|
|
23726
|
-
if (!("data" in value) || value["data"] === void 0)
|
|
23727
|
-
return false;
|
|
23728
|
-
if (!("params" in value) || value["params"] === void 0)
|
|
23729
|
-
return false;
|
|
23730
|
-
return true;
|
|
23731
|
-
}
|
|
23732
|
-
function GetFlagCheckResponseFromJSON(json) {
|
|
23733
|
-
return GetFlagCheckResponseFromJSONTyped(json, false);
|
|
23734
|
-
}
|
|
23735
|
-
function GetFlagCheckResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
23736
|
-
if (json == null) {
|
|
23737
|
-
return json;
|
|
23738
|
-
}
|
|
23739
|
-
return {
|
|
23740
|
-
data: FlagCheckLogDetailResponseDataFromJSON(json["data"]),
|
|
23741
|
-
params: json["params"]
|
|
23742
|
-
};
|
|
23743
|
-
}
|
|
23744
|
-
function GetFlagCheckResponseToJSON(value) {
|
|
23745
|
-
if (value == null) {
|
|
23746
|
-
return value;
|
|
23747
|
-
}
|
|
23748
|
-
return {
|
|
23749
|
-
data: FlagCheckLogDetailResponseDataToJSON(value["data"]),
|
|
23750
|
-
params: value["params"]
|
|
23751
|
-
};
|
|
23752
|
-
}
|
|
23753
|
-
|
|
23754
23604
|
// src/api/models/GetFlagResponse.ts
|
|
23755
23605
|
function instanceOfGetFlagResponse(value) {
|
|
23756
23606
|
if (!("data" in value) || value["data"] === void 0)
|
|
@@ -23781,68 +23631,6 @@ function GetFlagResponseToJSON(value) {
|
|
|
23781
23631
|
};
|
|
23782
23632
|
}
|
|
23783
23633
|
|
|
23784
|
-
// src/api/models/GetLatestFlagChecksParams.ts
|
|
23785
|
-
function instanceOfGetLatestFlagChecksParams(value) {
|
|
23786
|
-
return true;
|
|
23787
|
-
}
|
|
23788
|
-
function GetLatestFlagChecksParamsFromJSON(json) {
|
|
23789
|
-
return GetLatestFlagChecksParamsFromJSONTyped(json, false);
|
|
23790
|
-
}
|
|
23791
|
-
function GetLatestFlagChecksParamsFromJSONTyped(json, ignoreDiscriminator) {
|
|
23792
|
-
if (json == null) {
|
|
23793
|
-
return json;
|
|
23794
|
-
}
|
|
23795
|
-
return {
|
|
23796
|
-
flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
|
|
23797
|
-
flagIds: json["flag_ids"] == null ? void 0 : json["flag_ids"],
|
|
23798
|
-
id: json["id"] == null ? void 0 : json["id"],
|
|
23799
|
-
limit: json["limit"] == null ? void 0 : json["limit"],
|
|
23800
|
-
offset: json["offset"] == null ? void 0 : json["offset"]
|
|
23801
|
-
};
|
|
23802
|
-
}
|
|
23803
|
-
function GetLatestFlagChecksParamsToJSON(value) {
|
|
23804
|
-
if (value == null) {
|
|
23805
|
-
return value;
|
|
23806
|
-
}
|
|
23807
|
-
return {
|
|
23808
|
-
flag_id: value["flagId"],
|
|
23809
|
-
flag_ids: value["flagIds"],
|
|
23810
|
-
id: value["id"],
|
|
23811
|
-
limit: value["limit"],
|
|
23812
|
-
offset: value["offset"]
|
|
23813
|
-
};
|
|
23814
|
-
}
|
|
23815
|
-
|
|
23816
|
-
// src/api/models/GetLatestFlagChecksResponse.ts
|
|
23817
|
-
function instanceOfGetLatestFlagChecksResponse(value) {
|
|
23818
|
-
if (!("data" in value) || value["data"] === void 0)
|
|
23819
|
-
return false;
|
|
23820
|
-
if (!("params" in value) || value["params"] === void 0)
|
|
23821
|
-
return false;
|
|
23822
|
-
return true;
|
|
23823
|
-
}
|
|
23824
|
-
function GetLatestFlagChecksResponseFromJSON(json) {
|
|
23825
|
-
return GetLatestFlagChecksResponseFromJSONTyped(json, false);
|
|
23826
|
-
}
|
|
23827
|
-
function GetLatestFlagChecksResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
23828
|
-
if (json == null) {
|
|
23829
|
-
return json;
|
|
23830
|
-
}
|
|
23831
|
-
return {
|
|
23832
|
-
data: json["data"].map(FlagCheckLogResponseDataFromJSON),
|
|
23833
|
-
params: GetLatestFlagChecksParamsFromJSON(json["params"])
|
|
23834
|
-
};
|
|
23835
|
-
}
|
|
23836
|
-
function GetLatestFlagChecksResponseToJSON(value) {
|
|
23837
|
-
if (value == null) {
|
|
23838
|
-
return value;
|
|
23839
|
-
}
|
|
23840
|
-
return {
|
|
23841
|
-
data: value["data"].map(FlagCheckLogResponseDataToJSON),
|
|
23842
|
-
params: GetLatestFlagChecksParamsToJSON(value["params"])
|
|
23843
|
-
};
|
|
23844
|
-
}
|
|
23845
|
-
|
|
23846
23634
|
// src/api/models/GetOrCreateCompanyMembershipRequestBody.ts
|
|
23847
23635
|
function instanceOfGetOrCreateCompanyMembershipRequestBody(value) {
|
|
23848
23636
|
if (!("companyId" in value) || value["companyId"] === void 0)
|
|
@@ -24555,6 +24343,72 @@ function ListAudienceUsersResponseToJSON(value) {
|
|
|
24555
24343
|
};
|
|
24556
24344
|
}
|
|
24557
24345
|
|
|
24346
|
+
// src/api/models/ListBillingProductsParams.ts
|
|
24347
|
+
function instanceOfListBillingProductsParams(value) {
|
|
24348
|
+
return true;
|
|
24349
|
+
}
|
|
24350
|
+
function ListBillingProductsParamsFromJSON(json) {
|
|
24351
|
+
return ListBillingProductsParamsFromJSONTyped(json, false);
|
|
24352
|
+
}
|
|
24353
|
+
function ListBillingProductsParamsFromJSONTyped(json, ignoreDiscriminator) {
|
|
24354
|
+
if (json == null) {
|
|
24355
|
+
return json;
|
|
24356
|
+
}
|
|
24357
|
+
return {
|
|
24358
|
+
ids: json["ids"] == null ? void 0 : json["ids"],
|
|
24359
|
+
limit: json["limit"] == null ? void 0 : json["limit"],
|
|
24360
|
+
name: json["name"] == null ? void 0 : json["name"],
|
|
24361
|
+
offset: json["offset"] == null ? void 0 : json["offset"],
|
|
24362
|
+
q: json["q"] == null ? void 0 : json["q"]
|
|
24363
|
+
};
|
|
24364
|
+
}
|
|
24365
|
+
function ListBillingProductsParamsToJSON(value) {
|
|
24366
|
+
if (value == null) {
|
|
24367
|
+
return value;
|
|
24368
|
+
}
|
|
24369
|
+
return {
|
|
24370
|
+
ids: value["ids"],
|
|
24371
|
+
limit: value["limit"],
|
|
24372
|
+
name: value["name"],
|
|
24373
|
+
offset: value["offset"],
|
|
24374
|
+
q: value["q"]
|
|
24375
|
+
};
|
|
24376
|
+
}
|
|
24377
|
+
|
|
24378
|
+
// src/api/models/ListBillingProductsResponse.ts
|
|
24379
|
+
function instanceOfListBillingProductsResponse(value) {
|
|
24380
|
+
if (!("data" in value) || value["data"] === void 0)
|
|
24381
|
+
return false;
|
|
24382
|
+
if (!("params" in value) || value["params"] === void 0)
|
|
24383
|
+
return false;
|
|
24384
|
+
return true;
|
|
24385
|
+
}
|
|
24386
|
+
function ListBillingProductsResponseFromJSON(json) {
|
|
24387
|
+
return ListBillingProductsResponseFromJSONTyped(json, false);
|
|
24388
|
+
}
|
|
24389
|
+
function ListBillingProductsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
24390
|
+
if (json == null) {
|
|
24391
|
+
return json;
|
|
24392
|
+
}
|
|
24393
|
+
return {
|
|
24394
|
+
data: json["data"].map(
|
|
24395
|
+
BillingProductDetailResponseDataFromJSON
|
|
24396
|
+
),
|
|
24397
|
+
params: ListBillingProductsParamsFromJSON(json["params"])
|
|
24398
|
+
};
|
|
24399
|
+
}
|
|
24400
|
+
function ListBillingProductsResponseToJSON(value) {
|
|
24401
|
+
if (value == null) {
|
|
24402
|
+
return value;
|
|
24403
|
+
}
|
|
24404
|
+
return {
|
|
24405
|
+
data: value["data"].map(
|
|
24406
|
+
BillingProductDetailResponseDataToJSON
|
|
24407
|
+
),
|
|
24408
|
+
params: ListBillingProductsParamsToJSON(value["params"])
|
|
24409
|
+
};
|
|
24410
|
+
}
|
|
24411
|
+
|
|
24558
24412
|
// src/api/models/ListCompaniesParams.ts
|
|
24559
24413
|
function instanceOfListCompaniesParams(value) {
|
|
24560
24414
|
return true;
|
|
@@ -25521,72 +25375,6 @@ function ListFeaturesResponseToJSON(value) {
|
|
|
25521
25375
|
};
|
|
25522
25376
|
}
|
|
25523
25377
|
|
|
25524
|
-
// src/api/models/ListFlagChecksParams.ts
|
|
25525
|
-
function instanceOfListFlagChecksParams(value) {
|
|
25526
|
-
return true;
|
|
25527
|
-
}
|
|
25528
|
-
function ListFlagChecksParamsFromJSON(json) {
|
|
25529
|
-
return ListFlagChecksParamsFromJSONTyped(json, false);
|
|
25530
|
-
}
|
|
25531
|
-
function ListFlagChecksParamsFromJSONTyped(json, ignoreDiscriminator) {
|
|
25532
|
-
if (json == null) {
|
|
25533
|
-
return json;
|
|
25534
|
-
}
|
|
25535
|
-
return {
|
|
25536
|
-
flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
|
|
25537
|
-
flagIds: json["flag_ids"] == null ? void 0 : json["flag_ids"],
|
|
25538
|
-
id: json["id"] == null ? void 0 : json["id"],
|
|
25539
|
-
limit: json["limit"] == null ? void 0 : json["limit"],
|
|
25540
|
-
offset: json["offset"] == null ? void 0 : json["offset"]
|
|
25541
|
-
};
|
|
25542
|
-
}
|
|
25543
|
-
function ListFlagChecksParamsToJSON(value) {
|
|
25544
|
-
if (value == null) {
|
|
25545
|
-
return value;
|
|
25546
|
-
}
|
|
25547
|
-
return {
|
|
25548
|
-
flag_id: value["flagId"],
|
|
25549
|
-
flag_ids: value["flagIds"],
|
|
25550
|
-
id: value["id"],
|
|
25551
|
-
limit: value["limit"],
|
|
25552
|
-
offset: value["offset"]
|
|
25553
|
-
};
|
|
25554
|
-
}
|
|
25555
|
-
|
|
25556
|
-
// src/api/models/ListFlagChecksResponse.ts
|
|
25557
|
-
function instanceOfListFlagChecksResponse(value) {
|
|
25558
|
-
if (!("data" in value) || value["data"] === void 0)
|
|
25559
|
-
return false;
|
|
25560
|
-
if (!("params" in value) || value["params"] === void 0)
|
|
25561
|
-
return false;
|
|
25562
|
-
return true;
|
|
25563
|
-
}
|
|
25564
|
-
function ListFlagChecksResponseFromJSON(json) {
|
|
25565
|
-
return ListFlagChecksResponseFromJSONTyped(json, false);
|
|
25566
|
-
}
|
|
25567
|
-
function ListFlagChecksResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
25568
|
-
if (json == null) {
|
|
25569
|
-
return json;
|
|
25570
|
-
}
|
|
25571
|
-
return {
|
|
25572
|
-
data: json["data"].map(
|
|
25573
|
-
FlagCheckLogDetailResponseDataFromJSON
|
|
25574
|
-
),
|
|
25575
|
-
params: ListFlagChecksParamsFromJSON(json["params"])
|
|
25576
|
-
};
|
|
25577
|
-
}
|
|
25578
|
-
function ListFlagChecksResponseToJSON(value) {
|
|
25579
|
-
if (value == null) {
|
|
25580
|
-
return value;
|
|
25581
|
-
}
|
|
25582
|
-
return {
|
|
25583
|
-
data: value["data"].map(
|
|
25584
|
-
FlagCheckLogDetailResponseDataToJSON
|
|
25585
|
-
),
|
|
25586
|
-
params: ListFlagChecksParamsToJSON(value["params"])
|
|
25587
|
-
};
|
|
25588
|
-
}
|
|
25589
|
-
|
|
25590
25378
|
// src/api/models/ListFlagsParams.ts
|
|
25591
25379
|
function instanceOfListFlagsParams(value) {
|
|
25592
25380
|
return true;
|
|
@@ -25903,14 +25691,14 @@ function ListPlansResponseToJSON(value) {
|
|
|
25903
25691
|
};
|
|
25904
25692
|
}
|
|
25905
25693
|
|
|
25906
|
-
// src/api/models/
|
|
25907
|
-
function
|
|
25694
|
+
// src/api/models/ListProductPricesParams.ts
|
|
25695
|
+
function instanceOfListProductPricesParams(value) {
|
|
25908
25696
|
return true;
|
|
25909
25697
|
}
|
|
25910
|
-
function
|
|
25911
|
-
return
|
|
25698
|
+
function ListProductPricesParamsFromJSON(json) {
|
|
25699
|
+
return ListProductPricesParamsFromJSONTyped(json, false);
|
|
25912
25700
|
}
|
|
25913
|
-
function
|
|
25701
|
+
function ListProductPricesParamsFromJSONTyped(json, ignoreDiscriminator) {
|
|
25914
25702
|
if (json == null) {
|
|
25915
25703
|
return json;
|
|
25916
25704
|
}
|
|
@@ -25922,7 +25710,7 @@ function ListProductsParamsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
25922
25710
|
q: json["q"] == null ? void 0 : json["q"]
|
|
25923
25711
|
};
|
|
25924
25712
|
}
|
|
25925
|
-
function
|
|
25713
|
+
function ListProductPricesParamsToJSON(value) {
|
|
25926
25714
|
if (value == null) {
|
|
25927
25715
|
return value;
|
|
25928
25716
|
}
|
|
@@ -25935,33 +25723,33 @@ function ListProductsParamsToJSON(value) {
|
|
|
25935
25723
|
};
|
|
25936
25724
|
}
|
|
25937
25725
|
|
|
25938
|
-
// src/api/models/
|
|
25939
|
-
function
|
|
25726
|
+
// src/api/models/ListProductPricesResponse.ts
|
|
25727
|
+
function instanceOfListProductPricesResponse(value) {
|
|
25940
25728
|
if (!("data" in value) || value["data"] === void 0)
|
|
25941
25729
|
return false;
|
|
25942
25730
|
if (!("params" in value) || value["params"] === void 0)
|
|
25943
25731
|
return false;
|
|
25944
25732
|
return true;
|
|
25945
25733
|
}
|
|
25946
|
-
function
|
|
25947
|
-
return
|
|
25734
|
+
function ListProductPricesResponseFromJSON(json) {
|
|
25735
|
+
return ListProductPricesResponseFromJSONTyped(json, false);
|
|
25948
25736
|
}
|
|
25949
|
-
function
|
|
25737
|
+
function ListProductPricesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
25950
25738
|
if (json == null) {
|
|
25951
25739
|
return json;
|
|
25952
25740
|
}
|
|
25953
25741
|
return {
|
|
25954
|
-
data: json["data"].map(
|
|
25955
|
-
params:
|
|
25742
|
+
data: json["data"].map(BillingPriceResponseDataFromJSON),
|
|
25743
|
+
params: ListProductPricesParamsFromJSON(json["params"])
|
|
25956
25744
|
};
|
|
25957
25745
|
}
|
|
25958
|
-
function
|
|
25746
|
+
function ListProductPricesResponseToJSON(value) {
|
|
25959
25747
|
if (value == null) {
|
|
25960
25748
|
return value;
|
|
25961
25749
|
}
|
|
25962
25750
|
return {
|
|
25963
|
-
data: value["data"].map(
|
|
25964
|
-
params:
|
|
25751
|
+
data: value["data"].map(BillingPriceResponseDataToJSON),
|
|
25752
|
+
params: ListProductPricesParamsToJSON(value["params"])
|
|
25965
25753
|
};
|
|
25966
25754
|
}
|
|
25967
25755
|
|
|
@@ -26467,6 +26255,64 @@ function RuleConditionResponseDataToJSON(value) {
|
|
|
26467
26255
|
};
|
|
26468
26256
|
}
|
|
26469
26257
|
|
|
26258
|
+
// src/api/models/RuleResponseData.ts
|
|
26259
|
+
function instanceOfRuleResponseData(value) {
|
|
26260
|
+
if (!("createdAt" in value) || value["createdAt"] === void 0)
|
|
26261
|
+
return false;
|
|
26262
|
+
if (!("environmentId" in value) || value["environmentId"] === void 0)
|
|
26263
|
+
return false;
|
|
26264
|
+
if (!("id" in value) || value["id"] === void 0)
|
|
26265
|
+
return false;
|
|
26266
|
+
if (!("name" in value) || value["name"] === void 0)
|
|
26267
|
+
return false;
|
|
26268
|
+
if (!("priority" in value) || value["priority"] === void 0)
|
|
26269
|
+
return false;
|
|
26270
|
+
if (!("ruleType" in value) || value["ruleType"] === void 0)
|
|
26271
|
+
return false;
|
|
26272
|
+
if (!("updatedAt" in value) || value["updatedAt"] === void 0)
|
|
26273
|
+
return false;
|
|
26274
|
+
if (!("value" in value) || value["value"] === void 0)
|
|
26275
|
+
return false;
|
|
26276
|
+
return true;
|
|
26277
|
+
}
|
|
26278
|
+
function RuleResponseDataFromJSON(json) {
|
|
26279
|
+
return RuleResponseDataFromJSONTyped(json, false);
|
|
26280
|
+
}
|
|
26281
|
+
function RuleResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
26282
|
+
if (json == null) {
|
|
26283
|
+
return json;
|
|
26284
|
+
}
|
|
26285
|
+
return {
|
|
26286
|
+
createdAt: new Date(json["created_at"]),
|
|
26287
|
+
environmentId: json["environment_id"],
|
|
26288
|
+
flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
|
|
26289
|
+
id: json["id"],
|
|
26290
|
+
name: json["name"],
|
|
26291
|
+
planId: json["plan_id"] == null ? void 0 : json["plan_id"],
|
|
26292
|
+
priority: json["priority"],
|
|
26293
|
+
ruleType: json["rule_type"],
|
|
26294
|
+
updatedAt: new Date(json["updated_at"]),
|
|
26295
|
+
value: json["value"]
|
|
26296
|
+
};
|
|
26297
|
+
}
|
|
26298
|
+
function RuleResponseDataToJSON(value) {
|
|
26299
|
+
if (value == null) {
|
|
26300
|
+
return value;
|
|
26301
|
+
}
|
|
26302
|
+
return {
|
|
26303
|
+
created_at: value["createdAt"].toISOString(),
|
|
26304
|
+
environment_id: value["environmentId"],
|
|
26305
|
+
flag_id: value["flagId"],
|
|
26306
|
+
id: value["id"],
|
|
26307
|
+
name: value["name"],
|
|
26308
|
+
plan_id: value["planId"],
|
|
26309
|
+
priority: value["priority"],
|
|
26310
|
+
rule_type: value["ruleType"],
|
|
26311
|
+
updated_at: value["updatedAt"].toISOString(),
|
|
26312
|
+
value: value["value"]
|
|
26313
|
+
};
|
|
26314
|
+
}
|
|
26315
|
+
|
|
26470
26316
|
// src/api/models/RulesDetailResponseData.ts
|
|
26471
26317
|
function instanceOfRulesDetailResponseData(value) {
|
|
26472
26318
|
if (!("rules" in value) || value["rules"] === void 0)
|
|
@@ -27467,6 +27313,36 @@ function UpsertBillingCustomerResponseToJSON(value) {
|
|
|
27467
27313
|
};
|
|
27468
27314
|
}
|
|
27469
27315
|
|
|
27316
|
+
// src/api/models/UpsertBillingPriceResponse.ts
|
|
27317
|
+
function instanceOfUpsertBillingPriceResponse(value) {
|
|
27318
|
+
if (!("data" in value) || value["data"] === void 0)
|
|
27319
|
+
return false;
|
|
27320
|
+
if (!("params" in value) || value["params"] === void 0)
|
|
27321
|
+
return false;
|
|
27322
|
+
return true;
|
|
27323
|
+
}
|
|
27324
|
+
function UpsertBillingPriceResponseFromJSON(json) {
|
|
27325
|
+
return UpsertBillingPriceResponseFromJSONTyped(json, false);
|
|
27326
|
+
}
|
|
27327
|
+
function UpsertBillingPriceResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
27328
|
+
if (json == null) {
|
|
27329
|
+
return json;
|
|
27330
|
+
}
|
|
27331
|
+
return {
|
|
27332
|
+
data: BillingPriceResponseDataFromJSON(json["data"]),
|
|
27333
|
+
params: json["params"]
|
|
27334
|
+
};
|
|
27335
|
+
}
|
|
27336
|
+
function UpsertBillingPriceResponseToJSON(value) {
|
|
27337
|
+
if (value == null) {
|
|
27338
|
+
return value;
|
|
27339
|
+
}
|
|
27340
|
+
return {
|
|
27341
|
+
data: BillingPriceResponseDataToJSON(value["data"]),
|
|
27342
|
+
params: value["params"]
|
|
27343
|
+
};
|
|
27344
|
+
}
|
|
27345
|
+
|
|
27470
27346
|
// src/api/models/UpsertBillingProductPlanResponse.ts
|
|
27471
27347
|
function instanceOfUpsertBillingProductPlanResponse(value) {
|
|
27472
27348
|
if (!("data" in value) || value["data"] === void 0)
|
|
@@ -28797,6 +28673,56 @@ var BillingApi = class extends BaseAPI {
|
|
|
28797
28673
|
);
|
|
28798
28674
|
return await response.value();
|
|
28799
28675
|
}
|
|
28676
|
+
/**
|
|
28677
|
+
* List billing products
|
|
28678
|
+
*/
|
|
28679
|
+
async listBillingProductsRaw(requestParameters, initOverrides) {
|
|
28680
|
+
const queryParameters = {};
|
|
28681
|
+
if (requestParameters["ids"] != null) {
|
|
28682
|
+
queryParameters["ids"] = requestParameters["ids"];
|
|
28683
|
+
}
|
|
28684
|
+
if (requestParameters["name"] != null) {
|
|
28685
|
+
queryParameters["name"] = requestParameters["name"];
|
|
28686
|
+
}
|
|
28687
|
+
if (requestParameters["q"] != null) {
|
|
28688
|
+
queryParameters["q"] = requestParameters["q"];
|
|
28689
|
+
}
|
|
28690
|
+
if (requestParameters["limit"] != null) {
|
|
28691
|
+
queryParameters["limit"] = requestParameters["limit"];
|
|
28692
|
+
}
|
|
28693
|
+
if (requestParameters["offset"] != null) {
|
|
28694
|
+
queryParameters["offset"] = requestParameters["offset"];
|
|
28695
|
+
}
|
|
28696
|
+
const headerParameters = {};
|
|
28697
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
28698
|
+
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
28699
|
+
"X-Schematic-Api-Key"
|
|
28700
|
+
);
|
|
28701
|
+
}
|
|
28702
|
+
const response = await this.request(
|
|
28703
|
+
{
|
|
28704
|
+
path: `/billing/products`,
|
|
28705
|
+
method: "GET",
|
|
28706
|
+
headers: headerParameters,
|
|
28707
|
+
query: queryParameters
|
|
28708
|
+
},
|
|
28709
|
+
initOverrides
|
|
28710
|
+
);
|
|
28711
|
+
return new JSONApiResponse(
|
|
28712
|
+
response,
|
|
28713
|
+
(jsonValue) => ListBillingProductsResponseFromJSON(jsonValue)
|
|
28714
|
+
);
|
|
28715
|
+
}
|
|
28716
|
+
/**
|
|
28717
|
+
* List billing products
|
|
28718
|
+
*/
|
|
28719
|
+
async listBillingProducts(requestParameters = {}, initOverrides) {
|
|
28720
|
+
const response = await this.listBillingProductsRaw(
|
|
28721
|
+
requestParameters,
|
|
28722
|
+
initOverrides
|
|
28723
|
+
);
|
|
28724
|
+
return await response.value();
|
|
28725
|
+
}
|
|
28800
28726
|
/**
|
|
28801
28727
|
* List customers
|
|
28802
28728
|
*/
|
|
@@ -28848,9 +28774,9 @@ var BillingApi = class extends BaseAPI {
|
|
|
28848
28774
|
return await response.value();
|
|
28849
28775
|
}
|
|
28850
28776
|
/**
|
|
28851
|
-
* List
|
|
28777
|
+
* List product prices
|
|
28852
28778
|
*/
|
|
28853
|
-
async
|
|
28779
|
+
async listProductPricesRaw(requestParameters, initOverrides) {
|
|
28854
28780
|
const queryParameters = {};
|
|
28855
28781
|
if (requestParameters["ids"] != null) {
|
|
28856
28782
|
queryParameters["ids"] = requestParameters["ids"];
|
|
@@ -28875,7 +28801,7 @@ var BillingApi = class extends BaseAPI {
|
|
|
28875
28801
|
}
|
|
28876
28802
|
const response = await this.request(
|
|
28877
28803
|
{
|
|
28878
|
-
path: `/billing/
|
|
28804
|
+
path: `/billing/product/prices`,
|
|
28879
28805
|
method: "GET",
|
|
28880
28806
|
headers: headerParameters,
|
|
28881
28807
|
query: queryParameters
|
|
@@ -28884,14 +28810,14 @@ var BillingApi = class extends BaseAPI {
|
|
|
28884
28810
|
);
|
|
28885
28811
|
return new JSONApiResponse(
|
|
28886
28812
|
response,
|
|
28887
|
-
(jsonValue) =>
|
|
28813
|
+
(jsonValue) => ListProductPricesResponseFromJSON(jsonValue)
|
|
28888
28814
|
);
|
|
28889
28815
|
}
|
|
28890
28816
|
/**
|
|
28891
|
-
* List
|
|
28817
|
+
* List product prices
|
|
28892
28818
|
*/
|
|
28893
|
-
async
|
|
28894
|
-
const response = await this.
|
|
28819
|
+
async listProductPrices(requestParameters = {}, initOverrides) {
|
|
28820
|
+
const response = await this.listProductPricesRaw(
|
|
28895
28821
|
requestParameters,
|
|
28896
28822
|
initOverrides
|
|
28897
28823
|
);
|
|
@@ -28942,6 +28868,51 @@ var BillingApi = class extends BaseAPI {
|
|
|
28942
28868
|
);
|
|
28943
28869
|
return await response.value();
|
|
28944
28870
|
}
|
|
28871
|
+
/**
|
|
28872
|
+
* Upsert billing price
|
|
28873
|
+
*/
|
|
28874
|
+
async upsertBillingPriceRaw(requestParameters, initOverrides) {
|
|
28875
|
+
if (requestParameters["createBillingPriceRequestBody"] == null) {
|
|
28876
|
+
throw new RequiredError(
|
|
28877
|
+
"createBillingPriceRequestBody",
|
|
28878
|
+
'Required parameter "createBillingPriceRequestBody" was null or undefined when calling upsertBillingPrice().'
|
|
28879
|
+
);
|
|
28880
|
+
}
|
|
28881
|
+
const queryParameters = {};
|
|
28882
|
+
const headerParameters = {};
|
|
28883
|
+
headerParameters["Content-Type"] = "application/json";
|
|
28884
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
28885
|
+
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
28886
|
+
"X-Schematic-Api-Key"
|
|
28887
|
+
);
|
|
28888
|
+
}
|
|
28889
|
+
const response = await this.request(
|
|
28890
|
+
{
|
|
28891
|
+
path: `/billing/price/upsert`,
|
|
28892
|
+
method: "POST",
|
|
28893
|
+
headers: headerParameters,
|
|
28894
|
+
query: queryParameters,
|
|
28895
|
+
body: CreateBillingPriceRequestBodyToJSON(
|
|
28896
|
+
requestParameters["createBillingPriceRequestBody"]
|
|
28897
|
+
)
|
|
28898
|
+
},
|
|
28899
|
+
initOverrides
|
|
28900
|
+
);
|
|
28901
|
+
return new JSONApiResponse(
|
|
28902
|
+
response,
|
|
28903
|
+
(jsonValue) => UpsertBillingPriceResponseFromJSON(jsonValue)
|
|
28904
|
+
);
|
|
28905
|
+
}
|
|
28906
|
+
/**
|
|
28907
|
+
* Upsert billing price
|
|
28908
|
+
*/
|
|
28909
|
+
async upsertBillingPrice(requestParameters, initOverrides) {
|
|
28910
|
+
const response = await this.upsertBillingPriceRaw(
|
|
28911
|
+
requestParameters,
|
|
28912
|
+
initOverrides
|
|
28913
|
+
);
|
|
28914
|
+
return await response.value();
|
|
28915
|
+
}
|
|
28945
28916
|
/**
|
|
28946
28917
|
* Upsert billing product
|
|
28947
28918
|
*/
|
|
@@ -32720,56 +32691,6 @@ var FeaturesApi = class extends BaseAPI {
|
|
|
32720
32691
|
);
|
|
32721
32692
|
return await response.value();
|
|
32722
32693
|
}
|
|
32723
|
-
/**
|
|
32724
|
-
* Count flag checks
|
|
32725
|
-
*/
|
|
32726
|
-
async countFlagChecksRaw(requestParameters, initOverrides) {
|
|
32727
|
-
const queryParameters = {};
|
|
32728
|
-
if (requestParameters["flagId"] != null) {
|
|
32729
|
-
queryParameters["flag_id"] = requestParameters["flagId"];
|
|
32730
|
-
}
|
|
32731
|
-
if (requestParameters["flagIds"] != null) {
|
|
32732
|
-
queryParameters["flag_ids"] = requestParameters["flagIds"];
|
|
32733
|
-
}
|
|
32734
|
-
if (requestParameters["id"] != null) {
|
|
32735
|
-
queryParameters["id"] = requestParameters["id"];
|
|
32736
|
-
}
|
|
32737
|
-
if (requestParameters["limit"] != null) {
|
|
32738
|
-
queryParameters["limit"] = requestParameters["limit"];
|
|
32739
|
-
}
|
|
32740
|
-
if (requestParameters["offset"] != null) {
|
|
32741
|
-
queryParameters["offset"] = requestParameters["offset"];
|
|
32742
|
-
}
|
|
32743
|
-
const headerParameters = {};
|
|
32744
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
32745
|
-
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
32746
|
-
"X-Schematic-Api-Key"
|
|
32747
|
-
);
|
|
32748
|
-
}
|
|
32749
|
-
const response = await this.request(
|
|
32750
|
-
{
|
|
32751
|
-
path: `/flag-checks/count`,
|
|
32752
|
-
method: "GET",
|
|
32753
|
-
headers: headerParameters,
|
|
32754
|
-
query: queryParameters
|
|
32755
|
-
},
|
|
32756
|
-
initOverrides
|
|
32757
|
-
);
|
|
32758
|
-
return new JSONApiResponse(
|
|
32759
|
-
response,
|
|
32760
|
-
(jsonValue) => CountFlagChecksResponseFromJSON(jsonValue)
|
|
32761
|
-
);
|
|
32762
|
-
}
|
|
32763
|
-
/**
|
|
32764
|
-
* Count flag checks
|
|
32765
|
-
*/
|
|
32766
|
-
async countFlagChecks(requestParameters = {}, initOverrides) {
|
|
32767
|
-
const response = await this.countFlagChecksRaw(
|
|
32768
|
-
requestParameters,
|
|
32769
|
-
initOverrides
|
|
32770
|
-
);
|
|
32771
|
-
return await response.value();
|
|
32772
|
-
}
|
|
32773
32694
|
/**
|
|
32774
32695
|
* Count flags
|
|
32775
32696
|
*/
|
|
@@ -33071,100 +32992,6 @@ var FeaturesApi = class extends BaseAPI {
|
|
|
33071
32992
|
const response = await this.getFlagRaw(requestParameters, initOverrides);
|
|
33072
32993
|
return await response.value();
|
|
33073
32994
|
}
|
|
33074
|
-
/**
|
|
33075
|
-
* Get flag check
|
|
33076
|
-
*/
|
|
33077
|
-
async getFlagCheckRaw(requestParameters, initOverrides) {
|
|
33078
|
-
if (requestParameters["flagCheckId"] == null) {
|
|
33079
|
-
throw new RequiredError(
|
|
33080
|
-
"flagCheckId",
|
|
33081
|
-
'Required parameter "flagCheckId" was null or undefined when calling getFlagCheck().'
|
|
33082
|
-
);
|
|
33083
|
-
}
|
|
33084
|
-
const queryParameters = {};
|
|
33085
|
-
const headerParameters = {};
|
|
33086
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
33087
|
-
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
33088
|
-
"X-Schematic-Api-Key"
|
|
33089
|
-
);
|
|
33090
|
-
}
|
|
33091
|
-
const response = await this.request(
|
|
33092
|
-
{
|
|
33093
|
-
path: `/flag-checks/{flag_check_id}`.replace(
|
|
33094
|
-
`{${"flag_check_id"}}`,
|
|
33095
|
-
encodeURIComponent(String(requestParameters["flagCheckId"]))
|
|
33096
|
-
),
|
|
33097
|
-
method: "GET",
|
|
33098
|
-
headers: headerParameters,
|
|
33099
|
-
query: queryParameters
|
|
33100
|
-
},
|
|
33101
|
-
initOverrides
|
|
33102
|
-
);
|
|
33103
|
-
return new JSONApiResponse(
|
|
33104
|
-
response,
|
|
33105
|
-
(jsonValue) => GetFlagCheckResponseFromJSON(jsonValue)
|
|
33106
|
-
);
|
|
33107
|
-
}
|
|
33108
|
-
/**
|
|
33109
|
-
* Get flag check
|
|
33110
|
-
*/
|
|
33111
|
-
async getFlagCheck(requestParameters, initOverrides) {
|
|
33112
|
-
const response = await this.getFlagCheckRaw(
|
|
33113
|
-
requestParameters,
|
|
33114
|
-
initOverrides
|
|
33115
|
-
);
|
|
33116
|
-
return await response.value();
|
|
33117
|
-
}
|
|
33118
|
-
/**
|
|
33119
|
-
* Get latest flag checks
|
|
33120
|
-
*/
|
|
33121
|
-
async getLatestFlagChecksRaw(requestParameters, initOverrides) {
|
|
33122
|
-
const queryParameters = {};
|
|
33123
|
-
if (requestParameters["flagId"] != null) {
|
|
33124
|
-
queryParameters["flag_id"] = requestParameters["flagId"];
|
|
33125
|
-
}
|
|
33126
|
-
if (requestParameters["flagIds"] != null) {
|
|
33127
|
-
queryParameters["flag_ids"] = requestParameters["flagIds"];
|
|
33128
|
-
}
|
|
33129
|
-
if (requestParameters["id"] != null) {
|
|
33130
|
-
queryParameters["id"] = requestParameters["id"];
|
|
33131
|
-
}
|
|
33132
|
-
if (requestParameters["limit"] != null) {
|
|
33133
|
-
queryParameters["limit"] = requestParameters["limit"];
|
|
33134
|
-
}
|
|
33135
|
-
if (requestParameters["offset"] != null) {
|
|
33136
|
-
queryParameters["offset"] = requestParameters["offset"];
|
|
33137
|
-
}
|
|
33138
|
-
const headerParameters = {};
|
|
33139
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
33140
|
-
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
33141
|
-
"X-Schematic-Api-Key"
|
|
33142
|
-
);
|
|
33143
|
-
}
|
|
33144
|
-
const response = await this.request(
|
|
33145
|
-
{
|
|
33146
|
-
path: `/flag-checks/latest`,
|
|
33147
|
-
method: "GET",
|
|
33148
|
-
headers: headerParameters,
|
|
33149
|
-
query: queryParameters
|
|
33150
|
-
},
|
|
33151
|
-
initOverrides
|
|
33152
|
-
);
|
|
33153
|
-
return new JSONApiResponse(
|
|
33154
|
-
response,
|
|
33155
|
-
(jsonValue) => GetLatestFlagChecksResponseFromJSON(jsonValue)
|
|
33156
|
-
);
|
|
33157
|
-
}
|
|
33158
|
-
/**
|
|
33159
|
-
* Get latest flag checks
|
|
33160
|
-
*/
|
|
33161
|
-
async getLatestFlagChecks(requestParameters = {}, initOverrides) {
|
|
33162
|
-
const response = await this.getLatestFlagChecksRaw(
|
|
33163
|
-
requestParameters,
|
|
33164
|
-
initOverrides
|
|
33165
|
-
);
|
|
33166
|
-
return await response.value();
|
|
33167
|
-
}
|
|
33168
32995
|
/**
|
|
33169
32996
|
* List audience companies
|
|
33170
32997
|
*/
|
|
@@ -33308,56 +33135,6 @@ var FeaturesApi = class extends BaseAPI {
|
|
|
33308
33135
|
);
|
|
33309
33136
|
return await response.value();
|
|
33310
33137
|
}
|
|
33311
|
-
/**
|
|
33312
|
-
* List flag checks
|
|
33313
|
-
*/
|
|
33314
|
-
async listFlagChecksRaw(requestParameters, initOverrides) {
|
|
33315
|
-
const queryParameters = {};
|
|
33316
|
-
if (requestParameters["flagId"] != null) {
|
|
33317
|
-
queryParameters["flag_id"] = requestParameters["flagId"];
|
|
33318
|
-
}
|
|
33319
|
-
if (requestParameters["flagIds"] != null) {
|
|
33320
|
-
queryParameters["flag_ids"] = requestParameters["flagIds"];
|
|
33321
|
-
}
|
|
33322
|
-
if (requestParameters["id"] != null) {
|
|
33323
|
-
queryParameters["id"] = requestParameters["id"];
|
|
33324
|
-
}
|
|
33325
|
-
if (requestParameters["limit"] != null) {
|
|
33326
|
-
queryParameters["limit"] = requestParameters["limit"];
|
|
33327
|
-
}
|
|
33328
|
-
if (requestParameters["offset"] != null) {
|
|
33329
|
-
queryParameters["offset"] = requestParameters["offset"];
|
|
33330
|
-
}
|
|
33331
|
-
const headerParameters = {};
|
|
33332
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
33333
|
-
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
33334
|
-
"X-Schematic-Api-Key"
|
|
33335
|
-
);
|
|
33336
|
-
}
|
|
33337
|
-
const response = await this.request(
|
|
33338
|
-
{
|
|
33339
|
-
path: `/flag-checks`,
|
|
33340
|
-
method: "GET",
|
|
33341
|
-
headers: headerParameters,
|
|
33342
|
-
query: queryParameters
|
|
33343
|
-
},
|
|
33344
|
-
initOverrides
|
|
33345
|
-
);
|
|
33346
|
-
return new JSONApiResponse(
|
|
33347
|
-
response,
|
|
33348
|
-
(jsonValue) => ListFlagChecksResponseFromJSON(jsonValue)
|
|
33349
|
-
);
|
|
33350
|
-
}
|
|
33351
|
-
/**
|
|
33352
|
-
* List flag checks
|
|
33353
|
-
*/
|
|
33354
|
-
async listFlagChecks(requestParameters = {}, initOverrides) {
|
|
33355
|
-
const response = await this.listFlagChecksRaw(
|
|
33356
|
-
requestParameters,
|
|
33357
|
-
initOverrides
|
|
33358
|
-
);
|
|
33359
|
-
return await response.value();
|
|
33360
|
-
}
|
|
33361
33138
|
/**
|
|
33362
33139
|
* List flags
|
|
33363
33140
|
*/
|
|
@@ -34650,7 +34427,7 @@ var Schematic = class {
|
|
|
34650
34427
|
constructor(apiKey, opts) {
|
|
34651
34428
|
const { offline = false } = opts ?? {};
|
|
34652
34429
|
const { basePath, flagDefaults = {} } = opts ?? {};
|
|
34653
|
-
const version = "1.0.
|
|
34430
|
+
const version = "1.0.22";
|
|
34654
34431
|
const headers = {
|
|
34655
34432
|
"User-Agent": `schematic-typescript-node@v${version}`
|
|
34656
34433
|
};
|
|
@@ -34801,6 +34578,12 @@ export {
|
|
|
34801
34578
|
BillingCustomerWithSubscriptionsResponseDataFromJSON,
|
|
34802
34579
|
BillingCustomerWithSubscriptionsResponseDataFromJSONTyped,
|
|
34803
34580
|
BillingCustomerWithSubscriptionsResponseDataToJSON,
|
|
34581
|
+
BillingPriceResponseDataFromJSON,
|
|
34582
|
+
BillingPriceResponseDataFromJSONTyped,
|
|
34583
|
+
BillingPriceResponseDataToJSON,
|
|
34584
|
+
BillingProductDetailResponseDataFromJSON,
|
|
34585
|
+
BillingProductDetailResponseDataFromJSONTyped,
|
|
34586
|
+
BillingProductDetailResponseDataToJSON,
|
|
34804
34587
|
BillingProductPlanResponseDataFromJSON,
|
|
34805
34588
|
BillingProductPlanResponseDataFromJSONTyped,
|
|
34806
34589
|
BillingProductPlanResponseDataToJSON,
|
|
@@ -34950,12 +34733,6 @@ export {
|
|
|
34950
34733
|
CountFeaturesResponseFromJSON,
|
|
34951
34734
|
CountFeaturesResponseFromJSONTyped,
|
|
34952
34735
|
CountFeaturesResponseToJSON,
|
|
34953
|
-
CountFlagChecksParamsFromJSON,
|
|
34954
|
-
CountFlagChecksParamsFromJSONTyped,
|
|
34955
|
-
CountFlagChecksParamsToJSON,
|
|
34956
|
-
CountFlagChecksResponseFromJSON,
|
|
34957
|
-
CountFlagChecksResponseFromJSONTyped,
|
|
34958
|
-
CountFlagChecksResponseToJSON,
|
|
34959
34736
|
CountFlagsParamsFromJSON,
|
|
34960
34737
|
CountFlagsParamsFromJSONTyped,
|
|
34961
34738
|
CountFlagsParamsToJSON,
|
|
@@ -35004,6 +34781,9 @@ export {
|
|
|
35004
34781
|
CreateBillingCustomerRequestBodyFromJSON,
|
|
35005
34782
|
CreateBillingCustomerRequestBodyFromJSONTyped,
|
|
35006
34783
|
CreateBillingCustomerRequestBodyToJSON,
|
|
34784
|
+
CreateBillingPriceRequestBodyFromJSON,
|
|
34785
|
+
CreateBillingPriceRequestBodyFromJSONTyped,
|
|
34786
|
+
CreateBillingPriceRequestBodyToJSON,
|
|
35007
34787
|
CreateBillingProductRequestBodyFromJSON,
|
|
35008
34788
|
CreateBillingProductRequestBodyFromJSONTyped,
|
|
35009
34789
|
CreateBillingProductRequestBodyToJSON,
|
|
@@ -35262,12 +35042,6 @@ export {
|
|
|
35262
35042
|
FeatureUsageResponseDataToJSON,
|
|
35263
35043
|
FeaturesApi,
|
|
35264
35044
|
FetchError2 as FetchError,
|
|
35265
|
-
FlagCheckLogDetailResponseDataFromJSON,
|
|
35266
|
-
FlagCheckLogDetailResponseDataFromJSONTyped,
|
|
35267
|
-
FlagCheckLogDetailResponseDataToJSON,
|
|
35268
|
-
FlagCheckLogResponseDataFromJSON,
|
|
35269
|
-
FlagCheckLogResponseDataFromJSONTyped,
|
|
35270
|
-
FlagCheckLogResponseDataToJSON,
|
|
35271
35045
|
FlagDetailResponseDataFromJSON,
|
|
35272
35046
|
FlagDetailResponseDataFromJSONTyped,
|
|
35273
35047
|
FlagDetailResponseDataToJSON,
|
|
@@ -35337,18 +35111,9 @@ export {
|
|
|
35337
35111
|
GetFeatureUsageByCompanyResponseFromJSON,
|
|
35338
35112
|
GetFeatureUsageByCompanyResponseFromJSONTyped,
|
|
35339
35113
|
GetFeatureUsageByCompanyResponseToJSON,
|
|
35340
|
-
GetFlagCheckResponseFromJSON,
|
|
35341
|
-
GetFlagCheckResponseFromJSONTyped,
|
|
35342
|
-
GetFlagCheckResponseToJSON,
|
|
35343
35114
|
GetFlagResponseFromJSON,
|
|
35344
35115
|
GetFlagResponseFromJSONTyped,
|
|
35345
35116
|
GetFlagResponseToJSON,
|
|
35346
|
-
GetLatestFlagChecksParamsFromJSON,
|
|
35347
|
-
GetLatestFlagChecksParamsFromJSONTyped,
|
|
35348
|
-
GetLatestFlagChecksParamsToJSON,
|
|
35349
|
-
GetLatestFlagChecksResponseFromJSON,
|
|
35350
|
-
GetLatestFlagChecksResponseFromJSONTyped,
|
|
35351
|
-
GetLatestFlagChecksResponseToJSON,
|
|
35352
35117
|
GetOrCreateCompanyMembershipRequestBodyFromJSON,
|
|
35353
35118
|
GetOrCreateCompanyMembershipRequestBodyFromJSONTyped,
|
|
35354
35119
|
GetOrCreateCompanyMembershipRequestBodyToJSON,
|
|
@@ -35410,6 +35175,12 @@ export {
|
|
|
35410
35175
|
ListAudienceUsersResponseFromJSON,
|
|
35411
35176
|
ListAudienceUsersResponseFromJSONTyped,
|
|
35412
35177
|
ListAudienceUsersResponseToJSON,
|
|
35178
|
+
ListBillingProductsParamsFromJSON,
|
|
35179
|
+
ListBillingProductsParamsFromJSONTyped,
|
|
35180
|
+
ListBillingProductsParamsToJSON,
|
|
35181
|
+
ListBillingProductsResponseFromJSON,
|
|
35182
|
+
ListBillingProductsResponseFromJSONTyped,
|
|
35183
|
+
ListBillingProductsResponseToJSON,
|
|
35413
35184
|
ListCompaniesParamsFromJSON,
|
|
35414
35185
|
ListCompaniesParamsFromJSONTyped,
|
|
35415
35186
|
ListCompaniesParamsToJSON,
|
|
@@ -35506,12 +35277,6 @@ export {
|
|
|
35506
35277
|
ListFeaturesResponseFromJSON,
|
|
35507
35278
|
ListFeaturesResponseFromJSONTyped,
|
|
35508
35279
|
ListFeaturesResponseToJSON,
|
|
35509
|
-
ListFlagChecksParamsFromJSON,
|
|
35510
|
-
ListFlagChecksParamsFromJSONTyped,
|
|
35511
|
-
ListFlagChecksParamsToJSON,
|
|
35512
|
-
ListFlagChecksResponseFromJSON,
|
|
35513
|
-
ListFlagChecksResponseFromJSONTyped,
|
|
35514
|
-
ListFlagChecksResponseToJSON,
|
|
35515
35280
|
ListFlagsParamsFromJSON,
|
|
35516
35281
|
ListFlagsParamsFromJSONTyped,
|
|
35517
35282
|
ListFlagsParamsToJSON,
|
|
@@ -35536,12 +35301,12 @@ export {
|
|
|
35536
35301
|
ListPlansResponseFromJSON,
|
|
35537
35302
|
ListPlansResponseFromJSONTyped,
|
|
35538
35303
|
ListPlansResponseToJSON,
|
|
35539
|
-
|
|
35540
|
-
|
|
35541
|
-
|
|
35542
|
-
|
|
35543
|
-
|
|
35544
|
-
|
|
35304
|
+
ListProductPricesParamsFromJSON,
|
|
35305
|
+
ListProductPricesParamsFromJSONTyped,
|
|
35306
|
+
ListProductPricesParamsToJSON,
|
|
35307
|
+
ListProductPricesResponseFromJSON,
|
|
35308
|
+
ListProductPricesResponseFromJSONTyped,
|
|
35309
|
+
ListProductPricesResponseToJSON,
|
|
35545
35310
|
ListUsersParamsFromJSON,
|
|
35546
35311
|
ListUsersParamsFromJSONTyped,
|
|
35547
35312
|
ListUsersParamsToJSON,
|
|
@@ -35730,6 +35495,9 @@ export {
|
|
|
35730
35495
|
UpsertBillingCustomerResponseFromJSON,
|
|
35731
35496
|
UpsertBillingCustomerResponseFromJSONTyped,
|
|
35732
35497
|
UpsertBillingCustomerResponseToJSON,
|
|
35498
|
+
UpsertBillingPriceResponseFromJSON,
|
|
35499
|
+
UpsertBillingPriceResponseFromJSONTyped,
|
|
35500
|
+
UpsertBillingPriceResponseToJSON,
|
|
35733
35501
|
UpsertBillingProductPlanResponseFromJSON,
|
|
35734
35502
|
UpsertBillingProductPlanResponseFromJSONTyped,
|
|
35735
35503
|
UpsertBillingProductPlanResponseToJSON,
|
|
@@ -35806,6 +35574,8 @@ export {
|
|
|
35806
35574
|
instanceOfBillingCustomerResponseData,
|
|
35807
35575
|
instanceOfBillingCustomerSubscription,
|
|
35808
35576
|
instanceOfBillingCustomerWithSubscriptionsResponseData,
|
|
35577
|
+
instanceOfBillingPriceResponseData,
|
|
35578
|
+
instanceOfBillingProductDetailResponseData,
|
|
35809
35579
|
instanceOfBillingProductPlanResponseData,
|
|
35810
35580
|
instanceOfBillingProductPricing,
|
|
35811
35581
|
instanceOfBillingProductResponseData,
|
|
@@ -35852,8 +35622,6 @@ export {
|
|
|
35852
35622
|
instanceOfCountFeatureUsersResponse,
|
|
35853
35623
|
instanceOfCountFeaturesParams,
|
|
35854
35624
|
instanceOfCountFeaturesResponse,
|
|
35855
|
-
instanceOfCountFlagChecksParams,
|
|
35856
|
-
instanceOfCountFlagChecksResponse,
|
|
35857
35625
|
instanceOfCountFlagsParams,
|
|
35858
35626
|
instanceOfCountFlagsResponse,
|
|
35859
35627
|
instanceOfCountPlanEntitlementsParams,
|
|
@@ -35870,6 +35638,7 @@ export {
|
|
|
35870
35638
|
instanceOfCreateApiKeyRequestBody,
|
|
35871
35639
|
instanceOfCreateApiKeyResponse,
|
|
35872
35640
|
instanceOfCreateBillingCustomerRequestBody,
|
|
35641
|
+
instanceOfCreateBillingPriceRequestBody,
|
|
35873
35642
|
instanceOfCreateBillingProductRequestBody,
|
|
35874
35643
|
instanceOfCreateBillingSubscriptionsRequestBody,
|
|
35875
35644
|
instanceOfCreateCompanyOverrideRequestBody,
|
|
@@ -35946,8 +35715,6 @@ export {
|
|
|
35946
35715
|
instanceOfFeatureResponseData,
|
|
35947
35716
|
instanceOfFeatureUsageDetailResponseData,
|
|
35948
35717
|
instanceOfFeatureUsageResponseData,
|
|
35949
|
-
instanceOfFlagCheckLogDetailResponseData,
|
|
35950
|
-
instanceOfFlagCheckLogResponseData,
|
|
35951
35718
|
instanceOfFlagDetailResponseData,
|
|
35952
35719
|
instanceOfFlagResponseData,
|
|
35953
35720
|
instanceOfGetActiveCompanySubscriptionParams,
|
|
@@ -35971,10 +35738,7 @@ export {
|
|
|
35971
35738
|
instanceOfGetFeatureResponse,
|
|
35972
35739
|
instanceOfGetFeatureUsageByCompanyParams,
|
|
35973
35740
|
instanceOfGetFeatureUsageByCompanyResponse,
|
|
35974
|
-
instanceOfGetFlagCheckResponse,
|
|
35975
35741
|
instanceOfGetFlagResponse,
|
|
35976
|
-
instanceOfGetLatestFlagChecksParams,
|
|
35977
|
-
instanceOfGetLatestFlagChecksResponse,
|
|
35978
35742
|
instanceOfGetOrCreateCompanyMembershipRequestBody,
|
|
35979
35743
|
instanceOfGetOrCreateCompanyMembershipResponse,
|
|
35980
35744
|
instanceOfGetOrCreateEntityTraitDefinitionResponse,
|
|
@@ -35995,6 +35759,8 @@ export {
|
|
|
35995
35759
|
instanceOfListApiRequestsResponse,
|
|
35996
35760
|
instanceOfListAudienceCompaniesResponse,
|
|
35997
35761
|
instanceOfListAudienceUsersResponse,
|
|
35762
|
+
instanceOfListBillingProductsParams,
|
|
35763
|
+
instanceOfListBillingProductsResponse,
|
|
35998
35764
|
instanceOfListCompaniesParams,
|
|
35999
35765
|
instanceOfListCompaniesResponse,
|
|
36000
35766
|
instanceOfListCompanyMembershipsParams,
|
|
@@ -36025,8 +35791,6 @@ export {
|
|
|
36025
35791
|
instanceOfListFeatureUsersResponse,
|
|
36026
35792
|
instanceOfListFeaturesParams,
|
|
36027
35793
|
instanceOfListFeaturesResponse,
|
|
36028
|
-
instanceOfListFlagChecksParams,
|
|
36029
|
-
instanceOfListFlagChecksResponse,
|
|
36030
35794
|
instanceOfListFlagsParams,
|
|
36031
35795
|
instanceOfListFlagsResponse,
|
|
36032
35796
|
instanceOfListMetricCountsParams,
|
|
@@ -36035,8 +35799,8 @@ export {
|
|
|
36035
35799
|
instanceOfListPlanEntitlementsResponse,
|
|
36036
35800
|
instanceOfListPlansParams,
|
|
36037
35801
|
instanceOfListPlansResponse,
|
|
36038
|
-
|
|
36039
|
-
|
|
35802
|
+
instanceOfListProductPricesParams,
|
|
35803
|
+
instanceOfListProductPricesResponse,
|
|
36040
35804
|
instanceOfListUsersParams,
|
|
36041
35805
|
instanceOfListUsersResponse,
|
|
36042
35806
|
instanceOfListWebhookEventsParams,
|
|
@@ -36093,6 +35857,7 @@ export {
|
|
|
36093
35857
|
instanceOfUpdateWebhookRequestBody,
|
|
36094
35858
|
instanceOfUpdateWebhookResponse,
|
|
36095
35859
|
instanceOfUpsertBillingCustomerResponse,
|
|
35860
|
+
instanceOfUpsertBillingPriceResponse,
|
|
36096
35861
|
instanceOfUpsertBillingProductPlanResponse,
|
|
36097
35862
|
instanceOfUpsertBillingProductRequestBody,
|
|
36098
35863
|
instanceOfUpsertBillingProductResponse,
|