@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.
@@ -16525,6 +16525,142 @@ function AudienceRequestBodyToJSON(value) {
16525
16525
  };
16526
16526
  }
16527
16527
 
16528
+ // src/api/models/BillingCustomerResponseData.ts
16529
+ function instanceOfBillingCustomerResponseData(value) {
16530
+ if (!("email" in value) || value["email"] === void 0)
16531
+ return false;
16532
+ if (!("externalId" in value) || value["externalId"] === void 0)
16533
+ return false;
16534
+ if (!("failedToImport" in value) || value["failedToImport"] === void 0)
16535
+ return false;
16536
+ if (!("id" in value) || value["id"] === void 0)
16537
+ return false;
16538
+ if (!("name" in value) || value["name"] === void 0)
16539
+ return false;
16540
+ if (!("updatedAt" in value) || value["updatedAt"] === void 0)
16541
+ return false;
16542
+ return true;
16543
+ }
16544
+ function BillingCustomerResponseDataFromJSON(json) {
16545
+ return BillingCustomerResponseDataFromJSONTyped(json, false);
16546
+ }
16547
+ function BillingCustomerResponseDataFromJSONTyped(json, ignoreDiscriminator) {
16548
+ if (json == null) {
16549
+ return json;
16550
+ }
16551
+ return {
16552
+ companyId: json["company_id"] == null ? void 0 : json["company_id"],
16553
+ deletedAt: json["deleted_at"] == null ? void 0 : new Date(json["deleted_at"]),
16554
+ email: json["email"],
16555
+ externalId: json["external_id"],
16556
+ failedToImport: json["failed_to_import"],
16557
+ id: json["id"],
16558
+ name: json["name"],
16559
+ updatedAt: new Date(json["updated_at"])
16560
+ };
16561
+ }
16562
+ function BillingCustomerResponseDataToJSON(value) {
16563
+ if (value == null) {
16564
+ return value;
16565
+ }
16566
+ return {
16567
+ company_id: value["companyId"],
16568
+ deleted_at: value["deletedAt"] == null ? void 0 : value["deletedAt"].toISOString(),
16569
+ email: value["email"],
16570
+ external_id: value["externalId"],
16571
+ failed_to_import: value["failedToImport"],
16572
+ id: value["id"],
16573
+ name: value["name"],
16574
+ updated_at: value["updatedAt"].toISOString()
16575
+ };
16576
+ }
16577
+
16578
+ // src/api/models/BillingCustomerSubscription.ts
16579
+ function instanceOfBillingCustomerSubscription(value) {
16580
+ if (!("totalPrice" in value) || value["totalPrice"] === void 0)
16581
+ return false;
16582
+ return true;
16583
+ }
16584
+ function BillingCustomerSubscriptionFromJSON(json) {
16585
+ return BillingCustomerSubscriptionFromJSONTyped(json, false);
16586
+ }
16587
+ function BillingCustomerSubscriptionFromJSONTyped(json, ignoreDiscriminator) {
16588
+ if (json == null) {
16589
+ return json;
16590
+ }
16591
+ return {
16592
+ expiredAt: json["expired_at"] == null ? void 0 : new Date(json["expired_at"]),
16593
+ totalPrice: json["total_price"]
16594
+ };
16595
+ }
16596
+ function BillingCustomerSubscriptionToJSON(value) {
16597
+ if (value == null) {
16598
+ return value;
16599
+ }
16600
+ return {
16601
+ expired_at: value["expiredAt"] == null ? void 0 : value["expiredAt"].toISOString(),
16602
+ total_price: value["totalPrice"]
16603
+ };
16604
+ }
16605
+
16606
+ // src/api/models/BillingCustomerWithSubscriptionsResponseData.ts
16607
+ function instanceOfBillingCustomerWithSubscriptionsResponseData(value) {
16608
+ if (!("email" in value) || value["email"] === void 0)
16609
+ return false;
16610
+ if (!("externalId" in value) || value["externalId"] === void 0)
16611
+ return false;
16612
+ if (!("failedToImport" in value) || value["failedToImport"] === void 0)
16613
+ return false;
16614
+ if (!("id" in value) || value["id"] === void 0)
16615
+ return false;
16616
+ if (!("name" in value) || value["name"] === void 0)
16617
+ return false;
16618
+ if (!("subscriptions" in value) || value["subscriptions"] === void 0)
16619
+ return false;
16620
+ if (!("updatedAt" in value) || value["updatedAt"] === void 0)
16621
+ return false;
16622
+ return true;
16623
+ }
16624
+ function BillingCustomerWithSubscriptionsResponseDataFromJSON(json) {
16625
+ return BillingCustomerWithSubscriptionsResponseDataFromJSONTyped(json, false);
16626
+ }
16627
+ function BillingCustomerWithSubscriptionsResponseDataFromJSONTyped(json, ignoreDiscriminator) {
16628
+ if (json == null) {
16629
+ return json;
16630
+ }
16631
+ return {
16632
+ companyId: json["company_id"] == null ? void 0 : json["company_id"],
16633
+ deletedAt: json["deleted_at"] == null ? void 0 : new Date(json["deleted_at"]),
16634
+ email: json["email"],
16635
+ externalId: json["external_id"],
16636
+ failedToImport: json["failed_to_import"],
16637
+ id: json["id"],
16638
+ name: json["name"],
16639
+ subscriptions: json["subscriptions"].map(
16640
+ BillingCustomerSubscriptionFromJSON
16641
+ ),
16642
+ updatedAt: new Date(json["updated_at"])
16643
+ };
16644
+ }
16645
+ function BillingCustomerWithSubscriptionsResponseDataToJSON(value) {
16646
+ if (value == null) {
16647
+ return value;
16648
+ }
16649
+ return {
16650
+ company_id: value["companyId"],
16651
+ deleted_at: value["deletedAt"] == null ? void 0 : value["deletedAt"].toISOString(),
16652
+ email: value["email"],
16653
+ external_id: value["externalId"],
16654
+ failed_to_import: value["failedToImport"],
16655
+ id: value["id"],
16656
+ name: value["name"],
16657
+ subscriptions: value["subscriptions"].map(
16658
+ BillingCustomerSubscriptionToJSON
16659
+ ),
16660
+ updated_at: value["updatedAt"].toISOString()
16661
+ };
16662
+ }
16663
+
16528
16664
  // src/api/models/BillingProductPlanResponseData.ts
16529
16665
  function instanceOfBillingProductPlanResponseData(value) {
16530
16666
  if (!("accountId" in value) || value["accountId"] === void 0)
@@ -16563,6 +16699,36 @@ function BillingProductPlanResponseDataToJSON(value) {
16563
16699
  };
16564
16700
  }
16565
16701
 
