@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.cjs.js
CHANGED
|
@@ -14549,6 +14549,12 @@ __export(src_exports, {
|
|
|
14549
14549
|
BillingCustomerWithSubscriptionsResponseDataFromJSON: () => BillingCustomerWithSubscriptionsResponseDataFromJSON,
|
|
14550
14550
|
BillingCustomerWithSubscriptionsResponseDataFromJSONTyped: () => BillingCustomerWithSubscriptionsResponseDataFromJSONTyped,
|
|
14551
14551
|
BillingCustomerWithSubscriptionsResponseDataToJSON: () => BillingCustomerWithSubscriptionsResponseDataToJSON,
|
|
14552
|
+
BillingPriceResponseDataFromJSON: () => BillingPriceResponseDataFromJSON,
|
|
14553
|
+
BillingPriceResponseDataFromJSONTyped: () => BillingPriceResponseDataFromJSONTyped,
|
|
14554
|
+
BillingPriceResponseDataToJSON: () => BillingPriceResponseDataToJSON,
|
|
14555
|
+
BillingProductDetailResponseDataFromJSON: () => BillingProductDetailResponseDataFromJSON,
|
|
14556
|
+
BillingProductDetailResponseDataFromJSONTyped: () => BillingProductDetailResponseDataFromJSONTyped,
|
|
14557
|
+
BillingProductDetailResponseDataToJSON: () => BillingProductDetailResponseDataToJSON,
|
|
14552
14558
|
BillingProductPlanResponseDataFromJSON: () => BillingProductPlanResponseDataFromJSON,
|
|
14553
14559
|
BillingProductPlanResponseDataFromJSONTyped: () => BillingProductPlanResponseDataFromJSONTyped,
|
|
14554
14560
|
BillingProductPlanResponseDataToJSON: () => BillingProductPlanResponseDataToJSON,
|
|
@@ -14698,12 +14704,6 @@ __export(src_exports, {
|
|
|
14698
14704
|
CountFeaturesResponseFromJSON: () => CountFeaturesResponseFromJSON,
|
|
14699
14705
|
CountFeaturesResponseFromJSONTyped: () => CountFeaturesResponseFromJSONTyped,
|
|
14700
14706
|
CountFeaturesResponseToJSON: () => CountFeaturesResponseToJSON,
|
|
14701
|
-
CountFlagChecksParamsFromJSON: () => CountFlagChecksParamsFromJSON,
|
|
14702
|
-
CountFlagChecksParamsFromJSONTyped: () => CountFlagChecksParamsFromJSONTyped,
|
|
14703
|
-
CountFlagChecksParamsToJSON: () => CountFlagChecksParamsToJSON,
|
|
14704
|
-
CountFlagChecksResponseFromJSON: () => CountFlagChecksResponseFromJSON,
|
|
14705
|
-
CountFlagChecksResponseFromJSONTyped: () => CountFlagChecksResponseFromJSONTyped,
|
|
14706
|
-
CountFlagChecksResponseToJSON: () => CountFlagChecksResponseToJSON,
|
|
14707
14707
|
CountFlagsParamsFromJSON: () => CountFlagsParamsFromJSON,
|
|
14708
14708
|
CountFlagsParamsFromJSONTyped: () => CountFlagsParamsFromJSONTyped,
|
|
14709
14709
|
CountFlagsParamsToJSON: () => CountFlagsParamsToJSON,
|
|
@@ -14752,6 +14752,9 @@ __export(src_exports, {
|
|
|
14752
14752
|
CreateBillingCustomerRequestBodyFromJSON: () => CreateBillingCustomerRequestBodyFromJSON,
|
|
14753
14753
|
CreateBillingCustomerRequestBodyFromJSONTyped: () => CreateBillingCustomerRequestBodyFromJSONTyped,
|
|
14754
14754
|
CreateBillingCustomerRequestBodyToJSON: () => CreateBillingCustomerRequestBodyToJSON,
|
|
14755
|
+
CreateBillingPriceRequestBodyFromJSON: () => CreateBillingPriceRequestBodyFromJSON,
|
|
14756
|
+
CreateBillingPriceRequestBodyFromJSONTyped: () => CreateBillingPriceRequestBodyFromJSONTyped,
|
|
14757
|
+
CreateBillingPriceRequestBodyToJSON: () => CreateBillingPriceRequestBodyToJSON,
|
|
14755
14758
|
CreateBillingProductRequestBodyFromJSON: () => CreateBillingProductRequestBodyFromJSON,
|
|
14756
14759
|
CreateBillingProductRequestBodyFromJSONTyped: () => CreateBillingProductRequestBodyFromJSONTyped,
|
|
14757
14760
|
CreateBillingProductRequestBodyToJSON: () => CreateBillingProductRequestBodyToJSON,
|
|
@@ -15010,12 +15013,6 @@ __export(src_exports, {
|
|
|
15010
15013
|
FeatureUsageResponseDataToJSON: () => FeatureUsageResponseDataToJSON,
|
|
15011
15014
|
FeaturesApi: () => FeaturesApi,
|
|
15012
15015
|
FetchError: () => FetchError2,
|
|
15013
|
-
FlagCheckLogDetailResponseDataFromJSON: () => FlagCheckLogDetailResponseDataFromJSON,
|
|
15014
|
-
FlagCheckLogDetailResponseDataFromJSONTyped: () => FlagCheckLogDetailResponseDataFromJSONTyped,
|
|
15015
|
-
FlagCheckLogDetailResponseDataToJSON: () => FlagCheckLogDetailResponseDataToJSON,
|
|
15016
|
-
FlagCheckLogResponseDataFromJSON: () => FlagCheckLogResponseDataFromJSON,
|
|
15017
|
-
FlagCheckLogResponseDataFromJSONTyped: () => FlagCheckLogResponseDataFromJSONTyped,
|
|
15018
|
-
FlagCheckLogResponseDataToJSON: () => FlagCheckLogResponseDataToJSON,
|
|
15019
15016
|
FlagDetailResponseDataFromJSON: () => FlagDetailResponseDataFromJSON,
|
|
15020
15017
|
FlagDetailResponseDataFromJSONTyped: () => FlagDetailResponseDataFromJSONTyped,
|
|
15021
15018
|
FlagDetailResponseDataToJSON: () => FlagDetailResponseDataToJSON,
|
|
@@ -15085,18 +15082,9 @@ __export(src_exports, {
|
|
|
15085
15082
|
GetFeatureUsageByCompanyResponseFromJSON: () => GetFeatureUsageByCompanyResponseFromJSON,
|
|
15086
15083
|
GetFeatureUsageByCompanyResponseFromJSONTyped: () => GetFeatureUsageByCompanyResponseFromJSONTyped,
|
|
15087
15084
|
GetFeatureUsageByCompanyResponseToJSON: () => GetFeatureUsageByCompanyResponseToJSON,
|
|
15088
|
-
GetFlagCheckResponseFromJSON: () => GetFlagCheckResponseFromJSON,
|
|
15089
|
-
GetFlagCheckResponseFromJSONTyped: () => GetFlagCheckResponseFromJSONTyped,
|
|
15090
|
-
GetFlagCheckResponseToJSON: () => GetFlagCheckResponseToJSON,
|
|
15091
15085
|
GetFlagResponseFromJSON: () => GetFlagResponseFromJSON,
|
|
15092
15086
|
GetFlagResponseFromJSONTyped: () => GetFlagResponseFromJSONTyped,
|
|
15093
15087
|
GetFlagResponseToJSON: () => GetFlagResponseToJSON,
|
|
15094
|
-
GetLatestFlagChecksParamsFromJSON: () => GetLatestFlagChecksParamsFromJSON,
|
|
15095
|
-
GetLatestFlagChecksParamsFromJSONTyped: () => GetLatestFlagChecksParamsFromJSONTyped,
|
|
15096
|
-
GetLatestFlagChecksParamsToJSON: () => GetLatestFlagChecksParamsToJSON,
|
|
15097
|
-
GetLatestFlagChecksResponseFromJSON: () => GetLatestFlagChecksResponseFromJSON,
|
|
15098
|
-
GetLatestFlagChecksResponseFromJSONTyped: () => GetLatestFlagChecksResponseFromJSONTyped,
|
|
15099
|
-
GetLatestFlagChecksResponseToJSON: () => GetLatestFlagChecksResponseToJSON,
|
|
15100
15088
|
GetOrCreateCompanyMembershipRequestBodyFromJSON: () => GetOrCreateCompanyMembershipRequestBodyFromJSON,
|
|
15101
15089
|
GetOrCreateCompanyMembershipRequestBodyFromJSONTyped: () => GetOrCreateCompanyMembershipRequestBodyFromJSONTyped,
|
|
15102
15090
|
GetOrCreateCompanyMembershipRequestBodyToJSON: () => GetOrCreateCompanyMembershipRequestBodyToJSON,
|
|
@@ -15158,6 +15146,12 @@ __export(src_exports, {
|
|
|
15158
15146
|
ListAudienceUsersResponseFromJSON: () => ListAudienceUsersResponseFromJSON,
|
|
15159
15147
|
ListAudienceUsersResponseFromJSONTyped: () => ListAudienceUsersResponseFromJSONTyped,
|
|
15160
15148
|
ListAudienceUsersResponseToJSON: () => ListAudienceUsersResponseToJSON,
|
|
15149
|
+
ListBillingProductsParamsFromJSON: () => ListBillingProductsParamsFromJSON,
|
|
15150
|
+
ListBillingProductsParamsFromJSONTyped: () => ListBillingProductsParamsFromJSONTyped,
|
|
15151
|
+
ListBillingProductsParamsToJSON: () => ListBillingProductsParamsToJSON,
|
|
15152
|
+
ListBillingProductsResponseFromJSON: () => ListBillingProductsResponseFromJSON,
|
|
15153
|
+
ListBillingProductsResponseFromJSONTyped: () => ListBillingProductsResponseFromJSONTyped,
|
|
15154
|
+
ListBillingProductsResponseToJSON: () => ListBillingProductsResponseToJSON,
|
|
15161
15155
|
ListCompaniesParamsFromJSON: () => ListCompaniesParamsFromJSON,
|
|
15162
15156
|
ListCompaniesParamsFromJSONTyped: () => ListCompaniesParamsFromJSONTyped,
|
|
15163
15157
|
ListCompaniesParamsToJSON: () => ListCompaniesParamsToJSON,
|
|
@@ -15254,12 +15248,6 @@ __export(src_exports, {
|
|
|
15254
15248
|
ListFeaturesResponseFromJSON: () => ListFeaturesResponseFromJSON,
|
|
15255
15249
|
ListFeaturesResponseFromJSONTyped: () => ListFeaturesResponseFromJSONTyped,
|
|
15256
15250
|
ListFeaturesResponseToJSON: () => ListFeaturesResponseToJSON,
|
|
15257
|
-
ListFlagChecksParamsFromJSON: () => ListFlagChecksParamsFromJSON,
|
|
15258
|
-
ListFlagChecksParamsFromJSONTyped: () => ListFlagChecksParamsFromJSONTyped,
|
|
15259
|
-
ListFlagChecksParamsToJSON: () => ListFlagChecksParamsToJSON,
|
|
15260
|
-
ListFlagChecksResponseFromJSON: () => ListFlagChecksResponseFromJSON,
|
|
15261
|
-
ListFlagChecksResponseFromJSONTyped: () => ListFlagChecksResponseFromJSONTyped,
|
|
15262
|
-
ListFlagChecksResponseToJSON: () => ListFlagChecksResponseToJSON,
|
|
15263
15251
|
ListFlagsParamsFromJSON: () => ListFlagsParamsFromJSON,
|
|
15264
15252
|
ListFlagsParamsFromJSONTyped: () => ListFlagsParamsFromJSONTyped,
|
|
15265
15253
|
ListFlagsParamsToJSON: () => ListFlagsParamsToJSON,
|
|
@@ -15284,12 +15272,12 @@ __export(src_exports, {
|
|
|
15284
15272
|
ListPlansResponseFromJSON: () => ListPlansResponseFromJSON,
|
|
15285
15273
|
ListPlansResponseFromJSONTyped: () => ListPlansResponseFromJSONTyped,
|
|
15286
15274
|
ListPlansResponseToJSON: () => ListPlansResponseToJSON,
|
|
15287
|
-
|
|
15288
|
-
|
|
15289
|
-
|
|
15290
|
-
|
|
15291
|
-
|
|
15292
|
-
|
|
15275
|
+
ListProductPricesParamsFromJSON: () => ListProductPricesParamsFromJSON,
|
|
15276
|
+
ListProductPricesParamsFromJSONTyped: () => ListProductPricesParamsFromJSONTyped,
|
|
15277
|
+
ListProductPricesParamsToJSON: () => ListProductPricesParamsToJSON,
|
|
15278
|
+
ListProductPricesResponseFromJSON: () => ListProductPricesResponseFromJSON,
|
|
15279
|
+
ListProductPricesResponseFromJSONTyped: () => ListProductPricesResponseFromJSONTyped,
|
|
15280
|
+
ListProductPricesResponseToJSON: () => ListProductPricesResponseToJSON,
|
|
15293
15281
|
ListUsersParamsFromJSON: () => ListUsersParamsFromJSON,
|
|
15294
15282
|
ListUsersParamsFromJSONTyped: () => ListUsersParamsFromJSONTyped,
|
|
15295
15283
|
ListUsersParamsToJSON: () => ListUsersParamsToJSON,
|
|
@@ -15478,6 +15466,9 @@ __export(src_exports, {
|
|
|
15478
15466
|
UpsertBillingCustomerResponseFromJSON: () => UpsertBillingCustomerResponseFromJSON,
|
|
15479
15467
|
UpsertBillingCustomerResponseFromJSONTyped: () => UpsertBillingCustomerResponseFromJSONTyped,
|
|
15480
15468
|
UpsertBillingCustomerResponseToJSON: () => UpsertBillingCustomerResponseToJSON,
|
|
15469
|
+
UpsertBillingPriceResponseFromJSON: () => UpsertBillingPriceResponseFromJSON,
|
|
15470
|
+
UpsertBillingPriceResponseFromJSONTyped: () => UpsertBillingPriceResponseFromJSONTyped,
|
|
15471
|
+
UpsertBillingPriceResponseToJSON: () => UpsertBillingPriceResponseToJSON,
|
|
15481
15472
|
UpsertBillingProductPlanResponseFromJSON: () => UpsertBillingProductPlanResponseFromJSON,
|
|
15482
15473
|
UpsertBillingProductPlanResponseFromJSONTyped: () => UpsertBillingProductPlanResponseFromJSONTyped,
|
|
15483
15474
|
UpsertBillingProductPlanResponseToJSON: () => UpsertBillingProductPlanResponseToJSON,
|
|
@@ -15554,6 +15545,8 @@ __export(src_exports, {
|
|
|
15554
15545
|
instanceOfBillingCustomerResponseData: () => instanceOfBillingCustomerResponseData,
|
|
15555
15546
|
instanceOfBillingCustomerSubscription: () => instanceOfBillingCustomerSubscription,
|
|
15556
15547
|
instanceOfBillingCustomerWithSubscriptionsResponseData: () => instanceOfBillingCustomerWithSubscriptionsResponseData,
|
|
15548
|
+
instanceOfBillingPriceResponseData: () => instanceOfBillingPriceResponseData,
|
|
15549
|
+
instanceOfBillingProductDetailResponseData: () => instanceOfBillingProductDetailResponseData,
|
|
15557
15550
|
instanceOfBillingProductPlanResponseData: () => instanceOfBillingProductPlanResponseData,
|
|
15558
15551
|
instanceOfBillingProductPricing: () => instanceOfBillingProductPricing,
|
|
15559
15552
|
instanceOfBillingProductResponseData: () => instanceOfBillingProductResponseData,
|
|
@@ -15600,8 +15593,6 @@ __export(src_exports, {
|
|
|
15600
15593
|
instanceOfCountFeatureUsersResponse: () => instanceOfCountFeatureUsersResponse,
|
|
15601
15594
|
instanceOfCountFeaturesParams: () => instanceOfCountFeaturesParams,
|
|
15602
15595
|
instanceOfCountFeaturesResponse: () => instanceOfCountFeaturesResponse,
|
|
15603
|
-
instanceOfCountFlagChecksParams: () => instanceOfCountFlagChecksParams,
|
|
15604
|
-
instanceOfCountFlagChecksResponse: () => instanceOfCountFlagChecksResponse,
|
|
15605
15596
|
instanceOfCountFlagsParams: () => instanceOfCountFlagsParams,
|
|
15606
15597
|
instanceOfCountFlagsResponse: () => instanceOfCountFlagsResponse,
|
|
15607
15598
|
instanceOfCountPlanEntitlementsParams: () => instanceOfCountPlanEntitlementsParams,
|
|
@@ -15618,6 +15609,7 @@ __export(src_exports, {
|
|
|
15618
15609
|
instanceOfCreateApiKeyRequestBody: () => instanceOfCreateApiKeyRequestBody,
|
|
15619
15610
|
instanceOfCreateApiKeyResponse: () => instanceOfCreateApiKeyResponse,
|
|
15620
15611
|
instanceOfCreateBillingCustomerRequestBody: () => instanceOfCreateBillingCustomerRequestBody,
|
|
15612
|
+
instanceOfCreateBillingPriceRequestBody: () => instanceOfCreateBillingPriceRequestBody,
|
|
15621
15613
|
instanceOfCreateBillingProductRequestBody: () => instanceOfCreateBillingProductRequestBody,
|
|
15622
15614
|
instanceOfCreateBillingSubscriptionsRequestBody: () => instanceOfCreateBillingSubscriptionsRequestBody,
|
|
15623
15615
|
instanceOfCreateCompanyOverrideRequestBody: () => instanceOfCreateCompanyOverrideRequestBody,
|
|
@@ -15694,8 +15686,6 @@ __export(src_exports, {
|
|
|
15694
15686
|
instanceOfFeatureResponseData: () => instanceOfFeatureResponseData,
|
|
15695
15687
|
instanceOfFeatureUsageDetailResponseData: () => instanceOfFeatureUsageDetailResponseData,
|
|
15696
15688
|
instanceOfFeatureUsageResponseData: () => instanceOfFeatureUsageResponseData,
|
|
15697
|
-
instanceOfFlagCheckLogDetailResponseData: () => instanceOfFlagCheckLogDetailResponseData,
|
|
15698
|
-
instanceOfFlagCheckLogResponseData: () => instanceOfFlagCheckLogResponseData,
|
|
15699
15689
|
instanceOfFlagDetailResponseData: () => instanceOfFlagDetailResponseData,
|
|
15700
15690
|
instanceOfFlagResponseData: () => instanceOfFlagResponseData,
|
|
15701
15691
|
instanceOfGetActiveCompanySubscriptionParams: () => instanceOfGetActiveCompanySubscriptionParams,
|
|
@@ -15719,10 +15709,7 @@ __export(src_exports, {
|
|
|
15719
15709
|
instanceOfGetFeatureResponse: () => instanceOfGetFeatureResponse,
|
|
15720
15710
|
instanceOfGetFeatureUsageByCompanyParams: () => instanceOfGetFeatureUsageByCompanyParams,
|
|
15721
15711
|
instanceOfGetFeatureUsageByCompanyResponse: () => instanceOfGetFeatureUsageByCompanyResponse,
|
|
15722
|
-
instanceOfGetFlagCheckResponse: () => instanceOfGetFlagCheckResponse,
|
|
15723
15712
|
instanceOfGetFlagResponse: () => instanceOfGetFlagResponse,
|
|
15724
|
-
instanceOfGetLatestFlagChecksParams: () => instanceOfGetLatestFlagChecksParams,
|
|
15725
|
-
instanceOfGetLatestFlagChecksResponse: () => instanceOfGetLatestFlagChecksResponse,
|
|
15726
15713
|
instanceOfGetOrCreateCompanyMembershipRequestBody: () => instanceOfGetOrCreateCompanyMembershipRequestBody,
|
|
15727
15714
|
instanceOfGetOrCreateCompanyMembershipResponse: () => instanceOfGetOrCreateCompanyMembershipResponse,
|
|
15728
15715
|
instanceOfGetOrCreateEntityTraitDefinitionResponse: () => instanceOfGetOrCreateEntityTraitDefinitionResponse,
|
|
@@ -15743,6 +15730,8 @@ __export(src_exports, {
|
|
|
15743
15730
|
instanceOfListApiRequestsResponse: () => instanceOfListApiRequestsResponse,
|
|
15744
15731
|
instanceOfListAudienceCompaniesResponse: () => instanceOfListAudienceCompaniesResponse,
|
|
15745
15732
|
instanceOfListAudienceUsersResponse: () => instanceOfListAudienceUsersResponse,
|
|
15733
|
+
instanceOfListBillingProductsParams: () => instanceOfListBillingProductsParams,
|
|
15734
|
+
instanceOfListBillingProductsResponse: () => instanceOfListBillingProductsResponse,
|
|
15746
15735
|
instanceOfListCompaniesParams: () => instanceOfListCompaniesParams,
|
|
15747
15736
|
instanceOfListCompaniesResponse: () => instanceOfListCompaniesResponse,
|
|
15748
15737
|
instanceOfListCompanyMembershipsParams: () => instanceOfListCompanyMembershipsParams,
|
|
@@ -15773,8 +15762,6 @@ __export(src_exports, {
|
|
|
15773
15762
|
instanceOfListFeatureUsersResponse: () => instanceOfListFeatureUsersResponse,
|
|
15774
15763
|
instanceOfListFeaturesParams: () => instanceOfListFeaturesParams,
|
|
15775
15764
|
instanceOfListFeaturesResponse: () => instanceOfListFeaturesResponse,
|
|
15776
|
-
instanceOfListFlagChecksParams: () => instanceOfListFlagChecksParams,
|
|
15777
|
-
instanceOfListFlagChecksResponse: () => instanceOfListFlagChecksResponse,
|
|
15778
15765
|
instanceOfListFlagsParams: () => instanceOfListFlagsParams,
|
|
15779
15766
|
instanceOfListFlagsResponse: () => instanceOfListFlagsResponse,
|
|
15780
15767
|
instanceOfListMetricCountsParams: () => instanceOfListMetricCountsParams,
|
|
@@ -15783,8 +15770,8 @@ __export(src_exports, {
|
|
|
15783
15770
|
instanceOfListPlanEntitlementsResponse: () => instanceOfListPlanEntitlementsResponse,
|
|
15784
15771
|
instanceOfListPlansParams: () => instanceOfListPlansParams,
|
|
15785
15772
|
instanceOfListPlansResponse: () => instanceOfListPlansResponse,
|
|
15786
|
-
|
|
15787
|
-
|
|
15773
|
+
instanceOfListProductPricesParams: () => instanceOfListProductPricesParams,
|
|
15774
|
+
instanceOfListProductPricesResponse: () => instanceOfListProductPricesResponse,
|
|
15788
15775
|
instanceOfListUsersParams: () => instanceOfListUsersParams,
|
|
15789
15776
|
instanceOfListUsersResponse: () => instanceOfListUsersResponse,
|
|
15790
15777
|
instanceOfListWebhookEventsParams: () => instanceOfListWebhookEventsParams,
|
|
@@ -15841,6 +15828,7 @@ __export(src_exports, {
|
|
|
15841
15828
|
instanceOfUpdateWebhookRequestBody: () => instanceOfUpdateWebhookRequestBody,
|
|
15842
15829
|
instanceOfUpdateWebhookResponse: () => instanceOfUpdateWebhookResponse,
|
|
15843
15830
|
instanceOfUpsertBillingCustomerResponse: () => instanceOfUpsertBillingCustomerResponse,
|
|
15831
|
+
instanceOfUpsertBillingPriceResponse: () => instanceOfUpsertBillingPriceResponse,
|
|
15844
15832
|
instanceOfUpsertBillingProductPlanResponse: () => instanceOfUpsertBillingProductPlanResponse,
|
|
15845
15833
|
instanceOfUpsertBillingProductRequestBody: () => instanceOfUpsertBillingProductRequestBody,
|
|
15846
15834
|
instanceOfUpsertBillingProductResponse: () => instanceOfUpsertBillingProductResponse,
|
|
@@ -18009,6 +17997,112 @@ function BillingCustomerWithSubscriptionsResponseDataToJSON(value) {
|
|
|
18009
17997
|
};
|
|
18010
17998
|
}
|
|
18011
17999
|
|
|
18000
|
+
// src/api/models/BillingPriceResponseData.ts
|
|
18001
|
+
function instanceOfBillingPriceResponseData(value) {
|
|
18002
|
+
if (!("externalPriceId" in value) || value["externalPriceId"] === void 0)
|
|
18003
|
+
return false;
|
|
18004
|
+
if (!("id" in value) || value["id"] === void 0)
|
|
18005
|
+
return false;
|
|
18006
|
+
if (!("interval" in value) || value["interval"] === void 0)
|
|
18007
|
+
return false;
|
|
18008
|
+
if (!("price" in value) || value["price"] === void 0)
|
|
18009
|
+
return false;
|
|
18010
|
+
return true;
|
|
18011
|
+
}
|
|
18012
|
+
function BillingPriceResponseDataFromJSON(json) {
|
|
18013
|
+
return BillingPriceResponseDataFromJSONTyped(json, false);
|
|
18014
|
+
}
|
|
18015
|
+
function BillingPriceResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
18016
|
+
if (json == null) {
|
|
18017
|
+
return json;
|
|
18018
|
+
}
|
|
18019
|
+
return {
|
|
18020
|
+
externalPriceId: json["external_price_id"],
|
|
18021
|
+
id: json["id"],
|
|
18022
|
+
interval: json["interval"],
|
|
18023
|
+
price: json["price"]
|
|
18024
|
+
};
|
|
18025
|
+
}
|
|
18026
|
+
function BillingPriceResponseDataToJSON(value) {
|
|
18027
|
+
if (value == null) {
|
|
18028
|
+
return value;
|
|
18029
|
+
}
|
|
18030
|
+
return {
|
|
18031
|
+
external_price_id: value["externalPriceId"],
|
|
18032
|
+
id: value["id"],
|
|
18033
|
+
interval: value["interval"],
|
|
18034
|
+
price: value["price"]
|
|
18035
|
+
};
|
|
18036
|
+
}
|
|
18037
|
+
|
|
18038
|
+
// src/api/models/BillingProductDetailResponseData.ts
|
|
18039
|
+
function instanceOfBillingProductDetailResponseData(value) {
|
|
18040
|
+
if (!("prices" in value) || value["prices"] === void 0)
|
|
18041
|
+
return false;
|
|
18042
|
+
if (!("accountId" in value) || value["accountId"] === void 0)
|
|
18043
|
+
return false;
|
|
18044
|
+
if (!("createdAt" in value) || value["createdAt"] === void 0)
|
|
18045
|
+
return false;
|
|
18046
|
+
if (!("currency" in value) || value["currency"] === void 0)
|
|
18047
|
+
return false;
|
|
18048
|
+
if (!("environmentId" in value) || value["environmentId"] === void 0)
|
|
18049
|
+
return false;
|
|
18050
|
+
if (!("externalId" in value) || value["externalId"] === void 0)
|
|
18051
|
+
return false;
|
|
18052
|
+
if (!("name" in value) || value["name"] === void 0)
|
|
18053
|
+
return false;
|
|
18054
|
+
if (!("price" in value) || value["price"] === void 0)
|
|
18055
|
+
return false;
|
|
18056
|
+
if (!("productId" in value) || value["productId"] === void 0)
|
|
18057
|
+
return false;
|
|
18058
|
+
if (!("quantity" in value) || value["quantity"] === void 0)
|
|
18059
|
+
return false;
|
|
18060
|
+
if (!("updatedAt" in value) || value["updatedAt"] === void 0)
|
|
18061
|
+
return false;
|
|
18062
|
+
return true;
|
|
18063
|
+
}
|
|
18064
|
+
function BillingProductDetailResponseDataFromJSON(json) {
|
|
18065
|
+
return BillingProductDetailResponseDataFromJSONTyped(json, false);
|
|
18066
|
+
}
|
|
18067
|
+
function BillingProductDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
18068
|
+
if (json == null) {
|
|
18069
|
+
return json;
|
|
18070
|
+
}
|
|
18071
|
+
return {
|
|
18072
|
+
prices: json["Prices"].map(
|
|
18073
|
+
BillingPriceResponseDataFromJSON
|
|
18074
|
+
),
|
|
18075
|
+
accountId: json["account_id"],
|
|
18076
|
+
createdAt: new Date(json["created_at"]),
|
|
18077
|
+
currency: json["currency"],
|
|
18078
|
+
environmentId: json["environment_id"],
|
|
18079
|
+
externalId: json["external_id"],
|
|
18080
|
+
name: json["name"],
|
|
18081
|
+
price: json["price"],
|
|
18082
|
+
productId: json["product_id"],
|
|
18083
|
+
quantity: json["quantity"],
|
|
18084
|
+
updatedAt: new Date(json["updated_at"])
|
|
18085
|
+
};
|
|
18086
|
+
}
|
|
18087
|
+
function BillingProductDetailResponseDataToJSON(value) {
|
|
18088
|
+
if (value == null) {
|
|
18089
|
+
return value;
|
|
18090
|
+
}
|
|
18091
|
+
return {
|
|
18092
|
+
Prices: value["prices"].map(BillingPriceResponseDataToJSON),
|
|
18093
|
+
account_id: value["accountId"],
|
|
18094
|
+
created_at: value["createdAt"].toISOString(),
|
|
18095
|
+
currency: value["currency"],
|
|
18096
|
+
environment_id: value["environmentId"],
|
|
18097
|
+
external_id: value["externalId"],
|
|
18098
|
+
name: value["name"],
|
|
18099
|
+
price: value["price"],
|
|
18100
|
+
product_id: value["productId"],
|
|
18101
|
+
quantity: value["quantity"],
|
|
18102
|
+
updated_at: value["updatedAt"].toISOString()
|
|
18103
|
+
};
|
|
18104
|
+
}
|
|
18105
|
+
|
|
18012
18106
|
// src/api/models/BillingProductPlanResponseData.ts
|
|
18013
18107
|
function instanceOfBillingProductPlanResponseData(value) {
|
|
18014
18108
|
if (!("accountId" in value) || value["accountId"] === void 0)
|
|
@@ -18915,6 +19009,8 @@ function instanceOfFeatureResponseData(value) {
|
|
|
18915
19009
|
return false;
|
|
18916
19010
|
if (!("featureType" in value) || value["featureType"] === void 0)
|
|
18917
19011
|
return false;
|
|
19012
|
+
if (!("icon" in value) || value["icon"] === void 0)
|
|
19013
|
+
return false;
|
|
18918
19014
|
if (!("id" in value) || value["id"] === void 0)
|
|
18919
19015
|
return false;
|
|
18920
19016
|
if (!("name" in value) || value["name"] === void 0)
|
|
@@ -18935,7 +19031,7 @@ function FeatureResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
18935
19031
|
description: json["description"],
|
|
18936
19032
|
eventSubtype: json["event_subtype"] == null ? void 0 : json["event_subtype"],
|
|
18937
19033
|
featureType: json["feature_type"],
|
|
18938
|
-
icon: json["icon"]
|
|
19034
|
+
icon: json["icon"],
|
|
18939
19035
|
id: json["id"],
|
|
18940
19036
|
lifecyclePhase: json["lifecycle_phase"] == null ? void 0 : json["lifecycle_phase"],
|
|
18941
19037
|
maintainerId: json["maintainer_id"] == null ? void 0 : json["maintainer_id"],
|
|
@@ -19463,74 +19559,6 @@ function RuleDetailResponseDataToJSON(value) {
|
|
|
19463
19559
|
};
|
|
19464
19560
|
}
|
|
19465
19561
|
|
|
19466
|
-
// src/api/models/FlagCheckLogResponseData.ts
|
|
19467
|
-
function instanceOfFlagCheckLogResponseData(value) {
|
|
19468
|
-
if (!("checkStatus" in value) || value["checkStatus"] === void 0)
|
|
19469
|
-
return false;
|
|
19470
|
-
if (!("createdAt" in value) || value["createdAt"] === void 0)
|
|
19471
|
-
return false;
|
|
19472
|
-
if (!("environmentId" in value) || value["environmentId"] === void 0)
|
|
19473
|
-
return false;
|
|
19474
|
-
if (!("flagKey" in value) || value["flagKey"] === void 0)
|
|
19475
|
-
return false;
|
|
19476
|
-
if (!("id" in value) || value["id"] === void 0)
|
|
19477
|
-
return false;
|
|
19478
|
-
if (!("reason" in value) || value["reason"] === void 0)
|
|
19479
|
-
return false;
|
|
19480
|
-
if (!("updatedAt" in value) || value["updatedAt"] === void 0)
|
|
19481
|
-
return false;
|
|
19482
|
-
if (!("value" in value) || value["value"] === void 0)
|
|
19483
|
-
return false;
|
|
19484
|
-
return true;
|
|
19485
|
-
}
|
|
19486
|
-
function FlagCheckLogResponseDataFromJSON(json) {
|
|
19487
|
-
return FlagCheckLogResponseDataFromJSONTyped(json, false);
|
|
19488
|
-
}
|
|
19489
|
-
function FlagCheckLogResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
19490
|
-
if (json == null) {
|
|
19491
|
-
return json;
|
|
19492
|
-
}
|
|
19493
|
-
return {
|
|
19494
|
-
checkStatus: json["check_status"],
|
|
19495
|
-
companyId: json["company_id"] == null ? void 0 : json["company_id"],
|
|
19496
|
-
createdAt: new Date(json["created_at"]),
|
|
19497
|
-
environmentId: json["environment_id"],
|
|
19498
|
-
error: json["error"] == null ? void 0 : json["error"],
|
|
19499
|
-
flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
|
|
19500
|
-
flagKey: json["flag_key"],
|
|
19501
|
-
id: json["id"],
|
|
19502
|
-
reason: json["reason"],
|
|
19503
|
-
reqCompany: json["req_company"] == null ? void 0 : json["req_company"],
|
|
19504
|
-
reqUser: json["req_user"] == null ? void 0 : json["req_user"],
|
|
19505
|
-
ruleId: json["rule_id"] == null ? void 0 : json["rule_id"],
|
|
19506
|
-
updatedAt: new Date(json["updated_at"]),
|
|
19507
|
-
userId: json["user_id"] == null ? void 0 : json["user_id"],
|
|
19508
|
-
value: json["value"]
|
|
19509
|
-
};
|
|
19510
|
-
}
|
|
19511
|
-
function FlagCheckLogResponseDataToJSON(value) {
|
|
19512
|
-
if (value == null) {
|
|
19513
|
-
return value;
|
|
19514
|
-
}
|
|
19515
|
-
return {
|
|
19516
|
-
check_status: value["checkStatus"],
|
|
19517
|
-
company_id: value["companyId"],
|
|
19518
|
-
created_at: value["createdAt"].toISOString(),
|
|
19519
|
-
environment_id: value["environmentId"],
|
|
19520
|
-
error: value["error"],
|
|
19521
|
-
flag_id: value["flagId"],
|
|
19522
|
-
flag_key: value["flagKey"],
|
|
19523
|
-
id: value["id"],
|
|
19524
|
-
reason: value["reason"],
|
|
19525
|
-
req_company: value["reqCompany"],
|
|
19526
|
-
req_user: value["reqUser"],
|
|
19527
|
-
rule_id: value["ruleId"],
|
|
19528
|
-
updated_at: value["updatedAt"].toISOString(),
|
|
19529
|
-
user_id: value["userId"],
|
|
19530
|
-
value: value["value"]
|
|
19531
|
-
};
|
|
19532
|
-
}
|
|
19533
|
-
|
|
19534
19562
|
// src/api/models/FlagDetailResponseData.ts
|
|
19535
19563
|
function instanceOfFlagDetailResponseData(value) {
|
|
19536
19564
|
if (!("createdAt" in value) || value["createdAt"] === void 0)
|
|
@@ -19570,7 +19598,6 @@ function FlagDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
19570
19598
|
id: json["id"],
|
|
19571
19599
|
key: json["key"],
|
|
19572
19600
|
lastCheckedAt: json["last_checked_at"] == null ? void 0 : new Date(json["last_checked_at"]),
|
|
19573
|
-
latestCheck: json["latest_check"] == null ? void 0 : FlagCheckLogResponseDataFromJSON(json["latest_check"]),
|
|
19574
19601
|
maintainerId: json["maintainer_id"] == null ? void 0 : json["maintainer_id"],
|
|
19575
19602
|
name: json["name"],
|
|
19576
19603
|
rules: json["rules"].map(RuleDetailResponseDataFromJSON),
|
|
@@ -19591,7 +19618,6 @@ function FlagDetailResponseDataToJSON(value) {
|
|
|
19591
19618
|
id: value["id"],
|
|
19592
19619
|
key: value["key"],
|
|
19593
19620
|
last_checked_at: value["lastCheckedAt"] == null ? void 0 : value["lastCheckedAt"].toISOString(),
|
|
19594
|
-
latest_check: FlagCheckLogResponseDataToJSON(value["latestCheck"]),
|
|
19595
19621
|
maintainer_id: value["maintainerId"],
|
|
19596
19622
|
name: value["name"],
|
|
19597
19623
|
rules: value["rules"].map(RuleDetailResponseDataToJSON),
|
|
@@ -19609,6 +19635,8 @@ function instanceOfFeatureDetailResponseData(value) {
|
|
|
19609
19635
|
return false;
|
|
19610
19636
|
if (!("flags" in value) || value["flags"] === void 0)
|
|
19611
19637
|
return false;
|
|
19638
|
+
if (!("icon" in value) || value["icon"] === void 0)
|
|
19639
|
+
return false;
|
|
19612
19640
|
if (!("id" in value) || value["id"] === void 0)
|
|
19613
19641
|
return false;
|
|
19614
19642
|
if (!("name" in value) || value["name"] === void 0)
|
|
@@ -19633,7 +19661,7 @@ function FeatureDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
19633
19661
|
eventSummary: json["event_summary"] == null ? void 0 : EventSummaryResponseDataFromJSON(json["event_summary"]),
|
|
19634
19662
|
featureType: json["feature_type"],
|
|
19635
19663
|
flags: json["flags"].map(FlagDetailResponseDataFromJSON),
|
|
19636
|
-
icon: json["icon"]
|
|
19664
|
+
icon: json["icon"],
|
|
19637
19665
|
id: json["id"],
|
|
19638
19666
|
lifecyclePhase: json["lifecycle_phase"] == null ? void 0 : json["lifecycle_phase"],
|
|
19639
19667
|
maintainerId: json["maintainer_id"] == null ? void 0 : json["maintainer_id"],
|
|
@@ -19675,6 +19703,8 @@ function instanceOfPlanResponseData(value) {
|
|
|
19675
19703
|
return false;
|
|
19676
19704
|
if (!("description" in value) || value["description"] === void 0)
|
|
19677
19705
|
return false;
|
|
19706
|
+
if (!("icon" in value) || value["icon"] === void 0)
|
|
19707
|
+
return false;
|
|
19678
19708
|
if (!("id" in value) || value["id"] === void 0)
|
|
19679
19709
|
return false;
|
|
19680
19710
|
if (!("name" in value) || value["name"] === void 0)
|
|
@@ -19696,7 +19726,7 @@ function PlanResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
19696
19726
|
audienceType: json["audience_type"],
|
|
19697
19727
|
createdAt: new Date(json["created_at"]),
|
|
19698
19728
|
description: json["description"],
|
|
19699
|
-
icon: json["icon"]
|
|
19729
|
+
icon: json["icon"],
|
|
19700
19730
|
id: json["id"],
|
|
19701
19731
|
name: json["name"],
|
|
19702
19732
|
planType: json["plan_type"],
|
|
@@ -20681,68 +20711,6 @@ function CountFeaturesResponseToJSON(value) {
|
|
|
20681
20711
|
};
|
|
20682
20712
|
}
|
|
20683
20713
|
|
|
20684
|
-
// src/api/models/CountFlagChecksParams.ts
|
|
20685
|
-
function instanceOfCountFlagChecksParams(value) {
|
|
20686
|
-
return true;
|
|
20687
|
-
}
|
|
20688
|
-
function CountFlagChecksParamsFromJSON(json) {
|
|
20689
|
-
return CountFlagChecksParamsFromJSONTyped(json, false);
|
|
20690
|
-
}
|
|
20691
|
-
function CountFlagChecksParamsFromJSONTyped(json, ignoreDiscriminator) {
|
|
20692
|
-
if (json == null) {
|
|
20693
|
-
return json;
|
|
20694
|
-
}
|
|
20695
|
-
return {
|
|
20696
|
-
flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
|
|
20697
|
-
flagIds: json["flag_ids"] == null ? void 0 : json["flag_ids"],
|
|
20698
|
-
id: json["id"] == null ? void 0 : json["id"],
|
|
20699
|
-
limit: json["limit"] == null ? void 0 : json["limit"],
|
|
20700
|
-
offset: json["offset"] == null ? void 0 : json["offset"]
|
|
20701
|
-
};
|
|
20702
|
-
}
|
|
20703
|
-
function CountFlagChecksParamsToJSON(value) {
|
|
20704
|
-
if (value == null) {
|
|
20705
|
-
return value;
|
|
20706
|
-
}
|
|
20707
|
-
return {
|
|
20708
|
-
flag_id: value["flagId"],
|
|
20709
|
-
flag_ids: value["flagIds"],
|
|
20710
|
-
id: value["id"],
|
|
20711
|
-
limit: value["limit"],
|
|
20712
|
-
offset: value["offset"]
|
|
20713
|
-
};
|
|
20714
|
-
}
|
|
20715
|
-
|
|
20716
|
-
// src/api/models/CountFlagChecksResponse.ts
|
|
20717
|
-
function instanceOfCountFlagChecksResponse(value) {
|
|
20718
|
-
if (!("data" in value) || value["data"] === void 0)
|
|
20719
|
-
return false;
|
|
20720
|
-
if (!("params" in value) || value["params"] === void 0)
|
|
20721
|
-
return false;
|
|
20722
|
-
return true;
|
|
20723
|
-
}
|
|
20724
|
-
function CountFlagChecksResponseFromJSON(json) {
|
|
20725
|
-
return CountFlagChecksResponseFromJSONTyped(json, false);
|
|
20726
|
-
}
|
|
20727
|
-
function CountFlagChecksResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
20728
|
-
if (json == null) {
|
|
20729
|
-
return json;
|
|
20730
|
-
}
|
|
20731
|
-
return {
|
|
20732
|
-
data: CountResponseFromJSON(json["data"]),
|
|
20733
|
-
params: CountFlagChecksParamsFromJSON(json["params"])
|
|
20734
|
-
};
|
|
20735
|
-
}
|
|
20736
|
-
function CountFlagChecksResponseToJSON(value) {
|
|
20737
|
-
if (value == null) {
|
|
20738
|
-
return value;
|
|
20739
|
-
}
|
|
20740
|
-
return {
|
|
20741
|
-
data: CountResponseToJSON(value["data"]),
|
|
20742
|
-
params: CountFlagChecksParamsToJSON(value["params"])
|
|
20743
|
-
};
|
|
20744
|
-
}
|
|
20745
|
-
|
|
20746
20714
|
// src/api/models/CountFlagsParams.ts
|
|
20747
20715
|
function instanceOfCountFlagsParams(value) {
|
|
20748
20716
|
return true;
|
|
@@ -21225,6 +21193,44 @@ function CreateBillingCustomerRequestBodyToJSON(value) {
|
|
|
21225
21193
|
};
|
|
21226
21194
|
}
|
|
21227
21195
|
|
|
21196
|
+
// src/api/models/CreateBillingPriceRequestBody.ts
|
|
21197
|
+
function instanceOfCreateBillingPriceRequestBody(value) {
|
|
21198
|
+
if (!("interval" in value) || value["interval"] === void 0)
|
|
21199
|
+
return false;
|
|
21200
|
+
if (!("price" in value) || value["price"] === void 0)
|
|
21201
|
+
return false;
|
|
21202
|
+
if (!("priceExternalId" in value) || value["priceExternalId"] === void 0)
|
|
21203
|
+
return false;
|
|
21204
|
+
if (!("productExternalId" in value) || value["productExternalId"] === void 0)
|
|
21205
|
+
return false;
|
|
21206
|
+
return true;
|
|
21207
|
+
}
|
|
21208
|
+
function CreateBillingPriceRequestBodyFromJSON(json) {
|
|
21209
|
+
return CreateBillingPriceRequestBodyFromJSONTyped(json, false);
|
|
21210
|
+
}
|
|
21211
|
+
function CreateBillingPriceRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
21212
|
+
if (json == null) {
|
|
21213
|
+
return json;
|
|
21214
|
+
}
|
|
21215
|
+
return {
|
|
21216
|
+
interval: json["interval"],
|
|
21217
|
+
price: json["price"],
|
|
21218
|
+
priceExternalId: json["price_external_id"],
|
|
21219
|
+
productExternalId: json["product_external_id"]
|
|
21220
|
+
};
|
|
21221
|
+
}
|
|
21222
|
+
function CreateBillingPriceRequestBodyToJSON(value) {
|
|
21223
|
+
if (value == null) {
|
|
21224
|
+
return value;
|
|
21225
|
+
}
|
|
21226
|
+
return {
|
|
21227
|
+
interval: value["interval"],
|
|
21228
|
+
price: value["price"],
|
|
21229
|
+
price_external_id: value["priceExternalId"],
|
|
21230
|
+
product_external_id: value["productExternalId"]
|
|
21231
|
+
};
|
|
21232
|
+
}
|
|
21233
|
+
|
|
21228
21234
|
// src/api/models/CreateBillingProductRequestBody.ts
|
|
21229
21235
|
function instanceOfCreateBillingProductRequestBody(value) {
|
|
21230
21236
|
if (!("currency" in value) || value["currency"] === void 0)
|
|
@@ -22665,8 +22671,6 @@ function CreatePlanRequestBodyToJSON(value) {
|
|
|
22665
22671
|
function instanceOfPlanDetailResponseData(value) {
|
|
22666
22672
|
if (!("audienceType" in value) || value["audienceType"] === void 0)
|
|
22667
22673
|
return false;
|
|
22668
|
-
if (!("billingProducts" in value) || value["billingProducts"] === void 0)
|
|
22669
|
-
return false;
|
|
22670
22674
|
if (!("companyCount" in value) || value["companyCount"] === void 0)
|
|
22671
22675
|
return false;
|
|
22672
22676
|
if (!("createdAt" in value) || value["createdAt"] === void 0)
|
|
@@ -22675,6 +22679,8 @@ function instanceOfPlanDetailResponseData(value) {
|
|
|
22675
22679
|
return false;
|
|
22676
22680
|
if (!("features" in value) || value["features"] === void 0)
|
|
22677
22681
|
return false;
|
|
22682
|
+
if (!("icon" in value) || value["icon"] === void 0)
|
|
22683
|
+
return false;
|
|
22678
22684
|
if (!("id" in value) || value["id"] === void 0)
|
|
22679
22685
|
return false;
|
|
22680
22686
|
if (!("name" in value) || value["name"] === void 0)
|
|
@@ -22694,16 +22700,14 @@ function PlanDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
22694
22700
|
}
|
|
22695
22701
|
return {
|
|
22696
22702
|
audienceType: json["audience_type"],
|
|
22697
|
-
|
|
22698
|
-
BillingProductResponseDataFromJSON
|
|
22699
|
-
),
|
|
22703
|
+
billingProduct: json["billing_product"] == null ? void 0 : BillingProductDetailResponseDataFromJSON(json["billing_product"]),
|
|
22700
22704
|
companyCount: json["company_count"],
|
|
22701
22705
|
createdAt: new Date(json["created_at"]),
|
|
22702
22706
|
description: json["description"],
|
|
22703
22707
|
features: json["features"].map(
|
|
22704
22708
|
FeatureDetailResponseDataFromJSON
|
|
22705
22709
|
),
|
|
22706
|
-
icon: json["icon"]
|
|
22710
|
+
icon: json["icon"],
|
|
22707
22711
|
id: json["id"],
|
|
22708
22712
|
name: json["name"],
|
|
22709
22713
|
planType: json["plan_type"],
|
|
@@ -22716,8 +22720,8 @@ function PlanDetailResponseDataToJSON(value) {
|
|
|
22716
22720
|
}
|
|
22717
22721
|
return {
|
|
22718
22722
|
audience_type: value["audienceType"],
|
|
22719
|
-
|
|
22720
|
-
|
|
22723
|
+
billing_product: BillingProductDetailResponseDataToJSON(
|
|
22724
|
+
value["billingProduct"]
|
|
22721
22725
|
),
|
|
22722
22726
|
company_count: value["companyCount"],
|
|
22723
22727
|
created_at: value["createdAt"].toISOString(),
|
|
@@ -24233,148 +24237,12 @@ function FlagResponseDataToJSON(value) {
|
|
|
24233
24237
|
};
|
|
24234
24238
|
}
|
|
24235
24239
|
|
|
24236
|
-
// src/api/models/
|
|
24237
|
-
function
|
|
24238
|
-
if (!("createdAt" in value) || value["createdAt"] === void 0)
|
|
24239
|
-
return false;
|
|
24240
|
-
if (!("environmentId" in value) || value["environmentId"] === void 0)
|
|
24241
|
-
return false;
|
|
24242
|
-
if (!("id" in value) || value["id"] === void 0)
|
|
24243
|
-
return false;
|
|
24244
|
-
if (!("name" in value) || value["name"] === void 0)
|
|
24245
|
-
return false;
|
|
24246
|
-
if (!("priority" in value) || value["priority"] === void 0)
|
|
24247
|
-
return false;
|
|
24248
|
-
if (!("ruleType" in value) || value["ruleType"] === void 0)
|
|
24249
|
-
return false;
|
|
24250
|
-
if (!("updatedAt" in value) || value["updatedAt"] === void 0)
|
|
24251
|
-
return false;
|
|
24252
|
-
if (!("value" in value) || value["value"] === void 0)
|
|
24253
|
-
return false;
|
|
24240
|
+
// src/api/models/GetActiveCompanySubscriptionParams.ts
|
|
24241
|
+
function instanceOfGetActiveCompanySubscriptionParams(value) {
|
|
24254
24242
|
return true;
|
|
24255
24243
|
}
|
|
24256
|
-
function
|
|
24257
|
-
return
|
|
24258
|
-
}
|
|
24259
|
-
function RuleResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
24260
|
-
if (json == null) {
|
|
24261
|
-
return json;
|
|
24262
|
-
}
|
|
24263
|
-
return {
|
|
24264
|
-
createdAt: new Date(json["created_at"]),
|
|
24265
|
-
environmentId: json["environment_id"],
|
|
24266
|
-
flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
|
|
24267
|
-
id: json["id"],
|
|
24268
|
-
name: json["name"],
|
|
24269
|
-
planId: json["plan_id"] == null ? void 0 : json["plan_id"],
|
|
24270
|
-
priority: json["priority"],
|
|
24271
|
-
ruleType: json["rule_type"],
|
|
24272
|
-
updatedAt: new Date(json["updated_at"]),
|
|
24273
|
-
value: json["value"]
|
|
24274
|
-
};
|
|
24275
|
-
}
|
|
24276
|
-
function RuleResponseDataToJSON(value) {
|
|
24277
|
-
if (value == null) {
|
|
24278
|
-
return value;
|
|
24279
|
-
}
|
|
24280
|
-
return {
|
|
24281
|
-
created_at: value["createdAt"].toISOString(),
|
|
24282
|
-
environment_id: value["environmentId"],
|
|
24283
|
-
flag_id: value["flagId"],
|
|
24284
|
-
id: value["id"],
|
|
24285
|
-
name: value["name"],
|
|
24286
|
-
plan_id: value["planId"],
|
|
24287
|
-
priority: value["priority"],
|
|
24288
|
-
rule_type: value["ruleType"],
|
|
24289
|
-
updated_at: value["updatedAt"].toISOString(),
|
|
24290
|
-
value: value["value"]
|
|
24291
|
-
};
|
|
24292
|
-
}
|
|
24293
|
-
|
|
24294
|
-
// src/api/models/FlagCheckLogDetailResponseData.ts
|
|
24295
|
-
function instanceOfFlagCheckLogDetailResponseData(value) {
|
|
24296
|
-
if (!("checkStatus" in value) || value["checkStatus"] === void 0)
|
|
24297
|
-
return false;
|
|
24298
|
-
if (!("createdAt" in value) || value["createdAt"] === void 0)
|
|
24299
|
-
return false;
|
|
24300
|
-
if (!("environmentId" in value) || value["environmentId"] === void 0)
|
|
24301
|
-
return false;
|
|
24302
|
-
if (!("flagKey" in value) || value["flagKey"] === void 0)
|
|
24303
|
-
return false;
|
|
24304
|
-
if (!("id" in value) || value["id"] === void 0)
|
|
24305
|
-
return false;
|
|
24306
|
-
if (!("reason" in value) || value["reason"] === void 0)
|
|
24307
|
-
return false;
|
|
24308
|
-
if (!("updatedAt" in value) || value["updatedAt"] === void 0)
|
|
24309
|
-
return false;
|
|
24310
|
-
if (!("value" in value) || value["value"] === void 0)
|
|
24311
|
-
return false;
|
|
24312
|
-
return true;
|
|
24313
|
-
}
|
|
24314
|
-
function FlagCheckLogDetailResponseDataFromJSON(json) {
|
|
24315
|
-
return FlagCheckLogDetailResponseDataFromJSONTyped(json, false);
|
|
24316
|
-
}
|
|
24317
|
-
function FlagCheckLogDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
24318
|
-
if (json == null) {
|
|
24319
|
-
return json;
|
|
24320
|
-
}
|
|
24321
|
-
return {
|
|
24322
|
-
checkStatus: json["check_status"],
|
|
24323
|
-
company: json["company"] == null ? void 0 : CompanyResponseDataFromJSON(json["company"]),
|
|
24324
|
-
companyId: json["company_id"] == null ? void 0 : json["company_id"],
|
|
24325
|
-
createdAt: new Date(json["created_at"]),
|
|
24326
|
-
environment: json["environment"] == null ? void 0 : EnvironmentResponseDataFromJSON(json["environment"]),
|
|
24327
|
-
environmentId: json["environment_id"],
|
|
24328
|
-
error: json["error"] == null ? void 0 : json["error"],
|
|
24329
|
-
flag: json["flag"] == null ? void 0 : FlagResponseDataFromJSON(json["flag"]),
|
|
24330
|
-
flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
|
|
24331
|
-
flagKey: json["flag_key"],
|
|
24332
|
-
id: json["id"],
|
|
24333
|
-
reason: json["reason"],
|
|
24334
|
-
reqCompany: json["req_company"] == null ? void 0 : json["req_company"],
|
|
24335
|
-
reqUser: json["req_user"] == null ? void 0 : json["req_user"],
|
|
24336
|
-
rule: json["rule"] == null ? void 0 : RuleResponseDataFromJSON(json["rule"]),
|
|
24337
|
-
ruleId: json["rule_id"] == null ? void 0 : json["rule_id"],
|
|
24338
|
-
updatedAt: new Date(json["updated_at"]),
|
|
24339
|
-
user: json["user"] == null ? void 0 : UserResponseDataFromJSON(json["user"]),
|
|
24340
|
-
userId: json["user_id"] == null ? void 0 : json["user_id"],
|
|
24341
|
-
value: json["value"]
|
|
24342
|
-
};
|
|
24343
|
-
}
|
|
24344
|
-
function FlagCheckLogDetailResponseDataToJSON(value) {
|
|
24345
|
-
if (value == null) {
|
|
24346
|
-
return value;
|
|
24347
|
-
}
|
|
24348
|
-
return {
|
|
24349
|
-
check_status: value["checkStatus"],
|
|
24350
|
-
company: CompanyResponseDataToJSON(value["company"]),
|
|
24351
|
-
company_id: value["companyId"],
|
|
24352
|
-
created_at: value["createdAt"].toISOString(),
|
|
24353
|
-
environment: EnvironmentResponseDataToJSON(value["environment"]),
|
|
24354
|
-
environment_id: value["environmentId"],
|
|
24355
|
-
error: value["error"],
|
|
24356
|
-
flag: FlagResponseDataToJSON(value["flag"]),
|
|
24357
|
-
flag_id: value["flagId"],
|
|
24358
|
-
flag_key: value["flagKey"],
|
|
24359
|
-
id: value["id"],
|
|
24360
|
-
reason: value["reason"],
|
|
24361
|
-
req_company: value["reqCompany"],
|
|
24362
|
-
req_user: value["reqUser"],
|
|
24363
|
-
rule: RuleResponseDataToJSON(value["rule"]),
|
|
24364
|
-
rule_id: value["ruleId"],
|
|
24365
|
-
updated_at: value["updatedAt"].toISOString(),
|
|
24366
|
-
user: UserResponseDataToJSON(value["user"]),
|
|
24367
|
-
user_id: value["userId"],
|
|
24368
|
-
value: value["value"]
|
|
24369
|
-
};
|
|
24370
|
-
}
|
|
24371
|
-
|
|
24372
|
-
// src/api/models/GetActiveCompanySubscriptionParams.ts
|
|
24373
|
-
function instanceOfGetActiveCompanySubscriptionParams(value) {
|
|
24374
|
-
return true;
|
|
24375
|
-
}
|
|
24376
|
-
function GetActiveCompanySubscriptionParamsFromJSON(json) {
|
|
24377
|
-
return GetActiveCompanySubscriptionParamsFromJSONTyped(json, false);
|
|
24244
|
+
function GetActiveCompanySubscriptionParamsFromJSON(json) {
|
|
24245
|
+
return GetActiveCompanySubscriptionParamsFromJSONTyped(json, false);
|
|
24378
24246
|
}
|
|
24379
24247
|
function GetActiveCompanySubscriptionParamsFromJSONTyped(json, ignoreDiscriminator) {
|
|
24380
24248
|
if (json == null) {
|
|
@@ -25069,36 +24937,6 @@ function GetFeatureUsageByCompanyResponseToJSON(value) {
|
|
|
25069
24937
|
};
|
|
25070
24938
|
}
|
|
25071
24939
|
|
|
25072
|
-
// src/api/models/GetFlagCheckResponse.ts
|
|
25073
|
-
function instanceOfGetFlagCheckResponse(value) {
|
|
25074
|
-
if (!("data" in value) || value["data"] === void 0)
|
|
25075
|
-
return false;
|
|
25076
|
-
if (!("params" in value) || value["params"] === void 0)
|
|
25077
|
-
return false;
|
|
25078
|
-
return true;
|
|
25079
|
-
}
|
|
25080
|
-
function GetFlagCheckResponseFromJSON(json) {
|
|
25081
|
-
return GetFlagCheckResponseFromJSONTyped(json, false);
|
|
25082
|
-
}
|
|
25083
|
-
function GetFlagCheckResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
25084
|
-
if (json == null) {
|
|
25085
|
-
return json;
|
|
25086
|
-
}
|
|
25087
|
-
return {
|
|
25088
|
-
data: FlagCheckLogDetailResponseDataFromJSON(json["data"]),
|
|
25089
|
-
params: json["params"]
|
|
25090
|
-
};
|
|
25091
|
-
}
|
|
25092
|
-
function GetFlagCheckResponseToJSON(value) {
|
|
25093
|
-
if (value == null) {
|
|
25094
|
-
return value;
|
|
25095
|
-
}
|
|
25096
|
-
return {
|
|
25097
|
-
data: FlagCheckLogDetailResponseDataToJSON(value["data"]),
|
|
25098
|
-
params: value["params"]
|
|
25099
|
-
};
|
|
25100
|
-
}
|
|
25101
|
-
|
|
25102
24940
|
// src/api/models/GetFlagResponse.ts
|
|
25103
24941
|
function instanceOfGetFlagResponse(value) {
|
|
25104
24942
|
if (!("data" in value) || value["data"] === void 0)
|
|
@@ -25129,68 +24967,6 @@ function GetFlagResponseToJSON(value) {
|
|
|
25129
24967
|
};
|
|
25130
24968
|
}
|
|
25131
24969
|
|
|
25132
|
-
// src/api/models/GetLatestFlagChecksParams.ts
|
|
25133
|
-
function instanceOfGetLatestFlagChecksParams(value) {
|
|
25134
|
-
return true;
|
|
25135
|
-
}
|
|
25136
|
-
function GetLatestFlagChecksParamsFromJSON(json) {
|
|
25137
|
-
return GetLatestFlagChecksParamsFromJSONTyped(json, false);
|
|
25138
|
-
}
|
|
25139
|
-
function GetLatestFlagChecksParamsFromJSONTyped(json, ignoreDiscriminator) {
|
|
25140
|
-
if (json == null) {
|
|
25141
|
-
return json;
|
|
25142
|
-
}
|
|
25143
|
-
return {
|
|
25144
|
-
flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
|
|
25145
|
-
flagIds: json["flag_ids"] == null ? void 0 : json["flag_ids"],
|
|
25146
|
-
id: json["id"] == null ? void 0 : json["id"],
|
|
25147
|
-
limit: json["limit"] == null ? void 0 : json["limit"],
|
|
25148
|
-
offset: json["offset"] == null ? void 0 : json["offset"]
|
|
25149
|
-
};
|
|
25150
|
-
}
|
|
25151
|
-
function GetLatestFlagChecksParamsToJSON(value) {
|
|
25152
|
-
if (value == null) {
|
|
25153
|
-
return value;
|
|
25154
|
-
}
|
|
25155
|
-
return {
|
|
25156
|
-
flag_id: value["flagId"],
|
|
25157
|
-
flag_ids: value["flagIds"],
|
|
25158
|
-
id: value["id"],
|
|
25159
|
-
limit: value["limit"],
|
|
25160
|
-
offset: value["offset"]
|
|
25161
|
-
};
|
|
25162
|
-
}
|
|
25163
|
-
|
|
25164
|
-
// src/api/models/GetLatestFlagChecksResponse.ts
|
|
25165
|
-
function instanceOfGetLatestFlagChecksResponse(value) {
|
|
25166
|
-
if (!("data" in value) || value["data"] === void 0)
|
|
25167
|
-
return false;
|
|
25168
|
-
if (!("params" in value) || value["params"] === void 0)
|
|
25169
|
-
return false;
|
|
25170
|
-
return true;
|
|
25171
|
-
}
|
|
25172
|
-
function GetLatestFlagChecksResponseFromJSON(json) {
|
|
25173
|
-
return GetLatestFlagChecksResponseFromJSONTyped(json, false);
|
|
25174
|
-
}
|
|
25175
|
-
function GetLatestFlagChecksResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
25176
|
-
if (json == null) {
|
|
25177
|
-
return json;
|
|
25178
|
-
}
|
|
25179
|
-
return {
|
|
25180
|
-
data: json["data"].map(FlagCheckLogResponseDataFromJSON),
|
|
25181
|
-
params: GetLatestFlagChecksParamsFromJSON(json["params"])
|
|
25182
|
-
};
|
|
25183
|
-
}
|
|
25184
|
-
function GetLatestFlagChecksResponseToJSON(value) {
|
|
25185
|
-
if (value == null) {
|
|
25186
|
-
return value;
|
|
25187
|
-
}
|
|
25188
|
-
return {
|
|
25189
|
-
data: value["data"].map(FlagCheckLogResponseDataToJSON),
|
|
25190
|
-
params: GetLatestFlagChecksParamsToJSON(value["params"])
|
|
25191
|
-
};
|
|
25192
|
-
}
|
|
25193
|
-
|
|
25194
24970
|
// src/api/models/GetOrCreateCompanyMembershipRequestBody.ts
|
|
25195
24971
|
function instanceOfGetOrCreateCompanyMembershipRequestBody(value) {
|
|
25196
24972
|
if (!("companyId" in value) || value["companyId"] === void 0)
|
|
@@ -25903,6 +25679,72 @@ function ListAudienceUsersResponseToJSON(value) {
|
|
|
25903
25679
|
};
|
|
25904
25680
|
}
|
|
25905
25681
|
|
|
25682
|
+
// src/api/models/ListBillingProductsParams.ts
|
|
25683
|
+
function instanceOfListBillingProductsParams(value) {
|
|
25684
|
+
return true;
|
|
25685
|
+
}
|
|
25686
|
+
function ListBillingProductsParamsFromJSON(json) {
|
|
25687
|
+
return ListBillingProductsParamsFromJSONTyped(json, false);
|
|
25688
|
+
}
|
|
25689
|
+
function ListBillingProductsParamsFromJSONTyped(json, ignoreDiscriminator) {
|
|
25690
|
+
if (json == null) {
|
|
25691
|
+
return json;
|
|
25692
|
+
}
|
|
25693
|
+
return {
|
|
25694
|
+
ids: json["ids"] == null ? void 0 : json["ids"],
|
|
25695
|
+
limit: json["limit"] == null ? void 0 : json["limit"],
|
|
25696
|
+
name: json["name"] == null ? void 0 : json["name"],
|
|
25697
|
+
offset: json["offset"] == null ? void 0 : json["offset"],
|
|
25698
|
+
q: json["q"] == null ? void 0 : json["q"]
|
|
25699
|
+
};
|
|
25700
|
+
}
|
|
25701
|
+
function ListBillingProductsParamsToJSON(value) {
|
|
25702
|
+
if (value == null) {
|
|
25703
|
+
return value;
|
|
25704
|
+
}
|
|
25705
|
+
return {
|
|
25706
|
+
ids: value["ids"],
|
|
25707
|
+
limit: value["limit"],
|
|
25708
|
+
name: value["name"],
|
|
25709
|
+
offset: value["offset"],
|
|
25710
|
+
q: value["q"]
|
|
25711
|
+
};
|
|
25712
|
+
}
|
|
25713
|
+
|
|
25714
|
+
// src/api/models/ListBillingProductsResponse.ts
|
|
25715
|
+
function instanceOfListBillingProductsResponse(value) {
|
|
25716
|
+
if (!("data" in value) || value["data"] === void 0)
|
|
25717
|
+
return false;
|
|
25718
|
+
if (!("params" in value) || value["params"] === void 0)
|
|
25719
|
+
return false;
|
|
25720
|
+
return true;
|
|
25721
|
+
}
|
|
25722
|
+
function ListBillingProductsResponseFromJSON(json) {
|
|
25723
|
+
return ListBillingProductsResponseFromJSONTyped(json, false);
|
|
25724
|
+
}
|
|
25725
|
+
function ListBillingProductsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
25726
|
+
if (json == null) {
|
|
25727
|
+
return json;
|
|
25728
|
+
}
|
|
25729
|
+
return {
|
|
25730
|
+
data: json["data"].map(
|
|
25731
|
+
BillingProductDetailResponseDataFromJSON
|
|
25732
|
+
),
|
|
25733
|
+
params: ListBillingProductsParamsFromJSON(json["params"])
|
|
25734
|
+
};
|
|
25735
|
+
}
|
|
25736
|
+
function ListBillingProductsResponseToJSON(value) {
|
|
25737
|
+
if (value == null) {
|
|
25738
|
+
return value;
|
|
25739
|
+
}
|
|
25740
|
+
return {
|
|
25741
|
+
data: value["data"].map(
|
|
25742
|
+
BillingProductDetailResponseDataToJSON
|
|
25743
|
+
),
|
|
25744
|
+
params: ListBillingProductsParamsToJSON(value["params"])
|
|
25745
|
+
};
|
|
25746
|
+
}
|
|
25747
|
+
|
|
25906
25748
|
// src/api/models/ListCompaniesParams.ts
|
|
25907
25749
|
function instanceOfListCompaniesParams(value) {
|
|
25908
25750
|
return true;
|
|
@@ -26869,72 +26711,6 @@ function ListFeaturesResponseToJSON(value) {
|
|
|
26869
26711
|
};
|
|
26870
26712
|
}
|
|
26871
26713
|
|
|
26872
|
-
// src/api/models/ListFlagChecksParams.ts
|
|
26873
|
-
function instanceOfListFlagChecksParams(value) {
|
|
26874
|
-
return true;
|
|
26875
|
-
}
|
|
26876
|
-
function ListFlagChecksParamsFromJSON(json) {
|
|
26877
|
-
return ListFlagChecksParamsFromJSONTyped(json, false);
|
|
26878
|
-
}
|
|
26879
|
-
function ListFlagChecksParamsFromJSONTyped(json, ignoreDiscriminator) {
|
|
26880
|
-
if (json == null) {
|
|
26881
|
-
return json;
|
|
26882
|
-
}
|
|
26883
|
-
return {
|
|
26884
|
-
flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
|
|
26885
|
-
flagIds: json["flag_ids"] == null ? void 0 : json["flag_ids"],
|
|
26886
|
-
id: json["id"] == null ? void 0 : json["id"],
|
|
26887
|
-
limit: json["limit"] == null ? void 0 : json["limit"],
|
|
26888
|
-
offset: json["offset"] == null ? void 0 : json["offset"]
|
|
26889
|
-
};
|
|
26890
|
-
}
|
|
26891
|
-
function ListFlagChecksParamsToJSON(value) {
|
|
26892
|
-
if (value == null) {
|
|
26893
|
-
return value;
|
|
26894
|
-
}
|
|
26895
|
-
return {
|
|
26896
|
-
flag_id: value["flagId"],
|
|
26897
|
-
flag_ids: value["flagIds"],
|
|
26898
|
-
id: value["id"],
|
|
26899
|
-
limit: value["limit"],
|
|
26900
|
-
offset: value["offset"]
|
|
26901
|
-
};
|
|
26902
|
-
}
|
|
26903
|
-
|
|
26904
|
-
// src/api/models/ListFlagChecksResponse.ts
|
|
26905
|
-
function instanceOfListFlagChecksResponse(value) {
|
|
26906
|
-
if (!("data" in value) || value["data"] === void 0)
|
|
26907
|
-
return false;
|
|
26908
|
-
if (!("params" in value) || value["params"] === void 0)
|
|
26909
|
-
return false;
|
|
26910
|
-
return true;
|
|
26911
|
-
}
|
|
26912
|
-
function ListFlagChecksResponseFromJSON(json) {
|
|
26913
|
-
return ListFlagChecksResponseFromJSONTyped(json, false);
|
|
26914
|
-
}
|
|
26915
|
-
function ListFlagChecksResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
26916
|
-
if (json == null) {
|
|
26917
|
-
return json;
|
|
26918
|
-
}
|
|
26919
|
-
return {
|
|
26920
|
-
data: json["data"].map(
|
|
26921
|
-
FlagCheckLogDetailResponseDataFromJSON
|
|
26922
|
-
),
|
|
26923
|
-
params: ListFlagChecksParamsFromJSON(json["params"])
|
|
26924
|
-
};
|
|
26925
|
-
}
|
|
26926
|
-
function ListFlagChecksResponseToJSON(value) {
|
|
26927
|
-
if (value == null) {
|
|
26928
|
-
return value;
|
|
26929
|
-
}
|
|
26930
|
-
return {
|
|
26931
|
-
data: value["data"].map(
|
|
26932
|
-
FlagCheckLogDetailResponseDataToJSON
|
|
26933
|
-
),
|
|
26934
|
-
params: ListFlagChecksParamsToJSON(value["params"])
|
|
26935
|
-
};
|
|
26936
|
-
}
|
|
26937
|
-
|
|
26938
26714
|
// src/api/models/ListFlagsParams.ts
|
|
26939
26715
|
function instanceOfListFlagsParams(value) {
|
|
26940
26716
|
return true;
|
|
@@ -27251,14 +27027,14 @@ function ListPlansResponseToJSON(value) {
|
|
|
27251
27027
|
};
|
|
27252
27028
|
}
|
|
27253
27029
|
|
|
27254
|
-
// src/api/models/
|
|
27255
|
-
function
|
|
27030
|
+
// src/api/models/ListProductPricesParams.ts
|
|
27031
|
+
function instanceOfListProductPricesParams(value) {
|
|
27256
27032
|
return true;
|
|
27257
27033
|
}
|
|
27258
|
-
function
|
|
27259
|
-
return
|
|
27034
|
+
function ListProductPricesParamsFromJSON(json) {
|
|
27035
|
+
return ListProductPricesParamsFromJSONTyped(json, false);
|
|
27260
27036
|
}
|
|
27261
|
-
function
|
|
27037
|
+
function ListProductPricesParamsFromJSONTyped(json, ignoreDiscriminator) {
|
|
27262
27038
|
if (json == null) {
|
|
27263
27039
|
return json;
|
|
27264
27040
|
}
|
|
@@ -27270,7 +27046,7 @@ function ListProductsParamsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
27270
27046
|
q: json["q"] == null ? void 0 : json["q"]
|
|
27271
27047
|
};
|
|
27272
27048
|
}
|
|
27273
|
-
function
|
|
27049
|
+
function ListProductPricesParamsToJSON(value) {
|
|
27274
27050
|
if (value == null) {
|
|
27275
27051
|
return value;
|
|
27276
27052
|
}
|
|
@@ -27283,33 +27059,33 @@ function ListProductsParamsToJSON(value) {
|
|
|
27283
27059
|
};
|
|
27284
27060
|
}
|
|
27285
27061
|
|
|
27286
|
-
// src/api/models/
|
|
27287
|
-
function
|
|
27062
|
+
// src/api/models/ListProductPricesResponse.ts
|
|
27063
|
+
function instanceOfListProductPricesResponse(value) {
|
|
27288
27064
|
if (!("data" in value) || value["data"] === void 0)
|
|
27289
27065
|
return false;
|
|
27290
27066
|
if (!("params" in value) || value["params"] === void 0)
|
|
27291
27067
|
return false;
|
|
27292
27068
|
return true;
|
|
27293
27069
|
}
|
|
27294
|
-
function
|
|
27295
|
-
return
|
|
27070
|
+
function ListProductPricesResponseFromJSON(json) {
|
|
27071
|
+
return ListProductPricesResponseFromJSONTyped(json, false);
|
|
27296
27072
|
}
|
|
27297
|
-
function
|
|
27073
|
+
function ListProductPricesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
27298
27074
|
if (json == null) {
|
|
27299
27075
|
return json;
|
|
27300
27076
|
}
|
|
27301
27077
|
return {
|
|
27302
|
-
data: json["data"].map(
|
|
27303
|
-
params:
|
|
27078
|
+
data: json["data"].map(BillingPriceResponseDataFromJSON),
|
|
27079
|
+
params: ListProductPricesParamsFromJSON(json["params"])
|
|
27304
27080
|
};
|
|
27305
27081
|
}
|
|
27306
|
-
function
|
|
27082
|
+
function ListProductPricesResponseToJSON(value) {
|
|
27307
27083
|
if (value == null) {
|
|
27308
27084
|
return value;
|
|
27309
27085
|
}
|
|
27310
27086
|
return {
|
|
27311
|
-
data: value["data"].map(
|
|
27312
|
-
params:
|
|
27087
|
+
data: value["data"].map(BillingPriceResponseDataToJSON),
|
|
27088
|
+
params: ListProductPricesParamsToJSON(value["params"])
|
|
27313
27089
|
};
|
|
27314
27090
|
}
|
|
27315
27091
|
|
|
@@ -27815,6 +27591,64 @@ function RuleConditionResponseDataToJSON(value) {
|
|
|
27815
27591
|
};
|
|
27816
27592
|
}
|
|
27817
27593
|
|
|
27594
|
+
// src/api/models/RuleResponseData.ts
|
|
27595
|
+
function instanceOfRuleResponseData(value) {
|
|
27596
|
+
if (!("createdAt" in value) || value["createdAt"] === void 0)
|
|
27597
|
+
return false;
|
|
27598
|
+
if (!("environmentId" in value) || value["environmentId"] === void 0)
|
|
27599
|
+
return false;
|
|
27600
|
+
if (!("id" in value) || value["id"] === void 0)
|
|
27601
|
+
return false;
|
|
27602
|
+
if (!("name" in value) || value["name"] === void 0)
|
|
27603
|
+
return false;
|
|
27604
|
+
if (!("priority" in value) || value["priority"] === void 0)
|
|
27605
|
+
return false;
|
|
27606
|
+
if (!("ruleType" in value) || value["ruleType"] === void 0)
|
|
27607
|
+
return false;
|
|
27608
|
+
if (!("updatedAt" in value) || value["updatedAt"] === void 0)
|
|
27609
|
+
return false;
|
|
27610
|
+
if (!("value" in value) || value["value"] === void 0)
|
|
27611
|
+
return false;
|
|
27612
|
+
return true;
|
|
27613
|
+
}
|
|
27614
|
+
function RuleResponseDataFromJSON(json) {
|
|
27615
|
+
return RuleResponseDataFromJSONTyped(json, false);
|
|
27616
|
+
}
|
|
27617
|
+
function RuleResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
27618
|
+
if (json == null) {
|
|
27619
|
+
return json;
|
|
27620
|
+
}
|
|
27621
|
+
return {
|
|
27622
|
+
createdAt: new Date(json["created_at"]),
|
|
27623
|
+
environmentId: json["environment_id"],
|
|
27624
|
+
flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
|
|
27625
|
+
id: json["id"],
|
|
27626
|
+
name: json["name"],
|
|
27627
|
+
planId: json["plan_id"] == null ? void 0 : json["plan_id"],
|
|
27628
|
+
priority: json["priority"],
|
|
27629
|
+
ruleType: json["rule_type"],
|
|
27630
|
+
updatedAt: new Date(json["updated_at"]),
|
|
27631
|
+
value: json["value"]
|
|
27632
|
+
};
|
|
27633
|
+
}
|
|
27634
|
+
function RuleResponseDataToJSON(value) {
|
|
27635
|
+
if (value == null) {
|
|
27636
|
+
return value;
|
|
27637
|
+
}
|
|
27638
|
+
return {
|
|
27639
|
+
created_at: value["createdAt"].toISOString(),
|
|
27640
|
+
environment_id: value["environmentId"],
|
|
27641
|
+
flag_id: value["flagId"],
|
|
27642
|
+
id: value["id"],
|
|
27643
|
+
name: value["name"],
|
|
27644
|
+
plan_id: value["planId"],
|
|
27645
|
+
priority: value["priority"],
|
|
27646
|
+
rule_type: value["ruleType"],
|
|
27647
|
+
updated_at: value["updatedAt"].toISOString(),
|
|
27648
|
+
value: value["value"]
|
|
27649
|
+
};
|
|
27650
|
+
}
|
|
27651
|
+
|
|
27818
27652
|
// src/api/models/RulesDetailResponseData.ts
|
|
27819
27653
|
function instanceOfRulesDetailResponseData(value) {
|
|
27820
27654
|
if (!("rules" in value) || value["rules"] === void 0)
|
|
@@ -28815,6 +28649,36 @@ function UpsertBillingCustomerResponseToJSON(value) {
|
|
|
28815
28649
|
};
|
|
28816
28650
|
}
|
|
28817
28651
|
|
|
28652
|
+
// src/api/models/UpsertBillingPriceResponse.ts
|
|
28653
|
+
function instanceOfUpsertBillingPriceResponse(value) {
|
|
28654
|
+
if (!("data" in value) || value["data"] === void 0)
|
|
28655
|
+
return false;
|
|
28656
|
+
if (!("params" in value) || value["params"] === void 0)
|
|
28657
|
+
return false;
|
|
28658
|
+
return true;
|
|
28659
|
+
}
|
|
28660
|
+
function UpsertBillingPriceResponseFromJSON(json) {
|
|
28661
|
+
return UpsertBillingPriceResponseFromJSONTyped(json, false);
|
|
28662
|
+
}
|
|
28663
|
+
function UpsertBillingPriceResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
28664
|
+
if (json == null) {
|
|
28665
|
+
return json;
|
|
28666
|
+
}
|
|
28667
|
+
return {
|
|
28668
|
+
data: BillingPriceResponseDataFromJSON(json["data"]),
|
|
28669
|
+
params: json["params"]
|
|
28670
|
+
};
|
|
28671
|
+
}
|
|
28672
|
+
function UpsertBillingPriceResponseToJSON(value) {
|
|
28673
|
+
if (value == null) {
|
|
28674
|
+
return value;
|
|
28675
|
+
}
|
|
28676
|
+
return {
|
|
28677
|
+
data: BillingPriceResponseDataToJSON(value["data"]),
|
|
28678
|
+
params: value["params"]
|
|
28679
|
+
};
|
|
28680
|
+
}
|
|
28681
|
+
|
|
28818
28682
|
// src/api/models/UpsertBillingProductPlanResponse.ts
|
|
28819
28683
|
function instanceOfUpsertBillingProductPlanResponse(value) {
|
|
28820
28684
|
if (!("data" in value) || value["data"] === void 0)
|
|
@@ -30145,6 +30009,56 @@ var BillingApi = class extends BaseAPI {
|
|
|
30145
30009
|
);
|
|
30146
30010
|
return await response.value();
|
|
30147
30011
|
}
|
|
30012
|
+
/**
|
|
30013
|
+
* List billing products
|
|
30014
|
+
*/
|
|
30015
|
+
async listBillingProductsRaw(requestParameters, initOverrides) {
|
|
30016
|
+
const queryParameters = {};
|
|
30017
|
+
if (requestParameters["ids"] != null) {
|
|
30018
|
+
queryParameters["ids"] = requestParameters["ids"];
|
|
30019
|
+
}
|
|
30020
|
+
if (requestParameters["name"] != null) {
|
|
30021
|
+
queryParameters["name"] = requestParameters["name"];
|
|
30022
|
+
}
|
|
30023
|
+
if (requestParameters["q"] != null) {
|
|
30024
|
+
queryParameters["q"] = requestParameters["q"];
|
|
30025
|
+
}
|
|
30026
|
+
if (requestParameters["limit"] != null) {
|
|
30027
|
+
queryParameters["limit"] = requestParameters["limit"];
|
|
30028
|
+
}
|
|
30029
|
+
if (requestParameters["offset"] != null) {
|
|
30030
|
+
queryParameters["offset"] = requestParameters["offset"];
|
|
30031
|
+
}
|
|
30032
|
+
const headerParameters = {};
|
|
30033
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
30034
|
+
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
30035
|
+
"X-Schematic-Api-Key"
|
|
30036
|
+
);
|
|
30037
|
+
}
|
|
30038
|
+
const response = await this.request(
|
|
30039
|
+
{
|
|
30040
|
+
path: `/billing/products`,
|
|
30041
|
+
method: "GET",
|
|
30042
|
+
headers: headerParameters,
|
|
30043
|
+
query: queryParameters
|
|
30044
|
+
},
|
|
30045
|
+
initOverrides
|
|
30046
|
+
);
|
|
30047
|
+
return new JSONApiResponse(
|
|
30048
|
+
response,
|
|
30049
|
+
(jsonValue) => ListBillingProductsResponseFromJSON(jsonValue)
|
|
30050
|
+
);
|
|
30051
|
+
}
|
|
30052
|
+
/**
|
|
30053
|
+
* List billing products
|
|
30054
|
+
*/
|
|
30055
|
+
async listBillingProducts(requestParameters = {}, initOverrides) {
|
|
30056
|
+
const response = await this.listBillingProductsRaw(
|
|
30057
|
+
requestParameters,
|
|
30058
|
+
initOverrides
|
|
30059
|
+
);
|
|
30060
|
+
return await response.value();
|
|
30061
|
+
}
|
|
30148
30062
|
/**
|
|
30149
30063
|
* List customers
|
|
30150
30064
|
*/
|
|
@@ -30196,9 +30110,9 @@ var BillingApi = class extends BaseAPI {
|
|
|
30196
30110
|
return await response.value();
|
|
30197
30111
|
}
|
|
30198
30112
|
/**
|
|
30199
|
-
* List
|
|
30113
|
+
* List product prices
|
|
30200
30114
|
*/
|
|
30201
|
-
async
|
|
30115
|
+
async listProductPricesRaw(requestParameters, initOverrides) {
|
|
30202
30116
|
const queryParameters = {};
|
|
30203
30117
|
if (requestParameters["ids"] != null) {
|
|
30204
30118
|
queryParameters["ids"] = requestParameters["ids"];
|
|
@@ -30223,7 +30137,7 @@ var BillingApi = class extends BaseAPI {
|
|
|
30223
30137
|
}
|
|
30224
30138
|
const response = await this.request(
|
|
30225
30139
|
{
|
|
30226
|
-
path: `/billing/
|
|
30140
|
+
path: `/billing/product/prices`,
|
|
30227
30141
|
method: "GET",
|
|
30228
30142
|
headers: headerParameters,
|
|
30229
30143
|
query: queryParameters
|
|
@@ -30232,14 +30146,14 @@ var BillingApi = class extends BaseAPI {
|
|
|
30232
30146
|
);
|
|
30233
30147
|
return new JSONApiResponse(
|
|
30234
30148
|
response,
|
|
30235
|
-
(jsonValue) =>
|
|
30149
|
+
(jsonValue) => ListProductPricesResponseFromJSON(jsonValue)
|
|
30236
30150
|
);
|
|
30237
30151
|
}
|
|
30238
30152
|
/**
|
|
30239
|
-
* List
|
|
30153
|
+
* List product prices
|
|
30240
30154
|
*/
|
|
30241
|
-
async
|
|
30242
|
-
const response = await this.
|
|
30155
|
+
async listProductPrices(requestParameters = {}, initOverrides) {
|
|
30156
|
+
const response = await this.listProductPricesRaw(
|
|
30243
30157
|
requestParameters,
|
|
30244
30158
|
initOverrides
|
|
30245
30159
|
);
|
|
@@ -30290,6 +30204,51 @@ var BillingApi = class extends BaseAPI {
|
|
|
30290
30204
|
);
|
|
30291
30205
|
return await response.value();
|
|
30292
30206
|
}
|
|
30207
|
+
/**
|
|
30208
|
+
* Upsert billing price
|
|
30209
|
+
*/
|
|
30210
|
+
async upsertBillingPriceRaw(requestParameters, initOverrides) {
|
|
30211
|
+
if (requestParameters["createBillingPriceRequestBody"] == null) {
|
|
30212
|
+
throw new RequiredError(
|
|
30213
|
+
"createBillingPriceRequestBody",
|
|
30214
|
+
'Required parameter "createBillingPriceRequestBody" was null or undefined when calling upsertBillingPrice().'
|
|
30215
|
+
);
|
|
30216
|
+
}
|
|
30217
|
+
const queryParameters = {};
|
|
30218
|
+
const headerParameters = {};
|
|
30219
|
+
headerParameters["Content-Type"] = "application/json";
|
|
30220
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
30221
|
+
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
30222
|
+
"X-Schematic-Api-Key"
|
|
30223
|
+
);
|
|
30224
|
+
}
|
|
30225
|
+
const response = await this.request(
|
|
30226
|
+
{
|
|
30227
|
+
path: `/billing/price/upsert`,
|
|
30228
|
+
method: "POST",
|
|
30229
|
+
headers: headerParameters,
|
|
30230
|
+
query: queryParameters,
|
|
30231
|
+
body: CreateBillingPriceRequestBodyToJSON(
|
|
30232
|
+
requestParameters["createBillingPriceRequestBody"]
|
|
30233
|
+
)
|
|
30234
|
+
},
|
|
30235
|
+
initOverrides
|
|
30236
|
+
);
|
|
30237
|
+
return new JSONApiResponse(
|
|
30238
|
+
response,
|
|
30239
|
+
(jsonValue) => UpsertBillingPriceResponseFromJSON(jsonValue)
|
|
30240
|
+
);
|
|
30241
|
+
}
|
|
30242
|
+
/**
|
|
30243
|
+
* Upsert billing price
|
|
30244
|
+
*/
|
|
30245
|
+
async upsertBillingPrice(requestParameters, initOverrides) {
|
|
30246
|
+
const response = await this.upsertBillingPriceRaw(
|
|
30247
|
+
requestParameters,
|
|
30248
|
+
initOverrides
|
|
30249
|
+
);
|
|
30250
|
+
return await response.value();
|
|
30251
|
+
}
|
|
30293
30252
|
/**
|
|
30294
30253
|
* Upsert billing product
|
|
30295
30254
|
*/
|
|
@@ -34068,56 +34027,6 @@ var FeaturesApi = class extends BaseAPI {
|
|
|
34068
34027
|
);
|
|
34069
34028
|
return await response.value();
|
|
34070
34029
|
}
|
|
34071
|
-
/**
|
|
34072
|
-
* Count flag checks
|
|
34073
|
-
*/
|
|
34074
|
-
async countFlagChecksRaw(requestParameters, initOverrides) {
|
|
34075
|
-
const queryParameters = {};
|
|
34076
|
-
if (requestParameters["flagId"] != null) {
|
|
34077
|
-
queryParameters["flag_id"] = requestParameters["flagId"];
|
|
34078
|
-
}
|
|
34079
|
-
if (requestParameters["flagIds"] != null) {
|
|
34080
|
-
queryParameters["flag_ids"] = requestParameters["flagIds"];
|
|
34081
|
-
}
|
|
34082
|
-
if (requestParameters["id"] != null) {
|
|
34083
|
-
queryParameters["id"] = requestParameters["id"];
|
|
34084
|
-
}
|
|
34085
|
-
if (requestParameters["limit"] != null) {
|
|
34086
|
-
queryParameters["limit"] = requestParameters["limit"];
|
|
34087
|
-
}
|
|
34088
|
-
if (requestParameters["offset"] != null) {
|
|
34089
|
-
queryParameters["offset"] = requestParameters["offset"];
|
|
34090
|
-
}
|
|
34091
|
-
const headerParameters = {};
|
|
34092
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
34093
|
-
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
34094
|
-
"X-Schematic-Api-Key"
|
|
34095
|
-
);
|
|
34096
|
-
}
|
|
34097
|
-
const response = await this.request(
|
|
34098
|
-
{
|
|
34099
|
-
path: `/flag-checks/count`,
|
|
34100
|
-
method: "GET",
|
|
34101
|
-
headers: headerParameters,
|
|
34102
|
-
query: queryParameters
|
|
34103
|
-
},
|
|
34104
|
-
initOverrides
|
|
34105
|
-
);
|
|
34106
|
-
return new JSONApiResponse(
|
|
34107
|
-
response,
|
|
34108
|
-
(jsonValue) => CountFlagChecksResponseFromJSON(jsonValue)
|
|
34109
|
-
);
|
|
34110
|
-
}
|
|
34111
|
-
/**
|
|
34112
|
-
* Count flag checks
|
|
34113
|
-
*/
|
|
34114
|
-
async countFlagChecks(requestParameters = {}, initOverrides) {
|
|
34115
|
-
const response = await this.countFlagChecksRaw(
|
|
34116
|
-
requestParameters,
|
|
34117
|
-
initOverrides
|
|
34118
|
-
);
|
|
34119
|
-
return await response.value();
|
|
34120
|
-
}
|
|
34121
34030
|
/**
|
|
34122
34031
|
* Count flags
|
|
34123
34032
|
*/
|
|
@@ -34419,100 +34328,6 @@ var FeaturesApi = class extends BaseAPI {
|
|
|
34419
34328
|
const response = await this.getFlagRaw(requestParameters, initOverrides);
|
|
34420
34329
|
return await response.value();
|
|
34421
34330
|
}
|
|
34422
|
-
/**
|
|
34423
|
-
* Get flag check
|
|
34424
|
-
*/
|
|
34425
|
-
async getFlagCheckRaw(requestParameters, initOverrides) {
|
|
34426
|
-
if (requestParameters["flagCheckId"] == null) {
|
|
34427
|
-
throw new RequiredError(
|
|
34428
|
-
"flagCheckId",
|
|
34429
|
-
'Required parameter "flagCheckId" was null or undefined when calling getFlagCheck().'
|
|
34430
|
-
);
|
|
34431
|
-
}
|
|
34432
|
-
const queryParameters = {};
|
|
34433
|
-
const headerParameters = {};
|
|
34434
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
34435
|
-
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
34436
|
-
"X-Schematic-Api-Key"
|
|
34437
|
-
);
|
|
34438
|
-
}
|
|
34439
|
-
const response = await this.request(
|
|
34440
|
-
{
|
|
34441
|
-
path: `/flag-checks/{flag_check_id}`.replace(
|
|
34442
|
-
`{${"flag_check_id"}}`,
|
|
34443
|
-
encodeURIComponent(String(requestParameters["flagCheckId"]))
|
|
34444
|
-
),
|
|
34445
|
-
method: "GET",
|
|
34446
|
-
headers: headerParameters,
|
|
34447
|
-
query: queryParameters
|
|
34448
|
-
},
|
|
34449
|
-
initOverrides
|
|
34450
|
-
);
|
|
34451
|
-
return new JSONApiResponse(
|
|
34452
|
-
response,
|
|
34453
|
-
(jsonValue) => GetFlagCheckResponseFromJSON(jsonValue)
|
|
34454
|
-
);
|
|
34455
|
-
}
|
|
34456
|
-
/**
|
|
34457
|
-
* Get flag check
|
|
34458
|
-
*/
|
|
34459
|
-
async getFlagCheck(requestParameters, initOverrides) {
|
|
34460
|
-
const response = await this.getFlagCheckRaw(
|
|
34461
|
-
requestParameters,
|
|
34462
|
-
initOverrides
|
|
34463
|
-
);
|
|
34464
|
-
return await response.value();
|
|
34465
|
-
}
|
|
34466
|
-
/**
|
|
34467
|
-
* Get latest flag checks
|
|
34468
|
-
*/
|
|
34469
|
-
async getLatestFlagChecksRaw(requestParameters, initOverrides) {
|
|
34470
|
-
const queryParameters = {};
|
|
34471
|
-
if (requestParameters["flagId"] != null) {
|
|
34472
|
-
queryParameters["flag_id"] = requestParameters["flagId"];
|
|
34473
|
-
}
|
|
34474
|
-
if (requestParameters["flagIds"] != null) {
|
|
34475
|
-
queryParameters["flag_ids"] = requestParameters["flagIds"];
|
|
34476
|
-
}
|
|
34477
|
-
if (requestParameters["id"] != null) {
|
|
34478
|
-
queryParameters["id"] = requestParameters["id"];
|
|
34479
|
-
}
|
|
34480
|
-
if (requestParameters["limit"] != null) {
|
|
34481
|
-
queryParameters["limit"] = requestParameters["limit"];
|
|
34482
|
-
}
|
|
34483
|
-
if (requestParameters["offset"] != null) {
|
|
34484
|
-
queryParameters["offset"] = requestParameters["offset"];
|
|
34485
|
-
}
|
|
34486
|
-
const headerParameters = {};
|
|
34487
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
34488
|
-
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
34489
|
-
"X-Schematic-Api-Key"
|
|
34490
|
-
);
|
|
34491
|
-
}
|
|
34492
|
-
const response = await this.request(
|
|
34493
|
-
{
|
|
34494
|
-
path: `/flag-checks/latest`,
|
|
34495
|
-
method: "GET",
|
|
34496
|
-
headers: headerParameters,
|
|
34497
|
-
query: queryParameters
|
|
34498
|
-
},
|
|
34499
|
-
initOverrides
|
|
34500
|
-
);
|
|
34501
|
-
return new JSONApiResponse(
|
|
34502
|
-
response,
|
|
34503
|
-
(jsonValue) => GetLatestFlagChecksResponseFromJSON(jsonValue)
|
|
34504
|
-
);
|
|
34505
|
-
}
|
|
34506
|
-
/**
|
|
34507
|
-
* Get latest flag checks
|
|
34508
|
-
*/
|
|
34509
|
-
async getLatestFlagChecks(requestParameters = {}, initOverrides) {
|
|
34510
|
-
const response = await this.getLatestFlagChecksRaw(
|
|
34511
|
-
requestParameters,
|
|
34512
|
-
initOverrides
|
|
34513
|
-
);
|
|
34514
|
-
return await response.value();
|
|
34515
|
-
}
|
|
34516
34331
|
/**
|
|
34517
34332
|
* List audience companies
|
|
34518
34333
|
*/
|
|
@@ -34656,56 +34471,6 @@ var FeaturesApi = class extends BaseAPI {
|
|
|
34656
34471
|
);
|
|
34657
34472
|
return await response.value();
|
|
34658
34473
|
}
|
|
34659
|
-
/**
|
|
34660
|
-
* List flag checks
|
|
34661
|
-
*/
|
|
34662
|
-
async listFlagChecksRaw(requestParameters, initOverrides) {
|
|
34663
|
-
const queryParameters = {};
|
|
34664
|
-
if (requestParameters["flagId"] != null) {
|
|
34665
|
-
queryParameters["flag_id"] = requestParameters["flagId"];
|
|
34666
|
-
}
|
|
34667
|
-
if (requestParameters["flagIds"] != null) {
|
|
34668
|
-
queryParameters["flag_ids"] = requestParameters["flagIds"];
|
|
34669
|
-
}
|
|
34670
|
-
if (requestParameters["id"] != null) {
|
|
34671
|
-
queryParameters["id"] = requestParameters["id"];
|
|
34672
|
-
}
|
|
34673
|
-
if (requestParameters["limit"] != null) {
|
|
34674
|
-
queryParameters["limit"] = requestParameters["limit"];
|
|
34675
|
-
}
|
|
34676
|
-
if (requestParameters["offset"] != null) {
|
|
34677
|
-
queryParameters["offset"] = requestParameters["offset"];
|
|
34678
|
-
}
|
|
34679
|
-
const headerParameters = {};
|
|
34680
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
34681
|
-
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
34682
|
-
"X-Schematic-Api-Key"
|
|
34683
|
-
);
|
|
34684
|
-
}
|
|
34685
|
-
const response = await this.request(
|
|
34686
|
-
{
|
|
34687
|
-
path: `/flag-checks`,
|
|
34688
|
-
method: "GET",
|
|
34689
|
-
headers: headerParameters,
|
|
34690
|
-
query: queryParameters
|
|
34691
|
-
},
|
|
34692
|
-
initOverrides
|
|
34693
|
-
);
|
|
34694
|
-
return new JSONApiResponse(
|
|
34695
|
-
response,
|
|
34696
|
-
(jsonValue) => ListFlagChecksResponseFromJSON(jsonValue)
|
|
34697
|
-
);
|
|
34698
|
-
}
|
|
34699
|
-
/**
|
|
34700
|
-
* List flag checks
|
|
34701
|
-
*/
|
|
34702
|
-
async listFlagChecks(requestParameters = {}, initOverrides) {
|
|
34703
|
-
const response = await this.listFlagChecksRaw(
|
|
34704
|
-
requestParameters,
|
|
34705
|
-
initOverrides
|
|
34706
|
-
);
|
|
34707
|
-
return await response.value();
|
|
34708
|
-
}
|
|
34709
34474
|
/**
|
|
34710
34475
|
* List flags
|
|
34711
34476
|
*/
|
|
@@ -35998,7 +35763,7 @@ var Schematic = class {
|
|
|
35998
35763
|
constructor(apiKey, opts) {
|
|
35999
35764
|
const { offline = false } = opts ?? {};
|
|
36000
35765
|
const { basePath, flagDefaults = {} } = opts ?? {};
|
|
36001
|
-
const version = "1.0.
|
|
35766
|
+
const version = "1.0.22";
|
|
36002
35767
|
const headers = {
|
|
36003
35768
|
"User-Agent": `schematic-typescript-node@v${version}`
|
|
36004
35769
|
};
|
|
@@ -36150,6 +35915,12 @@ function init(apiKey, opts) {
|
|
|
36150
35915
|
BillingCustomerWithSubscriptionsResponseDataFromJSON,
|
|
36151
35916
|
BillingCustomerWithSubscriptionsResponseDataFromJSONTyped,
|
|
36152
35917
|
BillingCustomerWithSubscriptionsResponseDataToJSON,
|
|
35918
|
+
BillingPriceResponseDataFromJSON,
|
|
35919
|
+
BillingPriceResponseDataFromJSONTyped,
|
|
35920
|
+
BillingPriceResponseDataToJSON,
|
|
35921
|
+
BillingProductDetailResponseDataFromJSON,
|
|
35922
|
+
BillingProductDetailResponseDataFromJSONTyped,
|
|
35923
|
+
BillingProductDetailResponseDataToJSON,
|
|
36153
35924
|
BillingProductPlanResponseDataFromJSON,
|
|
36154
35925
|
BillingProductPlanResponseDataFromJSONTyped,
|
|
36155
35926
|
BillingProductPlanResponseDataToJSON,
|
|
@@ -36299,12 +36070,6 @@ function init(apiKey, opts) {
|
|
|
36299
36070
|
CountFeaturesResponseFromJSON,
|
|
36300
36071
|
CountFeaturesResponseFromJSONTyped,
|
|
36301
36072
|
CountFeaturesResponseToJSON,
|
|
36302
|
-
CountFlagChecksParamsFromJSON,
|
|
36303
|
-
CountFlagChecksParamsFromJSONTyped,
|
|
36304
|
-
CountFlagChecksParamsToJSON,
|
|
36305
|
-
CountFlagChecksResponseFromJSON,
|
|
36306
|
-
CountFlagChecksResponseFromJSONTyped,
|
|
36307
|
-
CountFlagChecksResponseToJSON,
|
|
36308
36073
|
CountFlagsParamsFromJSON,
|
|
36309
36074
|
CountFlagsParamsFromJSONTyped,
|
|
36310
36075
|
CountFlagsParamsToJSON,
|
|
@@ -36353,6 +36118,9 @@ function init(apiKey, opts) {
|
|
|
36353
36118
|
CreateBillingCustomerRequestBodyFromJSON,
|
|
36354
36119
|
CreateBillingCustomerRequestBodyFromJSONTyped,
|
|
36355
36120
|
CreateBillingCustomerRequestBodyToJSON,
|
|
36121
|
+
CreateBillingPriceRequestBodyFromJSON,
|
|
36122
|
+
CreateBillingPriceRequestBodyFromJSONTyped,
|
|
36123
|
+
CreateBillingPriceRequestBodyToJSON,
|
|
36356
36124
|
CreateBillingProductRequestBodyFromJSON,
|
|
36357
36125
|
CreateBillingProductRequestBodyFromJSONTyped,
|
|
36358
36126
|
CreateBillingProductRequestBodyToJSON,
|
|
@@ -36611,12 +36379,6 @@ function init(apiKey, opts) {
|
|
|
36611
36379
|
FeatureUsageResponseDataToJSON,
|
|
36612
36380
|
FeaturesApi,
|
|
36613
36381
|
FetchError,
|
|
36614
|
-
FlagCheckLogDetailResponseDataFromJSON,
|
|
36615
|
-
FlagCheckLogDetailResponseDataFromJSONTyped,
|
|
36616
|
-
FlagCheckLogDetailResponseDataToJSON,
|
|
36617
|
-
FlagCheckLogResponseDataFromJSON,
|
|
36618
|
-
FlagCheckLogResponseDataFromJSONTyped,
|
|
36619
|
-
FlagCheckLogResponseDataToJSON,
|
|
36620
36382
|
FlagDetailResponseDataFromJSON,
|
|
36621
36383
|
FlagDetailResponseDataFromJSONTyped,
|
|
36622
36384
|
FlagDetailResponseDataToJSON,
|
|
@@ -36686,18 +36448,9 @@ function init(apiKey, opts) {
|
|
|
36686
36448
|
GetFeatureUsageByCompanyResponseFromJSON,
|
|
36687
36449
|
GetFeatureUsageByCompanyResponseFromJSONTyped,
|
|
36688
36450
|
GetFeatureUsageByCompanyResponseToJSON,
|
|
36689
|
-
GetFlagCheckResponseFromJSON,
|
|
36690
|
-
GetFlagCheckResponseFromJSONTyped,
|
|
36691
|
-
GetFlagCheckResponseToJSON,
|
|
36692
36451
|
GetFlagResponseFromJSON,
|
|
36693
36452
|
GetFlagResponseFromJSONTyped,
|
|
36694
36453
|
GetFlagResponseToJSON,
|
|
36695
|
-
GetLatestFlagChecksParamsFromJSON,
|
|
36696
|
-
GetLatestFlagChecksParamsFromJSONTyped,
|
|
36697
|
-
GetLatestFlagChecksParamsToJSON,
|
|
36698
|
-
GetLatestFlagChecksResponseFromJSON,
|
|
36699
|
-
GetLatestFlagChecksResponseFromJSONTyped,
|
|
36700
|
-
GetLatestFlagChecksResponseToJSON,
|
|
36701
36454
|
GetOrCreateCompanyMembershipRequestBodyFromJSON,
|
|
36702
36455
|
GetOrCreateCompanyMembershipRequestBodyFromJSONTyped,
|
|
36703
36456
|
GetOrCreateCompanyMembershipRequestBodyToJSON,
|
|
@@ -36759,6 +36512,12 @@ function init(apiKey, opts) {
|
|
|
36759
36512
|
ListAudienceUsersResponseFromJSON,
|
|
36760
36513
|
ListAudienceUsersResponseFromJSONTyped,
|
|
36761
36514
|
ListAudienceUsersResponseToJSON,
|
|
36515
|
+
ListBillingProductsParamsFromJSON,
|
|
36516
|
+
ListBillingProductsParamsFromJSONTyped,
|
|
36517
|
+
ListBillingProductsParamsToJSON,
|
|
36518
|
+
ListBillingProductsResponseFromJSON,
|
|
36519
|
+
ListBillingProductsResponseFromJSONTyped,
|
|
36520
|
+
ListBillingProductsResponseToJSON,
|
|
36762
36521
|
ListCompaniesParamsFromJSON,
|
|
36763
36522
|
ListCompaniesParamsFromJSONTyped,
|
|
36764
36523
|
ListCompaniesParamsToJSON,
|
|
@@ -36855,12 +36614,6 @@ function init(apiKey, opts) {
|
|
|
36855
36614
|
ListFeaturesResponseFromJSON,
|
|
36856
36615
|
ListFeaturesResponseFromJSONTyped,
|
|
36857
36616
|
ListFeaturesResponseToJSON,
|
|
36858
|
-
ListFlagChecksParamsFromJSON,
|
|
36859
|
-
ListFlagChecksParamsFromJSONTyped,
|
|
36860
|
-
ListFlagChecksParamsToJSON,
|
|
36861
|
-
ListFlagChecksResponseFromJSON,
|
|
36862
|
-
ListFlagChecksResponseFromJSONTyped,
|
|
36863
|
-
ListFlagChecksResponseToJSON,
|
|
36864
36617
|
ListFlagsParamsFromJSON,
|
|
36865
36618
|
ListFlagsParamsFromJSONTyped,
|
|
36866
36619
|
ListFlagsParamsToJSON,
|
|
@@ -36885,12 +36638,12 @@ function init(apiKey, opts) {
|
|
|
36885
36638
|
ListPlansResponseFromJSON,
|
|
36886
36639
|
ListPlansResponseFromJSONTyped,
|
|
36887
36640
|
ListPlansResponseToJSON,
|
|
36888
|
-
|
|
36889
|
-
|
|
36890
|
-
|
|
36891
|
-
|
|
36892
|
-
|
|
36893
|
-
|
|
36641
|
+
ListProductPricesParamsFromJSON,
|
|
36642
|
+
ListProductPricesParamsFromJSONTyped,
|
|
36643
|
+
ListProductPricesParamsToJSON,
|
|
36644
|
+
ListProductPricesResponseFromJSON,
|
|
36645
|
+
ListProductPricesResponseFromJSONTyped,
|
|
36646
|
+
ListProductPricesResponseToJSON,
|
|
36894
36647
|
ListUsersParamsFromJSON,
|
|
36895
36648
|
ListUsersParamsFromJSONTyped,
|
|
36896
36649
|
ListUsersParamsToJSON,
|
|
@@ -37079,6 +36832,9 @@ function init(apiKey, opts) {
|
|
|
37079
36832
|
UpsertBillingCustomerResponseFromJSON,
|
|
37080
36833
|
UpsertBillingCustomerResponseFromJSONTyped,
|
|
37081
36834
|
UpsertBillingCustomerResponseToJSON,
|
|
36835
|
+
UpsertBillingPriceResponseFromJSON,
|
|
36836
|
+
UpsertBillingPriceResponseFromJSONTyped,
|
|
36837
|
+
UpsertBillingPriceResponseToJSON,
|
|
37082
36838
|
UpsertBillingProductPlanResponseFromJSON,
|
|
37083
36839
|
UpsertBillingProductPlanResponseFromJSONTyped,
|
|
37084
36840
|
UpsertBillingProductPlanResponseToJSON,
|
|
@@ -37155,6 +36911,8 @@ function init(apiKey, opts) {
|
|
|
37155
36911
|
instanceOfBillingCustomerResponseData,
|
|
37156
36912
|
instanceOfBillingCustomerSubscription,
|
|
37157
36913
|
instanceOfBillingCustomerWithSubscriptionsResponseData,
|
|
36914
|
+
instanceOfBillingPriceResponseData,
|
|
36915
|
+
instanceOfBillingProductDetailResponseData,
|
|
37158
36916
|
instanceOfBillingProductPlanResponseData,
|
|
37159
36917
|
instanceOfBillingProductPricing,
|
|
37160
36918
|
instanceOfBillingProductResponseData,
|
|
@@ -37201,8 +36959,6 @@ function init(apiKey, opts) {
|
|
|
37201
36959
|
instanceOfCountFeatureUsersResponse,
|
|
37202
36960
|
instanceOfCountFeaturesParams,
|
|
37203
36961
|
instanceOfCountFeaturesResponse,
|
|
37204
|
-
instanceOfCountFlagChecksParams,
|
|
37205
|
-
instanceOfCountFlagChecksResponse,
|
|
37206
36962
|
instanceOfCountFlagsParams,
|
|
37207
36963
|
instanceOfCountFlagsResponse,
|
|
37208
36964
|
instanceOfCountPlanEntitlementsParams,
|
|
@@ -37219,6 +36975,7 @@ function init(apiKey, opts) {
|
|
|
37219
36975
|
instanceOfCreateApiKeyRequestBody,
|
|
37220
36976
|
instanceOfCreateApiKeyResponse,
|
|
37221
36977
|
instanceOfCreateBillingCustomerRequestBody,
|
|
36978
|
+
instanceOfCreateBillingPriceRequestBody,
|
|
37222
36979
|
instanceOfCreateBillingProductRequestBody,
|
|
37223
36980
|
instanceOfCreateBillingSubscriptionsRequestBody,
|
|
37224
36981
|
instanceOfCreateCompanyOverrideRequestBody,
|
|
@@ -37295,8 +37052,6 @@ function init(apiKey, opts) {
|
|
|
37295
37052
|
instanceOfFeatureResponseData,
|
|
37296
37053
|
instanceOfFeatureUsageDetailResponseData,
|
|
37297
37054
|
instanceOfFeatureUsageResponseData,
|
|
37298
|
-
instanceOfFlagCheckLogDetailResponseData,
|
|
37299
|
-
instanceOfFlagCheckLogResponseData,
|
|
37300
37055
|
instanceOfFlagDetailResponseData,
|
|
37301
37056
|
instanceOfFlagResponseData,
|
|
37302
37057
|
instanceOfGetActiveCompanySubscriptionParams,
|
|
@@ -37320,10 +37075,7 @@ function init(apiKey, opts) {
|
|
|
37320
37075
|
instanceOfGetFeatureResponse,
|
|
37321
37076
|
instanceOfGetFeatureUsageByCompanyParams,
|
|
37322
37077
|
instanceOfGetFeatureUsageByCompanyResponse,
|
|
37323
|
-
instanceOfGetFlagCheckResponse,
|
|
37324
37078
|
instanceOfGetFlagResponse,
|
|
37325
|
-
instanceOfGetLatestFlagChecksParams,
|
|
37326
|
-
instanceOfGetLatestFlagChecksResponse,
|
|
37327
37079
|
instanceOfGetOrCreateCompanyMembershipRequestBody,
|
|
37328
37080
|
instanceOfGetOrCreateCompanyMembershipResponse,
|
|
37329
37081
|
instanceOfGetOrCreateEntityTraitDefinitionResponse,
|
|
@@ -37344,6 +37096,8 @@ function init(apiKey, opts) {
|
|
|
37344
37096
|
instanceOfListApiRequestsResponse,
|
|
37345
37097
|
instanceOfListAudienceCompaniesResponse,
|
|
37346
37098
|
instanceOfListAudienceUsersResponse,
|
|
37099
|
+
instanceOfListBillingProductsParams,
|
|
37100
|
+
instanceOfListBillingProductsResponse,
|
|
37347
37101
|
instanceOfListCompaniesParams,
|
|
37348
37102
|
instanceOfListCompaniesResponse,
|
|
37349
37103
|
instanceOfListCompanyMembershipsParams,
|
|
@@ -37374,8 +37128,6 @@ function init(apiKey, opts) {
|
|
|
37374
37128
|
instanceOfListFeatureUsersResponse,
|
|
37375
37129
|
instanceOfListFeaturesParams,
|
|
37376
37130
|
instanceOfListFeaturesResponse,
|
|
37377
|
-
instanceOfListFlagChecksParams,
|
|
37378
|
-
instanceOfListFlagChecksResponse,
|
|
37379
37131
|
instanceOfListFlagsParams,
|
|
37380
37132
|
instanceOfListFlagsResponse,
|
|
37381
37133
|
instanceOfListMetricCountsParams,
|
|
@@ -37384,8 +37136,8 @@ function init(apiKey, opts) {
|
|
|
37384
37136
|
instanceOfListPlanEntitlementsResponse,
|
|
37385
37137
|
instanceOfListPlansParams,
|
|
37386
37138
|
instanceOfListPlansResponse,
|
|
37387
|
-
|
|
37388
|
-
|
|
37139
|
+
instanceOfListProductPricesParams,
|
|
37140
|
+
instanceOfListProductPricesResponse,
|
|
37389
37141
|
instanceOfListUsersParams,
|
|
37390
37142
|
instanceOfListUsersResponse,
|
|
37391
37143
|
instanceOfListWebhookEventsParams,
|
|
@@ -37442,6 +37194,7 @@ function init(apiKey, opts) {
|
|
|
37442
37194
|
instanceOfUpdateWebhookRequestBody,
|
|
37443
37195
|
instanceOfUpdateWebhookResponse,
|
|
37444
37196
|
instanceOfUpsertBillingCustomerResponse,
|
|
37197
|
+
instanceOfUpsertBillingPriceResponse,
|
|
37445
37198
|
instanceOfUpsertBillingProductPlanResponse,
|
|
37446
37199
|
instanceOfUpsertBillingProductRequestBody,
|
|
37447
37200
|
instanceOfUpsertBillingProductResponse,
|