@smplkit/sdk 3.0.51 → 3.0.52
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/index.cjs +12 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +40 -10
- package/dist/index.d.ts +40 -10
- package/dist/index.js +12 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -19936,16 +19936,15 @@ function _paginationFromBody2(body) {
|
|
|
19936
19936
|
}
|
|
19937
19937
|
return out;
|
|
19938
19938
|
}
|
|
19939
|
-
function
|
|
19939
|
+
function _configurationToWire(config) {
|
|
19940
19940
|
return {
|
|
19941
|
-
method:
|
|
19942
|
-
url:
|
|
19943
|
-
headers:
|
|
19944
|
-
|
|
19945
|
-
success_status: http.successStatus
|
|
19941
|
+
method: config.method,
|
|
19942
|
+
url: config.url,
|
|
19943
|
+
headers: config.headers.map((h) => ({ name: h.name, value: h.value })),
|
|
19944
|
+
success_status: config.successStatus
|
|
19946
19945
|
};
|
|
19947
19946
|
}
|
|
19948
|
-
function
|
|
19947
|
+
function _configurationFromWire(raw) {
|
|
19949
19948
|
const r = raw ?? {};
|
|
19950
19949
|
const headers = (r.headers ?? []).map((h) => ({
|
|
19951
19950
|
name: String(h.name ?? ""),
|
|
@@ -19955,7 +19954,6 @@ function _httpFromWire(raw) {
|
|
|
19955
19954
|
method: String(r.method ?? "POST"),
|
|
19956
19955
|
url: String(r.url ?? ""),
|
|
19957
19956
|
headers,
|
|
19958
|
-
body: r.body ?? null,
|
|
19959
19957
|
successStatus: String(r.success_status ?? "2xx")
|
|
19960
19958
|
};
|
|
19961
19959
|
}
|
|
@@ -19964,11 +19962,13 @@ function _forwarderAttributes(input) {
|
|
|
19964
19962
|
name: input.name,
|
|
19965
19963
|
forwarder_type: input.forwarderType,
|
|
19966
19964
|
enabled: input.enabled ?? true,
|
|
19967
|
-
|
|
19965
|
+
configuration: _configurationToWire(input.configuration)
|
|
19968
19966
|
};
|
|
19967
|
+
if (input.description !== void 0) attrs.description = input.description;
|
|
19969
19968
|
if (input.filter !== void 0) {
|
|
19970
19969
|
attrs.filter = input.filter;
|
|
19971
19970
|
}
|
|
19971
|
+
if (input.transformType !== void 0) attrs.transform_type = input.transformType;
|
|
19972
19972
|
if (input.transform !== void 0) attrs.transform = input.transform;
|
|
19973
19973
|
return attrs;
|
|
19974
19974
|
}
|
|
@@ -19977,12 +19977,13 @@ function _forwarderFromResource(resource) {
|
|
|
19977
19977
|
return {
|
|
19978
19978
|
id: resource.id,
|
|
19979
19979
|
name: String(a.name ?? ""),
|
|
19980
|
-
|
|
19980
|
+
description: a.description ?? null,
|
|
19981
19981
|
forwarderType: a.forwarder_type,
|
|
19982
19982
|
enabled: Boolean(a.enabled ?? true),
|
|
19983
19983
|
filter: a.filter ?? null,
|
|
19984
|
+
transformType: a.transform_type ?? null,
|
|
19984
19985
|
transform: a.transform ?? null,
|
|
19985
|
-
|
|
19986
|
+
configuration: _configurationFromWire(a.configuration),
|
|
19986
19987
|
createdAt: a.created_at ?? null,
|
|
19987
19988
|
updatedAt: a.updated_at ?? null,
|
|
19988
19989
|
deletedAt: a.deleted_at ?? null,
|