@zyphr-dev/node-sdk 0.1.60 → 0.1.61
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 +65 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +106 -6
- package/dist/index.d.ts +106 -6
- package/dist/index.js +60 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +1 -0
- package/src/src/models/WaaSBatchPublishResponse.ts +24 -8
- package/src/src/models/WaaSBatchPublishResult.ts +129 -0
- package/src/src/models/WaaSPublishEventResponse.ts +17 -1
- package/src/src/models/index.ts +1 -0
package/dist/index.js
CHANGED
|
@@ -1880,6 +1880,49 @@ function AuthUserResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
1880
1880
|
};
|
|
1881
1881
|
}
|
|
1882
1882
|
|
|
1883
|
+
// src/src/models/WaaSBatchPublishResult.ts
|
|
1884
|
+
function instanceOfWaaSBatchPublishResult(value) {
|
|
1885
|
+
return true;
|
|
1886
|
+
}
|
|
1887
|
+
function WaaSBatchPublishResultFromJSON(json) {
|
|
1888
|
+
return WaaSBatchPublishResultFromJSONTyped(json, false);
|
|
1889
|
+
}
|
|
1890
|
+
function WaaSBatchPublishResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
1891
|
+
if (json == null) {
|
|
1892
|
+
return json;
|
|
1893
|
+
}
|
|
1894
|
+
return {
|
|
1895
|
+
"eventId": json["event_id"] == null ? void 0 : json["event_id"],
|
|
1896
|
+
"eventType": json["event_type"] == null ? void 0 : json["event_type"],
|
|
1897
|
+
"tenantId": json["tenant_id"] == null ? void 0 : json["tenant_id"],
|
|
1898
|
+
"endpointsMatched": json["endpoints_matched"] == null ? void 0 : json["endpoints_matched"],
|
|
1899
|
+
"deliveriesCreated": json["deliveries_created"] == null ? void 0 : json["deliveries_created"],
|
|
1900
|
+
"createdAt": json["created_at"] == null ? void 0 : new Date(json["created_at"]),
|
|
1901
|
+
"deduplicated": json["deduplicated"] == null ? void 0 : json["deduplicated"],
|
|
1902
|
+
"error": json["error"] == null ? void 0 : json["error"],
|
|
1903
|
+
"code": json["code"] == null ? void 0 : json["code"]
|
|
1904
|
+
};
|
|
1905
|
+
}
|
|
1906
|
+
function WaaSBatchPublishResultToJSON(json) {
|
|
1907
|
+
return WaaSBatchPublishResultToJSONTyped(json, false);
|
|
1908
|
+
}
|
|
1909
|
+
function WaaSBatchPublishResultToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1910
|
+
if (value == null) {
|
|
1911
|
+
return value;
|
|
1912
|
+
}
|
|
1913
|
+
return {
|
|
1914
|
+
"event_id": value["eventId"],
|
|
1915
|
+
"event_type": value["eventType"],
|
|
1916
|
+
"tenant_id": value["tenantId"],
|
|
1917
|
+
"endpoints_matched": value["endpointsMatched"],
|
|
1918
|
+
"deliveries_created": value["deliveriesCreated"],
|
|
1919
|
+
"created_at": value["createdAt"] == null ? void 0 : value["createdAt"].toISOString(),
|
|
1920
|
+
"deduplicated": value["deduplicated"],
|
|
1921
|
+
"error": value["error"],
|
|
1922
|
+
"code": value["code"]
|
|
1923
|
+
};
|
|
1924
|
+
}
|
|
1925
|
+
|
|
1883
1926
|
// src/src/models/WaaSBatchPublishResponse.ts
|
|
1884
1927
|
function instanceOfWaaSBatchPublishResponse(value) {
|
|
1885
1928
|
return true;
|
|
@@ -1892,9 +1935,10 @@ function WaaSBatchPublishResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
1892
1935
|
return json;
|
|
1893
1936
|
}
|
|
1894
1937
|
return {
|
|
1895
|
-
"
|
|
1938
|
+
"total": json["total"] == null ? void 0 : json["total"],
|
|
1939
|
+
"succeeded": json["succeeded"] == null ? void 0 : json["succeeded"],
|
|
1896
1940
|
"failed": json["failed"] == null ? void 0 : json["failed"],
|
|
1897
|
-
"results": json["results"] == null ? void 0 : json["results"]
|
|
1941
|
+
"results": json["results"] == null ? void 0 : json["results"].map(WaaSBatchPublishResultFromJSON)
|
|
1898
1942
|
};
|
|
1899
1943
|
}
|
|
1900
1944
|
function WaaSBatchPublishResponseToJSON(json) {
|
|
@@ -1905,9 +1949,10 @@ function WaaSBatchPublishResponseToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
1905
1949
|
return value;
|
|
1906
1950
|
}
|
|
1907
1951
|
return {
|
|
1908
|
-
"
|
|
1952
|
+
"total": value["total"],
|
|
1953
|
+
"succeeded": value["succeeded"],
|
|
1909
1954
|
"failed": value["failed"],
|
|
1910
|
-
"results": value["results"]
|
|
1955
|
+
"results": value["results"] == null ? void 0 : value["results"].map(WaaSBatchPublishResultToJSON)
|
|
1911
1956
|
};
|
|
1912
1957
|
}
|
|
1913
1958
|
|
|
@@ -9309,7 +9354,9 @@ function WaaSPublishEventResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
9309
9354
|
"eventType": json["event_type"] == null ? void 0 : json["event_type"],
|
|
9310
9355
|
"tenantId": json["tenant_id"] == null ? void 0 : json["tenant_id"],
|
|
9311
9356
|
"endpointsMatched": json["endpoints_matched"] == null ? void 0 : json["endpoints_matched"],
|
|
9312
|
-
"deliveriesCreated": json["deliveries_created"] == null ? void 0 : json["deliveries_created"]
|
|
9357
|
+
"deliveriesCreated": json["deliveries_created"] == null ? void 0 : json["deliveries_created"],
|
|
9358
|
+
"createdAt": json["created_at"] == null ? void 0 : new Date(json["created_at"]),
|
|
9359
|
+
"deduplicated": json["deduplicated"] == null ? void 0 : json["deduplicated"]
|
|
9313
9360
|
};
|
|
9314
9361
|
}
|
|
9315
9362
|
function WaaSPublishEventResponseToJSON(json) {
|
|
@@ -9324,7 +9371,9 @@ function WaaSPublishEventResponseToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
9324
9371
|
"event_type": value["eventType"],
|
|
9325
9372
|
"tenant_id": value["tenantId"],
|
|
9326
9373
|
"endpoints_matched": value["endpointsMatched"],
|
|
9327
|
-
"deliveries_created": value["deliveriesCreated"]
|
|
9374
|
+
"deliveries_created": value["deliveriesCreated"],
|
|
9375
|
+
"created_at": value["createdAt"] == null ? void 0 : value["createdAt"].toISOString(),
|
|
9376
|
+
"deduplicated": value["deduplicated"]
|
|
9328
9377
|
};
|
|
9329
9378
|
}
|
|
9330
9379
|
|
|
@@ -30225,6 +30274,10 @@ export {
|
|
|
30225
30274
|
WaaSBatchPublishResponseFromJSONTyped,
|
|
30226
30275
|
WaaSBatchPublishResponseToJSON,
|
|
30227
30276
|
WaaSBatchPublishResponseToJSONTyped,
|
|
30277
|
+
WaaSBatchPublishResultFromJSON,
|
|
30278
|
+
WaaSBatchPublishResultFromJSONTyped,
|
|
30279
|
+
WaaSBatchPublishResultToJSON,
|
|
30280
|
+
WaaSBatchPublishResultToJSONTyped,
|
|
30228
30281
|
WaaSDeliveriesApi,
|
|
30229
30282
|
WaaSDeliveryFromJSON,
|
|
30230
30283
|
WaaSDeliveryFromJSONTyped,
|
|
@@ -30963,6 +31016,7 @@ export {
|
|
|
30963
31016
|
instanceOfWaaSApplication,
|
|
30964
31017
|
instanceOfWaaSBatchPublishRequest,
|
|
30965
31018
|
instanceOfWaaSBatchPublishResponse,
|
|
31019
|
+
instanceOfWaaSBatchPublishResult,
|
|
30966
31020
|
instanceOfWaaSDelivery,
|
|
30967
31021
|
instanceOfWaaSEndpoint,
|
|
30968
31022
|
instanceOfWaaSEventType,
|