@schematichq/schematic-typescript-node 1.0.19 → 1.0.21
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 +727 -9
- package/dist/schematic.d.ts +885 -49
- package/dist/schematic.esm.js +683 -9
- package/package.json +1 -1
package/dist/schematic.cjs.js
CHANGED
|
@@ -14540,9 +14540,21 @@ __export(src_exports, {
|
|
|
14540
14540
|
BASE_PATH: () => BASE_PATH,
|
|
14541
14541
|
BaseAPI: () => BaseAPI,
|
|
14542
14542
|
BillingApi: () => BillingApi,
|
|
14543
|
+
BillingCustomerResponseDataFromJSON: () => BillingCustomerResponseDataFromJSON,
|
|
14544
|
+
BillingCustomerResponseDataFromJSONTyped: () => BillingCustomerResponseDataFromJSONTyped,
|
|
14545
|
+
BillingCustomerResponseDataToJSON: () => BillingCustomerResponseDataToJSON,
|
|
14546
|
+
BillingCustomerSubscriptionFromJSON: () => BillingCustomerSubscriptionFromJSON,
|
|
14547
|
+
BillingCustomerSubscriptionFromJSONTyped: () => BillingCustomerSubscriptionFromJSONTyped,
|
|
14548
|
+
BillingCustomerSubscriptionToJSON: () => BillingCustomerSubscriptionToJSON,
|
|
14549
|
+
BillingCustomerWithSubscriptionsResponseDataFromJSON: () => BillingCustomerWithSubscriptionsResponseDataFromJSON,
|
|
14550
|
+
BillingCustomerWithSubscriptionsResponseDataFromJSONTyped: () => BillingCustomerWithSubscriptionsResponseDataFromJSONTyped,
|
|
14551
|
+
BillingCustomerWithSubscriptionsResponseDataToJSON: () => BillingCustomerWithSubscriptionsResponseDataToJSON,
|
|
14543
14552
|
BillingProductPlanResponseDataFromJSON: () => BillingProductPlanResponseDataFromJSON,
|
|
14544
14553
|
BillingProductPlanResponseDataFromJSONTyped: () => BillingProductPlanResponseDataFromJSONTyped,
|
|
14545
14554
|
BillingProductPlanResponseDataToJSON: () => BillingProductPlanResponseDataToJSON,
|
|
14555
|
+
BillingProductPricingFromJSON: () => BillingProductPricingFromJSON,
|
|
14556
|
+
BillingProductPricingFromJSONTyped: () => BillingProductPricingFromJSONTyped,
|
|
14557
|
+
BillingProductPricingToJSON: () => BillingProductPricingToJSON,
|
|
14546
14558
|
BillingProductResponseDataFromJSON: () => BillingProductResponseDataFromJSON,
|
|
14547
14559
|
BillingProductResponseDataFromJSONTyped: () => BillingProductResponseDataFromJSONTyped,
|
|
14548
14560
|
BillingProductResponseDataToJSON: () => BillingProductResponseDataToJSON,
|
|
@@ -14638,6 +14650,12 @@ __export(src_exports, {
|
|
|
14638
14650
|
CountComponentsResponseFromJSON: () => CountComponentsResponseFromJSON,
|
|
14639
14651
|
CountComponentsResponseFromJSONTyped: () => CountComponentsResponseFromJSONTyped,
|
|
14640
14652
|
CountComponentsResponseToJSON: () => CountComponentsResponseToJSON,
|
|
14653
|
+
CountCustomersParamsFromJSON: () => CountCustomersParamsFromJSON,
|
|
14654
|
+
CountCustomersParamsFromJSONTyped: () => CountCustomersParamsFromJSONTyped,
|
|
14655
|
+
CountCustomersParamsToJSON: () => CountCustomersParamsToJSON,
|
|
14656
|
+
CountCustomersResponseFromJSON: () => CountCustomersResponseFromJSON,
|
|
14657
|
+
CountCustomersResponseFromJSONTyped: () => CountCustomersResponseFromJSONTyped,
|
|
14658
|
+
CountCustomersResponseToJSON: () => CountCustomersResponseToJSON,
|
|
14641
14659
|
CountEntityKeyDefinitionsEntityTypeEnum: () => CountEntityKeyDefinitionsEntityTypeEnum,
|
|
14642
14660
|
CountEntityKeyDefinitionsParamsEntityTypeEnum: () => CountEntityKeyDefinitionsParamsEntityTypeEnum,
|
|
14643
14661
|
CountEntityKeyDefinitionsParamsFromJSON: () => CountEntityKeyDefinitionsParamsFromJSON,
|
|
@@ -14731,6 +14749,9 @@ __export(src_exports, {
|
|
|
14731
14749
|
CreateApiKeyResponseFromJSON: () => CreateApiKeyResponseFromJSON,
|
|
14732
14750
|
CreateApiKeyResponseFromJSONTyped: () => CreateApiKeyResponseFromJSONTyped,
|
|
14733
14751
|
CreateApiKeyResponseToJSON: () => CreateApiKeyResponseToJSON,
|
|
14752
|
+
CreateBillingCustomerRequestBodyFromJSON: () => CreateBillingCustomerRequestBodyFromJSON,
|
|
14753
|
+
CreateBillingCustomerRequestBodyFromJSONTyped: () => CreateBillingCustomerRequestBodyFromJSONTyped,
|
|
14754
|
+
CreateBillingCustomerRequestBodyToJSON: () => CreateBillingCustomerRequestBodyToJSON,
|
|
14734
14755
|
CreateBillingProductRequestBodyFromJSON: () => CreateBillingProductRequestBodyFromJSON,
|
|
14735
14756
|
CreateBillingProductRequestBodyFromJSONTyped: () => CreateBillingProductRequestBodyFromJSONTyped,
|
|
14736
14757
|
CreateBillingProductRequestBodyToJSON: () => CreateBillingProductRequestBodyToJSON,
|
|
@@ -14941,6 +14962,9 @@ __export(src_exports, {
|
|
|
14941
14962
|
EnvironmentResponseDataFromJSON: () => EnvironmentResponseDataFromJSON,
|
|
14942
14963
|
EnvironmentResponseDataFromJSONTyped: () => EnvironmentResponseDataFromJSONTyped,
|
|
14943
14964
|
EnvironmentResponseDataToJSON: () => EnvironmentResponseDataToJSON,
|
|
14965
|
+
EventBodyFlagCheckFromJSON: () => EventBodyFlagCheckFromJSON,
|
|
14966
|
+
EventBodyFlagCheckFromJSONTyped: () => EventBodyFlagCheckFromJSONTyped,
|
|
14967
|
+
EventBodyFlagCheckToJSON: () => EventBodyFlagCheckToJSON,
|
|
14944
14968
|
EventBodyFromJSON: () => EventBodyFromJSON,
|
|
14945
14969
|
EventBodyFromJSONTyped: () => EventBodyFromJSONTyped,
|
|
14946
14970
|
EventBodyIdentifyCompanyFromJSON: () => EventBodyIdentifyCompanyFromJSON,
|
|
@@ -15170,6 +15194,12 @@ __export(src_exports, {
|
|
|
15170
15194
|
ListCrmProductsResponseFromJSON: () => ListCrmProductsResponseFromJSON,
|
|
15171
15195
|
ListCrmProductsResponseFromJSONTyped: () => ListCrmProductsResponseFromJSONTyped,
|
|
15172
15196
|
ListCrmProductsResponseToJSON: () => ListCrmProductsResponseToJSON,
|
|
15197
|
+
ListCustomersParamsFromJSON: () => ListCustomersParamsFromJSON,
|
|
15198
|
+
ListCustomersParamsFromJSONTyped: () => ListCustomersParamsFromJSONTyped,
|
|
15199
|
+
ListCustomersParamsToJSON: () => ListCustomersParamsToJSON,
|
|
15200
|
+
ListCustomersResponseFromJSON: () => ListCustomersResponseFromJSON,
|
|
15201
|
+
ListCustomersResponseFromJSONTyped: () => ListCustomersResponseFromJSONTyped,
|
|
15202
|
+
ListCustomersResponseToJSON: () => ListCustomersResponseToJSON,
|
|
15173
15203
|
ListEntityKeyDefinitionsEntityTypeEnum: () => ListEntityKeyDefinitionsEntityTypeEnum,
|
|
15174
15204
|
ListEntityKeyDefinitionsParamsEntityTypeEnum: () => ListEntityKeyDefinitionsParamsEntityTypeEnum,
|
|
15175
15205
|
ListEntityKeyDefinitionsParamsFromJSON: () => ListEntityKeyDefinitionsParamsFromJSON,
|
|
@@ -15445,6 +15475,9 @@ __export(src_exports, {
|
|
|
15445
15475
|
UpdateWebhookResponseFromJSON: () => UpdateWebhookResponseFromJSON,
|
|
15446
15476
|
UpdateWebhookResponseFromJSONTyped: () => UpdateWebhookResponseFromJSONTyped,
|
|
15447
15477
|
UpdateWebhookResponseToJSON: () => UpdateWebhookResponseToJSON,
|
|
15478
|
+
UpsertBillingCustomerResponseFromJSON: () => UpsertBillingCustomerResponseFromJSON,
|
|
15479
|
+
UpsertBillingCustomerResponseFromJSONTyped: () => UpsertBillingCustomerResponseFromJSONTyped,
|
|
15480
|
+
UpsertBillingCustomerResponseToJSON: () => UpsertBillingCustomerResponseToJSON,
|
|
15448
15481
|
UpsertBillingProductPlanResponseFromJSON: () => UpsertBillingProductPlanResponseFromJSON,
|
|
15449
15482
|
UpsertBillingProductPlanResponseFromJSONTyped: () => UpsertBillingProductPlanResponseFromJSONTyped,
|
|
15450
15483
|
UpsertBillingProductPlanResponseToJSON: () => UpsertBillingProductPlanResponseToJSON,
|
|
@@ -15518,7 +15551,11 @@ __export(src_exports, {
|
|
|
15518
15551
|
instanceOfApiKeyRequestResponseData: () => instanceOfApiKeyRequestResponseData,
|
|
15519
15552
|
instanceOfApiKeyResponseData: () => instanceOfApiKeyResponseData,
|
|
15520
15553
|
instanceOfAudienceRequestBody: () => instanceOfAudienceRequestBody,
|
|
15554
|
+
instanceOfBillingCustomerResponseData: () => instanceOfBillingCustomerResponseData,
|
|
15555
|
+
instanceOfBillingCustomerSubscription: () => instanceOfBillingCustomerSubscription,
|
|
15556
|
+
instanceOfBillingCustomerWithSubscriptionsResponseData: () => instanceOfBillingCustomerWithSubscriptionsResponseData,
|
|
15521
15557
|
instanceOfBillingProductPlanResponseData: () => instanceOfBillingProductPlanResponseData,
|
|
15558
|
+
instanceOfBillingProductPricing: () => instanceOfBillingProductPricing,
|
|
15522
15559
|
instanceOfBillingProductResponseData: () => instanceOfBillingProductResponseData,
|
|
15523
15560
|
instanceOfBillingSubscriptionResponseData: () => instanceOfBillingSubscriptionResponseData,
|
|
15524
15561
|
instanceOfCheckFlagOutputWithFlagKey: () => instanceOfCheckFlagOutputWithFlagKey,
|
|
@@ -15549,6 +15586,8 @@ __export(src_exports, {
|
|
|
15549
15586
|
instanceOfCountCompanyOverridesResponse: () => instanceOfCountCompanyOverridesResponse,
|
|
15550
15587
|
instanceOfCountComponentsParams: () => instanceOfCountComponentsParams,
|
|
15551
15588
|
instanceOfCountComponentsResponse: () => instanceOfCountComponentsResponse,
|
|
15589
|
+
instanceOfCountCustomersParams: () => instanceOfCountCustomersParams,
|
|
15590
|
+
instanceOfCountCustomersResponse: () => instanceOfCountCustomersResponse,
|
|
15552
15591
|
instanceOfCountEntityKeyDefinitionsParams: () => instanceOfCountEntityKeyDefinitionsParams,
|
|
15553
15592
|
instanceOfCountEntityKeyDefinitionsResponse: () => instanceOfCountEntityKeyDefinitionsResponse,
|
|
15554
15593
|
instanceOfCountEntityTraitDefinitionsParams: () => instanceOfCountEntityTraitDefinitionsParams,
|
|
@@ -15578,6 +15617,7 @@ __export(src_exports, {
|
|
|
15578
15617
|
instanceOfCountWebhooksResponse: () => instanceOfCountWebhooksResponse,
|
|
15579
15618
|
instanceOfCreateApiKeyRequestBody: () => instanceOfCreateApiKeyRequestBody,
|
|
15580
15619
|
instanceOfCreateApiKeyResponse: () => instanceOfCreateApiKeyResponse,
|
|
15620
|
+
instanceOfCreateBillingCustomerRequestBody: () => instanceOfCreateBillingCustomerRequestBody,
|
|
15581
15621
|
instanceOfCreateBillingProductRequestBody: () => instanceOfCreateBillingProductRequestBody,
|
|
15582
15622
|
instanceOfCreateBillingSubscriptionsRequestBody: () => instanceOfCreateBillingSubscriptionsRequestBody,
|
|
15583
15623
|
instanceOfCreateCompanyOverrideRequestBody: () => instanceOfCreateCompanyOverrideRequestBody,
|
|
@@ -15641,6 +15681,7 @@ __export(src_exports, {
|
|
|
15641
15681
|
instanceOfEntityTraitValue: () => instanceOfEntityTraitValue,
|
|
15642
15682
|
instanceOfEnvironmentDetailResponseData: () => instanceOfEnvironmentDetailResponseData,
|
|
15643
15683
|
instanceOfEnvironmentResponseData: () => instanceOfEnvironmentResponseData,
|
|
15684
|
+
instanceOfEventBodyFlagCheck: () => instanceOfEventBodyFlagCheck,
|
|
15644
15685
|
instanceOfEventBodyIdentify: () => instanceOfEventBodyIdentify,
|
|
15645
15686
|
instanceOfEventBodyIdentifyCompany: () => instanceOfEventBodyIdentifyCompany,
|
|
15646
15687
|
instanceOfEventBodyTrack: () => instanceOfEventBodyTrack,
|
|
@@ -15714,6 +15755,8 @@ __export(src_exports, {
|
|
|
15714
15755
|
instanceOfListComponentsResponse: () => instanceOfListComponentsResponse,
|
|
15715
15756
|
instanceOfListCrmProductsParams: () => instanceOfListCrmProductsParams,
|
|
15716
15757
|
instanceOfListCrmProductsResponse: () => instanceOfListCrmProductsResponse,
|
|
15758
|
+
instanceOfListCustomersParams: () => instanceOfListCustomersParams,
|
|
15759
|
+
instanceOfListCustomersResponse: () => instanceOfListCustomersResponse,
|
|
15717
15760
|
instanceOfListEntityKeyDefinitionsParams: () => instanceOfListEntityKeyDefinitionsParams,
|
|
15718
15761
|
instanceOfListEntityKeyDefinitionsResponse: () => instanceOfListEntityKeyDefinitionsResponse,
|
|
15719
15762
|
instanceOfListEntityTraitDefinitionsParams: () => instanceOfListEntityTraitDefinitionsParams,
|
|
@@ -15797,6 +15840,7 @@ __export(src_exports, {
|
|
|
15797
15840
|
instanceOfUpdateRuleRequestBody: () => instanceOfUpdateRuleRequestBody,
|
|
15798
15841
|
instanceOfUpdateWebhookRequestBody: () => instanceOfUpdateWebhookRequestBody,
|
|
15799
15842
|
instanceOfUpdateWebhookResponse: () => instanceOfUpdateWebhookResponse,
|
|
15843
|
+
instanceOfUpsertBillingCustomerResponse: () => instanceOfUpsertBillingCustomerResponse,
|
|
15800
15844
|
instanceOfUpsertBillingProductPlanResponse: () => instanceOfUpsertBillingProductPlanResponse,
|
|
15801
15845
|
instanceOfUpsertBillingProductRequestBody: () => instanceOfUpsertBillingProductRequestBody,
|
|
15802
15846
|
instanceOfUpsertBillingProductResponse: () => instanceOfUpsertBillingProductResponse,
|
|
@@ -17829,6 +17873,142 @@ function AudienceRequestBodyToJSON(value) {
|
|
|
17829
17873
|
};
|
|
17830
17874
|
}
|
|
17831
17875
|
|
|
17876
|
+
// src/api/models/BillingCustomerResponseData.ts
|
|
17877
|
+
function instanceOfBillingCustomerResponseData(value) {
|
|
17878
|
+
if (!("email" in value) || value["email"] === void 0)
|
|
17879
|
+
return false;
|
|
17880
|
+
if (!("externalId" in value) || value["externalId"] === void 0)
|
|
17881
|
+
return false;
|
|
17882
|
+
if (!("failedToImport" in value) || value["failedToImport"] === void 0)
|
|
17883
|
+
return false;
|
|
17884
|
+
if (!("id" in value) || value["id"] === void 0)
|
|
17885
|
+
return false;
|
|
17886
|
+
if (!("name" in value) || value["name"] === void 0)
|
|
17887
|
+
return false;
|
|
17888
|
+
if (!("updatedAt" in value) || value["updatedAt"] === void 0)
|
|
17889
|
+
return false;
|
|
17890
|
+
return true;
|
|
17891
|
+
}
|
|
17892
|
+
function BillingCustomerResponseDataFromJSON(json) {
|
|
17893
|
+
return BillingCustomerResponseDataFromJSONTyped(json, false);
|
|
17894
|
+
}
|
|
17895
|
+
function BillingCustomerResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
17896
|
+
if (json == null) {
|
|
17897
|
+
return json;
|
|
17898
|
+
}
|
|
17899
|
+
return {
|
|
17900
|
+
companyId: json["company_id"] == null ? void 0 : json["company_id"],
|
|
17901
|
+
deletedAt: json["deleted_at"] == null ? void 0 : new Date(json["deleted_at"]),
|
|
17902
|
+
email: json["email"],
|
|
17903
|
+
externalId: json["external_id"],
|
|
17904
|
+
failedToImport: json["failed_to_import"],
|
|
17905
|
+
id: json["id"],
|
|
17906
|
+
name: json["name"],
|
|
17907
|
+
updatedAt: new Date(json["updated_at"])
|
|
17908
|
+
};
|
|
17909
|
+
}
|
|
17910
|
+
function BillingCustomerResponseDataToJSON(value) {
|
|
17911
|
+
if (value == null) {
|
|
17912
|
+
return value;
|
|
17913
|
+
}
|
|
17914
|
+
return {
|
|
17915
|
+
company_id: value["companyId"],
|
|
17916
|
+
deleted_at: value["deletedAt"] == null ? void 0 : value["deletedAt"].toISOString(),
|
|
17917
|
+
email: value["email"],
|
|
17918
|
+
external_id: value["externalId"],
|
|
17919
|
+
failed_to_import: value["failedToImport"],
|
|
17920
|
+
id: value["id"],
|
|
17921
|
+
name: value["name"],
|
|
17922
|
+
updated_at: value["updatedAt"].toISOString()
|
|
17923
|
+
};
|
|
17924
|
+
}
|
|
17925
|
+
|
|
17926
|
+
// src/api/models/BillingCustomerSubscription.ts
|
|
17927
|
+
function instanceOfBillingCustomerSubscription(value) {
|
|
17928
|
+
if (!("totalPrice" in value) || value["totalPrice"] === void 0)
|
|
17929
|
+
return false;
|
|
17930
|
+
return true;
|
|
17931
|
+
}
|
|
17932
|
+
function BillingCustomerSubscriptionFromJSON(json) {
|
|
17933
|
+
return BillingCustomerSubscriptionFromJSONTyped(json, false);
|
|
17934
|
+
}
|
|
17935
|
+
function BillingCustomerSubscriptionFromJSONTyped(json, ignoreDiscriminator) {
|
|
17936
|
+
if (json == null) {
|
|
17937
|
+
return json;
|
|
17938
|
+
}
|
|
17939
|
+
return {
|
|
17940
|
+
expiredAt: json["expired_at"] == null ? void 0 : new Date(json["expired_at"]),
|
|
17941
|
+
totalPrice: json["total_price"]
|
|
17942
|
+
};
|
|
17943
|
+
}
|
|
17944
|
+
function BillingCustomerSubscriptionToJSON(value) {
|
|
17945
|
+
if (value == null) {
|
|
17946
|
+
return value;
|
|
17947
|
+
}
|
|
17948
|
+
return {
|
|
17949
|
+
expired_at: value["expiredAt"] == null ? void 0 : value["expiredAt"].toISOString(),
|
|
17950
|
+
total_price: value["totalPrice"]
|
|
17951
|
+
};
|
|
17952
|
+
}
|
|
17953
|
+
|
|
17954
|
+
// src/api/models/BillingCustomerWithSubscriptionsResponseData.ts
|
|
17955
|
+
function instanceOfBillingCustomerWithSubscriptionsResponseData(value) {
|
|
17956
|
+
if (!("email" in value) || value["email"] === void 0)
|
|
17957
|
+
return false;
|
|
17958
|
+
if (!("externalId" in value) || value["externalId"] === void 0)
|
|
17959
|
+
return false;
|
|
17960
|
+
if (!("failedToImport" in value) || value["failedToImport"] === void 0)
|
|
17961
|
+
return false;
|
|
17962
|
+
if (!("id" in value) || value["id"] === void 0)
|
|
17963
|
+
return false;
|
|
17964
|
+
if (!("name" in value) || value["name"] === void 0)
|
|
17965
|
+
return false;
|
|
17966
|
+
if (!("subscriptions" in value) || value["subscriptions"] === void 0)
|
|
17967
|
+
return false;
|
|
17968
|
+
if (!("updatedAt" in value) || value["updatedAt"] === void 0)
|
|
17969
|
+
return false;
|
|
17970
|
+
return true;
|
|
17971
|
+
}
|
|
17972
|
+
function BillingCustomerWithSubscriptionsResponseDataFromJSON(json) {
|
|
17973
|
+
return BillingCustomerWithSubscriptionsResponseDataFromJSONTyped(json, false);
|
|
17974
|
+
}
|
|
17975
|
+
function BillingCustomerWithSubscriptionsResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
17976
|
+
if (json == null) {
|
|
17977
|
+
return json;
|
|
17978
|
+
}
|
|
17979
|
+
return {
|
|
17980
|
+
companyId: json["company_id"] == null ? void 0 : json["company_id"],
|
|
17981
|
+
deletedAt: json["deleted_at"] == null ? void 0 : new Date(json["deleted_at"]),
|
|
17982
|
+
email: json["email"],
|
|
17983
|
+
externalId: json["external_id"],
|
|
17984
|
+
failedToImport: json["failed_to_import"],
|
|
17985
|
+
id: json["id"],
|
|
17986
|
+
name: json["name"],
|
|
17987
|
+
subscriptions: json["subscriptions"].map(
|
|
17988
|
+
BillingCustomerSubscriptionFromJSON
|
|
17989
|
+
),
|
|
17990
|
+
updatedAt: new Date(json["updated_at"])
|
|
17991
|
+
};
|
|
17992
|
+
}
|
|
17993
|
+
function BillingCustomerWithSubscriptionsResponseDataToJSON(value) {
|
|
17994
|
+
if (value == null) {
|
|
17995
|
+
return value;
|
|
17996
|
+
}
|
|
17997
|
+
return {
|
|
17998
|
+
company_id: value["companyId"],
|
|
17999
|
+
deleted_at: value["deletedAt"] == null ? void 0 : value["deletedAt"].toISOString(),
|
|
18000
|
+
email: value["email"],
|
|
18001
|
+
external_id: value["externalId"],
|
|
18002
|
+
failed_to_import: value["failedToImport"],
|
|
18003
|
+
id: value["id"],
|
|
18004
|
+
name: value["name"],
|
|
18005
|
+
subscriptions: value["subscriptions"].map(
|
|
18006
|
+
BillingCustomerSubscriptionToJSON
|
|
18007
|
+
),
|
|
18008
|
+
updated_at: value["updatedAt"].toISOString()
|
|
18009
|
+
};
|
|
18010
|
+
}
|
|
18011
|
+
|
|
17832
18012
|
// src/api/models/BillingProductPlanResponseData.ts
|
|
17833
18013
|
function instanceOfBillingProductPlanResponseData(value) {
|
|
17834
18014
|
if (!("accountId" in value) || value["accountId"] === void 0)
|
|
@@ -17867,6 +18047,36 @@ function BillingProductPlanResponseDataToJSON(value) {
|
|
|
17867
18047
|
};
|
|
17868
18048
|
}
|
|
17869
18049
|
|
|
18050
|
+
// src/api/models/BillingProductPricing.ts
|
|
18051
|
+
function instanceOfBillingProductPricing(value) {
|
|
18052
|
+
if (!("price" in value) || value["price"] === void 0)
|
|
18053
|
+
return false;
|
|
18054
|
+
if (!("productExternalId" in value) || value["productExternalId"] === void 0)
|
|
18055
|
+
return false;
|
|
18056
|
+
return true;
|
|
18057
|
+
}
|
|
18058
|
+
function BillingProductPricingFromJSON(json) {
|
|
18059
|
+
return BillingProductPricingFromJSONTyped(json, false);
|
|
18060
|
+
}
|
|
18061
|
+
function BillingProductPricingFromJSONTyped(json, ignoreDiscriminator) {
|
|
18062
|
+
if (json == null) {
|
|
18063
|
+
return json;
|
|
18064
|
+
}
|
|
18065
|
+
return {
|
|
18066
|
+
price: json["price"],
|
|
18067
|
+
productExternalId: json["product_external_id"]
|
|
18068
|
+
};
|
|
18069
|
+
}
|
|
18070
|
+
function BillingProductPricingToJSON(value) {
|
|
18071
|
+
if (value == null) {
|
|
18072
|
+
return value;
|
|
18073
|
+
}
|
|
18074
|
+
return {
|
|
18075
|
+
price: value["price"],
|
|
18076
|
+
product_external_id: value["productExternalId"]
|
|
18077
|
+
};
|
|
18078
|
+
}
|
|
18079
|
+
|
|
17870
18080
|
// src/api/models/BillingProductResponseData.ts
|
|
17871
18081
|
function instanceOfBillingProductResponseData(value) {
|
|
17872
18082
|
if (!("accountId" in value) || value["accountId"] === void 0)
|
|
@@ -18279,6 +18489,7 @@ function PreviewObjectFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
18279
18489
|
return json;
|
|
18280
18490
|
}
|
|
18281
18491
|
return {
|
|
18492
|
+
description: json["description"] == null ? void 0 : json["description"],
|
|
18282
18493
|
id: json["id"],
|
|
18283
18494
|
imageUrl: json["image_url"] == null ? void 0 : json["image_url"],
|
|
18284
18495
|
name: json["name"]
|
|
@@ -18289,6 +18500,7 @@ function PreviewObjectToJSON(value) {
|
|
|
18289
18500
|
return value;
|
|
18290
18501
|
}
|
|
18291
18502
|
return {
|
|
18503
|
+
description: value["description"],
|
|
18292
18504
|
id: value["id"],
|
|
18293
18505
|
image_url: value["imageUrl"],
|
|
18294
18506
|
name: value["name"]
|
|
@@ -18723,8 +18935,10 @@ function FeatureResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
18723
18935
|
description: json["description"],
|
|
18724
18936
|
eventSubtype: json["event_subtype"] == null ? void 0 : json["event_subtype"],
|
|
18725
18937
|
featureType: json["feature_type"],
|
|
18938
|
+
icon: json["icon"] == null ? void 0 : json["icon"],
|
|
18726
18939
|
id: json["id"],
|
|
18727
18940
|
lifecyclePhase: json["lifecycle_phase"] == null ? void 0 : json["lifecycle_phase"],
|
|
18941
|
+
maintainerId: json["maintainer_id"] == null ? void 0 : json["maintainer_id"],
|
|
18728
18942
|
name: json["name"],
|
|
18729
18943
|
traitId: json["trait_id"] == null ? void 0 : json["trait_id"],
|
|
18730
18944
|
updatedAt: new Date(json["updated_at"])
|
|
@@ -18739,8 +18953,10 @@ function FeatureResponseDataToJSON(value) {
|
|
|
18739
18953
|
description: value["description"],
|
|
18740
18954
|
event_subtype: value["eventSubtype"],
|
|
18741
18955
|
feature_type: value["featureType"],
|
|
18956
|
+
icon: value["icon"],
|
|
18742
18957
|
id: value["id"],
|
|
18743
18958
|
lifecycle_phase: value["lifecyclePhase"],
|
|
18959
|
+
maintainer_id: value["maintainerId"],
|
|
18744
18960
|
name: value["name"],
|
|
18745
18961
|
trait_id: value["traitId"],
|
|
18746
18962
|
updated_at: value["updatedAt"].toISOString()
|
|
@@ -19353,7 +19569,9 @@ function FlagDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
19353
19569
|
flagType: json["flag_type"],
|
|
19354
19570
|
id: json["id"],
|
|
19355
19571
|
key: json["key"],
|
|
19572
|
+
lastCheckedAt: json["last_checked_at"] == null ? void 0 : new Date(json["last_checked_at"]),
|
|
19356
19573
|
latestCheck: json["latest_check"] == null ? void 0 : FlagCheckLogResponseDataFromJSON(json["latest_check"]),
|
|
19574
|
+
maintainerId: json["maintainer_id"] == null ? void 0 : json["maintainer_id"],
|
|
19357
19575
|
name: json["name"],
|
|
19358
19576
|
rules: json["rules"].map(RuleDetailResponseDataFromJSON),
|
|
19359
19577
|
updatedAt: new Date(json["updated_at"])
|
|
@@ -19372,7 +19590,9 @@ function FlagDetailResponseDataToJSON(value) {
|
|
|
19372
19590
|
flag_type: value["flagType"],
|
|
19373
19591
|
id: value["id"],
|
|
19374
19592
|
key: value["key"],
|
|
19593
|
+
last_checked_at: value["lastCheckedAt"] == null ? void 0 : value["lastCheckedAt"].toISOString(),
|
|
19375
19594
|
latest_check: FlagCheckLogResponseDataToJSON(value["latestCheck"]),
|
|
19595
|
+
maintainer_id: value["maintainerId"],
|
|
19376
19596
|
name: value["name"],
|
|
19377
19597
|
rules: value["rules"].map(RuleDetailResponseDataToJSON),
|
|
19378
19598
|
updated_at: value["updatedAt"].toISOString()
|
|
@@ -19413,8 +19633,10 @@ function FeatureDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
19413
19633
|
eventSummary: json["event_summary"] == null ? void 0 : EventSummaryResponseDataFromJSON(json["event_summary"]),
|
|
19414
19634
|
featureType: json["feature_type"],
|
|
19415
19635
|
flags: json["flags"].map(FlagDetailResponseDataFromJSON),
|
|
19636
|
+
icon: json["icon"] == null ? void 0 : json["icon"],
|
|
19416
19637
|
id: json["id"],
|
|
19417
19638
|
lifecyclePhase: json["lifecycle_phase"] == null ? void 0 : json["lifecycle_phase"],
|
|
19639
|
+
maintainerId: json["maintainer_id"] == null ? void 0 : json["maintainer_id"],
|
|
19418
19640
|
name: json["name"],
|
|
19419
19641
|
plans: json["plans"].map(PreviewObjectFromJSON),
|
|
19420
19642
|
trait: json["trait"] == null ? void 0 : EntityTraitDefinitionResponseDataFromJSON(json["trait"]),
|
|
@@ -19433,8 +19655,10 @@ function FeatureDetailResponseDataToJSON(value) {
|
|
|
19433
19655
|
event_summary: EventSummaryResponseDataToJSON(value["eventSummary"]),
|
|
19434
19656
|
feature_type: value["featureType"],
|
|
19435
19657
|
flags: value["flags"].map(FlagDetailResponseDataToJSON),
|
|
19658
|
+
icon: value["icon"],
|
|
19436
19659
|
id: value["id"],
|
|
19437
19660
|
lifecycle_phase: value["lifecyclePhase"],
|
|
19661
|
+
maintainer_id: value["maintainerId"],
|
|
19438
19662
|
name: value["name"],
|
|
19439
19663
|
plans: value["plans"].map(PreviewObjectToJSON),
|
|
19440
19664
|
trait: EntityTraitDefinitionResponseDataToJSON(value["trait"]),
|
|
@@ -19472,6 +19696,7 @@ function PlanResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
19472
19696
|
audienceType: json["audience_type"],
|
|
19473
19697
|
createdAt: new Date(json["created_at"]),
|
|
19474
19698
|
description: json["description"],
|
|
19699
|
+
icon: json["icon"] == null ? void 0 : json["icon"],
|
|
19475
19700
|
id: json["id"],
|
|
19476
19701
|
name: json["name"],
|
|
19477
19702
|
planType: json["plan_type"],
|
|
@@ -19486,6 +19711,7 @@ function PlanResponseDataToJSON(value) {
|
|
|
19486
19711
|
audience_type: value["audienceType"],
|
|
19487
19712
|
created_at: value["createdAt"].toISOString(),
|
|
19488
19713
|
description: value["description"],
|
|
19714
|
+
icon: value["icon"],
|
|
19489
19715
|
id: value["id"],
|
|
19490
19716
|
name: value["name"],
|
|
19491
19717
|
plan_type: value["planType"],
|
|
@@ -20003,6 +20229,68 @@ function CountComponentsResponseToJSON(value) {
|
|
|
20003
20229
|
};
|
|
20004
20230
|
}
|
|
20005
20231
|
|
|
20232
|
+
// src/api/models/CountCustomersParams.ts
|
|
20233
|
+
function instanceOfCountCustomersParams(value) {
|
|
20234
|
+
return true;
|
|
20235
|
+
}
|
|
20236
|
+
function CountCustomersParamsFromJSON(json) {
|
|
20237
|
+
return CountCustomersParamsFromJSONTyped(json, false);
|
|
20238
|
+
}
|
|
20239
|
+
function CountCustomersParamsFromJSONTyped(json, ignoreDiscriminator) {
|
|
20240
|
+
if (json == null) {
|
|
20241
|
+
return json;
|
|
20242
|
+
}
|
|
20243
|
+
return {
|
|
20244
|
+
failedToImport: json["failed_to_import"] == null ? void 0 : json["failed_to_import"],
|
|
20245
|
+
limit: json["limit"] == null ? void 0 : json["limit"],
|
|
20246
|
+
name: json["name"] == null ? void 0 : json["name"],
|
|
20247
|
+
offset: json["offset"] == null ? void 0 : json["offset"],
|
|
20248
|
+
q: json["q"] == null ? void 0 : json["q"]
|
|
20249
|
+
};
|
|
20250
|
+
}
|
|
20251
|
+
function CountCustomersParamsToJSON(value) {
|
|
20252
|
+
if (value == null) {
|
|
20253
|
+
return value;
|
|
20254
|
+
}
|
|
20255
|
+
return {
|
|
20256
|
+
failed_to_import: value["failedToImport"],
|
|
20257
|
+
limit: value["limit"],
|
|
20258
|
+
name: value["name"],
|
|
20259
|
+
offset: value["offset"],
|
|
20260
|
+
q: value["q"]
|
|
20261
|
+
};
|
|
20262
|
+
}
|
|
20263
|
+
|
|
20264
|
+
// src/api/models/CountCustomersResponse.ts
|
|
20265
|
+
function instanceOfCountCustomersResponse(value) {
|
|
20266
|
+
if (!("data" in value) || value["data"] === void 0)
|
|
20267
|
+
return false;
|
|
20268
|
+
if (!("params" in value) || value["params"] === void 0)
|
|
20269
|
+
return false;
|
|
20270
|
+
return true;
|
|
20271
|
+
}
|
|
20272
|
+
function CountCustomersResponseFromJSON(json) {
|
|
20273
|
+
return CountCustomersResponseFromJSONTyped(json, false);
|
|
20274
|
+
}
|
|
20275
|
+
function CountCustomersResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
20276
|
+
if (json == null) {
|
|
20277
|
+
return json;
|
|
20278
|
+
}
|
|
20279
|
+
return {
|
|
20280
|
+
data: CountResponseFromJSON(json["data"]),
|
|
20281
|
+
params: CountCustomersParamsFromJSON(json["params"])
|
|
20282
|
+
};
|
|
20283
|
+
}
|
|
20284
|
+
function CountCustomersResponseToJSON(value) {
|
|
20285
|
+
if (value == null) {
|
|
20286
|
+
return value;
|
|
20287
|
+
}
|
|
20288
|
+
return {
|
|
20289
|
+
data: CountResponseToJSON(value["data"]),
|
|
20290
|
+
params: CountCustomersParamsToJSON(value["params"])
|
|
20291
|
+
};
|
|
20292
|
+
}
|
|
20293
|
+
|
|
20006
20294
|
// src/api/models/CountEntityKeyDefinitionsParams.ts
|
|
20007
20295
|
var CountEntityKeyDefinitionsParamsEntityTypeEnum = {
|
|
20008
20296
|
Company: "company",
|
|
@@ -20893,6 +21181,50 @@ function CreateApiKeyResponseToJSON(value) {
|
|
|
20893
21181
|
};
|
|
20894
21182
|
}
|
|
20895
21183
|
|
|
21184
|
+
// src/api/models/CreateBillingCustomerRequestBody.ts
|
|
21185
|
+
function instanceOfCreateBillingCustomerRequestBody(value) {
|
|
21186
|
+
if (!("email" in value) || value["email"] === void 0)
|
|
21187
|
+
return false;
|
|
21188
|
+
if (!("externalId" in value) || value["externalId"] === void 0)
|
|
21189
|
+
return false;
|
|
21190
|
+
if (!("failedToImport" in value) || value["failedToImport"] === void 0)
|
|
21191
|
+
return false;
|
|
21192
|
+
if (!("meta" in value) || value["meta"] === void 0)
|
|
21193
|
+
return false;
|
|
21194
|
+
if (!("name" in value) || value["name"] === void 0)
|
|
21195
|
+
return false;
|
|
21196
|
+
return true;
|
|
21197
|
+
}
|
|
21198
|
+
function CreateBillingCustomerRequestBodyFromJSON(json) {
|
|
21199
|
+
return CreateBillingCustomerRequestBodyFromJSONTyped(json, false);
|
|
21200
|
+
}
|
|
21201
|
+
function CreateBillingCustomerRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
21202
|
+
if (json == null) {
|
|
21203
|
+
return json;
|
|
21204
|
+
}
|
|
21205
|
+
return {
|
|
21206
|
+
companyId: json["company_id"] == null ? void 0 : json["company_id"],
|
|
21207
|
+
email: json["email"],
|
|
21208
|
+
externalId: json["external_id"],
|
|
21209
|
+
failedToImport: json["failed_to_import"],
|
|
21210
|
+
meta: json["meta"],
|
|
21211
|
+
name: json["name"]
|
|
21212
|
+
};
|
|
21213
|
+
}
|
|
21214
|
+
function CreateBillingCustomerRequestBodyToJSON(value) {
|
|
21215
|
+
if (value == null) {
|
|
21216
|
+
return value;
|
|
21217
|
+
}
|
|
21218
|
+
return {
|
|
21219
|
+
company_id: value["companyId"],
|
|
21220
|
+
email: value["email"],
|
|
21221
|
+
external_id: value["externalId"],
|
|
21222
|
+
failed_to_import: value["failedToImport"],
|
|
21223
|
+
meta: value["meta"],
|
|
21224
|
+
name: value["name"]
|
|
21225
|
+
};
|
|
21226
|
+
}
|
|
21227
|
+
|
|
20896
21228
|
// src/api/models/CreateBillingProductRequestBody.ts
|
|
20897
21229
|
function instanceOfCreateBillingProductRequestBody(value) {
|
|
20898
21230
|
if (!("currency" in value) || value["currency"] === void 0)
|
|
@@ -20945,6 +21277,8 @@ function instanceOfCreateBillingSubscriptionsRequestBody(value) {
|
|
|
20945
21277
|
return false;
|
|
20946
21278
|
if (!("subscriptionExternalId" in value) || value["subscriptionExternalId"] === void 0)
|
|
20947
21279
|
return false;
|
|
21280
|
+
if (!("totalPrice" in value) || value["totalPrice"] === void 0)
|
|
21281
|
+
return false;
|
|
20948
21282
|
return true;
|
|
20949
21283
|
}
|
|
20950
21284
|
function CreateBillingSubscriptionsRequestBodyFromJSON(json) {
|
|
@@ -20958,8 +21292,11 @@ function CreateBillingSubscriptionsRequestBodyFromJSONTyped(json, ignoreDiscrimi
|
|
|
20958
21292
|
customerExternalId: json["customer_external_id"],
|
|
20959
21293
|
expiredAt: new Date(json["expired_at"]),
|
|
20960
21294
|
interval: json["interval"] == null ? void 0 : json["interval"],
|
|
20961
|
-
productExternalIds: json["product_external_ids"]
|
|
20962
|
-
|
|
21295
|
+
productExternalIds: json["product_external_ids"].map(
|
|
21296
|
+
BillingProductPricingFromJSON
|
|
21297
|
+
),
|
|
21298
|
+
subscriptionExternalId: json["subscription_external_id"],
|
|
21299
|
+
totalPrice: json["total_price"]
|
|
20963
21300
|
};
|
|
20964
21301
|
}
|
|
20965
21302
|
function CreateBillingSubscriptionsRequestBodyToJSON(value) {
|
|
@@ -20970,8 +21307,11 @@ function CreateBillingSubscriptionsRequestBodyToJSON(value) {
|
|
|
20970
21307
|
customer_external_id: value["customerExternalId"],
|
|
20971
21308
|
expired_at: value["expiredAt"].toISOString(),
|
|
20972
21309
|
interval: value["interval"],
|
|
20973
|
-
product_external_ids: value["productExternalIds"]
|
|
20974
|
-
|
|
21310
|
+
product_external_ids: value["productExternalIds"].map(
|
|
21311
|
+
BillingProductPricingToJSON
|
|
21312
|
+
),
|
|
21313
|
+
subscription_external_id: value["subscriptionExternalId"],
|
|
21314
|
+
total_price: value["totalPrice"]
|
|
20975
21315
|
};
|
|
20976
21316
|
}
|
|
20977
21317
|
|
|
@@ -21493,6 +21833,54 @@ function CreateEnvironmentResponseToJSON(value) {
|
|
|
21493
21833
|
};
|
|
21494
21834
|
}
|
|
21495
21835
|
|
|
21836
|
+
// src/api/models/EventBodyFlagCheck.ts
|
|
21837
|
+
function instanceOfEventBodyFlagCheck(value) {
|
|
21838
|
+
if (!("flagKey" in value) || value["flagKey"] === void 0)
|
|
21839
|
+
return false;
|
|
21840
|
+
if (!("reason" in value) || value["reason"] === void 0)
|
|
21841
|
+
return false;
|
|
21842
|
+
if (!("value" in value) || value["value"] === void 0)
|
|
21843
|
+
return false;
|
|
21844
|
+
return true;
|
|
21845
|
+
}
|
|
21846
|
+
function EventBodyFlagCheckFromJSON(json) {
|
|
21847
|
+
return EventBodyFlagCheckFromJSONTyped(json, false);
|
|
21848
|
+
}
|
|
21849
|
+
function EventBodyFlagCheckFromJSONTyped(json, ignoreDiscriminator) {
|
|
21850
|
+
if (json == null) {
|
|
21851
|
+
return json;
|
|
21852
|
+
}
|
|
21853
|
+
return {
|
|
21854
|
+
companyId: json["company_id"] == null ? void 0 : json["company_id"],
|
|
21855
|
+
error: json["error"] == null ? void 0 : json["error"],
|
|
21856
|
+
flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
|
|
21857
|
+
flagKey: json["flag_key"],
|
|
21858
|
+
reason: json["reason"],
|
|
21859
|
+
reqCompany: json["req_company"] == null ? void 0 : json["req_company"],
|
|
21860
|
+
reqUser: json["req_user"] == null ? void 0 : json["req_user"],
|
|
21861
|
+
ruleId: json["rule_id"] == null ? void 0 : json["rule_id"],
|
|
21862
|
+
userId: json["user_id"] == null ? void 0 : json["user_id"],
|
|
21863
|
+
value: json["value"]
|
|
21864
|
+
};
|
|
21865
|
+
}
|
|
21866
|
+
function EventBodyFlagCheckToJSON(value) {
|
|
21867
|
+
if (value == null) {
|
|
21868
|
+
return value;
|
|
21869
|
+
}
|
|
21870
|
+
return {
|
|
21871
|
+
company_id: value["companyId"],
|
|
21872
|
+
error: value["error"],
|
|
21873
|
+
flag_id: value["flagId"],
|
|
21874
|
+
flag_key: value["flagKey"],
|
|
21875
|
+
reason: value["reason"],
|
|
21876
|
+
req_company: value["reqCompany"],
|
|
21877
|
+
req_user: value["reqUser"],
|
|
21878
|
+
rule_id: value["ruleId"],
|
|
21879
|
+
user_id: value["userId"],
|
|
21880
|
+
value: value["value"]
|
|
21881
|
+
};
|
|
21882
|
+
}
|
|
21883
|
+
|
|
21496
21884
|
// src/api/models/EventBodyIdentifyCompany.ts
|
|
21497
21885
|
function instanceOfEventBodyIdentifyCompany(value) {
|
|
21498
21886
|
if (!("keys" in value) || value["keys"] === void 0)
|
|
@@ -21595,6 +21983,9 @@ function EventBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
21595
21983
|
if (json == null) {
|
|
21596
21984
|
return json;
|
|
21597
21985
|
}
|
|
21986
|
+
if (instanceOfEventBodyFlagCheck(json)) {
|
|
21987
|
+
return EventBodyFlagCheckFromJSONTyped(json, true);
|
|
21988
|
+
}
|
|
21598
21989
|
if (instanceOfEventBodyIdentify(json)) {
|
|
21599
21990
|
return EventBodyIdentifyFromJSONTyped(json, true);
|
|
21600
21991
|
}
|
|
@@ -21607,6 +21998,9 @@ function EventBodyToJSON(value) {
|
|
|
21607
21998
|
if (value == null) {
|
|
21608
21999
|
return value;
|
|
21609
22000
|
}
|
|
22001
|
+
if (instanceOfEventBodyFlagCheck(value)) {
|
|
22002
|
+
return EventBodyFlagCheckToJSON(value);
|
|
22003
|
+
}
|
|
21610
22004
|
if (instanceOfEventBodyIdentify(value)) {
|
|
21611
22005
|
return EventBodyIdentifyToJSON(value);
|
|
21612
22006
|
}
|
|
@@ -21619,7 +22013,8 @@ function EventBodyToJSON(value) {
|
|
|
21619
22013
|
// src/api/models/CreateEventRequestBody.ts
|
|
21620
22014
|
var CreateEventRequestBodyEventTypeEnum = {
|
|
21621
22015
|
Identify: "identify",
|
|
21622
|
-
Track: "track"
|
|
22016
|
+
Track: "track",
|
|
22017
|
+
FlagCheck: "flag_check"
|
|
21623
22018
|
};
|
|
21624
22019
|
function instanceOfCreateEventRequestBody(value) {
|
|
21625
22020
|
if (!("eventType" in value) || value["eventType"] === void 0)
|
|
@@ -21830,6 +22225,7 @@ function CreateOrUpdateFlagRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
21830
22225
|
flagType: json["flag_type"],
|
|
21831
22226
|
id: json["id"] == null ? void 0 : json["id"],
|
|
21832
22227
|
key: json["key"],
|
|
22228
|
+
maintainerId: json["maintainer_id"] == null ? void 0 : json["maintainer_id"],
|
|
21833
22229
|
name: json["name"]
|
|
21834
22230
|
};
|
|
21835
22231
|
}
|
|
@@ -21844,6 +22240,7 @@ function CreateOrUpdateFlagRequestBodyToJSON(value) {
|
|
|
21844
22240
|
flag_type: value["flagType"],
|
|
21845
22241
|
id: value["id"],
|
|
21846
22242
|
key: value["key"],
|
|
22243
|
+
maintainer_id: value["maintainerId"],
|
|
21847
22244
|
name: value["name"]
|
|
21848
22245
|
};
|
|
21849
22246
|
}
|
|
@@ -21875,7 +22272,9 @@ function CreateFeatureRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
21875
22272
|
eventSubtype: json["event_subtype"] == null ? void 0 : json["event_subtype"],
|
|
21876
22273
|
featureType: json["feature_type"],
|
|
21877
22274
|
flag: json["flag"] == null ? void 0 : CreateOrUpdateFlagRequestBodyFromJSON(json["flag"]),
|
|
22275
|
+
icon: json["icon"] == null ? void 0 : json["icon"],
|
|
21878
22276
|
lifecyclePhase: json["lifecycle_phase"] == null ? void 0 : json["lifecycle_phase"],
|
|
22277
|
+
maintainerId: json["maintainer_id"] == null ? void 0 : json["maintainer_id"],
|
|
21879
22278
|
name: json["name"],
|
|
21880
22279
|
traitId: json["trait_id"] == null ? void 0 : json["trait_id"]
|
|
21881
22280
|
};
|
|
@@ -21889,7 +22288,9 @@ function CreateFeatureRequestBodyToJSON(value) {
|
|
|
21889
22288
|
event_subtype: value["eventSubtype"],
|
|
21890
22289
|
feature_type: value["featureType"],
|
|
21891
22290
|
flag: CreateOrUpdateFlagRequestBodyToJSON(value["flag"]),
|
|
22291
|
+
icon: value["icon"],
|
|
21892
22292
|
lifecycle_phase: value["lifecyclePhase"],
|
|
22293
|
+
maintainer_id: value["maintainerId"],
|
|
21893
22294
|
name: value["name"],
|
|
21894
22295
|
trait_id: value["traitId"]
|
|
21895
22296
|
};
|
|
@@ -21952,6 +22353,7 @@ function CreateFlagRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
21952
22353
|
featureId: json["feature_id"] == null ? void 0 : json["feature_id"],
|
|
21953
22354
|
flagType: json["flag_type"],
|
|
21954
22355
|
key: json["key"],
|
|
22356
|
+
maintainerId: json["maintainer_id"] == null ? void 0 : json["maintainer_id"],
|
|
21955
22357
|
name: json["name"]
|
|
21956
22358
|
};
|
|
21957
22359
|
}
|
|
@@ -21965,6 +22367,7 @@ function CreateFlagRequestBodyToJSON(value) {
|
|
|
21965
22367
|
feature_id: value["featureId"],
|
|
21966
22368
|
flag_type: value["flagType"],
|
|
21967
22369
|
key: value["key"],
|
|
22370
|
+
maintainer_id: value["maintainerId"],
|
|
21968
22371
|
name: value["name"]
|
|
21969
22372
|
};
|
|
21970
22373
|
}
|
|
@@ -22240,6 +22643,7 @@ function CreatePlanRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
22240
22643
|
return {
|
|
22241
22644
|
audienceType: json["audience_type"] == null ? void 0 : json["audience_type"],
|
|
22242
22645
|
description: json["description"],
|
|
22646
|
+
icon: json["icon"] == null ? void 0 : json["icon"],
|
|
22243
22647
|
name: json["name"],
|
|
22244
22648
|
planType: json["plan_type"]
|
|
22245
22649
|
};
|
|
@@ -22251,6 +22655,7 @@ function CreatePlanRequestBodyToJSON(value) {
|
|
|
22251
22655
|
return {
|
|
22252
22656
|
audience_type: value["audienceType"],
|
|
22253
22657
|
description: value["description"],
|
|
22658
|
+
icon: value["icon"],
|
|
22254
22659
|
name: value["name"],
|
|
22255
22660
|
plan_type: value["planType"]
|
|
22256
22661
|
};
|
|
@@ -22260,6 +22665,8 @@ function CreatePlanRequestBodyToJSON(value) {
|
|
|
22260
22665
|
function instanceOfPlanDetailResponseData(value) {
|
|
22261
22666
|
if (!("audienceType" in value) || value["audienceType"] === void 0)
|
|
22262
22667
|
return false;
|
|
22668
|
+
if (!("billingProducts" in value) || value["billingProducts"] === void 0)
|
|
22669
|
+
return false;
|
|
22263
22670
|
if (!("companyCount" in value) || value["companyCount"] === void 0)
|
|
22264
22671
|
return false;
|
|
22265
22672
|
if (!("createdAt" in value) || value["createdAt"] === void 0)
|
|
@@ -22287,12 +22694,16 @@ function PlanDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
22287
22694
|
}
|
|
22288
22695
|
return {
|
|
22289
22696
|
audienceType: json["audience_type"],
|
|
22697
|
+
billingProducts: json["billing_products"].map(
|
|
22698
|
+
BillingProductResponseDataFromJSON
|
|
22699
|
+
),
|
|
22290
22700
|
companyCount: json["company_count"],
|
|
22291
22701
|
createdAt: new Date(json["created_at"]),
|
|
22292
22702
|
description: json["description"],
|
|
22293
22703
|
features: json["features"].map(
|
|
22294
22704
|
FeatureDetailResponseDataFromJSON
|
|
22295
22705
|
),
|
|
22706
|
+
icon: json["icon"] == null ? void 0 : json["icon"],
|
|
22296
22707
|
id: json["id"],
|
|
22297
22708
|
name: json["name"],
|
|
22298
22709
|
planType: json["plan_type"],
|
|
@@ -22305,12 +22716,16 @@ function PlanDetailResponseDataToJSON(value) {
|
|
|
22305
22716
|
}
|
|
22306
22717
|
return {
|
|
22307
22718
|
audience_type: value["audienceType"],
|
|
22719
|
+
billing_products: value["billingProducts"].map(
|
|
22720
|
+
BillingProductResponseDataToJSON
|
|
22721
|
+
),
|
|
22308
22722
|
company_count: value["companyCount"],
|
|
22309
22723
|
created_at: value["createdAt"].toISOString(),
|
|
22310
22724
|
description: value["description"],
|
|
22311
22725
|
features: value["features"].map(
|
|
22312
22726
|
FeatureDetailResponseDataToJSON
|
|
22313
22727
|
),
|
|
22728
|
+
icon: value["icon"],
|
|
22314
22729
|
id: value["id"],
|
|
22315
22730
|
name: value["name"],
|
|
22316
22731
|
plan_type: value["planType"],
|
|
@@ -23795,6 +24210,7 @@ function FlagResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
23795
24210
|
flagType: json["flag_type"],
|
|
23796
24211
|
id: json["id"],
|
|
23797
24212
|
key: json["key"],
|
|
24213
|
+
maintainerId: json["maintainer_id"] == null ? void 0 : json["maintainer_id"],
|
|
23798
24214
|
name: json["name"],
|
|
23799
24215
|
updatedAt: new Date(json["updated_at"])
|
|
23800
24216
|
};
|
|
@@ -23811,6 +24227,7 @@ function FlagResponseDataToJSON(value) {
|
|
|
23811
24227
|
flag_type: value["flagType"],
|
|
23812
24228
|
id: value["id"],
|
|
23813
24229
|
key: value["key"],
|
|
24230
|
+
maintainer_id: value["maintainerId"],
|
|
23814
24231
|
name: value["name"],
|
|
23815
24232
|
updated_at: value["updatedAt"].toISOString()
|
|
23816
24233
|
};
|
|
@@ -25860,6 +26277,72 @@ function ListCrmProductsResponseToJSON(value) {
|
|
|
25860
26277
|
};
|
|
25861
26278
|
}
|
|
25862
26279
|
|
|
26280
|
+
// src/api/models/ListCustomersParams.ts
|
|
26281
|
+
function instanceOfListCustomersParams(value) {
|
|
26282
|
+
return true;
|
|
26283
|
+
}
|
|
26284
|
+
function ListCustomersParamsFromJSON(json) {
|
|
26285
|
+
return ListCustomersParamsFromJSONTyped(json, false);
|
|
26286
|
+
}
|
|
26287
|
+
function ListCustomersParamsFromJSONTyped(json, ignoreDiscriminator) {
|
|
26288
|
+
if (json == null) {
|
|
26289
|
+
return json;
|
|
26290
|
+
}
|
|
26291
|
+
return {
|
|
26292
|
+
failedToImport: json["failed_to_import"] == null ? void 0 : json["failed_to_import"],
|
|
26293
|
+
limit: json["limit"] == null ? void 0 : json["limit"],
|
|
26294
|
+
name: json["name"] == null ? void 0 : json["name"],
|
|
26295
|
+
offset: json["offset"] == null ? void 0 : json["offset"],
|
|
26296
|
+
q: json["q"] == null ? void 0 : json["q"]
|
|
26297
|
+
};
|
|
26298
|
+
}
|
|
26299
|
+
function ListCustomersParamsToJSON(value) {
|
|
26300
|
+
if (value == null) {
|
|
26301
|
+
return value;
|
|
26302
|
+
}
|
|
26303
|
+
return {
|
|
26304
|
+
failed_to_import: value["failedToImport"],
|
|
26305
|
+
limit: value["limit"],
|
|
26306
|
+
name: value["name"],
|
|
26307
|
+
offset: value["offset"],
|
|
26308
|
+
q: value["q"]
|
|
26309
|
+
};
|
|
26310
|
+
}
|
|
26311
|
+
|
|
26312
|
+
// src/api/models/ListCustomersResponse.ts
|
|
26313
|
+
function instanceOfListCustomersResponse(value) {
|
|
26314
|
+
if (!("data" in value) || value["data"] === void 0)
|
|
26315
|
+
return false;
|
|
26316
|
+
if (!("params" in value) || value["params"] === void 0)
|
|
26317
|
+
return false;
|
|
26318
|
+
return true;
|
|
26319
|
+
}
|
|
26320
|
+
function ListCustomersResponseFromJSON(json) {
|
|
26321
|
+
return ListCustomersResponseFromJSONTyped(json, false);
|
|
26322
|
+
}
|
|
26323
|
+
function ListCustomersResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
26324
|
+
if (json == null) {
|
|
26325
|
+
return json;
|
|
26326
|
+
}
|
|
26327
|
+
return {
|
|
26328
|
+
data: json["data"].map(
|
|
26329
|
+
BillingCustomerWithSubscriptionsResponseDataFromJSON
|
|
26330
|
+
),
|
|
26331
|
+
params: ListCustomersParamsFromJSON(json["params"])
|
|
26332
|
+
};
|
|
26333
|
+
}
|
|
26334
|
+
function ListCustomersResponseToJSON(value) {
|
|
26335
|
+
if (value == null) {
|
|
26336
|
+
return value;
|
|
26337
|
+
}
|
|
26338
|
+
return {
|
|
26339
|
+
data: value["data"].map(
|
|
26340
|
+
BillingCustomerWithSubscriptionsResponseDataToJSON
|
|
26341
|
+
),
|
|
26342
|
+
params: ListCustomersParamsToJSON(value["params"])
|
|
26343
|
+
};
|
|
26344
|
+
}
|
|
26345
|
+
|
|
25863
26346
|
// src/api/models/ListEntityKeyDefinitionsParams.ts
|
|
25864
26347
|
var ListEntityKeyDefinitionsParamsEntityTypeEnum = {
|
|
25865
26348
|
Company: "company",
|
|
@@ -26082,6 +26565,8 @@ function ListEventsParamsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
26082
26565
|
return {
|
|
26083
26566
|
companyId: json["company_id"] == null ? void 0 : json["company_id"],
|
|
26084
26567
|
eventSubtype: json["event_subtype"] == null ? void 0 : json["event_subtype"],
|
|
26568
|
+
eventTypes: json["event_types"] == null ? void 0 : json["event_types"],
|
|
26569
|
+
flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
|
|
26085
26570
|
limit: json["limit"] == null ? void 0 : json["limit"],
|
|
26086
26571
|
offset: json["offset"] == null ? void 0 : json["offset"],
|
|
26087
26572
|
userId: json["user_id"] == null ? void 0 : json["user_id"]
|
|
@@ -26094,6 +26579,8 @@ function ListEventsParamsToJSON(value) {
|
|
|
26094
26579
|
return {
|
|
26095
26580
|
company_id: value["companyId"],
|
|
26096
26581
|
event_subtype: value["eventSubtype"],
|
|
26582
|
+
event_types: value["eventTypes"],
|
|
26583
|
+
flag_id: value["flagId"],
|
|
26097
26584
|
limit: value["limit"],
|
|
26098
26585
|
offset: value["offset"],
|
|
26099
26586
|
user_id: value["userId"]
|
|
@@ -27821,7 +28308,9 @@ function UpdateFeatureRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
27821
28308
|
eventSubtype: json["event_subtype"] == null ? void 0 : json["event_subtype"],
|
|
27822
28309
|
featureType: json["feature_type"] == null ? void 0 : json["feature_type"],
|
|
27823
28310
|
flag: json["flag"] == null ? void 0 : CreateOrUpdateFlagRequestBodyFromJSON(json["flag"]),
|
|
28311
|
+
icon: json["icon"] == null ? void 0 : json["icon"],
|
|
27824
28312
|
lifecyclePhase: json["lifecycle_phase"] == null ? void 0 : json["lifecycle_phase"],
|
|
28313
|
+
maintainerId: json["maintainer_id"] == null ? void 0 : json["maintainer_id"],
|
|
27825
28314
|
name: json["name"] == null ? void 0 : json["name"],
|
|
27826
28315
|
traitId: json["trait_id"] == null ? void 0 : json["trait_id"]
|
|
27827
28316
|
};
|
|
@@ -27835,7 +28324,9 @@ function UpdateFeatureRequestBodyToJSON(value) {
|
|
|
27835
28324
|
event_subtype: value["eventSubtype"],
|
|
27836
28325
|
feature_type: value["featureType"],
|
|
27837
28326
|
flag: CreateOrUpdateFlagRequestBodyToJSON(value["flag"]),
|
|
28327
|
+
icon: value["icon"],
|
|
27838
28328
|
lifecycle_phase: value["lifecyclePhase"],
|
|
28329
|
+
maintainer_id: value["maintainerId"],
|
|
27839
28330
|
name: value["name"],
|
|
27840
28331
|
trait_id: value["traitId"]
|
|
27841
28332
|
};
|
|
@@ -28062,6 +28553,7 @@ function UpdatePlanRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
28062
28553
|
return {
|
|
28063
28554
|
audienceType: json["audience_type"],
|
|
28064
28555
|
description: json["description"] == null ? void 0 : json["description"],
|
|
28556
|
+
icon: json["icon"] == null ? void 0 : json["icon"],
|
|
28065
28557
|
name: json["name"],
|
|
28066
28558
|
planType: json["plan_type"] == null ? void 0 : json["plan_type"]
|
|
28067
28559
|
};
|
|
@@ -28073,6 +28565,7 @@ function UpdatePlanRequestBodyToJSON(value) {
|
|
|
28073
28565
|
return {
|
|
28074
28566
|
audience_type: value["audienceType"],
|
|
28075
28567
|
description: value["description"],
|
|
28568
|
+
icon: value["icon"],
|
|
28076
28569
|
name: value["name"],
|
|
28077
28570
|
plan_type: value["planType"]
|
|
28078
28571
|
};
|
|
@@ -28292,6 +28785,36 @@ function UpdateWebhookResponseToJSON(value) {
|
|
|
28292
28785
|
};
|
|
28293
28786
|
}
|
|
28294
28787
|
|
|
28788
|
+
// src/api/models/UpsertBillingCustomerResponse.ts
|
|
28789
|
+
function instanceOfUpsertBillingCustomerResponse(value) {
|
|
28790
|
+
if (!("data" in value) || value["data"] === void 0)
|
|
28791
|
+
return false;
|
|
28792
|
+
if (!("params" in value) || value["params"] === void 0)
|
|
28793
|
+
return false;
|
|
28794
|
+
return true;
|
|
28795
|
+
}
|
|
28796
|
+
function UpsertBillingCustomerResponseFromJSON(json) {
|
|
28797
|
+
return UpsertBillingCustomerResponseFromJSONTyped(json, false);
|
|
28798
|
+
}
|
|
28799
|
+
function UpsertBillingCustomerResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
28800
|
+
if (json == null) {
|
|
28801
|
+
return json;
|
|
28802
|
+
}
|
|
28803
|
+
return {
|
|
28804
|
+
data: BillingCustomerResponseDataFromJSON(json["data"]),
|
|
28805
|
+
params: json["params"]
|
|
28806
|
+
};
|
|
28807
|
+
}
|
|
28808
|
+
function UpsertBillingCustomerResponseToJSON(value) {
|
|
28809
|
+
if (value == null) {
|
|
28810
|
+
return value;
|
|
28811
|
+
}
|
|
28812
|
+
return {
|
|
28813
|
+
data: BillingCustomerResponseDataToJSON(value["data"]),
|
|
28814
|
+
params: value["params"]
|
|
28815
|
+
};
|
|
28816
|
+
}
|
|
28817
|
+
|
|
28295
28818
|
// src/api/models/UpsertBillingProductPlanResponse.ts
|
|
28296
28819
|
function instanceOfUpsertBillingProductPlanResponse(value) {
|
|
28297
28820
|
if (!("data" in value) || value["data"] === void 0)
|
|
@@ -29572,6 +30095,106 @@ var AccountsApi = class extends BaseAPI {
|
|
|
29572
30095
|
|
|
29573
30096
|
// src/api/apis/BillingApi.ts
|
|
29574
30097
|
var BillingApi = class extends BaseAPI {
|
|
30098
|
+
/**
|
|
30099
|
+
* Count customers
|
|
30100
|
+
*/
|
|
30101
|
+
async countCustomersRaw(requestParameters, initOverrides) {
|
|
30102
|
+
const queryParameters = {};
|
|
30103
|
+
if (requestParameters["name"] != null) {
|
|
30104
|
+
queryParameters["name"] = requestParameters["name"];
|
|
30105
|
+
}
|
|
30106
|
+
if (requestParameters["failedToImport"] != null) {
|
|
30107
|
+
queryParameters["failed_to_import"] = requestParameters["failedToImport"];
|
|
30108
|
+
}
|
|
30109
|
+
if (requestParameters["q"] != null) {
|
|
30110
|
+
queryParameters["q"] = requestParameters["q"];
|
|
30111
|
+
}
|
|
30112
|
+
if (requestParameters["limit"] != null) {
|
|
30113
|
+
queryParameters["limit"] = requestParameters["limit"];
|
|
30114
|
+
}
|
|
30115
|
+
if (requestParameters["offset"] != null) {
|
|
30116
|
+
queryParameters["offset"] = requestParameters["offset"];
|
|
30117
|
+
}
|
|
30118
|
+
const headerParameters = {};
|
|
30119
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
30120
|
+
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
30121
|
+
"X-Schematic-Api-Key"
|
|
30122
|
+
);
|
|
30123
|
+
}
|
|
30124
|
+
const response = await this.request(
|
|
30125
|
+
{
|
|
30126
|
+
path: `/billing/customers/count`,
|
|
30127
|
+
method: "GET",
|
|
30128
|
+
headers: headerParameters,
|
|
30129
|
+
query: queryParameters
|
|
30130
|
+
},
|
|
30131
|
+
initOverrides
|
|
30132
|
+
);
|
|
30133
|
+
return new JSONApiResponse(
|
|
30134
|
+
response,
|
|
30135
|
+
(jsonValue) => CountCustomersResponseFromJSON(jsonValue)
|
|
30136
|
+
);
|
|
30137
|
+
}
|
|
30138
|
+
/**
|
|
30139
|
+
* Count customers
|
|
30140
|
+
*/
|
|
30141
|
+
async countCustomers(requestParameters = {}, initOverrides) {
|
|
30142
|
+
const response = await this.countCustomersRaw(
|
|
30143
|
+
requestParameters,
|
|
30144
|
+
initOverrides
|
|
30145
|
+
);
|
|
30146
|
+
return await response.value();
|
|
30147
|
+
}
|
|
30148
|
+
/**
|
|
30149
|
+
* List customers
|
|
30150
|
+
*/
|
|
30151
|
+
async listCustomersRaw(requestParameters, initOverrides) {
|
|
30152
|
+
const queryParameters = {};
|
|
30153
|
+
if (requestParameters["name"] != null) {
|
|
30154
|
+
queryParameters["name"] = requestParameters["name"];
|
|
30155
|
+
}
|
|
30156
|
+
if (requestParameters["failedToImport"] != null) {
|
|
30157
|
+
queryParameters["failed_to_import"] = requestParameters["failedToImport"];
|
|
30158
|
+
}
|
|
30159
|
+
if (requestParameters["q"] != null) {
|
|
30160
|
+
queryParameters["q"] = requestParameters["q"];
|
|
30161
|
+
}
|
|
30162
|
+
if (requestParameters["limit"] != null) {
|
|
30163
|
+
queryParameters["limit"] = requestParameters["limit"];
|
|
30164
|
+
}
|
|
30165
|
+
if (requestParameters["offset"] != null) {
|
|
30166
|
+
queryParameters["offset"] = requestParameters["offset"];
|
|
30167
|
+
}
|
|
30168
|
+
const headerParameters = {};
|
|
30169
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
30170
|
+
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
30171
|
+
"X-Schematic-Api-Key"
|
|
30172
|
+
);
|
|
30173
|
+
}
|
|
30174
|
+
const response = await this.request(
|
|
30175
|
+
{
|
|
30176
|
+
path: `/billing/customers`,
|
|
30177
|
+
method: "GET",
|
|
30178
|
+
headers: headerParameters,
|
|
30179
|
+
query: queryParameters
|
|
30180
|
+
},
|
|
30181
|
+
initOverrides
|
|
30182
|
+
);
|
|
30183
|
+
return new JSONApiResponse(
|
|
30184
|
+
response,
|
|
30185
|
+
(jsonValue) => ListCustomersResponseFromJSON(jsonValue)
|
|
30186
|
+
);
|
|
30187
|
+
}
|
|
30188
|
+
/**
|
|
30189
|
+
* List customers
|
|
30190
|
+
*/
|
|
30191
|
+
async listCustomers(requestParameters = {}, initOverrides) {
|
|
30192
|
+
const response = await this.listCustomersRaw(
|
|
30193
|
+
requestParameters,
|
|
30194
|
+
initOverrides
|
|
30195
|
+
);
|
|
30196
|
+
return await response.value();
|
|
30197
|
+
}
|
|
29575
30198
|
/**
|
|
29576
30199
|
* List products
|
|
29577
30200
|
*/
|
|
@@ -29622,6 +30245,51 @@ var BillingApi = class extends BaseAPI {
|
|
|
29622
30245
|
);
|
|
29623
30246
|
return await response.value();
|
|
29624
30247
|
}
|
|
30248
|
+
/**
|
|
30249
|
+
* Upsert billing customer
|
|
30250
|
+
*/
|
|
30251
|
+
async upsertBillingCustomerRaw(requestParameters, initOverrides) {
|
|
30252
|
+
if (requestParameters["createBillingCustomerRequestBody"] == null) {
|
|
30253
|
+
throw new RequiredError(
|
|
30254
|
+
"createBillingCustomerRequestBody",
|
|
30255
|
+
'Required parameter "createBillingCustomerRequestBody" was null or undefined when calling upsertBillingCustomer().'
|
|
30256
|
+
);
|
|
30257
|
+
}
|
|
30258
|
+
const queryParameters = {};
|
|
30259
|
+
const headerParameters = {};
|
|
30260
|
+
headerParameters["Content-Type"] = "application/json";
|
|
30261
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
30262
|
+
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
30263
|
+
"X-Schematic-Api-Key"
|
|
30264
|
+
);
|
|
30265
|
+
}
|
|
30266
|
+
const response = await this.request(
|
|
30267
|
+
{
|
|
30268
|
+
path: `/billing/customer/upsert`,
|
|
30269
|
+
method: "POST",
|
|
30270
|
+
headers: headerParameters,
|
|
30271
|
+
query: queryParameters,
|
|
30272
|
+
body: CreateBillingCustomerRequestBodyToJSON(
|
|
30273
|
+
requestParameters["createBillingCustomerRequestBody"]
|
|
30274
|
+
)
|
|
30275
|
+
},
|
|
30276
|
+
initOverrides
|
|
30277
|
+
);
|
|
30278
|
+
return new JSONApiResponse(
|
|
30279
|
+
response,
|
|
30280
|
+
(jsonValue) => UpsertBillingCustomerResponseFromJSON(jsonValue)
|
|
30281
|
+
);
|
|
30282
|
+
}
|
|
30283
|
+
/**
|
|
30284
|
+
* Upsert billing customer
|
|
30285
|
+
*/
|
|
30286
|
+
async upsertBillingCustomer(requestParameters, initOverrides) {
|
|
30287
|
+
const response = await this.upsertBillingCustomerRaw(
|
|
30288
|
+
requestParameters,
|
|
30289
|
+
initOverrides
|
|
30290
|
+
);
|
|
30291
|
+
return await response.value();
|
|
30292
|
+
}
|
|
29625
30293
|
/**
|
|
29626
30294
|
* Upsert billing product
|
|
29627
30295
|
*/
|
|
@@ -33050,12 +33718,18 @@ var EventsApi = class extends BaseAPI {
|
|
|
33050
33718
|
if (requestParameters["companyId"] != null) {
|
|
33051
33719
|
queryParameters["company_id"] = requestParameters["companyId"];
|
|
33052
33720
|
}
|
|
33053
|
-
if (requestParameters["userId"] != null) {
|
|
33054
|
-
queryParameters["user_id"] = requestParameters["userId"];
|
|
33055
|
-
}
|
|
33056
33721
|
if (requestParameters["eventSubtype"] != null) {
|
|
33057
33722
|
queryParameters["event_subtype"] = requestParameters["eventSubtype"];
|
|
33058
33723
|
}
|
|
33724
|
+
if (requestParameters["eventTypes"] != null) {
|
|
33725
|
+
queryParameters["event_types"] = requestParameters["eventTypes"];
|
|
33726
|
+
}
|
|
33727
|
+
if (requestParameters["flagId"] != null) {
|
|
33728
|
+
queryParameters["flag_id"] = requestParameters["flagId"];
|
|
33729
|
+
}
|
|
33730
|
+
if (requestParameters["userId"] != null) {
|
|
33731
|
+
queryParameters["user_id"] = requestParameters["userId"];
|
|
33732
|
+
}
|
|
33059
33733
|
if (requestParameters["limit"] != null) {
|
|
33060
33734
|
queryParameters["limit"] = requestParameters["limit"];
|
|
33061
33735
|
}
|
|
@@ -35324,7 +35998,7 @@ var Schematic = class {
|
|
|
35324
35998
|
constructor(apiKey, opts) {
|
|
35325
35999
|
const { offline = false } = opts ?? {};
|
|
35326
36000
|
const { basePath, flagDefaults = {} } = opts ?? {};
|
|
35327
|
-
const version = "1.0.
|
|
36001
|
+
const version = "1.0.21";
|
|
35328
36002
|
const headers = {
|
|
35329
36003
|
"User-Agent": `schematic-typescript-node@v${version}`
|
|
35330
36004
|
};
|
|
@@ -35467,9 +36141,21 @@ function init(apiKey, opts) {
|
|
|
35467
36141
|
BASE_PATH,
|
|
35468
36142
|
BaseAPI,
|
|
35469
36143
|
BillingApi,
|
|
36144
|
+
BillingCustomerResponseDataFromJSON,
|
|
36145
|
+
BillingCustomerResponseDataFromJSONTyped,
|
|
36146
|
+
BillingCustomerResponseDataToJSON,
|
|
36147
|
+
BillingCustomerSubscriptionFromJSON,
|
|
36148
|
+
BillingCustomerSubscriptionFromJSONTyped,
|
|
36149
|
+
BillingCustomerSubscriptionToJSON,
|
|
36150
|
+
BillingCustomerWithSubscriptionsResponseDataFromJSON,
|
|
36151
|
+
BillingCustomerWithSubscriptionsResponseDataFromJSONTyped,
|
|
36152
|
+
BillingCustomerWithSubscriptionsResponseDataToJSON,
|
|
35470
36153
|
BillingProductPlanResponseDataFromJSON,
|
|
35471
36154
|
BillingProductPlanResponseDataFromJSONTyped,
|
|
35472
36155
|
BillingProductPlanResponseDataToJSON,
|
|
36156
|
+
BillingProductPricingFromJSON,
|
|
36157
|
+
BillingProductPricingFromJSONTyped,
|
|
36158
|
+
BillingProductPricingToJSON,
|
|
35473
36159
|
BillingProductResponseDataFromJSON,
|
|
35474
36160
|
BillingProductResponseDataFromJSONTyped,
|
|
35475
36161
|
BillingProductResponseDataToJSON,
|
|
@@ -35565,6 +36251,12 @@ function init(apiKey, opts) {
|
|
|
35565
36251
|
CountComponentsResponseFromJSON,
|
|
35566
36252
|
CountComponentsResponseFromJSONTyped,
|
|
35567
36253
|
CountComponentsResponseToJSON,
|
|
36254
|
+
CountCustomersParamsFromJSON,
|
|
36255
|
+
CountCustomersParamsFromJSONTyped,
|
|
36256
|
+
CountCustomersParamsToJSON,
|
|
36257
|
+
CountCustomersResponseFromJSON,
|
|
36258
|
+
CountCustomersResponseFromJSONTyped,
|
|
36259
|
+
CountCustomersResponseToJSON,
|
|
35568
36260
|
CountEntityKeyDefinitionsEntityTypeEnum,
|
|
35569
36261
|
CountEntityKeyDefinitionsParamsEntityTypeEnum,
|
|
35570
36262
|
CountEntityKeyDefinitionsParamsFromJSON,
|
|
@@ -35658,6 +36350,9 @@ function init(apiKey, opts) {
|
|
|
35658
36350
|
CreateApiKeyResponseFromJSON,
|
|
35659
36351
|
CreateApiKeyResponseFromJSONTyped,
|
|
35660
36352
|
CreateApiKeyResponseToJSON,
|
|
36353
|
+
CreateBillingCustomerRequestBodyFromJSON,
|
|
36354
|
+
CreateBillingCustomerRequestBodyFromJSONTyped,
|
|
36355
|
+
CreateBillingCustomerRequestBodyToJSON,
|
|
35661
36356
|
CreateBillingProductRequestBodyFromJSON,
|
|
35662
36357
|
CreateBillingProductRequestBodyFromJSONTyped,
|
|
35663
36358
|
CreateBillingProductRequestBodyToJSON,
|
|
@@ -35868,6 +36563,9 @@ function init(apiKey, opts) {
|
|
|
35868
36563
|
EnvironmentResponseDataFromJSON,
|
|
35869
36564
|
EnvironmentResponseDataFromJSONTyped,
|
|
35870
36565
|
EnvironmentResponseDataToJSON,
|
|
36566
|
+
EventBodyFlagCheckFromJSON,
|
|
36567
|
+
EventBodyFlagCheckFromJSONTyped,
|
|
36568
|
+
EventBodyFlagCheckToJSON,
|
|
35871
36569
|
EventBodyFromJSON,
|
|
35872
36570
|
EventBodyFromJSONTyped,
|
|
35873
36571
|
EventBodyIdentifyCompanyFromJSON,
|
|
@@ -36097,6 +36795,12 @@ function init(apiKey, opts) {
|
|
|
36097
36795
|
ListCrmProductsResponseFromJSON,
|
|
36098
36796
|
ListCrmProductsResponseFromJSONTyped,
|
|
36099
36797
|
ListCrmProductsResponseToJSON,
|
|
36798
|
+
ListCustomersParamsFromJSON,
|
|
36799
|
+
ListCustomersParamsFromJSONTyped,
|
|
36800
|
+
ListCustomersParamsToJSON,
|
|
36801
|
+
ListCustomersResponseFromJSON,
|
|
36802
|
+
ListCustomersResponseFromJSONTyped,
|
|
36803
|
+
ListCustomersResponseToJSON,
|
|
36100
36804
|
ListEntityKeyDefinitionsEntityTypeEnum,
|
|
36101
36805
|
ListEntityKeyDefinitionsParamsEntityTypeEnum,
|
|
36102
36806
|
ListEntityKeyDefinitionsParamsFromJSON,
|
|
@@ -36372,6 +37076,9 @@ function init(apiKey, opts) {
|
|
|
36372
37076
|
UpdateWebhookResponseFromJSON,
|
|
36373
37077
|
UpdateWebhookResponseFromJSONTyped,
|
|
36374
37078
|
UpdateWebhookResponseToJSON,
|
|
37079
|
+
UpsertBillingCustomerResponseFromJSON,
|
|
37080
|
+
UpsertBillingCustomerResponseFromJSONTyped,
|
|
37081
|
+
UpsertBillingCustomerResponseToJSON,
|
|
36375
37082
|
UpsertBillingProductPlanResponseFromJSON,
|
|
36376
37083
|
UpsertBillingProductPlanResponseFromJSONTyped,
|
|
36377
37084
|
UpsertBillingProductPlanResponseToJSON,
|
|
@@ -36445,7 +37152,11 @@ function init(apiKey, opts) {
|
|
|
36445
37152
|
instanceOfApiKeyRequestResponseData,
|
|
36446
37153
|
instanceOfApiKeyResponseData,
|
|
36447
37154
|
instanceOfAudienceRequestBody,
|
|
37155
|
+
instanceOfBillingCustomerResponseData,
|
|
37156
|
+
instanceOfBillingCustomerSubscription,
|
|
37157
|
+
instanceOfBillingCustomerWithSubscriptionsResponseData,
|
|
36448
37158
|
instanceOfBillingProductPlanResponseData,
|
|
37159
|
+
instanceOfBillingProductPricing,
|
|
36449
37160
|
instanceOfBillingProductResponseData,
|
|
36450
37161
|
instanceOfBillingSubscriptionResponseData,
|
|
36451
37162
|
instanceOfCheckFlagOutputWithFlagKey,
|
|
@@ -36476,6 +37187,8 @@ function init(apiKey, opts) {
|
|
|
36476
37187
|
instanceOfCountCompanyOverridesResponse,
|
|
36477
37188
|
instanceOfCountComponentsParams,
|
|
36478
37189
|
instanceOfCountComponentsResponse,
|
|
37190
|
+
instanceOfCountCustomersParams,
|
|
37191
|
+
instanceOfCountCustomersResponse,
|
|
36479
37192
|
instanceOfCountEntityKeyDefinitionsParams,
|
|
36480
37193
|
instanceOfCountEntityKeyDefinitionsResponse,
|
|
36481
37194
|
instanceOfCountEntityTraitDefinitionsParams,
|
|
@@ -36505,6 +37218,7 @@ function init(apiKey, opts) {
|
|
|
36505
37218
|
instanceOfCountWebhooksResponse,
|
|
36506
37219
|
instanceOfCreateApiKeyRequestBody,
|
|
36507
37220
|
instanceOfCreateApiKeyResponse,
|
|
37221
|
+
instanceOfCreateBillingCustomerRequestBody,
|
|
36508
37222
|
instanceOfCreateBillingProductRequestBody,
|
|
36509
37223
|
instanceOfCreateBillingSubscriptionsRequestBody,
|
|
36510
37224
|
instanceOfCreateCompanyOverrideRequestBody,
|
|
@@ -36568,6 +37282,7 @@ function init(apiKey, opts) {
|
|
|
36568
37282
|
instanceOfEntityTraitValue,
|
|
36569
37283
|
instanceOfEnvironmentDetailResponseData,
|
|
36570
37284
|
instanceOfEnvironmentResponseData,
|
|
37285
|
+
instanceOfEventBodyFlagCheck,
|
|
36571
37286
|
instanceOfEventBodyIdentify,
|
|
36572
37287
|
instanceOfEventBodyIdentifyCompany,
|
|
36573
37288
|
instanceOfEventBodyTrack,
|
|
@@ -36641,6 +37356,8 @@ function init(apiKey, opts) {
|
|
|
36641
37356
|
instanceOfListComponentsResponse,
|
|
36642
37357
|
instanceOfListCrmProductsParams,
|
|
36643
37358
|
instanceOfListCrmProductsResponse,
|
|
37359
|
+
instanceOfListCustomersParams,
|
|
37360
|
+
instanceOfListCustomersResponse,
|
|
36644
37361
|
instanceOfListEntityKeyDefinitionsParams,
|
|
36645
37362
|
instanceOfListEntityKeyDefinitionsResponse,
|
|
36646
37363
|
instanceOfListEntityTraitDefinitionsParams,
|
|
@@ -36724,6 +37441,7 @@ function init(apiKey, opts) {
|
|
|
36724
37441
|
instanceOfUpdateRuleRequestBody,
|
|
36725
37442
|
instanceOfUpdateWebhookRequestBody,
|
|
36726
37443
|
instanceOfUpdateWebhookResponse,
|
|
37444
|
+
instanceOfUpsertBillingCustomerResponse,
|
|
36727
37445
|
instanceOfUpsertBillingProductPlanResponse,
|
|
36728
37446
|
instanceOfUpsertBillingProductRequestBody,
|
|
36729
37447
|
instanceOfUpsertBillingProductResponse,
|