@schematichq/schematic-typescript-node 1.0.12 → 1.0.14
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 +12 -3
- package/dist/schematic.d.ts +20 -1
- package/dist/schematic.esm.js +12 -3
- package/package.json +1 -1
package/dist/schematic.cjs.js
CHANGED
|
@@ -26192,7 +26192,8 @@ function ListProductsParamsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
26192
26192
|
ids: json["ids"] == null ? void 0 : json["ids"],
|
|
26193
26193
|
limit: json["limit"] == null ? void 0 : json["limit"],
|
|
26194
26194
|
name: json["name"] == null ? void 0 : json["name"],
|
|
26195
|
-
offset: json["offset"] == null ? void 0 : json["offset"]
|
|
26195
|
+
offset: json["offset"] == null ? void 0 : json["offset"],
|
|
26196
|
+
q: json["q"] == null ? void 0 : json["q"]
|
|
26196
26197
|
};
|
|
26197
26198
|
}
|
|
26198
26199
|
function ListProductsParamsToJSON(value) {
|
|
@@ -26203,7 +26204,8 @@ function ListProductsParamsToJSON(value) {
|
|
|
26203
26204
|
ids: value["ids"],
|
|
26204
26205
|
limit: value["limit"],
|
|
26205
26206
|
name: value["name"],
|
|
26206
|
-
offset: value["offset"]
|
|
26207
|
+
offset: value["offset"],
|
|
26208
|
+
q: value["q"]
|
|
26207
26209
|
};
|
|
26208
26210
|
}
|
|
26209
26211
|
|
|
@@ -27911,6 +27913,7 @@ function UpsertUserRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
27911
27913
|
return {
|
|
27912
27914
|
company: json["company"],
|
|
27913
27915
|
companyId: json["company_id"] == null ? void 0 : json["company_id"],
|
|
27916
|
+
id: json["id"] == null ? void 0 : json["id"],
|
|
27914
27917
|
keys: json["keys"],
|
|
27915
27918
|
lastSeenAt: json["last_seen_at"] == null ? void 0 : new Date(json["last_seen_at"]),
|
|
27916
27919
|
name: json["name"] == null ? void 0 : json["name"],
|
|
@@ -27925,6 +27928,7 @@ function UpsertUserRequestBodyToJSON(value) {
|
|
|
27925
27928
|
return {
|
|
27926
27929
|
company: value["company"],
|
|
27927
27930
|
company_id: value["companyId"],
|
|
27931
|
+
id: value["id"],
|
|
27928
27932
|
keys: value["keys"],
|
|
27929
27933
|
last_seen_at: value["lastSeenAt"] == null ? void 0 : value["lastSeenAt"].toISOString(),
|
|
27930
27934
|
name: value["name"],
|
|
@@ -27978,6 +27982,7 @@ function UpsertUserSubRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
27978
27982
|
}
|
|
27979
27983
|
return {
|
|
27980
27984
|
companyId: json["company_id"] == null ? void 0 : json["company_id"],
|
|
27985
|
+
id: json["id"] == null ? void 0 : json["id"],
|
|
27981
27986
|
keys: json["keys"],
|
|
27982
27987
|
lastSeenAt: json["last_seen_at"] == null ? void 0 : new Date(json["last_seen_at"]),
|
|
27983
27988
|
name: json["name"] == null ? void 0 : json["name"],
|
|
@@ -27991,6 +27996,7 @@ function UpsertUserSubRequestBodyToJSON(value) {
|
|
|
27991
27996
|
}
|
|
27992
27997
|
return {
|
|
27993
27998
|
company_id: value["companyId"],
|
|
27999
|
+
id: value["id"],
|
|
27994
28000
|
keys: value["keys"],
|
|
27995
28001
|
last_seen_at: value["lastSeenAt"] == null ? void 0 : value["lastSeenAt"].toISOString(),
|
|
27996
28002
|
name: value["name"],
|
|
@@ -28763,6 +28769,9 @@ var BillingApi = class extends BaseAPI {
|
|
|
28763
28769
|
if (requestParameters["name"] != null) {
|
|
28764
28770
|
queryParameters["name"] = requestParameters["name"];
|
|
28765
28771
|
}
|
|
28772
|
+
if (requestParameters["q"] != null) {
|
|
28773
|
+
queryParameters["q"] = requestParameters["q"];
|
|
28774
|
+
}
|
|
28766
28775
|
if (requestParameters["limit"] != null) {
|
|
28767
28776
|
queryParameters["limit"] = requestParameters["limit"];
|
|
28768
28777
|
}
|
|
@@ -34122,7 +34131,7 @@ var Schematic = class {
|
|
|
34122
34131
|
constructor(apiKey, opts) {
|
|
34123
34132
|
const { offline = false } = opts ?? {};
|
|
34124
34133
|
const { basePath, flagDefaults = {} } = opts ?? {};
|
|
34125
|
-
const version = "1.0.
|
|
34134
|
+
const version = "1.0.14";
|
|
34126
34135
|
const headers = {
|
|
34127
34136
|
"User-Agent": `schematic-typescript-node@v${version}`
|
|
34128
34137
|
};
|
package/dist/schematic.d.ts
CHANGED
|
@@ -14857,6 +14857,12 @@ export declare interface ListProductsParams {
|
|
|
14857
14857
|
* @memberof ListProductsParams
|
|
14858
14858
|
*/
|
|
14859
14859
|
offset?: number;
|
|
14860
|
+
/**
|
|
14861
|
+
*
|
|
14862
|
+
* @type {string}
|
|
14863
|
+
* @memberof ListProductsParams
|
|
14864
|
+
*/
|
|
14865
|
+
q?: string;
|
|
14860
14866
|
}
|
|
14861
14867
|
|
|
14862
14868
|
export declare function ListProductsParamsFromJSON(json: any): ListProductsParams;
|
|
@@ -14868,6 +14874,7 @@ export declare function ListProductsParamsToJSON(value?: ListProductsParams | nu
|
|
|
14868
14874
|
export declare interface ListProductsRequest {
|
|
14869
14875
|
ids?: Array<string>;
|
|
14870
14876
|
name?: string;
|
|
14877
|
+
q?: string;
|
|
14871
14878
|
limit?: number;
|
|
14872
14879
|
offset?: number;
|
|
14873
14880
|
}
|
|
@@ -17914,7 +17921,7 @@ export declare interface UpsertCompanyRequest {
|
|
|
17914
17921
|
*/
|
|
17915
17922
|
export declare interface UpsertCompanyRequestBody {
|
|
17916
17923
|
/**
|
|
17917
|
-
*
|
|
17924
|
+
* If you know the Schematic ID, you can use that here instead of keys
|
|
17918
17925
|
* @type {string}
|
|
17919
17926
|
* @memberof UpsertCompanyRequestBody
|
|
17920
17927
|
*/
|
|
@@ -18227,6 +18234,12 @@ export declare interface UpsertUserRequestBody {
|
|
|
18227
18234
|
* @memberof UpsertUserRequestBody
|
|
18228
18235
|
*/
|
|
18229
18236
|
companyId?: string;
|
|
18237
|
+
/**
|
|
18238
|
+
* If you know the Schematic ID, you can use that here instead of keys
|
|
18239
|
+
* @type {string}
|
|
18240
|
+
* @memberof UpsertUserRequestBody
|
|
18241
|
+
*/
|
|
18242
|
+
id?: string;
|
|
18230
18243
|
/**
|
|
18231
18244
|
*
|
|
18232
18245
|
* @type {{ [key: string]: string; }}
|
|
@@ -18316,6 +18329,12 @@ export declare interface UpsertUserSubRequestBody {
|
|
|
18316
18329
|
* @memberof UpsertUserSubRequestBody
|
|
18317
18330
|
*/
|
|
18318
18331
|
companyId?: string;
|
|
18332
|
+
/**
|
|
18333
|
+
* If you know the Schematic ID, you can use that here instead of keys
|
|
18334
|
+
* @type {string}
|
|
18335
|
+
* @memberof UpsertUserSubRequestBody
|
|
18336
|
+
*/
|
|
18337
|
+
id?: string;
|
|
18319
18338
|
/**
|
|
18320
18339
|
*
|
|
18321
18340
|
* @type {{ [key: string]: string; }}
|
package/dist/schematic.esm.js
CHANGED
|
@@ -24973,7 +24973,8 @@ function ListProductsParamsFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
24973
24973
|
ids: json["ids"] == null ? void 0 : json["ids"],
|
|
24974
24974
|
limit: json["limit"] == null ? void 0 : json["limit"],
|
|
24975
24975
|
name: json["name"] == null ? void 0 : json["name"],
|
|
24976
|
-
offset: json["offset"] == null ? void 0 : json["offset"]
|
|
24976
|
+
offset: json["offset"] == null ? void 0 : json["offset"],
|
|
24977
|
+
q: json["q"] == null ? void 0 : json["q"]
|
|
24977
24978
|
};
|
|
24978
24979
|
}
|
|
24979
24980
|
function ListProductsParamsToJSON(value) {
|
|
@@ -24984,7 +24985,8 @@ function ListProductsParamsToJSON(value) {
|
|
|
24984
24985
|
ids: value["ids"],
|
|
24985
24986
|
limit: value["limit"],
|
|
24986
24987
|
name: value["name"],
|
|
24987
|
-
offset: value["offset"]
|
|
24988
|
+
offset: value["offset"],
|
|
24989
|
+
q: value["q"]
|
|
24988
24990
|
};
|
|
24989
24991
|
}
|
|
24990
24992
|
|
|
@@ -26692,6 +26694,7 @@ function UpsertUserRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
26692
26694
|
return {
|
|
26693
26695
|
company: json["company"],
|
|
26694
26696
|
companyId: json["company_id"] == null ? void 0 : json["company_id"],
|
|
26697
|
+
id: json["id"] == null ? void 0 : json["id"],
|
|
26695
26698
|
keys: json["keys"],
|
|
26696
26699
|
lastSeenAt: json["last_seen_at"] == null ? void 0 : new Date(json["last_seen_at"]),
|
|
26697
26700
|
name: json["name"] == null ? void 0 : json["name"],
|
|
@@ -26706,6 +26709,7 @@ function UpsertUserRequestBodyToJSON(value) {
|
|
|
26706
26709
|
return {
|
|
26707
26710
|
company: value["company"],
|
|
26708
26711
|
company_id: value["companyId"],
|
|
26712
|
+
id: value["id"],
|
|
26709
26713
|
keys: value["keys"],
|
|
26710
26714
|
last_seen_at: value["lastSeenAt"] == null ? void 0 : value["lastSeenAt"].toISOString(),
|
|
26711
26715
|
name: value["name"],
|
|
@@ -26759,6 +26763,7 @@ function UpsertUserSubRequestBodyFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
26759
26763
|
}
|
|
26760
26764
|
return {
|
|
26761
26765
|
companyId: json["company_id"] == null ? void 0 : json["company_id"],
|
|
26766
|
+
id: json["id"] == null ? void 0 : json["id"],
|
|
26762
26767
|
keys: json["keys"],
|
|
26763
26768
|
lastSeenAt: json["last_seen_at"] == null ? void 0 : new Date(json["last_seen_at"]),
|
|
26764
26769
|
name: json["name"] == null ? void 0 : json["name"],
|
|
@@ -26772,6 +26777,7 @@ function UpsertUserSubRequestBodyToJSON(value) {
|
|
|
26772
26777
|
}
|
|
26773
26778
|
return {
|
|
26774
26779
|
company_id: value["companyId"],
|
|
26780
|
+
id: value["id"],
|
|
26775
26781
|
keys: value["keys"],
|
|
26776
26782
|
last_seen_at: value["lastSeenAt"] == null ? void 0 : value["lastSeenAt"].toISOString(),
|
|
26777
26783
|
name: value["name"],
|
|
@@ -27544,6 +27550,9 @@ var BillingApi = class extends BaseAPI {
|
|
|
27544
27550
|
if (requestParameters["name"] != null) {
|
|
27545
27551
|
queryParameters["name"] = requestParameters["name"];
|
|
27546
27552
|
}
|
|
27553
|
+
if (requestParameters["q"] != null) {
|
|
27554
|
+
queryParameters["q"] = requestParameters["q"];
|
|
27555
|
+
}
|
|
27547
27556
|
if (requestParameters["limit"] != null) {
|
|
27548
27557
|
queryParameters["limit"] = requestParameters["limit"];
|
|
27549
27558
|
}
|
|
@@ -32903,7 +32912,7 @@ var Schematic = class {
|
|
|
32903
32912
|
constructor(apiKey, opts) {
|
|
32904
32913
|
const { offline = false } = opts ?? {};
|
|
32905
32914
|
const { basePath, flagDefaults = {} } = opts ?? {};
|
|
32906
|
-
const version = "1.0.
|
|
32915
|
+
const version = "1.0.14";
|
|
32907
32916
|
const headers = {
|
|
32908
32917
|
"User-Agent": `schematic-typescript-node@v${version}`
|
|
32909
32918
|
};
|
package/package.json
CHANGED