@schematichq/schematic-typescript-node 1.0.16 → 1.0.17

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.
@@ -14539,6 +14539,9 @@ __export(src_exports, {
14539
14539
  BASE_PATH: () => BASE_PATH,
14540
14540
  BaseAPI: () => BaseAPI,
14541
14541
  BillingApi: () => BillingApi,
14542
+ BillingProductPlanResponseDataFromJSON: () => BillingProductPlanResponseDataFromJSON,
14543
+ BillingProductPlanResponseDataFromJSONTyped: () => BillingProductPlanResponseDataFromJSONTyped,
14544
+ BillingProductPlanResponseDataToJSON: () => BillingProductPlanResponseDataToJSON,
14542
14545
  BillingProductResponseDataFromJSON: () => BillingProductResponseDataFromJSON,
14543
14546
  BillingProductResponseDataFromJSONTyped: () => BillingProductResponseDataFromJSONTyped,
14544
14547
  BillingProductResponseDataToJSON: () => BillingProductResponseDataToJSON,
@@ -14590,6 +14593,9 @@ __export(src_exports, {
14590
14593
  CompanySubscriptionResponseDataFromJSON: () => CompanySubscriptionResponseDataFromJSON,
14591
14594
  CompanySubscriptionResponseDataFromJSONTyped: () => CompanySubscriptionResponseDataFromJSONTyped,
14592
14595
  CompanySubscriptionResponseDataToJSON: () => CompanySubscriptionResponseDataToJSON,
14596
+ ComponentHydrateViewFromJSON: () => ComponentHydrateViewFromJSON,
14597
+ ComponentHydrateViewFromJSONTyped: () => ComponentHydrateViewFromJSONTyped,
14598
+ ComponentHydrateViewToJSON: () => ComponentHydrateViewToJSON,
14593
14599
  ComponentResponseDataFromJSON: () => ComponentResponseDataFromJSON,
14594
14600
  ComponentResponseDataFromJSONTyped: () => ComponentResponseDataFromJSONTyped,
14595
14601
  ComponentResponseDataToJSON: () => ComponentResponseDataToJSON,
@@ -15093,6 +15099,9 @@ __export(src_exports, {
15093
15099
  GetWebhookResponseFromJSON: () => GetWebhookResponseFromJSON,
15094
15100
  GetWebhookResponseFromJSONTyped: () => GetWebhookResponseFromJSONTyped,
15095
15101
  GetWebhookResponseToJSON: () => GetWebhookResponseToJSON,
15102
+ HydrateComponentResponseFromJSON: () => HydrateComponentResponseFromJSON,
15103
+ HydrateComponentResponseFromJSONTyped: () => HydrateComponentResponseFromJSONTyped,
15104
+ HydrateComponentResponseToJSON: () => HydrateComponentResponseToJSON,
15096
15105
  JSONApiResponse: () => JSONApiResponse,
15097
15106
  KeysRequestBodyFromJSON: () => KeysRequestBodyFromJSON,
15098
15107
  KeysRequestBodyFromJSONTyped: () => KeysRequestBodyFromJSONTyped,
@@ -15357,6 +15366,7 @@ __export(src_exports, {
15357
15366
  UpdateComponentRequestBodyEntityTypeEnum: () => UpdateComponentRequestBodyEntityTypeEnum,
15358
15367
  UpdateComponentRequestBodyFromJSON: () => UpdateComponentRequestBodyFromJSON,
15359
15368
  UpdateComponentRequestBodyFromJSONTyped: () => UpdateComponentRequestBodyFromJSONTyped,
15369
+ UpdateComponentRequestBodyStateEnum: () => UpdateComponentRequestBodyStateEnum,
15360
15370
  UpdateComponentRequestBodyToJSON: () => UpdateComponentRequestBodyToJSON,
15361
15371
  UpdateComponentResponseFromJSON: () => UpdateComponentResponseFromJSON,
15362
15372
  UpdateComponentResponseFromJSONTyped: () => UpdateComponentResponseFromJSONTyped,
@@ -15422,6 +15432,12 @@ __export(src_exports, {
15422
15432
  UpdateWebhookResponseFromJSON: () => UpdateWebhookResponseFromJSON,
15423
15433
  UpdateWebhookResponseFromJSONTyped: () => UpdateWebhookResponseFromJSONTyped,
15424
15434
  UpdateWebhookResponseToJSON: () => UpdateWebhookResponseToJSON,
15435
+ UpsertBillingProductPlanResponseFromJSON: () => UpsertBillingProductPlanResponseFromJSON,
15436
+ UpsertBillingProductPlanResponseFromJSONTyped: () => UpsertBillingProductPlanResponseFromJSONTyped,
15437
+ UpsertBillingProductPlanResponseToJSON: () => UpsertBillingProductPlanResponseToJSON,
15438
+ UpsertBillingProductRequestBodyFromJSON: () => UpsertBillingProductRequestBodyFromJSON,
15439
+ UpsertBillingProductRequestBodyFromJSONTyped: () => UpsertBillingProductRequestBodyFromJSONTyped,
15440
+ UpsertBillingProductRequestBodyToJSON: () => UpsertBillingProductRequestBodyToJSON,
15425
15441
  UpsertBillingProductResponseFromJSON: () => UpsertBillingProductResponseFromJSON,
15426
15442
  UpsertBillingProductResponseFromJSONTyped: () => UpsertBillingProductResponseFromJSONTyped,
15427
15443
  UpsertBillingProductResponseToJSON: () => UpsertBillingProductResponseToJSON,
@@ -15489,6 +15505,7 @@ __export(src_exports, {
15489
15505
  instanceOfApiKeyRequestResponseData: () => instanceOfApiKeyRequestResponseData,
15490
15506
  instanceOfApiKeyResponseData: () => instanceOfApiKeyResponseData,
15491
15507
  instanceOfAudienceRequestBody: () => instanceOfAudienceRequestBody,
15508
+ instanceOfBillingProductPlanResponseData: () => instanceOfBillingProductPlanResponseData,
15492
15509
  instanceOfBillingProductResponseData: () => instanceOfBillingProductResponseData,
15493
15510
  instanceOfBillingSubscriptionResponseData: () => instanceOfBillingSubscriptionResponseData,
15494
15511
  instanceOfCheckFlagOutputWithFlagKey: () => instanceOfCheckFlagOutputWithFlagKey,
@@ -15505,6 +15522,7 @@ __export(src_exports, {
15505
15522
  instanceOfCompanyPlanResponseData: () => instanceOfCompanyPlanResponseData,
15506
15523
  instanceOfCompanyResponseData: () => instanceOfCompanyResponseData,
15507
15524
  instanceOfCompanySubscriptionResponseData: () => instanceOfCompanySubscriptionResponseData,
15525
+ instanceOfComponentHydrateView: () => instanceOfComponentHydrateView,
15508
15526
  instanceOfComponentResponseData: () => instanceOfComponentResponseData,
15509
15527
  instanceOfCountApiKeysParams: () => instanceOfCountApiKeysParams,
15510
15528
  instanceOfCountApiKeysResponse: () => instanceOfCountApiKeysResponse,
@@ -15660,6 +15678,7 @@ __export(src_exports, {
15660
15678
  instanceOfGetUserResponse: () => instanceOfGetUserResponse,
15661
15679
  instanceOfGetWebhookEventResponse: () => instanceOfGetWebhookEventResponse,
15662
15680
  instanceOfGetWebhookResponse: () => instanceOfGetWebhookResponse,
15681
+ instanceOfHydrateComponentResponse: () => instanceOfHydrateComponentResponse,
15663
15682
  instanceOfKeysRequestBody: () => instanceOfKeysRequestBody,
15664
15683
  instanceOfListApiKeysParams: () => instanceOfListApiKeysParams,
15665
15684
  instanceOfListApiKeysResponse: () => instanceOfListApiKeysResponse,
@@ -15761,6 +15780,8 @@ __export(src_exports, {
15761
15780
  instanceOfUpdateRuleRequestBody: () => instanceOfUpdateRuleRequestBody,
15762
15781
  instanceOfUpdateWebhookRequestBody: () => instanceOfUpdateWebhookRequestBody,
15763
15782
  instanceOfUpdateWebhookResponse: () => instanceOfUpdateWebhookResponse,
15783
+ instanceOfUpsertBillingProductPlanResponse: () => instanceOfUpsertBillingProductPlanResponse,
15784
+ instanceOfUpsertBillingProductRequestBody: () => instanceOfUpsertBillingProductRequestBody,
15764
15785
  instanceOfUpsertBillingProductResponse: () => instanceOfUpsertBillingProductResponse,
15765
15786
  instanceOfUpsertBillingSubscriptionResponse: () => instanceOfUpsertBillingSubscriptionResponse,
15766
15787
  instanceOfUpsertCompanyRequestBody: () => instanceOfUpsertCompanyRequestBody,
@@ -17791,6 +17812,44 @@ function AudienceRequestBodyToJSON(value) {
17791
17812
  };
17792
17813
  }
17793
17814
 
17815
+ // src/api/models/BillingProductPlanResponseData.ts
17816
+ function instanceOfBillingProductPlanResponseData(value) {
17817
+ if (!("accountId" in value) || value["accountId"] === void 0)
17818
+ return false;
17819
+ if (!("billingProductId" in value) || value["billingProductId"] === void 0)
17820
+ return false;
17821
+ if (!("environmentId" in value) || value["environmentId"] === void 0)
17822
+ return false;
17823
+ if (!("planId" in value) || value["planId"] === void 0)
17824
+ return false;
17825
+ return true;
17826
+ }
17827
+ function BillingProductPlanResponseDataFromJSON(json) {
17828
+ return BillingProductPlanResponseDataFromJSONTyped(json, false);
17829
+ }
17830
+ function BillingProductPlanResponseDataFromJSONTyped(json, ignoreDiscriminator) {
17831
+ if (json == null) {
17832
+ return json;
17833
+ }
17834
+ return {
17835
+ accountId: json["account_id"],
17836
+ billingProductId: json["billing_product_id"],
17837
+ environmentId: json["environment_id"],
17838
+ planId: json["plan_id"]
17839
+ };
17840
+ }
17841
+ function BillingProductPlanResponseDataToJSON(value) {
17842
+ if (value == null) {
17843
+ return value;
17844
+ }
17845
+ return {
17846
+ account_id: value["accountId"],
17847
+ billing_product_id: value["billingProductId"],
17848
+ environment_id: value["environmentId"],
17849
+ plan_id: value["planId"]
17850
+ };
17851
+ }
17852
+
17794
17853
  // src/api/models/BillingProductResponseData.ts
17795
17854
  function instanceOfBillingProductResponseData(value) {
17796
17855
  if (!("accountId" in value) || value["accountId"] === void 0)
@@ -17826,7 +17885,6 @@ function BillingProductResponseDataFromJSONTyped(json, ignoreDiscriminator) {
17826
17885
  accountId: json["account_id"],
17827
17886
  createdAt: new Date(json["created_at"]),
17828
17887
  currency: json["currency"],
17829
- deletedAt: json["deleted_at"] == null ? void 0 : new Date(json["deleted_at"]),
17830
17888
  environmentId: json["environment_id"],
17831
17889
  externalId: json["external_id"],
17832
17890
  name: json["name"],
@@ -17844,7 +17902,6 @@ function BillingProductResponseDataToJSON(value) {
17844
17902
  account_id: value["accountId"],
17845
17903
  created_at: value["createdAt"].toISOString(),
17846
17904
  currency: value["currency"],
17847
- deleted_at: value["deletedAt"] == null ? void 0 : value["deletedAt"].toISOString(),
17848
17905
  environment_id: value["environmentId"],
17849
17906
  external_id: value["externalId"],
17850
17907
  name: value["name"],
@@ -17873,7 +17930,6 @@ function BillingSubscriptionResponseDataFromJSONTyped(json, ignoreDiscriminator)
17873
17930
  return json;
17874
17931
  }
17875
17932
  return {
17876
- deletedAt: json["deleted_at"] == null ? void 0 : new Date(json["deleted_at"]),
17877
17933
  expiredAt: json["expired_at"] == null ? void 0 : new Date(json["expired_at"]),
17878
17934
  externalId: json["external_id"],
17879
17935
  id: json["id"],
@@ -17885,7 +17941,6 @@ function BillingSubscriptionResponseDataToJSON(value) {
17885
17941
  return value;
17886
17942
  }
17887
17943
  return {
17888
- deleted_at: value["deletedAt"] == null ? void 0 : value["deletedAt"].toISOString(),
17889
17944
  expired_at: value["expiredAt"] == null ? void 0 : value["expiredAt"].toISOString(),
17890
17945
  external_id: value["externalId"],
17891
17946
  id: value["id"],
@@ -18120,7 +18175,6 @@ function CrmDealLineItemFromJSONTyped(json, ignoreDiscriminator) {
18120
18175
  billingFrequency: json["billing_frequency"],
18121
18176
  createdAt: new Date(json["created_at"]),
18122
18177
  currency: json["currency"],
18123
- deletedAt: json["deleted_at"] == null ? void 0 : new Date(json["deleted_at"]),
18124
18178
  description: json["description"],
18125
18179
  discountPercentage: json["discount_percentage"] == null ? void 0 : json["discount_percentage"],
18126
18180
  id: json["id"],
@@ -18140,7 +18194,6 @@ function CrmDealLineItemToJSON(value) {
18140
18194
  billing_frequency: value["billingFrequency"],
18141
18195
  created_at: value["createdAt"].toISOString(),
18142
18196
  currency: value["currency"],
18143
- deleted_at: value["deletedAt"] == null ? void 0 : value["deletedAt"].toISOString(),
18144
18197
  description: value["description"],
18145
18198
  discount_percentage: value["discountPercentage"],
18146
18199
  id: value["id"],
@@ -18845,6 +18898,8 @@ function instanceOfComponentResponseData(value) {
18845
18898
  return false;
18846
18899
  if (!("name" in value) || value["name"] === void 0)
18847
18900
  return false;
18901
+ if (!("state" in value) || value["state"] === void 0)
18902
+ return false;
18848
18903
  if (!("type" in value) || value["type"] === void 0)
18849
18904
  return false;
18850
18905
  if (!("updatedAt" in value) || value["updatedAt"] === void 0)
@@ -18863,6 +18918,7 @@ function ComponentResponseDataFromJSONTyped(json, ignoreDiscriminator) {
18863
18918
  createdAt: new Date(json["created_at"]),
18864
18919
  id: json["id"],
18865
18920
  name: json["name"],
18921
+ state: json["state"],
18866
18922
  type: json["type"],
18867
18923
  updatedAt: new Date(json["updated_at"])
18868
18924
  };
@@ -18876,11 +18932,40 @@ function ComponentResponseDataToJSON(value) {
18876
18932
  created_at: value["createdAt"].toISOString(),
18877
18933
  id: value["id"],
18878
18934
  name: value["name"],
18935
+ state: value["state"],
18879
18936
  type: value["type"],
18880
18937
  updated_at: value["updatedAt"].toISOString()
18881
18938
  };
18882
18939
  }
18883
18940
 
18941
+ // src/api/models/ComponentHydrateView.ts
18942
+ function instanceOfComponentHydrateView(value) {
18943
+ if (!("data" in value) || value["data"] === void 0)
18944
+ return false;
18945
+ return true;
18946
+ }
18947
+ function ComponentHydrateViewFromJSON(json) {
18948
+ return ComponentHydrateViewFromJSONTyped(json, false);
18949
+ }
18950
+ function ComponentHydrateViewFromJSONTyped(json, ignoreDiscriminator) {
18951
+ if (json == null) {
18952
+ return json;
18953
+ }
18954
+ return {
18955
+ component: json["component"] == null ? void 0 : ComponentResponseDataFromJSON(json["component"]),
18956
+ data: json["data"]
18957
+ };
18958
+ }
18959
+ function ComponentHydrateViewToJSON(value) {
18960
+ if (value == null) {
18961
+ return value;
18962
+ }
18963
+ return {
18964
+ component: ComponentResponseDataToJSON(value["component"]),
18965
+ data: value["data"]
18966
+ };
18967
+ }
18968
+
18884
18969
  // src/api/models/CountApiKeysParams.ts
18885
18970
  function instanceOfCountApiKeysParams(value) {
18886
18971
  return true;
@@ -21880,6 +21965,8 @@ function CreatePlanEntitlementRequestBodyToJSON(value) {
21880
21965
 
21881
21966
  // src/api/models/PlanResponseData.ts
21882
21967
  function instanceOfPlanResponseData(value) {
21968
+ if (!("audienceType" in value) || value["audienceType"] === void 0)
21969
+ return false;
21883
21970
  if (!("createdAt" in value) || value["createdAt"] === void 0)
21884
21971
  return false;
21885
21972
  if (!("description" in value) || value["description"] === void 0)
@@ -21902,6 +21989,7 @@ function PlanResponseDataFromJSONTyped(json, ignoreDiscriminator) {
21902
21989
  return json;
21903
21990
  }
21904
21991
  return {
21992
+ audienceType: json["audience_type"],
21905
21993
  createdAt: new Date(json["created_at"]),
21906
21994
  description: json["description"],
21907
21995
  id: json["id"],
@@ -21915,6 +22003,7 @@ function PlanResponseDataToJSON(value) {
21915
22003
  return value;
21916
22004
  }
21917
22005
  return {
22006
+ audience_type: value["audienceType"],
21918
22007
  created_at: value["createdAt"].toISOString(),
21919
22008
  description: value["description"],
21920
22009
  id: value["id"],
@@ -22048,6 +22137,7 @@ function CreatePlanRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
22048
22137
  return json;
22049
22138
  }
22050
22139
  return {
22140
+ audienceType: json["audience_type"] == null ? void 0 : json["audience_type"],
22051
22141
  description: json["description"],
22052
22142
  name: json["name"],
22053
22143
  planType: json["plan_type"]
@@ -22058,6 +22148,7 @@ function CreatePlanRequestBodyToJSON(value) {
22058
22148
  return value;
22059
22149
  }
22060
22150
  return {
22151
+ audience_type: value["audienceType"],
22061
22152
  description: value["description"],
22062
22153
  name: value["name"],
22063
22154
  plan_type: value["planType"]
@@ -22066,6 +22157,8 @@ function CreatePlanRequestBodyToJSON(value) {
22066
22157
 
22067
22158
  // src/api/models/PlanDetailResponseData.ts
22068
22159
  function instanceOfPlanDetailResponseData(value) {
22160
+ if (!("audienceType" in value) || value["audienceType"] === void 0)
22161
+ return false;
22069
22162
  if (!("companyCount" in value) || value["companyCount"] === void 0)
22070
22163
  return false;
22071
22164
  if (!("createdAt" in value) || value["createdAt"] === void 0)
@@ -22092,6 +22185,7 @@ function PlanDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
22092
22185
  return json;
22093
22186
  }
22094
22187
  return {
22188
+ audienceType: json["audience_type"],
22095
22189
  companyCount: json["company_count"],
22096
22190
  createdAt: new Date(json["created_at"]),
22097
22191
  description: json["description"],
@@ -22109,6 +22203,7 @@ function PlanDetailResponseDataToJSON(value) {
22109
22203
  return value;
22110
22204
  }
22111
22205
  return {
22206
+ audience_type: value["audienceType"],
22112
22207
  company_count: value["companyCount"],
22113
22208
  created_at: value["createdAt"].toISOString(),
22114
22209
  description: value["description"],
@@ -22470,7 +22565,6 @@ function CrmDealResponseDataFromJSONTyped(json, ignoreDiscriminator) {
22470
22565
  createdAt: new Date(json["created_at"]),
22471
22566
  dealExternalId: json["deal_external_id"],
22472
22567
  dealId: json["deal_id"],
22473
- deletedAt: json["deleted_at"] == null ? void 0 : new Date(json["deleted_at"]),
22474
22568
  environmentId: json["environment_id"],
22475
22569
  mrr: json["mrr"],
22476
22570
  name: json["name"] == null ? void 0 : json["name"],
@@ -22489,7 +22583,6 @@ function CrmDealResponseDataToJSON(value) {
22489
22583
  created_at: value["createdAt"].toISOString(),
22490
22584
  deal_external_id: value["dealExternalId"],
22491
22585
  deal_id: value["dealId"],
22492
- deleted_at: value["deletedAt"] == null ? void 0 : value["deletedAt"].toISOString(),
22493
22586
  environment_id: value["environmentId"],
22494
22587
  mrr: value["mrr"],
22495
22588
  name: value["name"],
@@ -22521,7 +22614,6 @@ function CrmLineItemResponseDataFromJSONTyped(json, ignoreDiscriminator) {
22521
22614
  accountId: json["account_id"],
22522
22615
  createdAt: new Date(json["created_at"]),
22523
22616
  dealId: json["deal_id"] == null ? void 0 : json["deal_id"],
22524
- deletedAt: json["deleted_at"] == null ? void 0 : new Date(json["deleted_at"]),
22525
22617
  environmentId: json["environment_id"],
22526
22618
  productExternalId: json["product_external_id"] == null ? void 0 : json["product_external_id"],
22527
22619
  updatedAt: new Date(json["updated_at"])
@@ -22535,7 +22627,6 @@ function CrmLineItemResponseDataToJSON(value) {
22535
22627
  account_id: value["accountId"],
22536
22628
  created_at: value["createdAt"].toISOString(),
22537
22629
  deal_id: value["dealId"],
22538
- deleted_at: value["deletedAt"] == null ? void 0 : value["deletedAt"].toISOString(),
22539
22630
  environment_id: value["environmentId"],
22540
22631
  product_external_id: value["productExternalId"],
22541
22632
  updated_at: value["updatedAt"].toISOString()
@@ -22577,7 +22668,6 @@ function CrmProductResponseDataFromJSONTyped(json, ignoreDiscriminator) {
22577
22668
  accountId: json["account_id"],
22578
22669
  createdAt: new Date(json["created_at"]),
22579
22670
  currency: json["currency"],
22580
- deletedAt: json["deleted_at"] == null ? void 0 : new Date(json["deleted_at"]),
22581
22671
  environmentId: json["environment_id"],
22582
22672
  externalId: json["external_id"],
22583
22673
  name: json["name"],
@@ -22595,7 +22685,6 @@ function CrmProductResponseDataToJSON(value) {
22595
22685
  account_id: value["accountId"],
22596
22686
  created_at: value["createdAt"].toISOString(),
22597
22687
  currency: value["currency"],
22598
- deleted_at: value["deletedAt"] == null ? void 0 : value["deletedAt"].toISOString(),
22599
22688
  environment_id: value["environmentId"],
22600
22689
  external_id: value["externalId"],
22601
22690
  name: value["name"],
@@ -25024,6 +25113,36 @@ function GetWebhookResponseToJSON(value) {
25024
25113
  };
25025
25114
  }
25026
25115
 
25116
+ // src/api/models/HydrateComponentResponse.ts
25117
+ function instanceOfHydrateComponentResponse(value) {
25118
+ if (!("data" in value) || value["data"] === void 0)
25119
+ return false;
25120
+ if (!("params" in value) || value["params"] === void 0)
25121
+ return false;
25122
+ return true;
25123
+ }
25124
+ function HydrateComponentResponseFromJSON(json) {
25125
+ return HydrateComponentResponseFromJSONTyped(json, false);
25126
+ }
25127
+ function HydrateComponentResponseFromJSONTyped(json, ignoreDiscriminator) {
25128
+ if (json == null) {
25129
+ return json;
25130
+ }
25131
+ return {
25132
+ data: ComponentHydrateViewFromJSON(json["data"]),
25133
+ params: json["params"]
25134
+ };
25135
+ }
25136
+ function HydrateComponentResponseToJSON(value) {
25137
+ if (value == null) {
25138
+ return value;
25139
+ }
25140
+ return {
25141
+ data: ComponentHydrateViewToJSON(value["data"]),
25142
+ params: value["params"]
25143
+ };
25144
+ }
25145
+
25027
25146
  // src/api/models/KeysRequestBody.ts
25028
25147
  function instanceOfKeysRequestBody(value) {
25029
25148
  if (!("keys" in value) || value["keys"] === void 0)
@@ -27310,6 +27429,10 @@ var UpdateComponentRequestBodyEntityTypeEnum = {
27310
27429
  Entitlement: "entitlement",
27311
27430
  Billing: "billing"
27312
27431
  };
27432
+ var UpdateComponentRequestBodyStateEnum = {
27433
+ Draft: "draft",
27434
+ Live: "live"
27435
+ };
27313
27436
  function instanceOfUpdateComponentRequestBody(value) {
27314
27437
  return true;
27315
27438
  }
@@ -27323,7 +27446,8 @@ function UpdateComponentRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
27323
27446
  return {
27324
27447
  ast: json["ast"] == null ? void 0 : json["ast"],
27325
27448
  entityType: json["entity_type"] == null ? void 0 : json["entity_type"],
27326
- name: json["name"] == null ? void 0 : json["name"]
27449
+ name: json["name"] == null ? void 0 : json["name"],
27450
+ state: json["state"] == null ? void 0 : json["state"]
27327
27451
  };
27328
27452
  }
27329
27453
  function UpdateComponentRequestBodyToJSON(value) {
@@ -27333,7 +27457,8 @@ function UpdateComponentRequestBodyToJSON(value) {
27333
27457
  return {
27334
27458
  ast: value["ast"],
27335
27459
  entity_type: value["entityType"],
27336
- name: value["name"]
27460
+ name: value["name"],
27461
+ state: value["state"]
27337
27462
  };
27338
27463
  }
27339
27464
 
@@ -27740,6 +27865,8 @@ var UpdatePlanRequestBodyPlanTypeEnum = {
27740
27865
  Other: "other"
27741
27866
  };
27742
27867
  function instanceOfUpdatePlanRequestBody(value) {
27868
+ if (!("audienceType" in value) || value["audienceType"] === void 0)
27869
+ return false;
27743
27870
  if (!("name" in value) || value["name"] === void 0)
27744
27871
  return false;
27745
27872
  return true;
@@ -27752,6 +27879,7 @@ function UpdatePlanRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
27752
27879
  return json;
27753
27880
  }
27754
27881
  return {
27882
+ audienceType: json["audience_type"],
27755
27883
  description: json["description"] == null ? void 0 : json["description"],
27756
27884
  name: json["name"],
27757
27885
  planType: json["plan_type"] == null ? void 0 : json["plan_type"]
@@ -27762,6 +27890,7 @@ function UpdatePlanRequestBodyToJSON(value) {
27762
27890
  return value;
27763
27891
  }
27764
27892
  return {
27893
+ audience_type: value["audienceType"],
27765
27894
  description: value["description"],
27766
27895
  name: value["name"],
27767
27896
  plan_type: value["planType"]
@@ -27982,6 +28111,62 @@ function UpdateWebhookResponseToJSON(value) {
27982
28111
  };
27983
28112
  }
27984
28113
 
28114
+ // src/api/models/UpsertBillingProductPlanResponse.ts
28115
+ function instanceOfUpsertBillingProductPlanResponse(value) {
28116
+ if (!("data" in value) || value["data"] === void 0)
28117
+ return false;
28118
+ if (!("params" in value) || value["params"] === void 0)
28119
+ return false;
28120
+ return true;
28121
+ }
28122
+ function UpsertBillingProductPlanResponseFromJSON(json) {
28123
+ return UpsertBillingProductPlanResponseFromJSONTyped(json, false);
28124
+ }
28125
+ function UpsertBillingProductPlanResponseFromJSONTyped(json, ignoreDiscriminator) {
28126
+ if (json == null) {
28127
+ return json;
28128
+ }
28129
+ return {
28130
+ data: BillingProductPlanResponseDataFromJSON(json["data"]),
28131
+ params: json["params"]
28132
+ };
28133
+ }
28134
+ function UpsertBillingProductPlanResponseToJSON(value) {
28135
+ if (value == null) {
28136
+ return value;
28137
+ }
28138
+ return {
28139
+ data: BillingProductPlanResponseDataToJSON(value["data"]),
28140
+ params: value["params"]
28141
+ };
28142
+ }
28143
+
28144
+ // src/api/models/UpsertBillingProductRequestBody.ts
28145
+ function instanceOfUpsertBillingProductRequestBody(value) {
28146
+ if (!("billingProductID" in value) || value["billingProductID"] === void 0)
28147
+ return false;
28148
+ return true;
28149
+ }
28150
+ function UpsertBillingProductRequestBodyFromJSON(json) {
28151
+ return UpsertBillingProductRequestBodyFromJSONTyped(json, false);
28152
+ }
28153
+ function UpsertBillingProductRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
28154
+ if (json == null) {
28155
+ return json;
28156
+ }
28157
+ return {
28158
+ billingProductID: json["BillingProductID"]
28159
+ };
28160
+ }
28161
+ function UpsertBillingProductRequestBodyToJSON(value) {
28162
+ if (value == null) {
28163
+ return value;
28164
+ }
28165
+ return {
28166
+ BillingProductID: value["billingProductID"]
28167
+ };
28168
+ }
28169
+
27985
28170
  // src/api/models/UpsertBillingProductResponse.ts
27986
28171
  function instanceOfUpsertBillingProductResponse(value) {
27987
28172
  if (!("data" in value) || value["data"] === void 0)
@@ -31020,6 +31205,50 @@ var ComponentsApi = class extends BaseAPI {
31020
31205
  );
31021
31206
  return await response.value();
31022
31207
  }
31208
+ /**
31209
+ * Hydrate component
31210
+ */
31211
+ async hydrateComponentRaw(requestParameters, initOverrides) {
31212
+ if (requestParameters["componentId"] == null) {
31213
+ throw new RequiredError(
31214
+ "componentId",
31215
+ 'Required parameter "componentId" was null or undefined when calling hydrateComponent().'
31216
+ );
31217
+ }
31218
+ const queryParameters = {};
31219
+ const headerParameters = {};
31220
+ if (this.configuration && this.configuration.apiKey) {
31221
+ headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
31222
+ "X-Schematic-Api-Key"
31223
+ );
31224
+ }
31225
+ const response = await this.request(
31226
+ {
31227
+ path: `/components/{component_id}/hydrate`.replace(
31228
+ `{${"component_id"}}`,
31229
+ encodeURIComponent(String(requestParameters["componentId"]))
31230
+ ),
31231
+ method: "GET",
31232
+ headers: headerParameters,
31233
+ query: queryParameters
31234
+ },
31235
+ initOverrides
31236
+ );
31237
+ return new JSONApiResponse(
31238
+ response,
31239
+ (jsonValue) => HydrateComponentResponseFromJSON(jsonValue)
31240
+ );
31241
+ }
31242
+ /**
31243
+ * Hydrate component
31244
+ */
31245
+ async hydrateComponent(requestParameters, initOverrides) {
31246
+ const response = await this.hydrateComponentRaw(
31247
+ requestParameters,
31248
+ initOverrides
31249
+ );
31250
+ return await response.value();
31251
+ }
31023
31252
  /**
31024
31253
  * List components
31025
31254
  */
@@ -34200,6 +34429,60 @@ var PlansApi = class extends BaseAPI {
34200
34429
  const response = await this.updatePlanRaw(requestParameters, initOverrides);
34201
34430
  return await response.value();
34202
34431
  }
34432
+ /**
34433
+ * Upsert billing product plan
34434
+ */
34435
+ async upsertBillingProductPlanRaw(requestParameters, initOverrides) {
34436
+ if (requestParameters["upsertBillingProductRequestBody"] == null) {
34437
+ throw new RequiredError(
34438
+ "upsertBillingProductRequestBody",
34439
+ 'Required parameter "upsertBillingProductRequestBody" was null or undefined when calling upsertBillingProductPlan().'
34440
+ );
34441
+ }
34442
+ if (requestParameters["planId"] == null) {
34443
+ throw new RequiredError(
34444
+ "planId",
34445
+ 'Required parameter "planId" was null or undefined when calling upsertBillingProductPlan().'
34446
+ );
34447
+ }
34448
+ const queryParameters = {};
34449
+ const headerParameters = {};
34450
+ headerParameters["Content-Type"] = "application/json";
34451
+ if (this.configuration && this.configuration.apiKey) {
34452
+ headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
34453
+ "X-Schematic-Api-Key"
34454
+ );
34455
+ }
34456
+ const response = await this.request(
34457
+ {
34458
+ path: `/plans/{plan_id}/billing_products`.replace(
34459
+ `{${"plan_id"}}`,
34460
+ encodeURIComponent(String(requestParameters["planId"]))
34461
+ ),
34462
+ method: "PUT",
34463
+ headers: headerParameters,
34464
+ query: queryParameters,
34465
+ body: UpsertBillingProductRequestBodyToJSON(
34466
+ requestParameters["upsertBillingProductRequestBody"]
34467
+ )
34468
+ },
34469
+ initOverrides
34470
+ );
34471
+ return new JSONApiResponse(
34472
+ response,
34473
+ (jsonValue) => UpsertBillingProductPlanResponseFromJSON(jsonValue)
34474
+ );
34475
+ }
34476
+ /**
34477
+ * Upsert billing product plan
34478
+ */
34479
+ async upsertBillingProductPlan(requestParameters, initOverrides) {
34480
+ const response = await this.upsertBillingProductPlanRaw(
34481
+ requestParameters,
34482
+ initOverrides
34483
+ );
34484
+ return await response.value();
34485
+ }
34203
34486
  };
34204
34487
 
34205
34488
  // src/api/apis/WebhooksApi.ts
@@ -34810,7 +35093,7 @@ var Schematic = class {
34810
35093
  constructor(apiKey, opts) {
34811
35094
  const { offline = false } = opts ?? {};
34812
35095
  const { basePath, flagDefaults = {} } = opts ?? {};
34813
- const version = "1.0.16";
35096
+ const version = "1.0.17";
34814
35097
  const headers = {
34815
35098
  "User-Agent": `schematic-typescript-node@v${version}`
34816
35099
  };
@@ -34951,6 +35234,9 @@ function init(apiKey, opts) {
34951
35234
  BASE_PATH,
34952
35235
  BaseAPI,
34953
35236
  BillingApi,
35237
+ BillingProductPlanResponseDataFromJSON,
35238
+ BillingProductPlanResponseDataFromJSONTyped,
35239
+ BillingProductPlanResponseDataToJSON,
34954
35240
  BillingProductResponseDataFromJSON,
34955
35241
  BillingProductResponseDataFromJSONTyped,
34956
35242
  BillingProductResponseDataToJSON,
@@ -35002,6 +35288,9 @@ function init(apiKey, opts) {
35002
35288
  CompanySubscriptionResponseDataFromJSON,
35003
35289
  CompanySubscriptionResponseDataFromJSONTyped,
35004
35290
  CompanySubscriptionResponseDataToJSON,
35291
+ ComponentHydrateViewFromJSON,
35292
+ ComponentHydrateViewFromJSONTyped,
35293
+ ComponentHydrateViewToJSON,
35005
35294
  ComponentResponseDataFromJSON,
35006
35295
  ComponentResponseDataFromJSONTyped,
35007
35296
  ComponentResponseDataToJSON,
@@ -35505,6 +35794,9 @@ function init(apiKey, opts) {
35505
35794
  GetWebhookResponseFromJSON,
35506
35795
  GetWebhookResponseFromJSONTyped,
35507
35796
  GetWebhookResponseToJSON,
35797
+ HydrateComponentResponseFromJSON,
35798
+ HydrateComponentResponseFromJSONTyped,
35799
+ HydrateComponentResponseToJSON,
35508
35800
  JSONApiResponse,
35509
35801
  KeysRequestBodyFromJSON,
35510
35802
  KeysRequestBodyFromJSONTyped,
@@ -35769,6 +36061,7 @@ function init(apiKey, opts) {
35769
36061
  UpdateComponentRequestBodyEntityTypeEnum,
35770
36062
  UpdateComponentRequestBodyFromJSON,
35771
36063
  UpdateComponentRequestBodyFromJSONTyped,
36064
+ UpdateComponentRequestBodyStateEnum,
35772
36065
  UpdateComponentRequestBodyToJSON,
35773
36066
  UpdateComponentResponseFromJSON,
35774
36067
  UpdateComponentResponseFromJSONTyped,
@@ -35834,6 +36127,12 @@ function init(apiKey, opts) {
35834
36127
  UpdateWebhookResponseFromJSON,
35835
36128
  UpdateWebhookResponseFromJSONTyped,
35836
36129
  UpdateWebhookResponseToJSON,
36130
+ UpsertBillingProductPlanResponseFromJSON,
36131
+ UpsertBillingProductPlanResponseFromJSONTyped,
36132
+ UpsertBillingProductPlanResponseToJSON,
36133
+ UpsertBillingProductRequestBodyFromJSON,
36134
+ UpsertBillingProductRequestBodyFromJSONTyped,
36135
+ UpsertBillingProductRequestBodyToJSON,
35837
36136
  UpsertBillingProductResponseFromJSON,
35838
36137
  UpsertBillingProductResponseFromJSONTyped,
35839
36138
  UpsertBillingProductResponseToJSON,
@@ -35901,6 +36200,7 @@ function init(apiKey, opts) {
35901
36200
  instanceOfApiKeyRequestResponseData,
35902
36201
  instanceOfApiKeyResponseData,
35903
36202
  instanceOfAudienceRequestBody,
36203
+ instanceOfBillingProductPlanResponseData,
35904
36204
  instanceOfBillingProductResponseData,
35905
36205
  instanceOfBillingSubscriptionResponseData,
35906
36206
  instanceOfCheckFlagOutputWithFlagKey,
@@ -35917,6 +36217,7 @@ function init(apiKey, opts) {
35917
36217
  instanceOfCompanyPlanResponseData,
35918
36218
  instanceOfCompanyResponseData,
35919
36219
  instanceOfCompanySubscriptionResponseData,
36220
+ instanceOfComponentHydrateView,
35920
36221
  instanceOfComponentResponseData,
35921
36222
  instanceOfCountApiKeysParams,
35922
36223
  instanceOfCountApiKeysResponse,
@@ -36072,6 +36373,7 @@ function init(apiKey, opts) {
36072
36373
  instanceOfGetUserResponse,
36073
36374
  instanceOfGetWebhookEventResponse,
36074
36375
  instanceOfGetWebhookResponse,
36376
+ instanceOfHydrateComponentResponse,
36075
36377
  instanceOfKeysRequestBody,
36076
36378
  instanceOfListApiKeysParams,
36077
36379
  instanceOfListApiKeysResponse,
@@ -36173,6 +36475,8 @@ function init(apiKey, opts) {
36173
36475
  instanceOfUpdateRuleRequestBody,
36174
36476
  instanceOfUpdateWebhookRequestBody,
36175
36477
  instanceOfUpdateWebhookResponse,
36478
+ instanceOfUpsertBillingProductPlanResponse,
36479
+ instanceOfUpsertBillingProductRequestBody,
36176
36480
  instanceOfUpsertBillingProductResponse,
36177
36481
  instanceOfUpsertBillingSubscriptionResponse,
36178
36482
  instanceOfUpsertCompanyRequestBody,