@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.cjs
CHANGED
|
@@ -1880,6 +1880,10 @@ __export(index_exports, {
|
|
|
1880
1880
|
WaaSBatchPublishResponseFromJSONTyped: () => WaaSBatchPublishResponseFromJSONTyped,
|
|
1881
1881
|
WaaSBatchPublishResponseToJSON: () => WaaSBatchPublishResponseToJSON,
|
|
1882
1882
|
WaaSBatchPublishResponseToJSONTyped: () => WaaSBatchPublishResponseToJSONTyped,
|
|
1883
|
+
WaaSBatchPublishResultFromJSON: () => WaaSBatchPublishResultFromJSON,
|
|
1884
|
+
WaaSBatchPublishResultFromJSONTyped: () => WaaSBatchPublishResultFromJSONTyped,
|
|
1885
|
+
WaaSBatchPublishResultToJSON: () => WaaSBatchPublishResultToJSON,
|
|
1886
|
+
WaaSBatchPublishResultToJSONTyped: () => WaaSBatchPublishResultToJSONTyped,
|
|
1883
1887
|
WaaSDeliveriesApi: () => WaaSDeliveriesApi,
|
|
1884
1888
|
WaaSDeliveryFromJSON: () => WaaSDeliveryFromJSON,
|
|
1885
1889
|
WaaSDeliveryFromJSONTyped: () => WaaSDeliveryFromJSONTyped,
|
|
@@ -2618,6 +2622,7 @@ __export(index_exports, {
|
|
|
2618
2622
|
instanceOfWaaSApplication: () => instanceOfWaaSApplication,
|
|
2619
2623
|
instanceOfWaaSBatchPublishRequest: () => instanceOfWaaSBatchPublishRequest,
|
|
2620
2624
|
instanceOfWaaSBatchPublishResponse: () => instanceOfWaaSBatchPublishResponse,
|
|
2625
|
+
instanceOfWaaSBatchPublishResult: () => instanceOfWaaSBatchPublishResult,
|
|
2621
2626
|
instanceOfWaaSDelivery: () => instanceOfWaaSDelivery,
|
|
2622
2627
|
instanceOfWaaSEndpoint: () => instanceOfWaaSEndpoint,
|
|
2623
2628
|
instanceOfWaaSEventType: () => instanceOfWaaSEventType,
|
|
@@ -4573,6 +4578,49 @@ function AuthUserResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
4573
4578
|
};
|
|
4574
4579
|
}
|
|
4575
4580
|
|
|
4581
|
+
// src/src/models/WaaSBatchPublishResult.ts
|
|
4582
|
+
function instanceOfWaaSBatchPublishResult(value) {
|
|
4583
|
+
return true;
|
|
4584
|
+
}
|
|
4585
|
+
function WaaSBatchPublishResultFromJSON(json) {
|
|
4586
|
+
return WaaSBatchPublishResultFromJSONTyped(json, false);
|
|
4587
|
+
}
|
|
4588
|
+
function WaaSBatchPublishResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
4589
|
+
if (json == null) {
|
|
4590
|
+
return json;
|
|
4591
|
+
}
|
|
4592
|
+
return {
|
|
4593
|
+
"eventId": json["event_id"] == null ? void 0 : json["event_id"],
|
|
4594
|
+
"eventType": json["event_type"] == null ? void 0 : json["event_type"],
|
|
4595
|
+
"tenantId": json["tenant_id"] == null ? void 0 : json["tenant_id"],
|
|
4596
|
+
"endpointsMatched": json["endpoints_matched"] == null ? void 0 : json["endpoints_matched"],
|
|
4597
|
+
"deliveriesCreated": json["deliveries_created"] == null ? void 0 : json["deliveries_created"],
|
|
4598
|
+
"createdAt": json["created_at"] == null ? void 0 : new Date(json["created_at"]),
|
|
4599
|
+
"deduplicated": json["deduplicated"] == null ? void 0 : json["deduplicated"],
|
|
4600
|
+
"error": json["error"] == null ? void 0 : json["error"],
|
|
4601
|
+
"code": json["code"] == null ? void 0 : json["code"]
|
|
4602
|
+
};
|
|
4603
|
+
}
|
|
4604
|
+
function WaaSBatchPublishResultToJSON(json) {
|
|
4605
|
+
return WaaSBatchPublishResultToJSONTyped(json, false);
|
|
4606
|
+
}
|
|
4607
|
+
function WaaSBatchPublishResultToJSONTyped(value, ignoreDiscriminator = false) {
|
|
4608
|
+
if (value == null) {
|
|
4609
|
+
return value;
|
|
4610
|
+
}
|
|
4611
|
+
return {
|
|
4612
|
+
"event_id": value["eventId"],
|
|
4613
|
+
"event_type": value["eventType"],
|
|
4614
|
+
"tenant_id": value["tenantId"],
|
|
4615
|
+
"endpoints_matched": value["endpointsMatched"],
|
|
4616
|
+
"deliveries_created": value["deliveriesCreated"],
|
|
4617
|
+
"created_at": value["createdAt"] == null ? void 0 : value["createdAt"].toISOString(),
|
|
4618
|
+
"deduplicated": value["deduplicated"],
|
|
4619
|
+
"error": value["error"],
|
|
4620
|
+
"code": value["code"]
|
|
4621
|
+
};
|
|
4622
|
+
}
|
|
4623
|
+
|
|
4576
4624
|
// src/src/models/WaaSBatchPublishResponse.ts
|
|
4577
4625
|
function instanceOfWaaSBatchPublishResponse(value) {
|
|
4578
4626
|
return true;
|
|
@@ -4585,9 +4633,10 @@ function WaaSBatchPublishResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
4585
4633
|
return json;
|
|
4586
4634
|
}
|
|
4587
4635
|
return {
|
|
4588
|
-
"
|
|
4636
|
+
"total": json["total"] == null ? void 0 : json["total"],
|
|
4637
|
+
"succeeded": json["succeeded"] == null ? void 0 : json["succeeded"],
|
|
4589
4638
|
"failed": json["failed"] == null ? void 0 : json["failed"],
|
|
4590
|
-
"results": json["results"] == null ? void 0 : json["results"]
|
|
4639
|
+
"results": json["results"] == null ? void 0 : json["results"].map(WaaSBatchPublishResultFromJSON)
|
|
4591
4640
|
};
|
|
4592
4641
|
}
|
|
4593
4642
|
function WaaSBatchPublishResponseToJSON(json) {
|
|
@@ -4598,9 +4647,10 @@ function WaaSBatchPublishResponseToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
4598
4647
|
return value;
|
|
4599
4648
|
}
|
|
4600
4649
|
return {
|
|
4601
|
-
"
|
|
4650
|
+
"total": value["total"],
|
|
4651
|
+
"succeeded": value["succeeded"],
|
|
4602
4652
|
"failed": value["failed"],
|
|
4603
|
-
"results": value["results"]
|
|
4653
|
+
"results": value["results"] == null ? void 0 : value["results"].map(WaaSBatchPublishResultToJSON)
|
|
4604
4654
|
};
|
|
4605
4655
|
}
|
|
4606
4656
|
|
|
@@ -12002,7 +12052,9 @@ function WaaSPublishEventResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
12002
12052
|
"eventType": json["event_type"] == null ? void 0 : json["event_type"],
|
|
12003
12053
|
"tenantId": json["tenant_id"] == null ? void 0 : json["tenant_id"],
|
|
12004
12054
|
"endpointsMatched": json["endpoints_matched"] == null ? void 0 : json["endpoints_matched"],
|
|
12005
|
-
"deliveriesCreated": json["deliveries_created"] == null ? void 0 : json["deliveries_created"]
|
|
12055
|
+
"deliveriesCreated": json["deliveries_created"] == null ? void 0 : json["deliveries_created"],
|
|
12056
|
+
"createdAt": json["created_at"] == null ? void 0 : new Date(json["created_at"]),
|
|
12057
|
+
"deduplicated": json["deduplicated"] == null ? void 0 : json["deduplicated"]
|
|
12006
12058
|
};
|
|
12007
12059
|
}
|
|
12008
12060
|
function WaaSPublishEventResponseToJSON(json) {
|
|
@@ -12017,7 +12069,9 @@ function WaaSPublishEventResponseToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
12017
12069
|
"event_type": value["eventType"],
|
|
12018
12070
|
"tenant_id": value["tenantId"],
|
|
12019
12071
|
"endpoints_matched": value["endpointsMatched"],
|
|
12020
|
-
"deliveries_created": value["deliveriesCreated"]
|
|
12072
|
+
"deliveries_created": value["deliveriesCreated"],
|
|
12073
|
+
"created_at": value["createdAt"] == null ? void 0 : value["createdAt"].toISOString(),
|
|
12074
|
+
"deduplicated": value["deduplicated"]
|
|
12021
12075
|
};
|
|
12022
12076
|
}
|
|
12023
12077
|
|
|
@@ -32919,6 +32973,10 @@ var SDK_VERSION = "0.1.0";
|
|
|
32919
32973
|
WaaSBatchPublishResponseFromJSONTyped,
|
|
32920
32974
|
WaaSBatchPublishResponseToJSON,
|
|
32921
32975
|
WaaSBatchPublishResponseToJSONTyped,
|
|
32976
|
+
WaaSBatchPublishResultFromJSON,
|
|
32977
|
+
WaaSBatchPublishResultFromJSONTyped,
|
|
32978
|
+
WaaSBatchPublishResultToJSON,
|
|
32979
|
+
WaaSBatchPublishResultToJSONTyped,
|
|
32922
32980
|
WaaSDeliveriesApi,
|
|
32923
32981
|
WaaSDeliveryFromJSON,
|
|
32924
32982
|
WaaSDeliveryFromJSONTyped,
|
|
@@ -33657,6 +33715,7 @@ var SDK_VERSION = "0.1.0";
|
|
|
33657
33715
|
instanceOfWaaSApplication,
|
|
33658
33716
|
instanceOfWaaSBatchPublishRequest,
|
|
33659
33717
|
instanceOfWaaSBatchPublishResponse,
|
|
33718
|
+
instanceOfWaaSBatchPublishResult,
|
|
33660
33719
|
instanceOfWaaSDelivery,
|
|
33661
33720
|
instanceOfWaaSEndpoint,
|
|
33662
33721
|
instanceOfWaaSEventType,
|