@schematichq/schematic-typescript-node 1.0.22 → 1.0.23

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.
@@ -15442,7 +15442,6 @@ __export(src_exports, {
15442
15442
  UpdatePlanEntitlementResponseToJSON: () => UpdatePlanEntitlementResponseToJSON,
15443
15443
  UpdatePlanRequestBodyFromJSON: () => UpdatePlanRequestBodyFromJSON,
15444
15444
  UpdatePlanRequestBodyFromJSONTyped: () => UpdatePlanRequestBodyFromJSONTyped,
15445
- UpdatePlanRequestBodyPlanTypeEnum: () => UpdatePlanRequestBodyPlanTypeEnum,
15446
15445
  UpdatePlanRequestBodyToJSON: () => UpdatePlanRequestBodyToJSON,
15447
15446
  UpdatePlanResponseFromJSON: () => UpdatePlanResponseFromJSON,
15448
15447
  UpdatePlanResponseFromJSONTyped: () => UpdatePlanResponseFromJSONTyped,
@@ -18803,6 +18802,8 @@ function EntityTraitDetailResponseDataToJSON(value) {
18803
18802
 
18804
18803
  // src/api/models/CompanyDetailResponseData.ts
18805
18804
  function instanceOfCompanyDetailResponseData(value) {
18805
+ if (!("addOns" in value) || value["addOns"] === void 0)
18806
+ return false;
18806
18807
  if (!("createdAt" in value) || value["createdAt"] === void 0)
18807
18808
  return false;
18808
18809
  if (!("entityTraits" in value) || value["entityTraits"] === void 0)
@@ -18831,6 +18832,7 @@ function CompanyDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
18831
18832
  return json;
18832
18833
  }
18833
18834
  return {
18835
+ addOns: json["add_ons"].map(PreviewObjectFromJSON),
18834
18836
  createdAt: new Date(json["created_at"]),
18835
18837
  entityTraits: json["entity_traits"].map(
18836
18838
  EntityTraitDetailResponseDataFromJSON
@@ -18841,6 +18843,7 @@ function CompanyDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
18841
18843
  lastSeenAt: json["last_seen_at"] == null ? void 0 : new Date(json["last_seen_at"]),
18842
18844
  logoUrl: json["logo_url"] == null ? void 0 : json["logo_url"],
18843
18845
  name: json["name"],
18846
+ plan: json["plan"] == null ? void 0 : PreviewObjectFromJSON(json["plan"]),
18844
18847
  plans: json["plans"].map(PreviewObjectFromJSON),
18845
18848
  traits: json["traits"] == null ? void 0 : json["traits"],
18846
18849
  updatedAt: new Date(json["updated_at"]),
@@ -18852,6 +18855,7 @@ function CompanyDetailResponseDataToJSON(value) {
18852
18855
  return value;
18853
18856
  }
18854
18857
  return {
18858
+ add_ons: value["addOns"].map(PreviewObjectToJSON),
18855
18859
  created_at: value["createdAt"].toISOString(),
18856
18860
  entity_traits: value["entityTraits"].map(
18857
18861
  EntityTraitDetailResponseDataToJSON
@@ -18862,6 +18866,7 @@ function CompanyDetailResponseDataToJSON(value) {
18862
18866
  last_seen_at: value["lastSeenAt"] == null ? void 0 : value["lastSeenAt"].toISOString(),
18863
18867
  logo_url: value["logoUrl"],
18864
18868
  name: value["name"],
18869
+ plan: PreviewObjectToJSON(value["plan"]),
18865
18870
  plans: value["plans"].map(PreviewObjectToJSON),
18866
18871
  traits: value["traits"],
18867
18872
  updated_at: value["updatedAt"].toISOString(),
@@ -22623,12 +22628,8 @@ function CreatePlanEntitlementResponseToJSON(value) {
22623
22628
 
22624
22629
  // src/api/models/CreatePlanRequestBody.ts
22625
22630
  var CreatePlanRequestBodyPlanTypeEnum = {
22626
- Product: "product",
22627
- PricingPlan: "pricing_plan",
22628
- AddOn: "add_on",
22629
- Overage: "overage",
22630
- BillableMetric: "billable_metric",
22631
- Other: "other"
22631
+ Plan: "plan",
22632
+ AddOn: "add_on"
22632
22633
  };
22633
22634
  function instanceOfCreatePlanRequestBody(value) {
22634
22635
  if (!("description" in value) || value["description"] === void 0)
@@ -28362,14 +28363,6 @@ function UpdatePlanEntitlementResponseToJSON(value) {
28362
28363
  }
28363
28364
 
28364
28365
  // src/api/models/UpdatePlanRequestBody.ts
28365
- var UpdatePlanRequestBodyPlanTypeEnum = {
28366
- Product: "product",
28367
- PricingPlan: "pricing_plan",
28368
- AddOn: "add_on",
28369
- Overage: "overage",
28370
- BillableMetric: "billable_metric",
28371
- Other: "other"
28372
- };
28373
28366
  function instanceOfUpdatePlanRequestBody(value) {
28374
28367
  if (!("audienceType" in value) || value["audienceType"] === void 0)
28375
28368
  return false;
@@ -28388,8 +28381,7 @@ function UpdatePlanRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
28388
28381
  audienceType: json["audience_type"],
28389
28382
  description: json["description"] == null ? void 0 : json["description"],
28390
28383
  icon: json["icon"] == null ? void 0 : json["icon"],
28391
- name: json["name"],
28392
- planType: json["plan_type"] == null ? void 0 : json["plan_type"]
28384
+ name: json["name"]
28393
28385
  };
28394
28386
  }
28395
28387
  function UpdatePlanRequestBodyToJSON(value) {
@@ -28400,8 +28392,7 @@ function UpdatePlanRequestBodyToJSON(value) {
28400
28392
  audience_type: value["audienceType"],
28401
28393
  description: value["description"],
28402
28394
  icon: value["icon"],
28403
- name: value["name"],
28404
- plan_type: value["planType"]
28395
+ name: value["name"]
28405
28396
  };
28406
28397
  }
28407
28398
 
@@ -35763,7 +35754,7 @@ var Schematic = class {
35763
35754
  constructor(apiKey, opts) {
35764
35755
  const { offline = false } = opts ?? {};
35765
35756
  const { basePath, flagDefaults = {} } = opts ?? {};
35766
- const version = "1.0.22";
35757
+ const version = "1.0.23";
35767
35758
  const headers = {
35768
35759
  "User-Agent": `schematic-typescript-node@v${version}`
35769
35760
  };
@@ -36808,7 +36799,6 @@ function init(apiKey, opts) {
36808
36799
  UpdatePlanEntitlementResponseToJSON,
36809
36800
  UpdatePlanRequestBodyFromJSON,
36810
36801
  UpdatePlanRequestBodyFromJSONTyped,
36811
- UpdatePlanRequestBodyPlanTypeEnum,
36812
36802
  UpdatePlanRequestBodyToJSON,
36813
36803
  UpdatePlanResponseFromJSON,
36814
36804
  UpdatePlanResponseFromJSONTyped,
@@ -1791,7 +1791,6 @@ declare namespace api {
1791
1791
  UpdatePlanRequestBodyFromJSONTyped,
1792
1792
  UpdatePlanRequestBodyToJSON,
1793
1793
  UpdatePlanRequestBody,
1794
- UpdatePlanRequestBodyPlanTypeEnum,
1795
1794
  instanceOfUpdatePlanResponse,
1796
1795
  UpdatePlanResponseFromJSON,
1797
1796
  UpdatePlanResponseFromJSONTyped,
@@ -3650,6 +3649,12 @@ export declare function CompanyCrmDealsResponseDataToJSON(value?: CompanyCrmDeal
3650
3649
  * @interface CompanyDetailResponseData
3651
3650
  */
3652
3651
  export declare interface CompanyDetailResponseData {
3652
+ /**
3653
+ *
3654
+ * @type {Array<PreviewObject>}
3655
+ * @memberof CompanyDetailResponseData
3656
+ */
3657
+ addOns: Array<PreviewObject>;
3653
3658
  /**
3654
3659
  *
3655
3660
  * @type {Date}
@@ -3698,6 +3703,12 @@ export declare interface CompanyDetailResponseData {
3698
3703
  * @memberof CompanyDetailResponseData
3699
3704
  */
3700
3705
  name: string;
3706
+ /**
3707
+ *
3708
+ * @type {PreviewObject}
3709
+ * @memberof CompanyDetailResponseData
3710
+ */
3711
+ plan?: PreviewObject;
3701
3712
  /**
3702
3713
  *
3703
3714
  * @type {Array<PreviewObject>}
@@ -7857,12 +7868,8 @@ export declare function CreatePlanRequestBodyFromJSONTyped(json: any, ignoreDisc
7857
7868
  * @export
7858
7869
  */
7859
7870
  export declare const CreatePlanRequestBodyPlanTypeEnum: {
7860
- readonly Product: "product";
7861
- readonly PricingPlan: "pricing_plan";
7871
+ readonly Plan: "plan";
7862
7872
  readonly AddOn: "add_on";
7863
- readonly Overage: "overage";
7864
- readonly BillableMetric: "billable_metric";
7865
- readonly Other: "other";
7866
7873
  };
7867
7874
 
7868
7875
  export declare type CreatePlanRequestBodyPlanTypeEnum = (typeof CreatePlanRequestBodyPlanTypeEnum)[keyof typeof CreatePlanRequestBodyPlanTypeEnum];
@@ -19075,32 +19082,12 @@ export declare interface UpdatePlanRequestBody {
19075
19082
  * @memberof UpdatePlanRequestBody
19076
19083
  */
19077
19084
  name: string;
19078
- /**
19079
- *
19080
- * @type {string}
19081
- * @memberof UpdatePlanRequestBody
19082
- */
19083
- planType?: UpdatePlanRequestBodyPlanTypeEnum;
19084
19085
  }
19085
19086
 
19086
19087
  export declare function UpdatePlanRequestBodyFromJSON(json: any): UpdatePlanRequestBody;
19087
19088
 
19088
19089
  export declare function UpdatePlanRequestBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdatePlanRequestBody;
19089
19090
 
19090
- /**
19091
- * @export
19092
- */
19093
- export declare const UpdatePlanRequestBodyPlanTypeEnum: {
19094
- readonly Product: "product";
19095
- readonly PricingPlan: "pricing_plan";
19096
- readonly AddOn: "add_on";
19097
- readonly Overage: "overage";
19098
- readonly BillableMetric: "billable_metric";
19099
- readonly Other: "other";
19100
- };
19101
-
19102
- export declare type UpdatePlanRequestBodyPlanTypeEnum = (typeof UpdatePlanRequestBodyPlanTypeEnum)[keyof typeof UpdatePlanRequestBodyPlanTypeEnum];
19103
-
19104
19091
  export declare function UpdatePlanRequestBodyToJSON(value?: UpdatePlanRequestBody | null): any;
19105
19092
 
19106
19093
  /**
@@ -17467,6 +17467,8 @@ function EntityTraitDetailResponseDataToJSON(value) {
17467
17467
 
17468
17468
  // src/api/models/CompanyDetailResponseData.ts
17469
17469
  function instanceOfCompanyDetailResponseData(value) {
17470
+ if (!("addOns" in value) || value["addOns"] === void 0)
17471
+ return false;
17470
17472
  if (!("createdAt" in value) || value["createdAt"] === void 0)
17471
17473
  return false;
17472
17474
  if (!("entityTraits" in value) || value["entityTraits"] === void 0)
@@ -17495,6 +17497,7 @@ function CompanyDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
17495
17497
  return json;
17496
17498
  }
17497
17499
  return {
17500
+ addOns: json["add_ons"].map(PreviewObjectFromJSON),
17498
17501
  createdAt: new Date(json["created_at"]),
17499
17502
  entityTraits: json["entity_traits"].map(
17500
17503
  EntityTraitDetailResponseDataFromJSON
@@ -17505,6 +17508,7 @@ function CompanyDetailResponseDataFromJSONTyped(json, ignoreDiscriminator) {
17505
17508
  lastSeenAt: json["last_seen_at"] == null ? void 0 : new Date(json["last_seen_at"]),
17506
17509
  logoUrl: json["logo_url"] == null ? void 0 : json["logo_url"],
17507
17510
  name: json["name"],
17511
+ plan: json["plan"] == null ? void 0 : PreviewObjectFromJSON(json["plan"]),
17508
17512
  plans: json["plans"].map(PreviewObjectFromJSON),
17509
17513
  traits: json["traits"] == null ? void 0 : json["traits"],
17510
17514
  updatedAt: new Date(json["updated_at"]),
@@ -17516,6 +17520,7 @@ function CompanyDetailResponseDataToJSON(value) {
17516
17520
  return value;
17517
17521
  }
17518
17522
  return {
17523
+ add_ons: value["addOns"].map(PreviewObjectToJSON),
17519
17524
  created_at: value["createdAt"].toISOString(),
17520
17525
  entity_traits: value["entityTraits"].map(
17521
17526
  EntityTraitDetailResponseDataToJSON
@@ -17526,6 +17531,7 @@ function CompanyDetailResponseDataToJSON(value) {
17526
17531
  last_seen_at: value["lastSeenAt"] == null ? void 0 : value["lastSeenAt"].toISOString(),
17527
17532
  logo_url: value["logoUrl"],
17528
17533
  name: value["name"],
17534
+ plan: PreviewObjectToJSON(value["plan"]),
17529
17535
  plans: value["plans"].map(PreviewObjectToJSON),
17530
17536
  traits: value["traits"],
17531
17537
  updated_at: value["updatedAt"].toISOString(),
@@ -21287,12 +21293,8 @@ function CreatePlanEntitlementResponseToJSON(value) {
21287
21293
 
21288
21294
  // src/api/models/CreatePlanRequestBody.ts
21289
21295
  var CreatePlanRequestBodyPlanTypeEnum = {
21290
- Product: "product",
21291
- PricingPlan: "pricing_plan",
21292
- AddOn: "add_on",
21293
- Overage: "overage",
21294
- BillableMetric: "billable_metric",
21295
- Other: "other"
21296
+ Plan: "plan",
21297
+ AddOn: "add_on"
21296
21298
  };
21297
21299
  function instanceOfCreatePlanRequestBody(value) {
21298
21300
  if (!("description" in value) || value["description"] === void 0)
@@ -27026,14 +27028,6 @@ function UpdatePlanEntitlementResponseToJSON(value) {
27026
27028
  }
27027
27029
 
27028
27030
  // src/api/models/UpdatePlanRequestBody.ts
27029
- var UpdatePlanRequestBodyPlanTypeEnum = {
27030
- Product: "product",
27031
- PricingPlan: "pricing_plan",
27032
- AddOn: "add_on",
27033
- Overage: "overage",
27034
- BillableMetric: "billable_metric",
27035
- Other: "other"
27036
- };
27037
27031
  function instanceOfUpdatePlanRequestBody(value) {
27038
27032
  if (!("audienceType" in value) || value["audienceType"] === void 0)
27039
27033
  return false;
@@ -27052,8 +27046,7 @@ function UpdatePlanRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
27052
27046
  audienceType: json["audience_type"],
27053
27047
  description: json["description"] == null ? void 0 : json["description"],
27054
27048
  icon: json["icon"] == null ? void 0 : json["icon"],
27055
- name: json["name"],
27056
- planType: json["plan_type"] == null ? void 0 : json["plan_type"]
27049
+ name: json["name"]
27057
27050
  };
27058
27051
  }
27059
27052
  function UpdatePlanRequestBodyToJSON(value) {
@@ -27064,8 +27057,7 @@ function UpdatePlanRequestBodyToJSON(value) {
27064
27057
  audience_type: value["audienceType"],
27065
27058
  description: value["description"],
27066
27059
  icon: value["icon"],
27067
- name: value["name"],
27068
- plan_type: value["planType"]
27060
+ name: value["name"]
27069
27061
  };
27070
27062
  }
27071
27063
 
@@ -34427,7 +34419,7 @@ var Schematic = class {
34427
34419
  constructor(apiKey, opts) {
34428
34420
  const { offline = false } = opts ?? {};
34429
34421
  const { basePath, flagDefaults = {} } = opts ?? {};
34430
- const version = "1.0.22";
34422
+ const version = "1.0.23";
34431
34423
  const headers = {
34432
34424
  "User-Agent": `schematic-typescript-node@v${version}`
34433
34425
  };
@@ -35471,7 +35463,6 @@ export {
35471
35463
  UpdatePlanEntitlementResponseToJSON,
35472
35464
  UpdatePlanRequestBodyFromJSON,
35473
35465
  UpdatePlanRequestBodyFromJSONTyped,
35474
- UpdatePlanRequestBodyPlanTypeEnum,
35475
35466
  UpdatePlanRequestBodyToJSON,
35476
35467
  UpdatePlanResponseFromJSON,
35477
35468
  UpdatePlanResponseFromJSONTyped,
package/package.json CHANGED
@@ -63,5 +63,5 @@
63
63
  "release": "npx standard-version && git push --follow-tags && yarn publish",
64
64
  "test": "jest"
65
65
  },
66
- "version": "1.0.22"
66
+ "version": "1.0.23"
67
67
  }