16702
+ // src/api/models/BillingProductPricing.ts
16703
+ function instanceOfBillingProductPricing(value) {
16704
+ if (!("price" in value) || value["price"] === void 0)
16705
+ return false;
16706
+ if (!("productExternalId" in value) || value["productExternalId"] === void 0)
16707
+ return false;
16708
+ return true;
16709
+ }
16710
+ function BillingProductPricingFromJSON(json) {
16711
+ return BillingProductPricingFromJSONTyped(json, false);
16712
+ }
16713
+ function BillingProductPricingFromJSONTyped(json, ignoreDiscriminator) {
16714
+ if (json == null) {
16715
+ return json;
16716
+ }
16717
+ return {
16718
+ price: json["price"],
16719
+ productExternalId: json["product_external_id"]
16720
+ };
16721
+ }
16722
+ function BillingProductPricingToJSON(value) {
16723
+ if (value == null) {
16724
+ return value;
16725
+ }
16726
+ return {
16727
+ price: value["price"],
16728
+ product_external_id: value["productExternalId"]
16729
+ };
16730
+ }
16731
+
16566
16732
  // src/api/models/BillingProductResponseData.ts
16567
16733
  function instanceOfBillingProductResponseData(value) {
16568
16734
  if (!("accountId" in value) || value["accountId"] === void 0)
@@ -16975,6 +17141,7 @@ function PreviewObjectFromJSONTyped(json, ignoreDiscriminator) {
16975
17141
  return json;
16976
17142
  }
16977
17143
  return {
17144
+ description: json["description"] == null ? void 0 : json["description"],
16978
17145
  id: json["id"],
16979
17146
  imageUrl: json["image_url"] == null ? void 0 : json["image_url"],
16980
17147
  name: json["name"]
@@ -16985,6 +17152,7 @@ function PreviewObjectToJSON(value) {
16985
17152
  return value;
16986
17153
  }
16987
17154
  return {
17155
+ description: value["description"],
16988
17156
  id: value["id"],
16989
17157
  image_url: value["imageUrl"],
16990
17158
  name: value["name"]
@@ -17419,8 +17587,10 @@ function FeatureResponseDataFromJSONTyped(json, ignoreDiscriminator) {
17419
17587
  description: json["description"],
17420
17588
  eventSubtype: json["event_subtype"] == null ? void 0 : json["event_subtype"],
17421
17589
  featureType: json["feature_type"],
17590
+ icon: json["icon"] == null ? void 0 : json["icon"],
17422
17591
  id: json["id"],
17423
17592
  lifecyclePhase: json["lifecycle_phase"] == null ? void 0 : json["lifecycle_phase"],
17593
+ maintainerId: json["maintainer_id"] == null ? void 0 : json["maintainer_id"],
17424
17594
  name: json["name"],
17425
17595
  traitId: json["trait_id"] == null ? void 0 : json["trait_id"],
17426
17596
  updatedAt: new Date(json["updated_at"])
@@ -17435,8 +17605,10 @@ function FeatureResponseDataToJSON(value) {
17435
17605
  description: value["description"],
17436
17606
  event_subtype: value["eventSubtype"],
17437
17607
  feature_type: value["featureType"],
17608
+ icon: value["icon"],
17438
17609
  id: value["id"],
17439
17610
  lifecycle_phase: value["lifecyclePhase"],
17611
+ maintainer_id: value["maintainerId"],
17440
17612
  name: value["name"],
17441
17613
  trait_id: value["traitId"],
17442
17614
  updated_at: value["updatedAt"].toISOString()
@@ -18049,7 +18221,9 @@ function FlagDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
18049
18221
  flagType: json["flag_type"],
18050
18222
  id: json["id"],
18051
18223
  key: json["key"],
18224
+ lastCheckedAt: json["last_checked_at"] == null ? void 0 : new Date(json["last_checked_at"]),
18052
18225
  latestCheck: json["latest_check"] == null ? void 0 : FlagCheckLogResponseDataFromJSON(json["latest_check"]),
18226
+ maintainerId: json["maintainer_id"] == null ? void 0 : json["maintainer_id"],
18053
18227
  name: json["name"],
18054
18228
  rules: json["rules"].map(RuleDetailResponseDataFromJSON),
18055
18229
  updatedAt: new Date(json["updated_at"])
@@ -18068,7 +18242,9 @@ function FlagDetailResponseDataToJSON(value) {
18068
18242
  flag_type: value["flagType"],
18069
18243
  id: value["id"],
18070
18244
  key: value["key"],
18245
+ last_checked_at: value["lastCheckedAt"] == null ? void 0 : value["lastCheckedAt"].toISOString(),
18071
18246
  latest_check: FlagCheckLogResponseDataToJSON(value["latestCheck"]),
18247
+ maintainer_id: value["maintainerId"],
18072
18248
  name: value["name"],
18073
18249
  rules: value["rules"].map(RuleDetailResponseDataToJSON),
18074
18250
  updated_at: value["updatedAt"].toISOString()
@@ -18109,8 +18285,10 @@ function FeatureDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
18109
18285
  eventSummary: json["event_summary"] == null ? void 0 : EventSummaryResponseDataFromJSON(json["event_summary"]),
18110
18286
  featureType: json["feature_type"],
18111
18287
  flags: json["flags"].map(FlagDetailResponseDataFromJSON),
18288
+ icon: json["icon"] == null ? void 0 : json["icon"],
18112
18289
  id: json["id"],
18113
18290
  lifecyclePhase: json["lifecycle_phase"] == null ? void 0 : json["lifecycle_phase"],
18291
+ maintainerId: json["maintainer_id"] == null ? void 0 : json["maintainer_id"],
18114
18292
  name: json["name"],
18115
18293
  plans: json["plans"].map(PreviewObjectFromJSON),
18116
18294
  trait: json["trait"] == null ? void 0 : EntityTraitDefinitionResponseDataFromJSON(json["trait"]),
@@ -18129,8 +18307,10 @@ function FeatureDetailResponseDataToJSON(value) {
18129
18307
  event_summary: EventSummaryResponseDataToJSON(value["eventSummary"]),
18130
18308
  feature_type: value["featureType"],
18131
18309
  flags: value["flags"].map(FlagDetailResponseDataToJSON),
18310
+ icon: value["icon"],
18132
18311
  id: value["id"],
18133
18312
  lifecycle_phase: value["lifecyclePhase"],
18313
+ maintainer_id: value["maintainerId"],
18134
18314
  name: value["name"],
18135
18315
  plans: value["plans"].map(PreviewObjectToJSON),
18136
18316
  trait: EntityTraitDefinitionResponseDataToJSON(value["trait"]),
@@ -18168,6 +18348,7 @@ function PlanResponseDataFromJSONTyped(json, ignoreDiscriminator) {
18168
18348
  audienceType: json["audience_type"],
18169
18349
  createdAt: new Date(json["created_at"]),
18170
18350
  description: json["description"],
18351
+ icon: json["icon"] == null ? void 0 : json["icon"],
18171
18352
  id: json["id"],
18172
18353
  name: json["name"],
18173
18354
  planType: json["plan_type"],
@@ -18182,6 +18363,7 @@ function PlanResponseDataToJSON(value) {
18182
18363
  audience_type: value["audienceType"],
18183
18364
  created_at: value["createdAt"].toISOString(),
18184
18365
  description: value["description"],
18366
+ icon: value["icon"],
18185
18367
  id: value["id"],
18186
18368
  name: value["name"],
18187
18369
  plan_type: value["planType"],
@@ -18699,6 +18881,68 @@ function CountComponentsResponseToJSON(value) {
18699
18881
  };
18700
18882
  }
18701
18883
 
18884
+ // src/api/models/CountCustomersParams.ts
18885
+ function instanceOfCountCustomersParams(value) {
18886
+ return true;
18887
+ }
18888
+ function CountCustomersParamsFromJSON(json) {
18889
+ return CountCustomersParamsFromJSONTyped(json, false);
18890
+ }
18891
+ function CountCustomersParamsFromJSONTyped(json, ignoreDiscriminator) {
18892
+ if (json == null) {
18893
+ return json;
18894
+ }
18895
+ return {
18896
+ failedToImport: json["failed_to_import"] == null ? void 0 : json["failed_to_import"],
18897
+ limit: json["limit"] == null ? void 0 : json["limit"],
18898
+ name: json["name"] == null ? void 0 : json["name"],
18899
+ offset: json["offset"] == null ? void 0 : json["offset"],
18900
+ q: json["q"] == null ? void 0 : json["q"]
18901
+ };
18902
+ }
18903
+ function CountCustomersParamsToJSON(value) {
18904
+ if (value == null) {
18905
+ return value;
18906
+ }
18907
+ return {
18908
+ failed_to_import: value["failedToImport"],
18909
+ limit: value["limit"],
18910
+ name: value["name"],
18911
+ offset: value["offset"],
18912
+ q: value["q"]
18913
+ };
18914
+ }
18915
+
18916
+ // src/api/models/CountCustomersResponse.ts
18917
+ function instanceOfCountCustomersResponse(value) {
18918
+ if (!("data" in value) || value["data"] === void 0)
18919
+ return false;
18920
+ if (!("params" in value) || value["params"] === void 0)
18921
+ return false;
18922
+ return true;
18923
+ }
18924
+ function CountCustomersResponseFromJSON(json) {
18925
+ return CountCustomersResponseFromJSONTyped(json, false);
18926
+ }
18927
+ function CountCustomersResponseFromJSONTyped(json, ignoreDiscriminator) {
18928
+ if (json == null) {
18929
+ return json;
18930
+ }
18931
+ return {
18932
+ data: CountResponseFromJSON(json["data"]),
18933
+ params: CountCustomersParamsFromJSON(json["params"])
18934
+ };
18935
+ }
18936
+ function CountCustomersResponseToJSON(value) {
18937
+ if (value == null) {
18938
+ return value;
18939
+ }
18940
+ return {
18941
+ data: CountResponseToJSON(value["data"]),
18942
+ params: CountCustomersParamsToJSON(value["params"])
18943
+ };
18944
+ }
18945
+
18702
18946
  // src/api/models/CountEntityKeyDefinitionsParams.ts
18703
18947
  var CountEntityKeyDefinitionsParamsEntityTypeEnum = {
18704
18948
  Company: "company",
@@ -19589,6 +19833,50 @@ function CreateApiKeyResponseToJSON(value) {
19589
19833
  };
19590
19834
  }
19591
19835
 
19836
+ // src/api/models/CreateBillingCustomerRequestBody.ts
19837
+ function instanceOfCreateBillingCustomerRequestBody(value) {
19838
+ if (!("email" in value) || value["email"] === void 0)
19839
+ return false;
19840
+ if (!("externalId" in value) || value["externalId"] === void 0)
19841
+ return false;
19842
+ if (!("failedToImport" in value) || value["failedToImport"] === void 0)
19843
+ return false;
19844
+ if (!("meta" in value) || value["meta"] === void 0)
19845
+ return false;
19846
+ if (!("name" in value) || value["name"] === void 0)
19847
+ return false;
19848
+ return true;
19849
+ }
19850
+ function CreateBillingCustomerRequestBodyFromJSON(json) {
19851
+ return CreateBillingCustomerRequestBodyFromJSONTyped(json, false);
19852
+ }
19853
+ function CreateBillingCustomerRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
19854
+ if (json == null) {
19855
+ return json;
19856
+ }
19857
+ return {
19858
+ companyId: json["company_id"] == null ? void 0 : json["company_id"],
19859
+ email: json["email"],
19860
+ externalId: json["external_id"],
19861
+ failedToImport: json["failed_to_import"],
19862
+ meta: json["meta"],
19863
+ name: json["name"]
19864
+ };
19865
+ }
19866
+ function CreateBillingCustomerRequestBodyToJSON(value) {
19867
+ if (value == null) {
19868
+ return value;
19869
+ }
19870
+ return {
19871
+ company_id: value["companyId"],
19872
+ email: value["email"],
19873
+ external_id: value["externalId"],
19874
+ failed_to_import: value["failedToImport"],
19875
+ meta: value["meta"],
19876
+ name: value["name"]
19877
+ };
19878
+ }
19879
+
19592
19880
  // src/api/models/CreateBillingProductRequestBody.ts
19593
19881
  function instanceOfCreateBillingProductRequestBody(value) {
19594
19882
  if (!("currency" in value) || value["currency"] === void 0)
@@ -19641,6 +19929,8 @@ function instanceOfCreateBillingSubscriptionsRequestBody(value) {
19641
19929
  return false;
19642
19930
  if (!("subscriptionExternalId" in value) || value["subscriptionExternalId"] === void 0)
19643
19931
  return false;
19932
+ if (!("totalPrice" in value) || value["totalPrice"] === void 0)
19933
+ return false;
19644
19934
  return true;
19645
19935
  }
19646
19936
  function CreateBillingSubscriptionsRequestBodyFromJSON(json) {
@@ -19654,8 +19944,11 @@ function CreateBillingSubscriptionsRequestBodyFromJSONTyped(json, ignoreDiscrimi
19654
19944
  customerExternalId: json["customer_external_id"],
19655
19945
  expiredAt: new Date(json["expired_at"]),
19656
19946
  interval: json["interval"] == null ? void 0 : json["interval"],
19657
- productExternalIds: json["product_external_ids"],
19658
- subscriptionExternalId: json["subscription_external_id"]
19947
+ productExternalIds: json["product_external_ids"].map(
19948
+ BillingProductPricingFromJSON
19949
+ ),
19950
+ subscriptionExternalId: json["subscription_external_id"],
19951
+ totalPrice: json["total_price"]
19659
19952
  };
19660
19953
  }
19661
19954
  function CreateBillingSubscriptionsRequestBodyToJSON(value) {
@@ -19666,8 +19959,11 @@ function CreateBillingSubscriptionsRequestBodyToJSON(value) {
19666
19959
  customer_external_id: value["customerExternalId"],
19667
19960
  expired_at: value["expiredAt"].toISOString(),
19668
19961
  interval: value["interval"],
19669
- product_external_ids: value["productExternalIds"],
19670
- subscription_external_id: value["subscriptionExternalId"]
19962
+ product_external_ids: value["productExternalIds"].map(
19963
+ BillingProductPricingToJSON
19964
+ ),
19965
+ subscription_external_id: value["subscriptionExternalId"],
19966
+ total_price: value["totalPrice"]
19671
19967
  };
19672
19968
  }
19673
19969
 
@@ -20189,6 +20485,54 @@ function CreateEnvironmentResponseToJSON(value) {
20189
20485
  };
20190
20486
  }
20191
20487
 
20488
+ // src/api/models/EventBodyFlagCheck.ts
20489
+ function instanceOfEventBodyFlagCheck(value) {
20490
+ if (!("flagKey" in value) || value["flagKey"] === void 0)
20491
+ return false;
20492
+ if (!("reason" in value) || value["reason"] === void 0)
20493
+ return false;
20494
+ if (!("value" in value) || value["value"] === void 0)
20495
+ return false;
20496
+ return true;
20497
+ }
20498
+ function EventBodyFlagCheckFromJSON(json) {
20499
+ return EventBodyFlagCheckFromJSONTyped(json, false);
20500
+ }
20501
+ function EventBodyFlagCheckFromJSONTyped(json, ignoreDiscriminator) {
20502
+ if (json == null) {
20503
+ return json;
20504
+ }
20505
+ return {
20506
+ companyId: json["company_id"] == null ? void 0 : json["company_id"],
20507
+ error: json["error"] == null ? void 0 : json["error"],
20508
+ flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
20509
+ flagKey: json["flag_key"],
20510
+ reason: json["reason"],
20511
+ reqCompany: json["req_company"] == null ? void 0 : json["req_company"],
20512
+ reqUser: json["req_user"] == null ? void 0 : json["req_user"],
20513
+ ruleId: json["rule_id"] == null ? void 0 : json["rule_id"],
20514
+ userId: json["user_id"] == null ? void 0 : json["user_id"],
20515
+ value: json["value"]
20516
+ };
20517
+ }
20518
+ function EventBodyFlagCheckToJSON(value) {
20519
+ if (value == null) {
20520
+ return value;
20521
+ }
20522
+ return {
20523
+ company_id: value["companyId"],
20524
+ error: value["error"],
20525
+ flag_id: value["flagId"],
20526
+ flag_key: value["flagKey"],
20527
+ reason: value["reason"],
20528
+ req_company: value["reqCompany"],
20529
+ req_user: value["reqUser"],
20530
+ rule_id: value["ruleId"],
20531
+ user_id: value["userId"],
20532
+ value: value["value"]
20533
+ };
20534
+ }
20535
+
20192
20536
  // src/api/models/EventBodyIdentifyCompany.ts
20193
20537
  function instanceOfEventBodyIdentifyCompany(value) {
20194
20538
  if (!("keys" in value) || value["keys"] === void 0)
@@ -20291,6 +20635,9 @@ function EventBodyFromJSONTyped(json, ignoreDiscriminator) {
20291
20635
  if (json == null) {
20292
20636
  return json;
20293
20637
  }
20638
+ if (instanceOfEventBodyFlagCheck(json)) {
20639
+ return EventBodyFlagCheckFromJSONTyped(json, true);
20640
+ }
20294
20641
  if (instanceOfEventBodyIdentify(json)) {
20295
20642
  return EventBodyIdentifyFromJSONTyped(json, true);
20296
20643
  }
@@ -20303,6 +20650,9 @@ function EventBodyToJSON(value) {
20303
20650
  if (value == null) {
20304
20651
  return value;
20305
20652
  }
20653
+ if (instanceOfEventBodyFlagCheck(value)) {
20654
+ return EventBodyFlagCheckToJSON(value);
20655
+ }
20306
20656
  if (instanceOfEventBodyIdentify(value)) {
20307
20657
  return EventBodyIdentifyToJSON(value);
20308
20658
  }
@@ -20315,7 +20665,8 @@ function EventBodyToJSON(value) {
20315
20665
  // src/api/models/CreateEventRequestBody.ts
20316
20666
  var CreateEventRequestBodyEventTypeEnum = {
20317
20667
  Identify: "identify",
20318
- Track: "track"
20668
+ Track: "track",
20669
+ FlagCheck: "flag_check"
20319
20670
  };
20320
20671
  function instanceOfCreateEventRequestBody(value) {
20321
20672
  if (!("eventType" in value) || value["eventType"] === void 0)
@@ -20526,6 +20877,7 @@ function CreateOrUpdateFlagRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
20526
20877
  flagType: json["flag_type"],
20527
20878
  id: json["id"] == null ? void 0 : json["id"],
20528
20879
  key: json["key"],
20880
+ maintainerId: json["maintainer_id"] == null ? void 0 : json["maintainer_id"],
20529
20881
  name: json["name"]
20530
20882
  };
20531
20883
  }
@@ -20540,6 +20892,7 @@ function CreateOrUpdateFlagRequestBodyToJSON(value) {
20540
20892
  flag_type: value["flagType"],
20541
20893
  id: value["id"],
20542
20894
  key: value["key"],
20895
+ maintainer_id: value["maintainerId"],
20543
20896
  name: value["name"]
20544
20897
  };
20545
20898
  }
@@ -20571,7 +20924,9 @@ function CreateFeatureRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
20571
20924
  eventSubtype: json["event_subtype"] == null ? void 0 : json["event_subtype"],
20572
20925
  featureType: json["feature_type"],
20573
20926
  flag: json["flag"] == null ? void 0 : CreateOrUpdateFlagRequestBodyFromJSON(json["flag"]),
20927
+ icon: json["icon"] == null ? void 0 : json["icon"],
20574
20928
  lifecyclePhase: json["lifecycle_phase"] == null ? void 0 : json["lifecycle_phase"],
20929
+ maintainerId: json["maintainer_id"] == null ? void 0 : json["maintainer_id"],
20575
20930
  name: json["name"],
20576
20931
  traitId: json["trait_id"] == null ? void 0 : json["trait_id"]
20577
20932
  };
@@ -20585,7 +20940,9 @@ function CreateFeatureRequestBodyToJSON(value) {
20585
20940
  event_subtype: value["eventSubtype"],
20586
20941
  feature_type: value["featureType"],
20587
20942
  flag: CreateOrUpdateFlagRequestBodyToJSON(value["flag"]),
20943
+ icon: value["icon"],
20588
20944
  lifecycle_phase: value["lifecyclePhase"],
20945
+ maintainer_id: value["maintainerId"],
20589
20946
  name: value["name"],
20590
20947
  trait_id: value["traitId"]
20591
20948
  };
@@ -20648,6 +21005,7 @@ function CreateFlagRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
20648
21005
  featureId: json["feature_id"] == null ? void 0 : json["feature_id"],
20649
21006
  flagType: json["flag_type"],
20650
21007
  key: json["key"],
21008
+ maintainerId: json["maintainer_id"] == null ? void 0 : json["maintainer_id"],
20651
21009
  name: json["name"]
20652
21010
  };
20653
21011
  }
@@ -20661,6 +21019,7 @@ function CreateFlagRequestBodyToJSON(value) {
20661
21019
  feature_id: value["featureId"],
20662
21020
  flag_type: value["flagType"],
20663
21021
  key: value["key"],
21022
+ maintainer_id: value["maintainerId"],
20664
21023
  name: value["name"]
20665
21024
  };
20666
21025
  }
@@ -20936,6 +21295,7 @@ function CreatePlanRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
20936
21295
  return {
20937
21296
  audienceType: json["audience_type"] == null ? void 0 : json["audience_type"],
20938
21297
  description: json["description"],
21298
+ icon: json["icon"] == null ? void 0 : json["icon"],
20939
21299
  name: json["name"],
20940
21300
  planType: json["plan_type"]
20941
21301
  };
@@ -20947,6 +21307,7 @@ function CreatePlanRequestBodyToJSON(value) {
20947
21307
  return {
20948
21308
  audience_type: value["audienceType"],
20949
21309
  description: value["description"],
21310
+ icon: value["icon"],
20950
21311
  name: value["name"],
20951
21312
  plan_type: value["planType"]
20952
21313
  };
@@ -20956,6 +21317,8 @@ function CreatePlanRequestBodyToJSON(value) {
20956
21317
  function instanceOfPlanDetailResponseData(value) {
20957
21318
  if (!("audienceType" in value) || value["audienceType"] === void 0)
20958
21319
  return false;
21320
+ if (!("billingProducts" in value) || value["billingProducts"] === void 0)
21321
+ return false;
20959
21322
  if (!("companyCount" in value) || value["companyCount"] === void 0)
20960
21323
  return false;
20961
21324
  if (!("createdAt" in value) || value["createdAt"] === void 0)
@@ -20983,12 +21346,16 @@ function PlanDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
20983
21346
  }
20984
21347
  return {
20985
21348
  audienceType: json["audience_type"],
21349
+ billingProducts: json["billing_products"].map(
21350
+ BillingProductResponseDataFromJSON
21351
+ ),
20986
21352
  companyCount: json["company_count"],
20987
21353
  createdAt: new Date(json["created_at"]),
20988
21354
  description: json["description"],
20989
21355
  features: json["features"].map(
20990
21356
  FeatureDetailResponseDataFromJSON
20991
21357
  ),
21358
+ icon: json["icon"] == null ? void 0 : json["icon"],
20992
21359
  id: json["id"],
20993
21360
  name: json["name"],
20994
21361
  planType: json["plan_type"],
@@ -21001,12 +21368,16 @@ function PlanDetailResponseDataToJSON(value) {
21001
21368
  }
21002
21369
  return {
21003
21370
  audience_type: value["audienceType"],
21371
+ billing_products: value["billingProducts"].map(
21372
+ BillingProductResponseDataToJSON
21373
+ ),
21004
21374
  company_count: value["companyCount"],
21005
21375
  created_at: value["createdAt"].toISOString(),
21006
21376
  description: value["description"],
21007
21377
  features: value["features"].map(
21008
21378
  FeatureDetailResponseDataToJSON
21009
21379
  ),
21380
+ icon: value["icon"],
21010
21381
  id: value["id"],
21011
21382
  name: value["name"],
21012
21383
  plan_type: value["planType"],
@@ -22491,6 +22862,7 @@ function FlagResponseDataFromJSONTyped(json, ignoreDiscriminator) {
22491
22862
  flagType: json["flag_type"],
22492
22863
  id: json["id"],
22493
22864
  key: json["key"],
22865
+ maintainerId: json["maintainer_id"] == null ? void 0 : json["maintainer_id"],
22494
22866
  name: json["name"],
22495
22867
  updatedAt: new Date(json["updated_at"])
22496
22868
  };
@@ -22507,6 +22879,7 @@ function FlagResponseDataToJSON(value) {
22507
22879
  flag_type: value["flagType"],
22508
22880
  id: value["id"],
22509
22881
  key: value["key"],
22882
+ maintainer_id: value["maintainerId"],
22510
22883
  name: value["name"],
22511
22884
  updated_at: value["updatedAt"].toISOString()
22512
22885
  };
@@ -24556,6 +24929,72 @@ function ListCrmProductsResponseToJSON(value) {
24556
24929
  };
24557
24930
  }
24558
24931
 
24932
+ // src/api/models/ListCustomersParams.ts
24933
+ function instanceOfListCustomersParams(value) {
24934
+ return true;
24935
+ }
24936
+ function ListCustomersParamsFromJSON(json) {
24937
+ return ListCustomersParamsFromJSONTyped(json, false);
24938
+ }
24939
+ function ListCustomersParamsFromJSONTyped(json, ignoreDiscriminator) {
24940
+ if (json == null) {
24941
+ return json;
24942
+ }
24943
+ return {
24944
+ failedToImport: json["failed_to_import"] == null ? void 0 : json["failed_to_import"],
24945
+ limit: json["limit"] == null ? void 0 : json["limit"],
24946
+ name: json["name"] == null ? void 0 : json["name"],
24947
+ offset: json["offset"] == null ? void 0 : json["offset"],
24948
+ q: json["q"] == null ? void 0 : json["q"]
24949
+ };
24950
+ }
24951
+ function ListCustomersParamsToJSON(value) {
24952
+ if (value == null) {
24953
+ return value;
24954
+ }
24955
+ return {
24956
+ failed_to_import: value["failedToImport"],
24957
+ limit: value["limit"],
24958
+ name: value["name"],
24959
+ offset: value["offset"],
24960
+ q: value["q"]
24961
+ };
24962
+ }
24963
+
24964
+ // src/api/models/ListCustomersResponse.ts
24965
+ function instanceOfListCustomersResponse(value) {
24966
+ if (!("data" in value) || value["data"] === void 0)
24967
+ return false;
24968
+ if (!("params" in value) || value["params"] === void 0)
24969
+ return false;
24970
+ return true;
24971
+ }
24972
+ function ListCustomersResponseFromJSON(json) {
24973
+ return ListCustomersResponseFromJSONTyped(json, false);
24974
+ }
24975
+ function ListCustomersResponseFromJSONTyped(json, ignoreDiscriminator) {
24976
+ if (json == null) {
24977
+ return json;
24978
+ }
24979
+ return {
24980
+ data: json["data"].map(
24981
+ BillingCustomerWithSubscriptionsResponseDataFromJSON
24982
+ ),
24983
+ params: ListCustomersParamsFromJSON(json["params"])
24984
+ };
24985
+ }
24986
+ function ListCustomersResponseToJSON(value) {
24987
+ if (value == null) {
24988
+ return value;
24989
+ }
24990
+ return {
24991
+ data: value["data"].map(
24992
+ BillingCustomerWithSubscriptionsResponseDataToJSON
24993
+ ),
24994
+ params: ListCustomersParamsToJSON(value["params"])
24995
+ };
24996
+ }
24997
+
24559
24998
  // src/api/models/ListEntityKeyDefinitionsParams.ts
24560
24999
  var ListEntityKeyDefinitionsParamsEntityTypeEnum = {
24561
25000
  Company: "company",
@@ -24778,6 +25217,8 @@ function ListEventsParamsFromJSONTyped(json, ignoreDiscriminator) {
24778
25217
  return {
24779
25218
  companyId: json["company_id"] == null ? void 0 : json["company_id"],
24780
25219
  eventSubtype: json["event_subtype"] == null ? void 0 : json["event_subtype"],
25220
+ eventTypes: json["event_types"] == null ? void 0 : json["event_types"],
25221
+ flagId: json["flag_id"] == null ? void 0 : json["flag_id"],
24781
25222
  limit: json["limit"] == null ? void 0 : json["limit"],
24782
25223
  offset: json["offset"] == null ? void 0 : json["offset"],
24783
25224
  userId: json["user_id"] == null ? void 0 : json["user_id"]
@@ -24790,6 +25231,8 @@ function ListEventsParamsToJSON(value) {
24790
25231
  return {
24791
25232
  company_id: value["companyId"],
24792
25233
  event_subtype: value["eventSubtype"],
25234
+ event_types: value["eventTypes"],
25235
+ flag_id: value["flagId"],
24793
25236
  limit: value["limit"],
24794
25237
  offset: value["offset"],
24795
25238
  user_id: value["userId"]
@@ -26517,7 +26960,9 @@ function UpdateFeatureRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
26517
26960
  eventSubtype: json["event_subtype"] == null ? void 0 : json["event_subtype"],
26518
26961
  featureType: json["feature_type"] == null ? void 0 : json["feature_type"],
26519
26962
  flag: json["flag"] == null ? void 0 : CreateOrUpdateFlagRequestBodyFromJSON(json["flag"]),
26963
+ icon: json["icon"] == null ? void 0 : json["icon"],
26520
26964
  lifecyclePhase: json["lifecycle_phase"] == null ? void 0 : json["lifecycle_phase"],
26965
+ maintainerId: json["maintainer_id"] == null ? void 0 : json["maintainer_id"],
26521
26966
  name: json["name"] == null ? void 0 : json["name"],
26522
26967
  traitId: json["trait_id"] == null ? void 0 : json["trait_id"]
26523
26968
  };
@@ -26531,7 +26976,9 @@ function UpdateFeatureRequestBodyToJSON(value) {
26531
26976
  event_subtype: value["eventSubtype"],
26532
26977
  feature_type: value["featureType"],
26533
26978
  flag: CreateOrUpdateFlagRequestBodyToJSON(value["flag"]),
26979
+ icon: value["icon"],
26534
26980
  lifecycle_phase: value["lifecyclePhase"],
26981
+ maintainer_id: value["maintainerId"],
26535
26982
  name: value["name"],
26536
26983
  trait_id: value["traitId"]
26537
26984
  };
@@ -26758,6 +27205,7 @@ function UpdatePlanRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
26758
27205
  return {
26759
27206
  audienceType: json["audience_type"],
26760
27207
  description: json["description"] == null ? void 0 : json["description"],
27208
+ icon: json["icon"] == null ? void 0 : json["icon"],
26761
27209
  name: json["name"],
26762
27210
  planType: json["plan_type"] == null ? void 0 : json["plan_type"]
26763
27211
  };
@@ -26769,6 +27217,7 @@ function UpdatePlanRequestBodyToJSON(value) {
26769
27217
  return {
26770
27218
  audience_type: value["audienceType"],
26771
27219
  description: value["description"],
27220
+ icon: value["icon"],
26772
27221
  name: value["name"],
26773
27222
  plan_type: value["planType"]
26774
27223
  };
@@ -26988,6 +27437,36 @@ function UpdateWebhookResponseToJSON(value) {
26988
27437
  };
26989
27438
  }
26990
27439
 
27440
+ // src/api/models/UpsertBillingCustomerResponse.ts
27441
+ function instanceOfUpsertBillingCustomerResponse(value) {
27442
+ if (!("data" in value) || value["data"] === void 0)
27443
+ return false;
27444
+ if (!("params" in value) || value["params"] === void 0)
27445
+ return false;
27446
+ return true;
27447
+ }
27448
+ function UpsertBillingCustomerResponseFromJSON(json) {
27449
+ return UpsertBillingCustomerResponseFromJSONTyped(json, false);
27450
+ }
27451
+ function UpsertBillingCustomerResponseFromJSONTyped(json, ignoreDiscriminator) {
27452
+ if (json == null) {
27453
+ return json;
27454
+ }
27455
+ return {
27456
+ data: BillingCustomerResponseDataFromJSON(json["data"]),
27457
+ params: json["params"]
27458
+ };
27459
+ }
27460
+ function UpsertBillingCustomerResponseToJSON(value) {
27461
+ if (value == null) {
27462
+ return value;
27463
+ }
27464
+ return {
27465
+ data: BillingCustomerResponseDataToJSON(value["data"]),
27466
+ params: value["params"]
27467
+ };
27468
+ }
27469
+
26991
27470
  // src/api/models/UpsertBillingProductPlanResponse.ts
26992
27471
  function instanceOfUpsertBillingProductPlanResponse(value) {
26993
27472
  if (!("data" in value) || value["data"] === void 0)
@@ -28268,6 +28747,106 @@ var AccountsApi = class extends BaseAPI {
28268
28747
 
28269
28748
  // src/api/apis/BillingApi.ts
28270
28749
  var BillingApi = class extends BaseAPI {
28750
+ /**
28751
+ * Count customers
28752
+ */
28753
+ async countCustomersRaw(requestParameters, initOverrides) {
28754
+ const queryParameters = {};
28755
+ if (requestParameters["name"] != null) {
28756
+ queryParameters["name"] = requestParameters["name"];
28757
+ }
28758
+ if (requestParameters["failedToImport"] != null) {
28759
+ queryParameters["failed_to_import"] = requestParameters["failedToImport"];
28760
+ }
28761
+ if (requestParameters["q"] != null) {
28762
+ queryParameters["q"] = requestParameters["q"];
28763
+ }
28764
+ if (requestParameters["limit"] != null) {
28765
+ queryParameters["limit"] = requestParameters["limit"];
28766
+ }
28767
+ if (requestParameters["offset"] != null) {
28768
+ queryParameters["offset"] = requestParameters["offset"];
28769
+ }
28770
+ const headerParameters = {};
28771
+ if (this.configuration && this.configuration.apiKey) {
28772
+ headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
28773
+ "X-Schematic-Api-Key"
28774
+ );
28775
+ }
28776
+ const response = await this.request(
28777
+ {
28778
+ path: `/billing/customers/count`,
28779
+ method: "GET",
28780
+ headers: headerParameters,
28781
+ query: queryParameters
28782
+ },
28783
+ initOverrides
28784
+ );
28785
+ return new JSONApiResponse(
28786
+ response,
28787
+ (jsonValue) => CountCustomersResponseFromJSON(jsonValue)
28788
+ );
28789
+ }
28790
+ /**
28791
+ * Count customers
28792
+ */
28793
+ async countCustomers(requestParameters = {}, initOverrides) {
28794
+ const response = await this.countCustomersRaw(
28795
+ requestParameters,
28796
+ initOverrides
28797
+ );
28798
+ return await response.value();
28799
+ }
28800
+ /**
28801
+ * List customers
28802
+ */
28803
+ async listCustomersRaw(requestParameters, initOverrides) {
28804
+ const queryParameters = {};
28805
+ if (requestParameters["name"] != null) {
28806
+ queryParameters["name"] = requestParameters["name"];
28807
+ }
28808
+ if (requestParameters["failedToImport"] != null) {
28809
+ queryParameters["failed_to_import"] = requestParameters["failedToImport"];
28810
+ }
28811
+ if (requestParameters["q"] != null) {
28812
+ queryParameters["q"] = requestParameters["q"];
28813
+ }
28814
+ if (requestParameters["limit"] != null) {
28815
+ queryParameters["limit"] = requestParameters["limit"];
28816
+ }
28817
+ if (requestParameters["offset"] != null) {
28818
+ queryParameters["offset"] = requestParameters["offset"];
28819
+ }
28820
+ const headerParameters = {};
28821
+ if (this.configuration && this.configuration.apiKey) {
28822
+ headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
28823
+ "X-Schematic-Api-Key"
28824
+ );
28825
+ }
28826
+ const response = await this.request(
28827
+ {
28828
+ path: `/billing/customers`,
28829
+ method: "GET",
28830
+ headers: headerParameters,
28831
+ query: queryParameters
28832
+ },
28833
+ initOverrides
28834
+ );
28835
+ return new JSONApiResponse(
28836
+ response,
28837
+ (jsonValue) => ListCustomersResponseFromJSON(jsonValue)
28838
+ );
28839
+ }
28840
+ /**
28841
+ * List customers
28842
+ */
28843
+ async listCustomers(requestParameters = {}, initOverrides) {
28844
+ const response = await this.listCustomersRaw(
28845
+ requestParameters,
28846
+ initOverrides
28847
+ );
28848
+ return await response.value();
28849
+ }
28271
28850
  /**
28272
28851
  * List products
28273
28852
  */
@@ -28318,6 +28897,51 @@ var BillingApi = class extends BaseAPI {
28318
28897
  );
28319
28898
  return await response.value();
28320
28899
  }
28900
+ /**
28901
+ * Upsert billing customer
28902
+ */
28903
+ async upsertBillingCustomerRaw(requestParameters, initOverrides) {
28904
+ if (requestParameters["createBillingCustomerRequestBody"] == null) {
28905
+ throw new RequiredError(
28906
+ "createBillingCustomerRequestBody",
28907
+ 'Required parameter "createBillingCustomerRequestBody" was null or undefined when calling upsertBillingCustomer().'
28908
+ );
28909
+ }
28910
+ const queryParameters = {};
28911
+ const headerParameters = {};
28912
+ headerParameters["Content-Type"] = "application/json";
28913
+ if (this.configuration && this.configuration.apiKey) {
28914
+ headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
28915
+ "X-Schematic-Api-Key"
28916
+ );
28917
+ }
28918
+ const response = await this.request(
28919
+ {
28920
+ path: `/billing/customer/upsert`,
28921
+ method: "POST",
28922
+ headers: headerParameters,
28923
+ query: queryParameters,
28924
+ body: CreateBillingCustomerRequestBodyToJSON(
28925
+ requestParameters["createBillingCustomerRequestBody"]
28926
+ )
28927
+ },
28928
+ initOverrides
28929
+ );
28930
+ return new JSONApiResponse(
28931
+ response,
28932
+ (jsonValue) => UpsertBillingCustomerResponseFromJSON(jsonValue)
28933
+ );
28934
+ }
28935
+ /**
28936
+ * Upsert billing customer
28937
+ */
28938
+ async upsertBillingCustomer(requestParameters, initOverrides) {
28939
+ const response = await this.upsertBillingCustomerRaw(
28940
+ requestParameters,
28941
+ initOverrides
28942
+ );
28943
+ return await response.value();
28944
+ }
28321
28945
  /**
28322
28946
  * Upsert billing product
28323
28947
  */
@@ -31746,12 +32370,18 @@ var EventsApi = class extends BaseAPI {
31746
32370
  if (requestParameters["companyId"] != null) {
31747
32371
  queryParameters["company_id"] = requestParameters["companyId"];
31748
32372
  }
31749
- if (requestParameters["userId"] != null) {
31750
- queryParameters["user_id"] = requestParameters["userId"];
31751
- }
31752
32373
  if (requestParameters["eventSubtype"] != null) {
31753
32374
  queryParameters["event_subtype"] = requestParameters["eventSubtype"];
31754
32375
  }
32376
+ if (requestParameters["eventTypes"] != null) {
32377
+ queryParameters["event_types"] = requestParameters["eventTypes"];
32378
+ }
32379
+ if (requestParameters["flagId"] != null) {
32380
+ queryParameters["flag_id"] = requestParameters["flagId"];
32381
+ }
32382
+ if (requestParameters["userId"] != null) {
32383
+ queryParameters["user_id"] = requestParameters["userId"];
32384
+ }
31755
32385
  if (requestParameters["limit"] != null) {
31756
32386
  queryParameters["limit"] = requestParameters["limit"];
31757
32387
  }
@@ -34020,7 +34650,7 @@ var Schematic = class {
34020
34650
  constructor(apiKey, opts) {
34021
34651
  const { offline = false } = opts ?? {};
34022
34652
  const { basePath, flagDefaults = {} } = opts ?? {};
34023
- const version = "1.0.19";
34653
+ const version = "1.0.21";
34024
34654
  const headers = {
34025
34655
  "User-Agent": `schematic-typescript-node@v${version}`
34026
34656
  };
@@ -34162,9 +34792,21 @@ export {
34162
34792
  BASE_PATH,
34163
34793
  BaseAPI,
34164
34794
  BillingApi,
34795
+ BillingCustomerResponseDataFromJSON,
34796
+ BillingCustomerResponseDataFromJSONTyped,
34797
+ BillingCustomerResponseDataToJSON,
34798
+ BillingCustomerSubscriptionFromJSON,
34799
+ BillingCustomerSubscriptionFromJSONTyped,
34800
+ BillingCustomerSubscriptionToJSON,
34801
+ BillingCustomerWithSubscriptionsResponseDataFromJSON,
34802
+ BillingCustomerWithSubscriptionsResponseDataFromJSONTyped,
34803
+ BillingCustomerWithSubscriptionsResponseDataToJSON,
34165
34804
  BillingProductPlanResponseDataFromJSON,
34166
34805
  BillingProductPlanResponseDataFromJSONTyped,
34167
34806
  BillingProductPlanResponseDataToJSON,
34807
+ BillingProductPricingFromJSON,
34808
+ BillingProductPricingFromJSONTyped,
34809
+ BillingProductPricingToJSON,
34168
34810
  BillingProductResponseDataFromJSON,
34169
34811
  BillingProductResponseDataFromJSONTyped,
34170
34812
  BillingProductResponseDataToJSON,
@@ -34260,6 +34902,12 @@ export {
34260
34902
  CountComponentsResponseFromJSON,
34261
34903
  CountComponentsResponseFromJSONTyped,
34262
34904
  CountComponentsResponseToJSON,
34905
+ CountCustomersParamsFromJSON,
34906
+ CountCustomersParamsFromJSONTyped,
34907
+ CountCustomersParamsToJSON,
34908
+ CountCustomersResponseFromJSON,
34909
+ CountCustomersResponseFromJSONTyped,
34910
+ CountCustomersResponseToJSON,
34263
34911
  CountEntityKeyDefinitionsEntityTypeEnum,
34264
34912
  CountEntityKeyDefinitionsParamsEntityTypeEnum,
34265
34913
  CountEntityKeyDefinitionsParamsFromJSON,
@@ -34353,6 +35001,9 @@ export {
34353
35001
  CreateApiKeyResponseFromJSON,
34354
35002
  CreateApiKeyResponseFromJSONTyped,
34355
35003
  CreateApiKeyResponseToJSON,
35004
+ CreateBillingCustomerRequestBodyFromJSON,
35005
+ CreateBillingCustomerRequestBodyFromJSONTyped,
35006
+ CreateBillingCustomerRequestBodyToJSON,
34356
35007
  CreateBillingProductRequestBodyFromJSON,
34357
35008
  CreateBillingProductRequestBodyFromJSONTyped,
34358
35009
  CreateBillingProductRequestBodyToJSON,
@@ -34563,6 +35214,9 @@ export {
34563
35214
  EnvironmentResponseDataFromJSON,
34564
35215
  EnvironmentResponseDataFromJSONTyped,
34565
35216
  EnvironmentResponseDataToJSON,
35217
+ EventBodyFlagCheckFromJSON,
35218
+ EventBodyFlagCheckFromJSONTyped,
35219
+ EventBodyFlagCheckToJSON,
34566
35220
  EventBodyFromJSON,
34567
35221
  EventBodyFromJSONTyped,
34568
35222
  EventBodyIdentifyCompanyFromJSON,
@@ -34792,6 +35446,12 @@ export {
34792
35446
  ListCrmProductsResponseFromJSON,
34793
35447
  ListCrmProductsResponseFromJSONTyped,
34794
35448
  ListCrmProductsResponseToJSON,
35449
+ ListCustomersParamsFromJSON,
35450
+ ListCustomersParamsFromJSONTyped,
35451
+ ListCustomersParamsToJSON,
35452
+ ListCustomersResponseFromJSON,
35453
+ ListCustomersResponseFromJSONTyped,
35454
+ ListCustomersResponseToJSON,
34795
35455
  ListEntityKeyDefinitionsEntityTypeEnum,
34796
35456
  ListEntityKeyDefinitionsParamsEntityTypeEnum,
34797
35457
  ListEntityKeyDefinitionsParamsFromJSON,
@@ -35067,6 +35727,9 @@ export {
35067
35727
  UpdateWebhookResponseFromJSON,
35068
35728
  UpdateWebhookResponseFromJSONTyped,
35069
35729
  UpdateWebhookResponseToJSON,
35730
+ UpsertBillingCustomerResponseFromJSON,
35731
+ UpsertBillingCustomerResponseFromJSONTyped,
35732
+ UpsertBillingCustomerResponseToJSON,
35070
35733
  UpsertBillingProductPlanResponseFromJSON,
35071
35734
  UpsertBillingProductPlanResponseFromJSONTyped,
35072
35735
  UpsertBillingProductPlanResponseToJSON,
@@ -35140,7 +35803,11 @@ export {
35140
35803
  instanceOfApiKeyRequestResponseData,
35141
35804
  instanceOfApiKeyResponseData,
35142
35805
  instanceOfAudienceRequestBody,
35806
+ instanceOfBillingCustomerResponseData,
35807
+ instanceOfBillingCustomerSubscription,
35808
+ instanceOfBillingCustomerWithSubscriptionsResponseData,
35143
35809
  instanceOfBillingProductPlanResponseData,
35810
+ instanceOfBillingProductPricing,
35144
35811
  instanceOfBillingProductResponseData,
35145
35812
  instanceOfBillingSubscriptionResponseData,
35146
35813
  instanceOfCheckFlagOutputWithFlagKey,
@@ -35171,6 +35838,8 @@ export {
35171
35838
  instanceOfCountCompanyOverridesResponse,
35172
35839
  instanceOfCountComponentsParams,
35173
35840
  instanceOfCountComponentsResponse,
35841
+ instanceOfCountCustomersParams,
35842
+ instanceOfCountCustomersResponse,
35174
35843
  instanceOfCountEntityKeyDefinitionsParams,
35175
35844
  instanceOfCountEntityKeyDefinitionsResponse,
35176
35845
  instanceOfCountEntityTraitDefinitionsParams,
@@ -35200,6 +35869,7 @@ export {
35200
35869
  instanceOfCountWebhooksResponse,
35201
35870
  instanceOfCreateApiKeyRequestBody,
35202
35871
  instanceOfCreateApiKeyResponse,
35872
+ instanceOfCreateBillingCustomerRequestBody,
35203
35873
  instanceOfCreateBillingProductRequestBody,
35204
35874
  instanceOfCreateBillingSubscriptionsRequestBody,
35205
35875
  instanceOfCreateCompanyOverrideRequestBody,
@@ -35263,6 +35933,7 @@ export {
35263
35933
  instanceOfEntityTraitValue,
35264
35934
  instanceOfEnvironmentDetailResponseData,
35265
35935
  instanceOfEnvironmentResponseData,
35936
+ instanceOfEventBodyFlagCheck,
35266
35937
  instanceOfEventBodyIdentify,
35267
35938
  instanceOfEventBodyIdentifyCompany,
35268
35939
  instanceOfEventBodyTrack,
@@ -35336,6 +36007,8 @@ export {
35336
36007
  instanceOfListComponentsResponse,
35337
36008
  instanceOfListCrmProductsParams,
35338
36009
  instanceOfListCrmProductsResponse,
36010
+ instanceOfListCustomersParams,
36011
+ instanceOfListCustomersResponse,
35339
36012
  instanceOfListEntityKeyDefinitionsParams,
35340
36013
  instanceOfListEntityKeyDefinitionsResponse,
35341
36014
  instanceOfListEntityTraitDefinitionsParams,
@@ -35419,6 +36092,7 @@ export {
35419
36092
  instanceOfUpdateRuleRequestBody,
35420
36093
  instanceOfUpdateWebhookRequestBody,
35421
36094
  instanceOfUpdateWebhookResponse,
36095
+ instanceOfUpsertBillingCustomerResponse,
35422
36096
  instanceOfUpsertBillingProductPlanResponse,
35423
36097
  instanceOfUpsertBillingProductRequestBody,
35424
36098
  instanceOfUpsertBillingProductResponse,