@schematichq/schematic-typescript-node 1.0.13 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/schematic.cjs.js +730 -1
- package/dist/schematic.d.ts +624 -1
- package/dist/schematic.esm.js +683 -1
- package/package.json +1 -1
package/dist/schematic.cjs.js
CHANGED
|
@@ -14590,6 +14590,10 @@ __export(src_exports, {
|
|
|
14590
14590
|
CompanySubscriptionResponseDataFromJSON: () => CompanySubscriptionResponseDataFromJSON,
|
|
14591
14591
|
CompanySubscriptionResponseDataFromJSONTyped: () => CompanySubscriptionResponseDataFromJSONTyped,
|
|
14592
14592
|
CompanySubscriptionResponseDataToJSON: () => CompanySubscriptionResponseDataToJSON,
|
|
14593
|
+
ComponentResponseDataFromJSON: () => ComponentResponseDataFromJSON,
|
|
14594
|
+
ComponentResponseDataFromJSONTyped: () => ComponentResponseDataFromJSONTyped,
|
|
14595
|
+
ComponentResponseDataToJSON: () => ComponentResponseDataToJSON,
|
|
14596
|
+
ComponentsApi: () => ComponentsApi,
|
|
14593
14597
|
Configuration: () => Configuration,
|
|
14594
14598
|
CountApiKeysParamsFromJSON: () => CountApiKeysParamsFromJSON,
|
|
14595
14599
|
CountApiKeysParamsFromJSONTyped: () => CountApiKeysParamsFromJSONTyped,
|
|
@@ -14621,6 +14625,12 @@ __export(src_exports, {
|
|
|
14621
14625
|
CountCompanyOverridesResponseFromJSON: () => CountCompanyOverridesResponseFromJSON,
|
|
14622
14626
|
CountCompanyOverridesResponseFromJSONTyped: () => CountCompanyOverridesResponseFromJSONTyped,
|
|
14623
14627
|
CountCompanyOverridesResponseToJSON: () => CountCompanyOverridesResponseToJSON,
|
|
14628
|
+
CountComponentsParamsFromJSON: () => CountComponentsParamsFromJSON,
|
|
14629
|
+
CountComponentsParamsFromJSONTyped: () => CountComponentsParamsFromJSONTyped,
|
|
14630
|
+
CountComponentsParamsToJSON: () => CountComponentsParamsToJSON,
|
|
14631
|
+
CountComponentsResponseFromJSON: () => CountComponentsResponseFromJSON,
|
|
14632
|
+
CountComponentsResponseFromJSONTyped: () => CountComponentsResponseFromJSONTyped,
|
|
14633
|
+
CountComponentsResponseToJSON: () => CountComponentsResponseToJSON,
|
|
14624
14634
|
CountEntityKeyDefinitionsEntityTypeEnum: () => CountEntityKeyDefinitionsEntityTypeEnum,
|
|
14625
14635
|
CountEntityKeyDefinitionsParamsEntityTypeEnum: () => CountEntityKeyDefinitionsParamsEntityTypeEnum,
|
|
14626
14636
|
CountEntityKeyDefinitionsParamsFromJSON: () => CountEntityKeyDefinitionsParamsFromJSON,
|
|
@@ -14731,6 +14741,13 @@ __export(src_exports, {
|
|
|
14731
14741
|
CreateCompanyResponseFromJSON: () => CreateCompanyResponseFromJSON,
|
|
14732
14742
|
CreateCompanyResponseFromJSONTyped: () => CreateCompanyResponseFromJSONTyped,
|
|
14733
14743
|
CreateCompanyResponseToJSON: () => CreateCompanyResponseToJSON,
|
|
14744
|
+
CreateComponentRequestBodyEntityTypeEnum: () => CreateComponentRequestBodyEntityTypeEnum,
|
|
14745
|
+
CreateComponentRequestBodyFromJSON: () => CreateComponentRequestBodyFromJSON,
|
|
14746
|
+
CreateComponentRequestBodyFromJSONTyped: () => CreateComponentRequestBodyFromJSONTyped,
|
|
14747
|
+
CreateComponentRequestBodyToJSON: () => CreateComponentRequestBodyToJSON,
|
|
14748
|
+
CreateComponentResponseFromJSON: () => CreateComponentResponseFromJSON,
|
|
14749
|
+
CreateComponentResponseFromJSONTyped: () => CreateComponentResponseFromJSONTyped,
|
|
14750
|
+
CreateComponentResponseToJSON: () => CreateComponentResponseToJSON,
|
|
14734
14751
|
CreateCrmDealLineItemAssociationRequestBodyFromJSON: () => CreateCrmDealLineItemAssociationRequestBodyFromJSON,
|
|
14735
14752
|
CreateCrmDealLineItemAssociationRequestBodyFromJSONTyped: () => CreateCrmDealLineItemAssociationRequestBodyFromJSONTyped,
|
|
14736
14753
|
CreateCrmDealLineItemAssociationRequestBodyToJSON: () => CreateCrmDealLineItemAssociationRequestBodyToJSON,
|
|
@@ -14859,6 +14876,9 @@ __export(src_exports, {
|
|
|
14859
14876
|
DeleteCompanyResponseFromJSON: () => DeleteCompanyResponseFromJSON,
|
|
14860
14877
|
DeleteCompanyResponseFromJSONTyped: () => DeleteCompanyResponseFromJSONTyped,
|
|
14861
14878
|
DeleteCompanyResponseToJSON: () => DeleteCompanyResponseToJSON,
|
|
14879
|
+
DeleteComponentResponseFromJSON: () => DeleteComponentResponseFromJSON,
|
|
14880
|
+
DeleteComponentResponseFromJSONTyped: () => DeleteComponentResponseFromJSONTyped,
|
|
14881
|
+
DeleteComponentResponseToJSON: () => DeleteComponentResponseToJSON,
|
|
14862
14882
|
DeleteEnvironmentResponseFromJSON: () => DeleteEnvironmentResponseFromJSON,
|
|
14863
14883
|
DeleteEnvironmentResponseFromJSONTyped: () => DeleteEnvironmentResponseFromJSONTyped,
|
|
14864
14884
|
DeleteEnvironmentResponseToJSON: () => DeleteEnvironmentResponseToJSON,
|
|
@@ -14998,6 +15018,9 @@ __export(src_exports, {
|
|
|
14998
15018
|
GetCompanyResponseFromJSON: () => GetCompanyResponseFromJSON,
|
|
14999
15019
|
GetCompanyResponseFromJSONTyped: () => GetCompanyResponseFromJSONTyped,
|
|
15000
15020
|
GetCompanyResponseToJSON: () => GetCompanyResponseToJSON,
|
|
15021
|
+
GetComponentResponseFromJSON: () => GetComponentResponseFromJSON,
|
|
15022
|
+
GetComponentResponseFromJSONTyped: () => GetComponentResponseFromJSONTyped,
|
|
15023
|
+
GetComponentResponseToJSON: () => GetComponentResponseToJSON,
|
|
15001
15024
|
GetEntityTraitDefinitionResponseFromJSON: () => GetEntityTraitDefinitionResponseFromJSON,
|
|
15002
15025
|
GetEntityTraitDefinitionResponseFromJSONTyped: () => GetEntityTraitDefinitionResponseFromJSONTyped,
|
|
15003
15026
|
GetEntityTraitDefinitionResponseToJSON: () => GetEntityTraitDefinitionResponseToJSON,
|
|
@@ -15116,6 +15139,12 @@ __export(src_exports, {
|
|
|
15116
15139
|
ListCompanyPlansResponseFromJSON: () => ListCompanyPlansResponseFromJSON,
|
|
15117
15140
|
ListCompanyPlansResponseFromJSONTyped: () => ListCompanyPlansResponseFromJSONTyped,
|
|
15118
15141
|
ListCompanyPlansResponseToJSON: () => ListCompanyPlansResponseToJSON,
|
|
15142
|
+
ListComponentsParamsFromJSON: () => ListComponentsParamsFromJSON,
|
|
15143
|
+
ListComponentsParamsFromJSONTyped: () => ListComponentsParamsFromJSONTyped,
|
|
15144
|
+
ListComponentsParamsToJSON: () => ListComponentsParamsToJSON,
|
|
15145
|
+
ListComponentsResponseFromJSON: () => ListComponentsResponseFromJSON,
|
|
15146
|
+
ListComponentsResponseFromJSONTyped: () => ListComponentsResponseFromJSONTyped,
|
|
15147
|
+
ListComponentsResponseToJSON: () => ListComponentsResponseToJSON,
|
|
15119
15148
|
ListCrmProductsParamsFromJSON: () => ListCrmProductsParamsFromJSON,
|
|
15120
15149
|
ListCrmProductsParamsFromJSONTyped: () => ListCrmProductsParamsFromJSONTyped,
|
|
15121
15150
|
ListCrmProductsParamsToJSON: () => ListCrmProductsParamsToJSON,
|
|
@@ -15325,6 +15354,13 @@ __export(src_exports, {
|
|
|
15325
15354
|
UpdateCompanyOverrideResponseFromJSON: () => UpdateCompanyOverrideResponseFromJSON,
|
|
15326
15355
|
UpdateCompanyOverrideResponseFromJSONTyped: () => UpdateCompanyOverrideResponseFromJSONTyped,
|
|
15327
15356
|
UpdateCompanyOverrideResponseToJSON: () => UpdateCompanyOverrideResponseToJSON,
|
|
15357
|
+
UpdateComponentRequestBodyEntityTypeEnum: () => UpdateComponentRequestBodyEntityTypeEnum,
|
|
15358
|
+
UpdateComponentRequestBodyFromJSON: () => UpdateComponentRequestBodyFromJSON,
|
|
15359
|
+
UpdateComponentRequestBodyFromJSONTyped: () => UpdateComponentRequestBodyFromJSONTyped,
|
|
15360
|
+
UpdateComponentRequestBodyToJSON: () => UpdateComponentRequestBodyToJSON,
|
|
15361
|
+
UpdateComponentResponseFromJSON: () => UpdateComponentResponseFromJSON,
|
|
15362
|
+
UpdateComponentResponseFromJSONTyped: () => UpdateComponentResponseFromJSONTyped,
|
|
15363
|
+
UpdateComponentResponseToJSON: () => UpdateComponentResponseToJSON,
|
|
15328
15364
|
UpdateEntityTraitDefinitionRequestBodyFromJSON: () => UpdateEntityTraitDefinitionRequestBodyFromJSON,
|
|
15329
15365
|
UpdateEntityTraitDefinitionRequestBodyFromJSONTyped: () => UpdateEntityTraitDefinitionRequestBodyFromJSONTyped,
|
|
15330
15366
|
UpdateEntityTraitDefinitionRequestBodyToJSON: () => UpdateEntityTraitDefinitionRequestBodyToJSON,
|
|
@@ -15469,6 +15505,7 @@ __export(src_exports, {
|
|
|
15469
15505
|
instanceOfCompanyPlanResponseData: () => instanceOfCompanyPlanResponseData,
|
|
15470
15506
|
instanceOfCompanyResponseData: () => instanceOfCompanyResponseData,
|
|
15471
15507
|
instanceOfCompanySubscriptionResponseData: () => instanceOfCompanySubscriptionResponseData,
|
|
15508
|
+
instanceOfComponentResponseData: () => instanceOfComponentResponseData,
|
|
15472
15509
|
instanceOfCountApiKeysParams: () => instanceOfCountApiKeysParams,
|
|
15473
15510
|
instanceOfCountApiKeysResponse: () => instanceOfCountApiKeysResponse,
|
|
15474
15511
|
instanceOfCountApiRequestsParams: () => instanceOfCountApiRequestsParams,
|
|
@@ -15479,6 +15516,8 @@ __export(src_exports, {
|
|
|
15479
15516
|
instanceOfCountCompaniesResponse: () => instanceOfCountCompaniesResponse,
|
|
15480
15517
|
instanceOfCountCompanyOverridesParams: () => instanceOfCountCompanyOverridesParams,
|
|
15481
15518
|
instanceOfCountCompanyOverridesResponse: () => instanceOfCountCompanyOverridesResponse,
|
|
15519
|
+
instanceOfCountComponentsParams: () => instanceOfCountComponentsParams,
|
|
15520
|
+
instanceOfCountComponentsResponse: () => instanceOfCountComponentsResponse,
|
|
15482
15521
|
instanceOfCountEntityKeyDefinitionsParams: () => instanceOfCountEntityKeyDefinitionsParams,
|
|
15483
15522
|
instanceOfCountEntityKeyDefinitionsResponse: () => instanceOfCountEntityKeyDefinitionsResponse,
|
|
15484
15523
|
instanceOfCountEntityTraitDefinitionsParams: () => instanceOfCountEntityTraitDefinitionsParams,
|
|
@@ -15513,6 +15552,8 @@ __export(src_exports, {
|
|
|
15513
15552
|
instanceOfCreateCompanyOverrideRequestBody: () => instanceOfCreateCompanyOverrideRequestBody,
|
|
15514
15553
|
instanceOfCreateCompanyOverrideResponse: () => instanceOfCreateCompanyOverrideResponse,
|
|
15515
15554
|
instanceOfCreateCompanyResponse: () => instanceOfCreateCompanyResponse,
|
|
15555
|
+
instanceOfCreateComponentRequestBody: () => instanceOfCreateComponentRequestBody,
|
|
15556
|
+
instanceOfCreateComponentResponse: () => instanceOfCreateComponentResponse,
|
|
15516
15557
|
instanceOfCreateCrmDealLineItemAssociationRequestBody: () => instanceOfCreateCrmDealLineItemAssociationRequestBody,
|
|
15517
15558
|
instanceOfCreateCrmDealRequestBody: () => instanceOfCreateCrmDealRequestBody,
|
|
15518
15559
|
instanceOfCreateCrmLineItemRequestBody: () => instanceOfCreateCrmLineItemRequestBody,
|
|
@@ -15550,6 +15591,7 @@ __export(src_exports, {
|
|
|
15550
15591
|
instanceOfDeleteCompanyMembershipResponse: () => instanceOfDeleteCompanyMembershipResponse,
|
|
15551
15592
|
instanceOfDeleteCompanyOverrideResponse: () => instanceOfDeleteCompanyOverrideResponse,
|
|
15552
15593
|
instanceOfDeleteCompanyResponse: () => instanceOfDeleteCompanyResponse,
|
|
15594
|
+
instanceOfDeleteComponentResponse: () => instanceOfDeleteComponentResponse,
|
|
15553
15595
|
instanceOfDeleteEnvironmentResponse: () => instanceOfDeleteEnvironmentResponse,
|
|
15554
15596
|
instanceOfDeleteFeatureResponse: () => instanceOfDeleteFeatureResponse,
|
|
15555
15597
|
instanceOfDeleteFlagResponse: () => instanceOfDeleteFlagResponse,
|
|
@@ -15593,6 +15635,7 @@ __export(src_exports, {
|
|
|
15593
15635
|
instanceOfGetAudienceResponse: () => instanceOfGetAudienceResponse,
|
|
15594
15636
|
instanceOfGetCompanyOverrideResponse: () => instanceOfGetCompanyOverrideResponse,
|
|
15595
15637
|
instanceOfGetCompanyResponse: () => instanceOfGetCompanyResponse,
|
|
15638
|
+
instanceOfGetComponentResponse: () => instanceOfGetComponentResponse,
|
|
15596
15639
|
instanceOfGetEntityTraitDefinitionResponse: () => instanceOfGetEntityTraitDefinitionResponse,
|
|
15597
15640
|
instanceOfGetEntityTraitValuesParams: () => instanceOfGetEntityTraitValuesParams,
|
|
15598
15641
|
instanceOfGetEntityTraitValuesResponse: () => instanceOfGetEntityTraitValuesResponse,
|
|
@@ -15632,6 +15675,8 @@ __export(src_exports, {
|
|
|
15632
15675
|
instanceOfListCompanyOverridesResponse: () => instanceOfListCompanyOverridesResponse,
|
|
15633
15676
|
instanceOfListCompanyPlansParams: () => instanceOfListCompanyPlansParams,
|
|
15634
15677
|
instanceOfListCompanyPlansResponse: () => instanceOfListCompanyPlansResponse,
|
|
15678
|
+
instanceOfListComponentsParams: () => instanceOfListComponentsParams,
|
|
15679
|
+
instanceOfListComponentsResponse: () => instanceOfListComponentsResponse,
|
|
15635
15680
|
instanceOfListCrmProductsParams: () => instanceOfListCrmProductsParams,
|
|
15636
15681
|
instanceOfListCrmProductsResponse: () => instanceOfListCrmProductsResponse,
|
|
15637
15682
|
instanceOfListEntityKeyDefinitionsParams: () => instanceOfListEntityKeyDefinitionsParams,
|
|
@@ -15697,6 +15742,8 @@ __export(src_exports, {
|
|
|
15697
15742
|
instanceOfUpdateAudienceResponse: () => instanceOfUpdateAudienceResponse,
|
|
15698
15743
|
instanceOfUpdateCompanyOverrideRequestBody: () => instanceOfUpdateCompanyOverrideRequestBody,
|
|
15699
15744
|
instanceOfUpdateCompanyOverrideResponse: () => instanceOfUpdateCompanyOverrideResponse,
|
|
15745
|
+
instanceOfUpdateComponentRequestBody: () => instanceOfUpdateComponentRequestBody,
|
|
15746
|
+
instanceOfUpdateComponentResponse: () => instanceOfUpdateComponentResponse,
|
|
15700
15747
|
instanceOfUpdateEntityTraitDefinitionRequestBody: () => instanceOfUpdateEntityTraitDefinitionRequestBody,
|
|
15701
15748
|
instanceOfUpdateEntityTraitDefinitionResponse: () => instanceOfUpdateEntityTraitDefinitionResponse,
|
|
15702
15749
|
instanceOfUpdateEnvironmentRequestBody: () => instanceOfUpdateEnvironmentRequestBody,
|
|
@@ -18788,6 +18835,52 @@ function CompanySubscriptionResponseDataToJSON(value) {
|
|
|
18788
18835
|
};
|
|
18789
18836
|
}
|
|
18790
18837
|
|
|
18838
|
+
// src/api/models/ComponentResponseData.ts
|
|
18839
|
+
function instanceOfComponentResponseData(value) {
|
|
18840
|
+
if (!("ast" in value) || value["ast"] === void 0)
|
|
18841
|
+
return false;
|
|
18842
|
+
if (!("createdAt" in value) || value["createdAt"] === void 0)
|
|
18843
|
+
return false;
|
|
18844
|
+
if (!("id" in value) || value["id"] === void 0)
|
|
18845
|
+
return false;
|
|
18846
|
+
if (!("name" in value) || value["name"] === void 0)
|
|
18847
|
+
return false;
|
|
18848
|
+
if (!("type" in value) || value["type"] === void 0)
|
|
18849
|
+
return false;
|
|
18850
|
+
if (!("updatedAt" in value) || value["updatedAt"] === void 0)
|
|
18851
|
+
return false;
|
|
18852
|
+
return true;
|
|
18853
|
+
}
|
|
18854
|
+
function ComponentResponseDataFromJSON(json) {
|
|
18855
|
+
return ComponentResponseDataFromJSONTyped(json, false);
|
|
18856
|
+
}
|
|
18857
|
+
function ComponentResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
18858
|
+
if (json == null) {
|
|
18859
|
+
return json;
|
|
18860
|
+
}
|
|
18861
|
+
return {
|
|
18862
|
+
ast: json["ast"],
|
|
18863
|
+
createdAt: new Date(json["created_at"]),
|
|
18864
|
+
id: json["id"],
|
|
18865
|
+
name: json["name"],
|
|
18866
|
+
type: json["type"],
|
|
18867
|
+
updatedAt: new Date(json["updated_at"])
|
|
18868
|
+
};
|
|
18869
|
+
}
|
|
18870
|
+
function ComponentResponseDataToJSON(value) {
|
|
18871
|
+
if (value == null) {
|
|
18872
|
+
return value;
|
|
18873
|
+
}
|
|
18874
|
+
return {
|
|
18875
|
+
ast: value["ast"],
|
|
18876
|
+
created_at: value["createdAt"].toISOString(),
|
|
18877
|
+
id: value["id"],
|
|
18878
|
+
name: value["name"],
|
|
18879
|
+
type: value["type"],
|
|
18880
|
+
updated_at: value["updatedAt"].toISOString()
|
|
18881
|
+
};
|
|
18882
|
+
}
|
|
18883
|
+
|
|
18791
18884
|
// src/api/models/CountApiKeysParams.ts
|
|
18792
18885
|
function instanceOfCountApiKeysParams(value) {
|
|
18793
18886
|
return true;
|
|
@@ -19128,6 +19221,64 @@ function CountCompanyOverridesResponseToJSON(value) {
|
|
|
19128
19221
|
};
|
|
19129
19222
|
}
|
|
19130
19223
|
|
|
19224
|
+
// src/api/models/CountComponentsParams.ts
|
|
19225
|
+
function instanceOfCountComponentsParams(value) {
|
|
19226
|
+
return true;
|
|
19227
|
+
}
|
|
19228
|
+
function CountComponentsParamsFromJSON(json) {
|
|
19229
|
+
return CountComponentsParamsFromJSONTyped(json, false);
|
|
19230
|
+
}
|
|
19231
|
+
function CountComponentsParamsFromJSONTyped(json, ignoreDiscriminator) {
|
|
19232
|
+
if (json == null) {
|
|
19233
|
+
return json;
|
|
19234
|
+
}
|
|
19235
|
+
return {
|
|
19236
|
+
limit: json["limit"] == null ? void 0 : json["limit"],
|
|
19237
|
+
offset: json["offset"] == null ? void 0 : json["offset"],
|
|
19238
|
+
q: json["q"] == null ? void 0 : json["q"]
|
|
19239
|
+
};
|
|
19240
|
+
}
|
|
19241
|
+
function CountComponentsParamsToJSON(value) {
|
|
19242
|
+
if (value == null) {
|
|
19243
|
+
return value;
|
|
19244
|
+
}
|
|
19245
|
+
return {
|
|
19246
|
+
limit: value["limit"],
|
|
19247
|
+
offset: value["offset"],
|
|
19248
|
+
q: value["q"]
|
|
19249
|
+
};
|
|
19250
|
+
}
|
|
19251
|
+
|
|
19252
|
+
// src/api/models/CountComponentsResponse.ts
|
|
19253
|
+
function instanceOfCountComponentsResponse(value) {
|
|
19254
|
+
if (!("data" in value) || value["data"] === void 0)
|
|
19255
|
+
return false;
|
|
19256
|
+
if (!("params" in value) || value["params"] === void 0)
|
|
19257
|
+
return false;
|
|
19258
|
+
return true;
|
|
19259
|
+
}
|
|
19260
|
+
function CountComponentsResponseFromJSON(json) {
|
|
19261
|
+
return CountComponentsResponseFromJSONTyped(json, false);
|
|
19262
|
+
}
|
|
19263
|
+
function CountComponentsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
19264
|
+
if (json == null) {
|
|
19265
|
+
return json;
|
|
19266
|
+
}
|
|
19267
|
+
return {
|
|
19268
|
+
data: CountResponseFromJSON(json["data"]),
|
|
19269
|
+
params: CountComponentsParamsFromJSON(json["params"])
|
|
19270
|
+
};
|
|
19271
|
+
}
|
|
19272
|
+
function CountComponentsResponseToJSON(value) {
|
|
19273
|
+
if (value == null) {
|
|
19274
|
+
return value;
|
|
19275
|
+
}
|
|
19276
|
+
return {
|
|
19277
|
+
data: CountResponseToJSON(value["data"]),
|
|
19278
|
+
params: CountComponentsParamsToJSON(value["params"])
|
|
19279
|
+
};
|
|
19280
|
+
}
|
|
19281
|
+
|
|
19131
19282
|
// src/api/models/CountEntityKeyDefinitionsParams.ts
|
|
19132
19283
|
var CountEntityKeyDefinitionsParamsEntityTypeEnum = {
|
|
19133
19284
|
Company: "company",
|
|
@@ -20213,6 +20364,74 @@ function CreateCompanyResponseToJSON(value) {
|
|
|
20213
20364
|
};
|
|
20214
20365
|
}
|
|
20215
20366
|
|
|
20367
|
+
// src/api/models/CreateComponentRequestBody.ts
|
|
20368
|
+
var CreateComponentRequestBodyEntityTypeEnum = {
|
|
20369
|
+
Entitlement: "entitlement",
|
|
20370
|
+
Billing: "billing"
|
|
20371
|
+
};
|
|
20372
|
+
function instanceOfCreateComponentRequestBody(value) {
|
|
20373
|
+
if (!("ast" in value) || value["ast"] === void 0)
|
|
20374
|
+
return false;
|
|
20375
|
+
if (!("entityType" in value) || value["entityType"] === void 0)
|
|
20376
|
+
return false;
|
|
20377
|
+
if (!("name" in value) || value["name"] === void 0)
|
|
20378
|
+
return false;
|
|
20379
|
+
return true;
|
|
20380
|
+
}
|
|
20381
|
+
function CreateComponentRequestBodyFromJSON(json) {
|
|
20382
|
+
return CreateComponentRequestBodyFromJSONTyped(json, false);
|
|
20383
|
+
}
|
|
20384
|
+
function CreateComponentRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
20385
|
+
if (json == null) {
|
|
20386
|
+
return json;
|
|
20387
|
+
}
|
|
20388
|
+
return {
|
|
20389
|
+
ast: json["ast"],
|
|
20390
|
+
entityType: json["entity_type"],
|
|
20391
|
+
name: json["name"]
|
|
20392
|
+
};
|
|
20393
|
+
}
|
|
20394
|
+
function CreateComponentRequestBodyToJSON(value) {
|
|
20395
|
+
if (value == null) {
|
|
20396
|
+
return value;
|
|
20397
|
+
}
|
|
20398
|
+
return {
|
|
20399
|
+
ast: value["ast"],
|
|
20400
|
+
entity_type: value["entityType"],
|
|
20401
|
+
name: value["name"]
|
|
20402
|
+
};
|
|
20403
|
+
}
|
|
20404
|
+
|
|
20405
|
+
// src/api/models/CreateComponentResponse.ts
|
|
20406
|
+
function instanceOfCreateComponentResponse(value) {
|
|
20407
|
+
if (!("data" in value) || value["data"] === void 0)
|
|
20408
|
+
return false;
|
|
20409
|
+
if (!("params" in value) || value["params"] === void 0)
|
|
20410
|
+
return false;
|
|
20411
|
+
return true;
|
|
20412
|
+
}
|
|
20413
|
+
function CreateComponentResponseFromJSON(json) {
|
|
20414
|
+
return CreateComponentResponseFromJSONTyped(json, false);
|
|
20415
|
+
}
|
|
20416
|
+
function CreateComponentResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
20417
|
+
if (json == null) {
|
|
20418
|
+
return json;
|
|
20419
|
+
}
|
|
20420
|
+
return {
|
|
20421
|
+
data: ComponentResponseDataFromJSON(json["data"]),
|
|
20422
|
+
params: json["params"]
|
|
20423
|
+
};
|
|
20424
|
+
}
|
|
20425
|
+
function CreateComponentResponseToJSON(value) {
|
|
20426
|
+
if (value == null) {
|
|
20427
|
+
return value;
|
|
20428
|
+
}
|
|
20429
|
+
return {
|
|
20430
|
+
data: ComponentResponseDataToJSON(value["data"]),
|
|
20431
|
+
params: value["params"]
|
|
20432
|
+
};
|
|
20433
|
+
}
|
|
20434
|
+
|
|
20216
20435
|
// src/api/models/CreateCrmDealLineItemAssociationRequestBody.ts
|
|
20217
20436
|
function instanceOfCreateCrmDealLineItemAssociationRequestBody(value) {
|
|
20218
20437
|
if (!("dealExternalId" in value) || value["dealExternalId"] === void 0)
|
|
@@ -22591,6 +22810,36 @@ function DeleteCompanyResponseToJSON(value) {
|
|
|
22591
22810
|
};
|
|
22592
22811
|
}
|
|
22593
22812
|
|
|
22813
|
+
// src/api/models/DeleteComponentResponse.ts
|
|
22814
|
+
function instanceOfDeleteComponentResponse(value) {
|
|
22815
|
+
if (!("data" in value) || value["data"] === void 0)
|
|
22816
|
+
return false;
|
|
22817
|
+
if (!("params" in value) || value["params"] === void 0)
|
|
22818
|
+
return false;
|
|
22819
|
+
return true;
|
|
22820
|
+
}
|
|
22821
|
+
function DeleteComponentResponseFromJSON(json) {
|
|
22822
|
+
return DeleteComponentResponseFromJSONTyped(json, false);
|
|
22823
|
+
}
|
|
22824
|
+
function DeleteComponentResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
22825
|
+
if (json == null) {
|
|
22826
|
+
return json;
|
|
22827
|
+
}
|
|
22828
|
+
return {
|
|
22829
|
+
data: DeleteResponseFromJSON(json["data"]),
|
|
22830
|
+
params: json["params"]
|
|
22831
|
+
};
|
|
22832
|
+
}
|
|
22833
|
+
function DeleteComponentResponseToJSON(value) {
|
|
22834
|
+
if (value == null) {
|
|
22835
|
+
return value;
|
|
22836
|
+
}
|
|
22837
|
+
return {
|
|
22838
|
+
data: DeleteResponseToJSON(value["data"]),
|
|
22839
|
+
params: value["params"]
|
|
22840
|
+
};
|
|
22841
|
+
}
|
|
22842
|
+
|
|
22594
22843
|
// src/api/models/DeleteEnvironmentResponse.ts
|
|
22595
22844
|
function instanceOfDeleteEnvironmentResponse(value) {
|
|
22596
22845
|
if (!("data" in value) || value["data"] === void 0)
|
|
@@ -23943,6 +24192,36 @@ function GetCompanyResponseToJSON(value) {
|
|
|
23943
24192
|
};
|
|
23944
24193
|
}
|
|
23945
24194
|
|
|
24195
|
+
// src/api/models/GetComponentResponse.ts
|
|
24196
|
+
function instanceOfGetComponentResponse(value) {
|
|
24197
|
+
if (!("data" in value) || value["data"] === void 0)
|
|
24198
|
+
return false;
|
|
24199
|
+
if (!("params" in value) || value["params"] === void 0)
|
|
24200
|
+
return false;
|
|
24201
|
+
return true;
|
|
24202
|
+
}
|
|
24203
|
+
function GetComponentResponseFromJSON(json) {
|
|
24204
|
+
return GetComponentResponseFromJSONTyped(json, false);
|
|
24205
|
+
}
|
|
24206
|
+
function GetComponentResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
24207
|
+
if (json == null) {
|
|
24208
|
+
return json;
|
|
24209
|
+
}
|
|
24210
|
+
return {
|
|
24211
|
+
data: ComponentResponseDataFromJSON(json["data"]),
|
|
24212
|
+
params: json["params"]
|
|
24213
|
+
};
|
|
24214
|
+
}
|
|
24215
|
+
function GetComponentResponseToJSON(value) {
|
|
24216
|
+
if (value == null) {
|
|
24217
|
+
return value;
|
|
24218
|
+
}
|
|
24219
|
+
return {
|
|
24220
|
+
data: ComponentResponseDataToJSON(value["data"]),
|
|
24221
|
+
params: value["params"]
|
|
24222
|
+
};
|
|
24223
|
+
}
|
|
24224
|
+
|
|
23946
24225
|
// src/api/models/GetEntityTraitDefinitionResponse.ts
|
|
23947
24226
|
function instanceOfGetEntityTraitDefinitionResponse(value) {
|
|
23948
24227
|
if (!("data" in value) || value["data"] === void 0)
|
|
@@ -25213,6 +25492,64 @@ function ListCompanyPlansResponseToJSON(value) {
|
|
|
25213
25492
|
};
|
|
25214
25493
|
}
|
|
25215
25494
|
|
|
25495
|
+
// src/api/models/ListComponentsParams.ts
|
|
25496
|
+
function instanceOfListComponentsParams(value) {
|
|
25497
|
+
return true;
|
|
25498
|
+
}
|
|
25499
|
+
function ListComponentsParamsFromJSON(json) {
|
|
25500
|
+
return ListComponentsParamsFromJSONTyped(json, false);
|
|
25501
|
+
}
|
|
25502
|
+
function ListComponentsParamsFromJSONTyped(json, ignoreDiscriminator) {
|
|
25503
|
+
if (json == null) {
|
|
25504
|
+
return json;
|
|
25505
|
+
}
|
|
25506
|
+
return {
|
|
25507
|
+
limit: json["limit"] == null ? void 0 : json["limit"],
|
|
25508
|
+
offset: json["offset"] == null ? void 0 : json["offset"],
|
|
25509
|
+
q: json["q"] == null ? void 0 : json["q"]
|
|
25510
|
+
};
|
|
25511
|
+
}
|
|
25512
|
+
function ListComponentsParamsToJSON(value) {
|
|
25513
|
+
if (value == null) {
|
|
25514
|
+
return value;
|
|
25515
|
+
}
|
|
25516
|
+
return {
|
|
25517
|
+
limit: value["limit"],
|
|
25518
|
+
offset: value["offset"],
|
|
25519
|
+
q: value["q"]
|
|
25520
|
+
};
|
|
25521
|
+
}
|
|
25522
|
+
|
|
25523
|
+
// src/api/models/ListComponentsResponse.ts
|
|
25524
|
+
function instanceOfListComponentsResponse(value) {
|
|
25525
|
+
if (!("data" in value) || value["data"] === void 0)
|
|
25526
|
+
return false;
|
|
25527
|
+
if (!("params" in value) || value["params"] === void 0)
|
|
25528
|
+
return false;
|
|
25529
|
+
return true;
|
|
25530
|
+
}
|
|
25531
|
+
function ListComponentsResponseFromJSON(json) {
|
|
25532
|
+
return ListComponentsResponseFromJSONTyped(json, false);
|
|
25533
|
+
}
|
|
25534
|
+
function ListComponentsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
25535
|
+
if (json == null) {
|
|
25536
|
+
return json;
|
|
25537
|
+
}
|
|
25538
|
+
return {
|
|
25539
|
+
data: json["data"].map(ComponentResponseDataFromJSON),
|
|
25540
|
+
params: ListComponentsParamsFromJSON(json["params"])
|
|
25541
|
+
};
|
|
25542
|
+
}
|
|
25543
|
+
function ListComponentsResponseToJSON(value) {
|
|
25544
|
+
if (value == null) {
|
|
25545
|
+
return value;
|
|
25546
|
+
}
|
|
25547
|
+
return {
|
|
25548
|
+
data: value["data"].map(ComponentResponseDataToJSON),
|
|
25549
|
+
params: ListComponentsParamsToJSON(value["params"])
|
|
25550
|
+
};
|
|
25551
|
+
}
|
|
25552
|
+
|
|
25216
25553
|
// src/api/models/ListCrmProductsParams.ts
|
|
25217
25554
|
function instanceOfListCrmProductsParams(value) {
|
|
25218
25555
|
return true;
|
|
@@ -26968,6 +27305,68 @@ function UpdateCompanyOverrideResponseToJSON(value) {
|
|
|
26968
27305
|
};
|
|
26969
27306
|
}
|
|
26970
27307
|
|
|
27308
|
+
// src/api/models/UpdateComponentRequestBody.ts
|
|
27309
|
+
var UpdateComponentRequestBodyEntityTypeEnum = {
|
|
27310
|
+
Entitlement: "entitlement",
|
|
27311
|
+
Billing: "billing"
|
|
27312
|
+
};
|
|
27313
|
+
function instanceOfUpdateComponentRequestBody(value) {
|
|
27314
|
+
return true;
|
|
27315
|
+
}
|
|
27316
|
+
function UpdateComponentRequestBodyFromJSON(json) {
|
|
27317
|
+
return UpdateComponentRequestBodyFromJSONTyped(json, false);
|
|
27318
|
+
}
|
|
27319
|
+
function UpdateComponentRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
27320
|
+
if (json == null) {
|
|
27321
|
+
return json;
|
|
27322
|
+
}
|
|
27323
|
+
return {
|
|
27324
|
+
ast: json["ast"] == null ? void 0 : json["ast"],
|
|
27325
|
+
entityType: json["entity_type"] == null ? void 0 : json["entity_type"],
|
|
27326
|
+
name: json["name"] == null ? void 0 : json["name"]
|
|
27327
|
+
};
|
|
27328
|
+
}
|
|
27329
|
+
function UpdateComponentRequestBodyToJSON(value) {
|
|
27330
|
+
if (value == null) {
|
|
27331
|
+
return value;
|
|
27332
|
+
}
|
|
27333
|
+
return {
|
|
27334
|
+
ast: value["ast"],
|
|
27335
|
+
entity_type: value["entityType"],
|
|
27336
|
+
name: value["name"]
|
|
27337
|
+
};
|
|
27338
|
+
}
|
|
27339
|
+
|
|
27340
|
+
// src/api/models/UpdateComponentResponse.ts
|
|
27341
|
+
function instanceOfUpdateComponentResponse(value) {
|
|
27342
|
+
if (!("data" in value) || value["data"] === void 0)
|
|
27343
|
+
return false;
|
|
27344
|
+
if (!("params" in value) || value["params"] === void 0)
|
|
27345
|
+
return false;
|
|
27346
|
+
return true;
|
|
27347
|
+
}
|
|
27348
|
+
function UpdateComponentResponseFromJSON(json) {
|
|
27349
|
+
return UpdateComponentResponseFromJSONTyped(json, false);
|
|
27350
|
+
}
|
|
27351
|
+
function UpdateComponentResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
27352
|
+
if (json == null) {
|
|
27353
|
+
return json;
|
|
27354
|
+
}
|
|
27355
|
+
return {
|
|
27356
|
+
data: ComponentResponseDataFromJSON(json["data"]),
|
|
27357
|
+
params: json["params"]
|
|
27358
|
+
};
|
|
27359
|
+
}
|
|
27360
|
+
function UpdateComponentResponseToJSON(value) {
|
|
27361
|
+
if (value == null) {
|
|
27362
|
+
return value;
|
|
27363
|
+
}
|
|
27364
|
+
return {
|
|
27365
|
+
data: ComponentResponseDataToJSON(value["data"]),
|
|
27366
|
+
params: value["params"]
|
|
27367
|
+
};
|
|
27368
|
+
}
|
|
27369
|
+
|
|
26971
27370
|
// src/api/models/UpdateEntityTraitDefinitionRequestBody.ts
|
|
26972
27371
|
var UpdateEntityTraitDefinitionRequestBodyTraitTypeEnum = {
|
|
26973
27372
|
Boolean: "boolean",
|
|
@@ -27913,6 +28312,7 @@ function UpsertUserRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
27913
28312
|
return {
|
|
27914
28313
|
company: json["company"],
|
|
27915
28314
|
companyId: json["company_id"] == null ? void 0 : json["company_id"],
|
|
28315
|
+
id: json["id"] == null ? void 0 : json["id"],
|
|
27916
28316
|
keys: json["keys"],
|
|
27917
28317
|
lastSeenAt: json["last_seen_at"] == null ? void 0 : new Date(json["last_seen_at"]),
|
|
27918
28318
|
name: json["name"] == null ? void 0 : json["name"],
|
|
@@ -27927,6 +28327,7 @@ function UpsertUserRequestBodyToJSON(value) {
|
|
|
27927
28327
|
return {
|
|
27928
28328
|
company: value["company"],
|
|
27929
28329
|
company_id: value["companyId"],
|
|
28330
|
+
id: value["id"],
|
|
27930
28331
|
keys: value["keys"],
|
|
27931
28332
|
last_seen_at: value["lastSeenAt"] == null ? void 0 : value["lastSeenAt"].toISOString(),
|
|
27932
28333
|
name: value["name"],
|
|
@@ -27980,6 +28381,7 @@ function UpsertUserSubRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
27980
28381
|
}
|
|
27981
28382
|
return {
|
|
27982
28383
|
companyId: json["company_id"] == null ? void 0 : json["company_id"],
|
|
28384
|
+
id: json["id"] == null ? void 0 : json["id"],
|
|
27983
28385
|
keys: json["keys"],
|
|
27984
28386
|
lastSeenAt: json["last_seen_at"] == null ? void 0 : new Date(json["last_seen_at"]),
|
|
27985
28387
|
name: json["name"] == null ? void 0 : json["name"],
|
|
@@ -27993,6 +28395,7 @@ function UpsertUserSubRequestBodyToJSON(value) {
|
|
|
27993
28395
|
}
|
|
27994
28396
|
return {
|
|
27995
28397
|
company_id: value["companyId"],
|
|
28398
|
+
id: value["id"],
|
|
27996
28399
|
keys: value["keys"],
|
|
27997
28400
|
last_seen_at: value["lastSeenAt"] == null ? void 0 : value["lastSeenAt"].toISOString(),
|
|
27998
28401
|
name: value["name"],
|
|
@@ -30438,6 +30841,285 @@ var ListEntityTraitDefinitionsTraitTypeEnum = {
|
|
|
30438
30841
|
Url: "url"
|
|
30439
30842
|
};
|
|
30440
30843
|
|
|
30844
|
+
// src/api/apis/ComponentsApi.ts
|
|
30845
|
+
var ComponentsApi = class extends BaseAPI {
|
|
30846
|
+
/**
|
|
30847
|
+
* Count components
|
|
30848
|
+
*/
|
|
30849
|
+
async countComponentsRaw(requestParameters, initOverrides) {
|
|
30850
|
+
const queryParameters = {};
|
|
30851
|
+
if (requestParameters["q"] != null) {
|
|
30852
|
+
queryParameters["q"] = requestParameters["q"];
|
|
30853
|
+
}
|
|
30854
|
+
if (requestParameters["limit"] != null) {
|
|
30855
|
+
queryParameters["limit"] = requestParameters["limit"];
|
|
30856
|
+
}
|
|
30857
|
+
if (requestParameters["offset"] != null) {
|
|
30858
|
+
queryParameters["offset"] = requestParameters["offset"];
|
|
30859
|
+
}
|
|
30860
|
+
const headerParameters = {};
|
|
30861
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
30862
|
+
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
30863
|
+
"X-Schematic-Api-Key"
|
|
30864
|
+
);
|
|
30865
|
+
}
|
|
30866
|
+
const response = await this.request(
|
|
30867
|
+
{
|
|
30868
|
+
path: `/components/count`,
|
|
30869
|
+
method: "GET",
|
|
30870
|
+
headers: headerParameters,
|
|
30871
|
+
query: queryParameters
|
|
30872
|
+
},
|
|
30873
|
+
initOverrides
|
|
30874
|
+
);
|
|
30875
|
+
return new JSONApiResponse(
|
|
30876
|
+
response,
|
|
30877
|
+
(jsonValue) => CountComponentsResponseFromJSON(jsonValue)
|
|
30878
|
+
);
|
|
30879
|
+
}
|
|
30880
|
+
/**
|
|
30881
|
+
* Count components
|
|
30882
|
+
*/
|
|
30883
|
+
async countComponents(requestParameters = {}, initOverrides) {
|
|
30884
|
+
const response = await this.countComponentsRaw(
|
|
30885
|
+
requestParameters,
|
|
30886
|
+
initOverrides
|
|
30887
|
+
);
|
|
30888
|
+
return await response.value();
|
|
30889
|
+
}
|
|
30890
|
+
/**
|
|
30891
|
+
* Create component
|
|
30892
|
+
*/
|
|
30893
|
+
async createComponentRaw(requestParameters, initOverrides) {
|
|
30894
|
+
if (requestParameters["createComponentRequestBody"] == null) {
|
|
30895
|
+
throw new RequiredError(
|
|
30896
|
+
"createComponentRequestBody",
|
|
30897
|
+
'Required parameter "createComponentRequestBody" was null or undefined when calling createComponent().'
|
|
30898
|
+
);
|
|
30899
|
+
}
|
|
30900
|
+
const queryParameters = {};
|
|
30901
|
+
const headerParameters = {};
|
|
30902
|
+
headerParameters["Content-Type"] = "application/json";
|
|
30903
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
30904
|
+
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
30905
|
+
"X-Schematic-Api-Key"
|
|
30906
|
+
);
|
|
30907
|
+
}
|
|
30908
|
+
const response = await this.request(
|
|
30909
|
+
{
|
|
30910
|
+
path: `/components`,
|
|
30911
|
+
method: "POST",
|
|
30912
|
+
headers: headerParameters,
|
|
30913
|
+
query: queryParameters,
|
|
30914
|
+
body: CreateComponentRequestBodyToJSON(
|
|
30915
|
+
requestParameters["createComponentRequestBody"]
|
|
30916
|
+
)
|
|
30917
|
+
},
|
|
30918
|
+
initOverrides
|
|
30919
|
+
);
|
|
30920
|
+
return new JSONApiResponse(
|
|
30921
|
+
response,
|
|
30922
|
+
(jsonValue) => CreateComponentResponseFromJSON(jsonValue)
|
|
30923
|
+
);
|
|
30924
|
+
}
|
|
30925
|
+
/**
|
|
30926
|
+
* Create component
|
|
30927
|
+
*/
|
|
30928
|
+
async createComponent(requestParameters, initOverrides) {
|
|
30929
|
+
const response = await this.createComponentRaw(
|
|
30930
|
+
requestParameters,
|
|
30931
|
+
initOverrides
|
|
30932
|
+
);
|
|
30933
|
+
return await response.value();
|
|
30934
|
+
}
|
|
30935
|
+
/**
|
|
30936
|
+
* Delete component
|
|
30937
|
+
*/
|
|
30938
|
+
async deleteComponentRaw(requestParameters, initOverrides) {
|
|
30939
|
+
if (requestParameters["componentId"] == null) {
|
|
30940
|
+
throw new RequiredError(
|
|
30941
|
+
"componentId",
|
|
30942
|
+
'Required parameter "componentId" was null or undefined when calling deleteComponent().'
|
|
30943
|
+
);
|
|
30944
|
+
}
|
|
30945
|
+
const queryParameters = {};
|
|
30946
|
+
const headerParameters = {};
|
|
30947
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
30948
|
+
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
30949
|
+
"X-Schematic-Api-Key"
|
|
30950
|
+
);
|
|
30951
|
+
}
|
|
30952
|
+
const response = await this.request(
|
|
30953
|
+
{
|
|
30954
|
+
path: `/components/{component_id}`.replace(
|
|
30955
|
+
`{${"component_id"}}`,
|
|
30956
|
+
encodeURIComponent(String(requestParameters["componentId"]))
|
|
30957
|
+
),
|
|
30958
|
+
method: "DELETE",
|
|
30959
|
+
headers: headerParameters,
|
|
30960
|
+
query: queryParameters
|
|
30961
|
+
},
|
|
30962
|
+
initOverrides
|
|
30963
|
+
);
|
|
30964
|
+
return new JSONApiResponse(
|
|
30965
|
+
response,
|
|
30966
|
+
(jsonValue) => DeleteComponentResponseFromJSON(jsonValue)
|
|
30967
|
+
);
|
|
30968
|
+
}
|
|
30969
|
+
/**
|
|
30970
|
+
* Delete component
|
|
30971
|
+
*/
|
|
30972
|
+
async deleteComponent(requestParameters, initOverrides) {
|
|
30973
|
+
const response = await this.deleteComponentRaw(
|
|
30974
|
+
requestParameters,
|
|
30975
|
+
initOverrides
|
|
30976
|
+
);
|
|
30977
|
+
return await response.value();
|
|
30978
|
+
}
|
|
30979
|
+
/**
|
|
30980
|
+
* Get component
|
|
30981
|
+
*/
|
|
30982
|
+
async getComponentRaw(requestParameters, initOverrides) {
|
|
30983
|
+
if (requestParameters["componentId"] == null) {
|
|
30984
|
+
throw new RequiredError(
|
|
30985
|
+
"componentId",
|
|
30986
|
+
'Required parameter "componentId" was null or undefined when calling getComponent().'
|
|
30987
|
+
);
|
|
30988
|
+
}
|
|
30989
|
+
const queryParameters = {};
|
|
30990
|
+
const headerParameters = {};
|
|
30991
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
30992
|
+
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
30993
|
+
"X-Schematic-Api-Key"
|
|
30994
|
+
);
|
|
30995
|
+
}
|
|
30996
|
+
const response = await this.request(
|
|
30997
|
+
{
|
|
30998
|
+
path: `/components/{component_id}`.replace(
|
|
30999
|
+
`{${"component_id"}}`,
|
|
31000
|
+
encodeURIComponent(String(requestParameters["componentId"]))
|
|
31001
|
+
),
|
|
31002
|
+
method: "GET",
|
|
31003
|
+
headers: headerParameters,
|
|
31004
|
+
query: queryParameters
|
|
31005
|
+
},
|
|
31006
|
+
initOverrides
|
|
31007
|
+
);
|
|
31008
|
+
return new JSONApiResponse(
|
|
31009
|
+
response,
|
|
31010
|
+
(jsonValue) => GetComponentResponseFromJSON(jsonValue)
|
|
31011
|
+
);
|
|
31012
|
+
}
|
|
31013
|
+
/**
|
|
31014
|
+
* Get component
|
|
31015
|
+
*/
|
|
31016
|
+
async getComponent(requestParameters, initOverrides) {
|
|
31017
|
+
const response = await this.getComponentRaw(
|
|
31018
|
+
requestParameters,
|
|
31019
|
+
initOverrides
|
|
31020
|
+
);
|
|
31021
|
+
return await response.value();
|
|
31022
|
+
}
|
|
31023
|
+
/**
|
|
31024
|
+
* List components
|
|
31025
|
+
*/
|
|
31026
|
+
async listComponentsRaw(requestParameters, initOverrides) {
|
|
31027
|
+
const queryParameters = {};
|
|
31028
|
+
if (requestParameters["q"] != null) {
|
|
31029
|
+
queryParameters["q"] = requestParameters["q"];
|
|
31030
|
+
}
|
|
31031
|
+
if (requestParameters["limit"] != null) {
|
|
31032
|
+
queryParameters["limit"] = requestParameters["limit"];
|
|
31033
|
+
}
|
|
31034
|
+
if (requestParameters["offset"] != null) {
|
|
31035
|
+
queryParameters["offset"] = requestParameters["offset"];
|
|
31036
|
+
}
|
|
31037
|
+
const headerParameters = {};
|
|
31038
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
31039
|
+
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
31040
|
+
"X-Schematic-Api-Key"
|
|
31041
|
+
);
|
|
31042
|
+
}
|
|
31043
|
+
const response = await this.request(
|
|
31044
|
+
{
|
|
31045
|
+
path: `/components`,
|
|
31046
|
+
method: "GET",
|
|
31047
|
+
headers: headerParameters,
|
|
31048
|
+
query: queryParameters
|
|
31049
|
+
},
|
|
31050
|
+
initOverrides
|
|
31051
|
+
);
|
|
31052
|
+
return new JSONApiResponse(
|
|
31053
|
+
response,
|
|
31054
|
+
(jsonValue) => ListComponentsResponseFromJSON(jsonValue)
|
|
31055
|
+
);
|
|
31056
|
+
}
|
|
31057
|
+
/**
|
|
31058
|
+
* List components
|
|
31059
|
+
*/
|
|
31060
|
+
async listComponents(requestParameters = {}, initOverrides) {
|
|
31061
|
+
const response = await this.listComponentsRaw(
|
|
31062
|
+
requestParameters,
|
|
31063
|
+
initOverrides
|
|
31064
|
+
);
|
|
31065
|
+
return await response.value();
|
|
31066
|
+
}
|
|
31067
|
+
/**
|
|
31068
|
+
* Update component
|
|
31069
|
+
*/
|
|
31070
|
+
async updateComponentRaw(requestParameters, initOverrides) {
|
|
31071
|
+
if (requestParameters["updateComponentRequestBody"] == null) {
|
|
31072
|
+
throw new RequiredError(
|
|
31073
|
+
"updateComponentRequestBody",
|
|
31074
|
+
'Required parameter "updateComponentRequestBody" was null or undefined when calling updateComponent().'
|
|
31075
|
+
);
|
|
31076
|
+
}
|
|
31077
|
+
if (requestParameters["componentId"] == null) {
|
|
31078
|
+
throw new RequiredError(
|
|
31079
|
+
"componentId",
|
|
31080
|
+
'Required parameter "componentId" was null or undefined when calling updateComponent().'
|
|
31081
|
+
);
|
|
31082
|
+
}
|
|
31083
|
+
const queryParameters = {};
|
|
31084
|
+
const headerParameters = {};
|
|
31085
|
+
headerParameters["Content-Type"] = "application/json";
|
|
31086
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
31087
|
+
headerParameters["X-Schematic-Api-Key"] = await this.configuration.apiKey(
|
|
31088
|
+
"X-Schematic-Api-Key"
|
|
31089
|
+
);
|
|
31090
|
+
}
|
|
31091
|
+
const response = await this.request(
|
|
31092
|
+
{
|
|
31093
|
+
path: `/components/{component_id}`.replace(
|
|
31094
|
+
`{${"component_id"}}`,
|
|
31095
|
+
encodeURIComponent(String(requestParameters["componentId"]))
|
|
31096
|
+
),
|
|
31097
|
+
method: "PUT",
|
|
31098
|
+
headers: headerParameters,
|
|
31099
|
+
query: queryParameters,
|
|
31100
|
+
body: UpdateComponentRequestBodyToJSON(
|
|
31101
|
+
requestParameters["updateComponentRequestBody"]
|
|
31102
|
+
)
|
|
31103
|
+
},
|
|
31104
|
+
initOverrides
|
|
31105
|
+
);
|
|
31106
|
+
return new JSONApiResponse(
|
|
31107
|
+
response,
|
|
31108
|
+
(jsonValue) => UpdateComponentResponseFromJSON(jsonValue)
|
|
31109
|
+
);
|
|
31110
|
+
}
|
|
31111
|
+
/**
|
|
31112
|
+
* Update component
|
|
31113
|
+
*/
|
|
31114
|
+
async updateComponent(requestParameters, initOverrides) {
|
|
31115
|
+
const response = await this.updateComponentRaw(
|
|
31116
|
+
requestParameters,
|
|
31117
|
+
initOverrides
|
|
31118
|
+
);
|
|
31119
|
+
return await response.value();
|
|
31120
|
+
}
|
|
31121
|
+
};
|
|
31122
|
+
|
|
30441
31123
|
// src/api/apis/CrmApi.ts
|
|
30442
31124
|
var CrmApi = class extends BaseAPI {
|
|
30443
31125
|
/**
|
|
@@ -34127,7 +34809,7 @@ var Schematic = class {
|
|
|
34127
34809
|
constructor(apiKey, opts) {
|
|
34128
34810
|
const { offline = false } = opts ?? {};
|
|
34129
34811
|
const { basePath, flagDefaults = {} } = opts ?? {};
|
|
34130
|
-
const version = "1.0.
|
|
34812
|
+
const version = "1.0.15";
|
|
34131
34813
|
const headers = {
|
|
34132
34814
|
"User-Agent": `schematic-typescript-node@v${version}`
|
|
34133
34815
|
};
|
|
@@ -34318,6 +35000,10 @@ function init(apiKey, opts) {
|
|
|
34318
35000
|
CompanySubscriptionResponseDataFromJSON,
|
|
34319
35001
|
CompanySubscriptionResponseDataFromJSONTyped,
|
|
34320
35002
|
CompanySubscriptionResponseDataToJSON,
|
|
35003
|
+
ComponentResponseDataFromJSON,
|
|
35004
|
+
ComponentResponseDataFromJSONTyped,
|
|
35005
|
+
ComponentResponseDataToJSON,
|
|
35006
|
+
ComponentsApi,
|
|
34321
35007
|
Configuration,
|
|
34322
35008
|
CountApiKeysParamsFromJSON,
|
|
34323
35009
|
CountApiKeysParamsFromJSONTyped,
|
|
@@ -34349,6 +35035,12 @@ function init(apiKey, opts) {
|
|
|
34349
35035
|
CountCompanyOverridesResponseFromJSON,
|
|
34350
35036
|
CountCompanyOverridesResponseFromJSONTyped,
|
|
34351
35037
|
CountCompanyOverridesResponseToJSON,
|
|
35038
|
+
CountComponentsParamsFromJSON,
|
|
35039
|
+
CountComponentsParamsFromJSONTyped,
|
|
35040
|
+
CountComponentsParamsToJSON,
|
|
35041
|
+
CountComponentsResponseFromJSON,
|
|
35042
|
+
CountComponentsResponseFromJSONTyped,
|
|
35043
|
+
CountComponentsResponseToJSON,
|
|
34352
35044
|
CountEntityKeyDefinitionsEntityTypeEnum,
|
|
34353
35045
|
CountEntityKeyDefinitionsParamsEntityTypeEnum,
|
|
34354
35046
|
CountEntityKeyDefinitionsParamsFromJSON,
|
|
@@ -34459,6 +35151,13 @@ function init(apiKey, opts) {
|
|
|
34459
35151
|
CreateCompanyResponseFromJSON,
|
|
34460
35152
|
CreateCompanyResponseFromJSONTyped,
|
|
34461
35153
|
CreateCompanyResponseToJSON,
|
|
35154
|
+
CreateComponentRequestBodyEntityTypeEnum,
|
|
35155
|
+
CreateComponentRequestBodyFromJSON,
|
|
35156
|
+
CreateComponentRequestBodyFromJSONTyped,
|
|
35157
|
+
CreateComponentRequestBodyToJSON,
|
|
35158
|
+
CreateComponentResponseFromJSON,
|
|
35159
|
+
CreateComponentResponseFromJSONTyped,
|
|
35160
|
+
CreateComponentResponseToJSON,
|
|
34462
35161
|
CreateCrmDealLineItemAssociationRequestBodyFromJSON,
|
|
34463
35162
|
CreateCrmDealLineItemAssociationRequestBodyFromJSONTyped,
|
|
34464
35163
|
CreateCrmDealLineItemAssociationRequestBodyToJSON,
|
|
@@ -34587,6 +35286,9 @@ function init(apiKey, opts) {
|
|
|
34587
35286
|
DeleteCompanyResponseFromJSON,
|
|
34588
35287
|
DeleteCompanyResponseFromJSONTyped,
|
|
34589
35288
|
DeleteCompanyResponseToJSON,
|
|
35289
|
+
DeleteComponentResponseFromJSON,
|
|
35290
|
+
DeleteComponentResponseFromJSONTyped,
|
|
35291
|
+
DeleteComponentResponseToJSON,
|
|
34590
35292
|
DeleteEnvironmentResponseFromJSON,
|
|
34591
35293
|
DeleteEnvironmentResponseFromJSONTyped,
|
|
34592
35294
|
DeleteEnvironmentResponseToJSON,
|
|
@@ -34726,6 +35428,9 @@ function init(apiKey, opts) {
|
|
|
34726
35428
|
GetCompanyResponseFromJSON,
|
|
34727
35429
|
GetCompanyResponseFromJSONTyped,
|
|
34728
35430
|
GetCompanyResponseToJSON,
|
|
35431
|
+
GetComponentResponseFromJSON,
|
|
35432
|
+
GetComponentResponseFromJSONTyped,
|
|
35433
|
+
GetComponentResponseToJSON,
|
|
34729
35434
|
GetEntityTraitDefinitionResponseFromJSON,
|
|
34730
35435
|
GetEntityTraitDefinitionResponseFromJSONTyped,
|
|
34731
35436
|
GetEntityTraitDefinitionResponseToJSON,
|
|
@@ -34844,6 +35549,12 @@ function init(apiKey, opts) {
|
|
|
34844
35549
|
ListCompanyPlansResponseFromJSON,
|
|
34845
35550
|
ListCompanyPlansResponseFromJSONTyped,
|
|
34846
35551
|
ListCompanyPlansResponseToJSON,
|
|
35552
|
+
ListComponentsParamsFromJSON,
|
|
35553
|
+
ListComponentsParamsFromJSONTyped,
|
|
35554
|
+
ListComponentsParamsToJSON,
|
|
35555
|
+
ListComponentsResponseFromJSON,
|
|
35556
|
+
ListComponentsResponseFromJSONTyped,
|
|
35557
|
+
ListComponentsResponseToJSON,
|
|
34847
35558
|
ListCrmProductsParamsFromJSON,
|
|
34848
35559
|
ListCrmProductsParamsFromJSONTyped,
|
|
34849
35560
|
ListCrmProductsParamsToJSON,
|
|
@@ -35053,6 +35764,13 @@ function init(apiKey, opts) {
|
|
|
35053
35764
|
UpdateCompanyOverrideResponseFromJSON,
|
|
35054
35765
|
UpdateCompanyOverrideResponseFromJSONTyped,
|
|
35055
35766
|
UpdateCompanyOverrideResponseToJSON,
|
|
35767
|
+
UpdateComponentRequestBodyEntityTypeEnum,
|
|
35768
|
+
UpdateComponentRequestBodyFromJSON,
|
|
35769
|
+
UpdateComponentRequestBodyFromJSONTyped,
|
|
35770
|
+
UpdateComponentRequestBodyToJSON,
|
|
35771
|
+
UpdateComponentResponseFromJSON,
|
|
35772
|
+
UpdateComponentResponseFromJSONTyped,
|
|
35773
|
+
UpdateComponentResponseToJSON,
|
|
35056
35774
|
UpdateEntityTraitDefinitionRequestBodyFromJSON,
|
|
35057
35775
|
UpdateEntityTraitDefinitionRequestBodyFromJSONTyped,
|
|
35058
35776
|
UpdateEntityTraitDefinitionRequestBodyToJSON,
|
|
@@ -35197,6 +35915,7 @@ function init(apiKey, opts) {
|
|
|
35197
35915
|
instanceOfCompanyPlanResponseData,
|
|
35198
35916
|
instanceOfCompanyResponseData,
|
|
35199
35917
|
instanceOfCompanySubscriptionResponseData,
|
|
35918
|
+
instanceOfComponentResponseData,
|
|
35200
35919
|
instanceOfCountApiKeysParams,
|
|
35201
35920
|
instanceOfCountApiKeysResponse,
|
|
35202
35921
|
instanceOfCountApiRequestsParams,
|
|
@@ -35207,6 +35926,8 @@ function init(apiKey, opts) {
|
|
|
35207
35926
|
instanceOfCountCompaniesResponse,
|
|
35208
35927
|
instanceOfCountCompanyOverridesParams,
|
|
35209
35928
|
instanceOfCountCompanyOverridesResponse,
|
|
35929
|
+
instanceOfCountComponentsParams,
|
|
35930
|
+
instanceOfCountComponentsResponse,
|
|
35210
35931
|
instanceOfCountEntityKeyDefinitionsParams,
|
|
35211
35932
|
instanceOfCountEntityKeyDefinitionsResponse,
|
|
35212
35933
|
instanceOfCountEntityTraitDefinitionsParams,
|
|
@@ -35241,6 +35962,8 @@ function init(apiKey, opts) {
|
|
|
35241
35962
|
instanceOfCreateCompanyOverrideRequestBody,
|
|
35242
35963
|
instanceOfCreateCompanyOverrideResponse,
|
|
35243
35964
|
instanceOfCreateCompanyResponse,
|
|
35965
|
+
instanceOfCreateComponentRequestBody,
|
|
35966
|
+
instanceOfCreateComponentResponse,
|
|
35244
35967
|
instanceOfCreateCrmDealLineItemAssociationRequestBody,
|
|
35245
35968
|
instanceOfCreateCrmDealRequestBody,
|
|
35246
35969
|
instanceOfCreateCrmLineItemRequestBody,
|
|
@@ -35278,6 +36001,7 @@ function init(apiKey, opts) {
|
|
|
35278
36001
|
instanceOfDeleteCompanyMembershipResponse,
|
|
35279
36002
|
instanceOfDeleteCompanyOverrideResponse,
|
|
35280
36003
|
instanceOfDeleteCompanyResponse,
|
|
36004
|
+
instanceOfDeleteComponentResponse,
|
|
35281
36005
|
instanceOfDeleteEnvironmentResponse,
|
|
35282
36006
|
instanceOfDeleteFeatureResponse,
|
|
35283
36007
|
instanceOfDeleteFlagResponse,
|
|
@@ -35321,6 +36045,7 @@ function init(apiKey, opts) {
|
|
|
35321
36045
|
instanceOfGetAudienceResponse,
|
|
35322
36046
|
instanceOfGetCompanyOverrideResponse,
|
|
35323
36047
|
instanceOfGetCompanyResponse,
|
|
36048
|
+
instanceOfGetComponentResponse,
|
|
35324
36049
|
instanceOfGetEntityTraitDefinitionResponse,
|
|
35325
36050
|
instanceOfGetEntityTraitValuesParams,
|
|
35326
36051
|
instanceOfGetEntityTraitValuesResponse,
|
|
@@ -35360,6 +36085,8 @@ function init(apiKey, opts) {
|
|
|
35360
36085
|
instanceOfListCompanyOverridesResponse,
|
|
35361
36086
|
instanceOfListCompanyPlansParams,
|
|
35362
36087
|
instanceOfListCompanyPlansResponse,
|
|
36088
|
+
instanceOfListComponentsParams,
|
|
36089
|
+
instanceOfListComponentsResponse,
|
|
35363
36090
|
instanceOfListCrmProductsParams,
|
|
35364
36091
|
instanceOfListCrmProductsResponse,
|
|
35365
36092
|
instanceOfListEntityKeyDefinitionsParams,
|
|
@@ -35425,6 +36152,8 @@ function init(apiKey, opts) {
|
|
|
35425
36152
|
instanceOfUpdateAudienceResponse,
|
|
35426
36153
|
instanceOfUpdateCompanyOverrideRequestBody,
|
|
35427
36154
|
instanceOfUpdateCompanyOverrideResponse,
|
|
36155
|
+
instanceOfUpdateComponentRequestBody,
|
|
36156
|
+
instanceOfUpdateComponentResponse,
|
|
35428
36157
|
instanceOfUpdateEntityTraitDefinitionRequestBody,
|
|
35429
36158
|
instanceOfUpdateEntityTraitDefinitionResponse,
|
|
35430
36159
|
instanceOfUpdateEnvironmentRequestBody,
|