@deadair/sdk 0.62.1 → 0.63.0
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/activity/types/activity.types.d.ts +1 -1
- package/dist/activity/types/activity.types.d.ts.map +1 -1
- package/dist/deadair.sdk.d.ts +2 -0
- package/dist/deadair.sdk.d.ts.map +1 -1
- package/dist/director/types/director.types.d.ts +2 -0
- package/dist/director/types/director.types.d.ts.map +1 -1
- package/dist/events/events.client.d.ts +47 -0
- package/dist/events/events.client.d.ts.map +1 -0
- package/dist/events/types/events.types.d.ts +280 -0
- package/dist/events/types/events.types.d.ts.map +1 -0
- package/dist/events/types/index.d.ts +2 -0
- package/dist/events/types/index.d.ts.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +322 -99
- package/dist/index.js.map +1 -1
- package/dist/schedule/types/schedule.types.d.ts +4 -0
- package/dist/schedule/types/schedule.types.d.ts.map +1 -1
- package/dist/sdk-options.d.ts +23 -0
- package/dist/sdk-options.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -96,6 +96,61 @@ function parseBigIntHeader(name, value) {
|
|
|
96
96
|
throw new Error(`Response header '${name}' is not a bigint: ${JSON.stringify(value)}`);
|
|
97
97
|
}
|
|
98
98
|
__name(parseBigIntHeader, "parseBigIntHeader");
|
|
99
|
+
function sseRequestHeaders(options) {
|
|
100
|
+
const headers = {
|
|
101
|
+
Accept: "text/event-stream"
|
|
102
|
+
};
|
|
103
|
+
if (options?.lastEventId !== void 0) headers["Last-Event-ID"] = options.lastEventId;
|
|
104
|
+
return headers;
|
|
105
|
+
}
|
|
106
|
+
__name(sseRequestHeaders, "sseRequestHeaders");
|
|
107
|
+
function parseSse(res, parse = (data) => JSON.parse(data)) {
|
|
108
|
+
let lastEventId;
|
|
109
|
+
let iterated = false;
|
|
110
|
+
async function* events() {
|
|
111
|
+
if (!res.body) return;
|
|
112
|
+
const reader = res.body.pipeThrough(new TextDecoderStream()).getReader();
|
|
113
|
+
let buffer = "";
|
|
114
|
+
let data = [];
|
|
115
|
+
try {
|
|
116
|
+
for (; ; ) {
|
|
117
|
+
const chunk = await reader.read();
|
|
118
|
+
if (!chunk.done) buffer += chunk.value;
|
|
119
|
+
for (; ; ) {
|
|
120
|
+
const end = buffer.search(/\r\n|\r|\n/);
|
|
121
|
+
if (end === -1 || !chunk.done && end === buffer.length - 1 && buffer[end] === "\r") break;
|
|
122
|
+
const line = buffer.slice(0, end);
|
|
123
|
+
buffer = buffer.slice(buffer.startsWith("\r\n", end) ? end + 2 : end + 1);
|
|
124
|
+
if (line === "") {
|
|
125
|
+
if (data.length > 0) yield parse(data.join("\n"));
|
|
126
|
+
data = [];
|
|
127
|
+
continue;
|
|
128
|
+
}
|
|
129
|
+
const colon = line.indexOf(":");
|
|
130
|
+
const field = colon === -1 ? line : line.slice(0, colon);
|
|
131
|
+
const value = colon === -1 ? "" : line.slice(line.startsWith(" ", colon + 1) ? colon + 2 : colon + 1);
|
|
132
|
+
if (field === "data") data.push(value);
|
|
133
|
+
else if (field === "id" && !value.includes("\0")) lastEventId = value;
|
|
134
|
+
}
|
|
135
|
+
if (chunk.done) return;
|
|
136
|
+
}
|
|
137
|
+
} finally {
|
|
138
|
+
await reader.cancel().catch(() => void 0);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
__name(events, "events");
|
|
142
|
+
return {
|
|
143
|
+
get lastEventId() {
|
|
144
|
+
return lastEventId;
|
|
145
|
+
},
|
|
146
|
+
[Symbol.asyncIterator]() {
|
|
147
|
+
if (iterated) throw new Error("An SseEventStream can be iterated only once");
|
|
148
|
+
iterated = true;
|
|
149
|
+
return events();
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
__name(parseSse, "parseSse");
|
|
99
154
|
async function parseJson(res) {
|
|
100
155
|
return JSON.parse(await res.text());
|
|
101
156
|
}
|
|
@@ -1816,7 +1871,7 @@ var DirectorClient = class {
|
|
|
1816
1871
|
}
|
|
1817
1872
|
};
|
|
1818
1873
|
|
|
1819
|
-
// src/
|
|
1874
|
+
// src/events/types/events.types.ts
|
|
1820
1875
|
import { DateTime as DateTime6 } from "luxon";
|
|
1821
1876
|
var __dt6 = /* @__PURE__ */ __name((v, path) => {
|
|
1822
1877
|
if (typeof v !== "string") {
|
|
@@ -1826,9 +1881,167 @@ var __dt6 = /* @__PURE__ */ __name((v, path) => {
|
|
|
1826
1881
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
1827
1882
|
return d;
|
|
1828
1883
|
}, "__dt");
|
|
1884
|
+
function reviveEventDestination(raw) {
|
|
1885
|
+
const __o0 = raw;
|
|
1886
|
+
if (__o0["lastDeliveredAt"] != null) {
|
|
1887
|
+
__o0["lastDeliveredAt"] = __dt6(__o0["lastDeliveredAt"], "EventDestination.lastDeliveredAt");
|
|
1888
|
+
}
|
|
1889
|
+
if (__o0["lastFailedAt"] != null) {
|
|
1890
|
+
__o0["lastFailedAt"] = __dt6(__o0["lastFailedAt"], "EventDestination.lastFailedAt");
|
|
1891
|
+
}
|
|
1892
|
+
__o0["createdAt"] = __dt6(__o0["createdAt"], "EventDestination.createdAt");
|
|
1893
|
+
__o0["updatedAt"] = __dt6(__o0["updatedAt"], "EventDestination.updatedAt");
|
|
1894
|
+
return raw;
|
|
1895
|
+
}
|
|
1896
|
+
__name(reviveEventDestination, "reviveEventDestination");
|
|
1897
|
+
function reviveEventDelivery(raw) {
|
|
1898
|
+
const __o0 = raw;
|
|
1899
|
+
__o0["createdAt"] = __dt6(__o0["createdAt"], "EventDelivery.createdAt");
|
|
1900
|
+
return raw;
|
|
1901
|
+
}
|
|
1902
|
+
__name(reviveEventDelivery, "reviveEventDelivery");
|
|
1903
|
+
function reviveEventDestinationList(raw) {
|
|
1904
|
+
const __o0 = raw;
|
|
1905
|
+
{
|
|
1906
|
+
const __a1 = __o0["destinations"];
|
|
1907
|
+
for (let __i2 = 0; __i2 < __a1.length; __i2++) {
|
|
1908
|
+
reviveEventDestination(__a1[__i2]);
|
|
1909
|
+
}
|
|
1910
|
+
}
|
|
1911
|
+
return raw;
|
|
1912
|
+
}
|
|
1913
|
+
__name(reviveEventDestinationList, "reviveEventDestinationList");
|
|
1914
|
+
function reviveEventDestinationCreated(raw) {
|
|
1915
|
+
const __v = [
|
|
1916
|
+
raw
|
|
1917
|
+
];
|
|
1918
|
+
reviveEventDestination(__v[0]);
|
|
1919
|
+
return __v[0];
|
|
1920
|
+
}
|
|
1921
|
+
__name(reviveEventDestinationCreated, "reviveEventDestinationCreated");
|
|
1922
|
+
function reviveEventDeliveryList(raw) {
|
|
1923
|
+
const __o0 = raw;
|
|
1924
|
+
{
|
|
1925
|
+
const __a1 = __o0["deliveries"];
|
|
1926
|
+
for (let __i2 = 0; __i2 < __a1.length; __i2++) {
|
|
1927
|
+
reviveEventDelivery(__a1[__i2]);
|
|
1928
|
+
}
|
|
1929
|
+
}
|
|
1930
|
+
return raw;
|
|
1931
|
+
}
|
|
1932
|
+
__name(reviveEventDeliveryList, "reviveEventDeliveryList");
|
|
1933
|
+
|
|
1934
|
+
// src/events/events.client.ts
|
|
1935
|
+
var EventsClient = class {
|
|
1936
|
+
static {
|
|
1937
|
+
__name(this, "EventsClient");
|
|
1938
|
+
}
|
|
1939
|
+
fetch;
|
|
1940
|
+
constructor(fetch2) {
|
|
1941
|
+
this.fetch = fetch2;
|
|
1942
|
+
}
|
|
1943
|
+
/**
|
|
1944
|
+
* @name List event types
|
|
1945
|
+
* @description Every kind of event the station sends, each with an example of what a destination receives
|
|
1946
|
+
*/
|
|
1947
|
+
async listEventTypes() {
|
|
1948
|
+
const result = await this.fetch(`/events/types`, {
|
|
1949
|
+
method: "GET"
|
|
1950
|
+
});
|
|
1951
|
+
return await parseJson(result);
|
|
1952
|
+
}
|
|
1953
|
+
/**
|
|
1954
|
+
* @name List event destinations
|
|
1955
|
+
* @description Every event destination, oldest first
|
|
1956
|
+
*/
|
|
1957
|
+
async listEventDestinations() {
|
|
1958
|
+
const result = await this.fetch(`/events/destinations`, {
|
|
1959
|
+
method: "GET"
|
|
1960
|
+
});
|
|
1961
|
+
return reviveEventDestinationList(await parseJson(result));
|
|
1962
|
+
}
|
|
1963
|
+
/**
|
|
1964
|
+
* @name Create event destination
|
|
1965
|
+
* @description Add an event destination. The answer carries its signing secret, which is not shown again
|
|
1966
|
+
*/
|
|
1967
|
+
async createEventDestination(body) {
|
|
1968
|
+
const result = await this.fetch(`/events/destinations`, {
|
|
1969
|
+
method: "POST",
|
|
1970
|
+
headers: {
|
|
1971
|
+
"Content-Type": "application/json"
|
|
1972
|
+
},
|
|
1973
|
+
body: JSON.stringify(body, bigIntReplacer)
|
|
1974
|
+
});
|
|
1975
|
+
return reviveEventDestinationCreated(await parseJson(result));
|
|
1976
|
+
}
|
|
1977
|
+
/**
|
|
1978
|
+
* @name Update event destination
|
|
1979
|
+
* @description Change an event destination's name, address, or whether it is on
|
|
1980
|
+
*/
|
|
1981
|
+
async updateEventDestination(id, body) {
|
|
1982
|
+
const result = await this.fetch(`/events/destinations/${encodeURIComponent(id)}`, {
|
|
1983
|
+
method: "PATCH",
|
|
1984
|
+
headers: {
|
|
1985
|
+
"Content-Type": "application/json"
|
|
1986
|
+
},
|
|
1987
|
+
body: JSON.stringify(body, bigIntReplacer)
|
|
1988
|
+
});
|
|
1989
|
+
return reviveEventDestination(await parseJson(result));
|
|
1990
|
+
}
|
|
1991
|
+
/**
|
|
1992
|
+
* @name Delete event destination
|
|
1993
|
+
* @description Remove an event destination and its delivery log
|
|
1994
|
+
*/
|
|
1995
|
+
async deleteEventDestination(id) {
|
|
1996
|
+
await this.fetch(`/events/destinations/${encodeURIComponent(id)}`, {
|
|
1997
|
+
method: "DELETE"
|
|
1998
|
+
});
|
|
1999
|
+
}
|
|
2000
|
+
/**
|
|
2001
|
+
* @name Rotate event destination secret
|
|
2002
|
+
* @description Make a new signing secret for a destination. The old one stops working at once
|
|
2003
|
+
*/
|
|
2004
|
+
async rotateEventDestinationSecret(id) {
|
|
2005
|
+
const result = await this.fetch(`/events/destinations/${encodeURIComponent(id)}/secret`, {
|
|
2006
|
+
method: "POST"
|
|
2007
|
+
});
|
|
2008
|
+
return await parseJson(result);
|
|
2009
|
+
}
|
|
2010
|
+
/**
|
|
2011
|
+
* @name Test event destination
|
|
2012
|
+
* @description Send a destination a test event now, and say what it answered. Sent even when the destination is off
|
|
2013
|
+
*/
|
|
2014
|
+
async testEventDestination(id) {
|
|
2015
|
+
const result = await this.fetch(`/events/destinations/${encodeURIComponent(id)}/test`, {
|
|
2016
|
+
method: "POST"
|
|
2017
|
+
});
|
|
2018
|
+
return await parseJson(result);
|
|
2019
|
+
}
|
|
2020
|
+
/**
|
|
2021
|
+
* @name List event deliveries
|
|
2022
|
+
* @description A destination's latest delivery attempts, newest first
|
|
2023
|
+
*/
|
|
2024
|
+
async listEventDeliveries(id) {
|
|
2025
|
+
const result = await this.fetch(`/events/destinations/${encodeURIComponent(id)}/deliveries`, {
|
|
2026
|
+
method: "GET"
|
|
2027
|
+
});
|
|
2028
|
+
return reviveEventDeliveryList(await parseJson(result));
|
|
2029
|
+
}
|
|
2030
|
+
};
|
|
2031
|
+
|
|
2032
|
+
// src/history/types/history.types.ts
|
|
2033
|
+
import { DateTime as DateTime7 } from "luxon";
|
|
2034
|
+
var __dt7 = /* @__PURE__ */ __name((v, path) => {
|
|
2035
|
+
if (typeof v !== "string") {
|
|
2036
|
+
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
2037
|
+
}
|
|
2038
|
+
const d = DateTime7.fromISO(v);
|
|
2039
|
+
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
2040
|
+
return d;
|
|
2041
|
+
}, "__dt");
|
|
1829
2042
|
function reviveHistoryEntry(raw) {
|
|
1830
2043
|
const __o0 = raw;
|
|
1831
|
-
__o0["airedAt"] =
|
|
2044
|
+
__o0["airedAt"] = __dt7(__o0["airedAt"], "HistoryEntry.airedAt");
|
|
1832
2045
|
return raw;
|
|
1833
2046
|
}
|
|
1834
2047
|
__name(reviveHistoryEntry, "reviveHistoryEntry");
|
|
@@ -1867,18 +2080,18 @@ var HistoryClient = class {
|
|
|
1867
2080
|
};
|
|
1868
2081
|
|
|
1869
2082
|
// src/languages/types/languages.types.ts
|
|
1870
|
-
import { DateTime as
|
|
1871
|
-
var
|
|
2083
|
+
import { DateTime as DateTime8 } from "luxon";
|
|
2084
|
+
var __dt8 = /* @__PURE__ */ __name((v, path) => {
|
|
1872
2085
|
if (typeof v !== "string") {
|
|
1873
2086
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
1874
2087
|
}
|
|
1875
|
-
const d =
|
|
2088
|
+
const d = DateTime8.fromISO(v);
|
|
1876
2089
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
1877
2090
|
return d;
|
|
1878
2091
|
}, "__dt");
|
|
1879
2092
|
function reviveConsoleLanguage(raw) {
|
|
1880
2093
|
const __o0 = raw;
|
|
1881
|
-
__o0["importedAt"] =
|
|
2094
|
+
__o0["importedAt"] = __dt8(__o0["importedAt"], "ConsoleLanguage.importedAt");
|
|
1882
2095
|
return raw;
|
|
1883
2096
|
}
|
|
1884
2097
|
__name(reviveConsoleLanguage, "reviveConsoleLanguage");
|
|
@@ -1974,24 +2187,24 @@ var LanguagesClient = class {
|
|
|
1974
2187
|
};
|
|
1975
2188
|
|
|
1976
2189
|
// src/messaging/types/messaging.types.ts
|
|
1977
|
-
import { DateTime as
|
|
1978
|
-
var
|
|
2190
|
+
import { DateTime as DateTime9 } from "luxon";
|
|
2191
|
+
var __dt9 = /* @__PURE__ */ __name((v, path) => {
|
|
1979
2192
|
if (typeof v !== "string") {
|
|
1980
2193
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
1981
2194
|
}
|
|
1982
|
-
const d =
|
|
2195
|
+
const d = DateTime9.fromISO(v);
|
|
1983
2196
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
1984
2197
|
return d;
|
|
1985
2198
|
}, "__dt");
|
|
1986
2199
|
function reviveMessagingLinkCode(raw) {
|
|
1987
2200
|
const __o0 = raw;
|
|
1988
|
-
__o0["expiresAt"] =
|
|
2201
|
+
__o0["expiresAt"] = __dt9(__o0["expiresAt"], "MessagingLinkCode.expiresAt");
|
|
1989
2202
|
return raw;
|
|
1990
2203
|
}
|
|
1991
2204
|
__name(reviveMessagingLinkCode, "reviveMessagingLinkCode");
|
|
1992
2205
|
function reviveMessagingLink(raw) {
|
|
1993
2206
|
const __o0 = raw;
|
|
1994
|
-
__o0["createdAt"] =
|
|
2207
|
+
__o0["createdAt"] = __dt9(__o0["createdAt"], "MessagingLink.createdAt");
|
|
1995
2208
|
return raw;
|
|
1996
2209
|
}
|
|
1997
2210
|
__name(reviveMessagingLink, "reviveMessagingLink");
|
|
@@ -2162,32 +2375,32 @@ var NowplayingClient = class {
|
|
|
2162
2375
|
};
|
|
2163
2376
|
|
|
2164
2377
|
// src/oauth/types/oauth.types.ts
|
|
2165
|
-
import { DateTime as
|
|
2166
|
-
var
|
|
2378
|
+
import { DateTime as DateTime10 } from "luxon";
|
|
2379
|
+
var __dt10 = /* @__PURE__ */ __name((v, path) => {
|
|
2167
2380
|
if (typeof v !== "string") {
|
|
2168
2381
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
2169
2382
|
}
|
|
2170
|
-
const d =
|
|
2383
|
+
const d = DateTime10.fromISO(v);
|
|
2171
2384
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
2172
2385
|
return d;
|
|
2173
2386
|
}, "__dt");
|
|
2174
2387
|
function reviveOAuthGrant(raw) {
|
|
2175
2388
|
const __o0 = raw;
|
|
2176
|
-
__o0["createdAt"] =
|
|
2389
|
+
__o0["createdAt"] = __dt10(__o0["createdAt"], "OAuthGrant.createdAt");
|
|
2177
2390
|
if (__o0["lastUsedAt"] != null) {
|
|
2178
|
-
__o0["lastUsedAt"] =
|
|
2391
|
+
__o0["lastUsedAt"] = __dt10(__o0["lastUsedAt"], "OAuthGrant.lastUsedAt");
|
|
2179
2392
|
}
|
|
2180
2393
|
return raw;
|
|
2181
2394
|
}
|
|
2182
2395
|
__name(reviveOAuthGrant, "reviveOAuthGrant");
|
|
2183
2396
|
function reviveOAuthClientSummary(raw) {
|
|
2184
2397
|
const __o0 = raw;
|
|
2185
|
-
__o0["createdAt"] =
|
|
2398
|
+
__o0["createdAt"] = __dt10(__o0["createdAt"], "OAuthClientSummary.createdAt");
|
|
2186
2399
|
if (__o0["lastUsedAt"] != null) {
|
|
2187
|
-
__o0["lastUsedAt"] =
|
|
2400
|
+
__o0["lastUsedAt"] = __dt10(__o0["lastUsedAt"], "OAuthClientSummary.lastUsedAt");
|
|
2188
2401
|
}
|
|
2189
2402
|
if (__o0["expiresAt"] != null) {
|
|
2190
|
-
__o0["expiresAt"] =
|
|
2403
|
+
__o0["expiresAt"] = __dt10(__o0["expiresAt"], "OAuthClientSummary.expiresAt");
|
|
2191
2404
|
}
|
|
2192
2405
|
return raw;
|
|
2193
2406
|
}
|
|
@@ -2356,18 +2569,18 @@ var OnboardingClient = class {
|
|
|
2356
2569
|
};
|
|
2357
2570
|
|
|
2358
2571
|
// src/outputs/types/outputs.types.ts
|
|
2359
|
-
import { DateTime as
|
|
2360
|
-
var
|
|
2572
|
+
import { DateTime as DateTime11 } from "luxon";
|
|
2573
|
+
var __dt11 = /* @__PURE__ */ __name((v, path) => {
|
|
2361
2574
|
if (typeof v !== "string") {
|
|
2362
2575
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
2363
2576
|
}
|
|
2364
|
-
const d =
|
|
2577
|
+
const d = DateTime11.fromISO(v);
|
|
2365
2578
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
2366
2579
|
return d;
|
|
2367
2580
|
}, "__dt");
|
|
2368
2581
|
function reviveOutputCast(raw) {
|
|
2369
2582
|
const __o0 = raw;
|
|
2370
|
-
__o0["startedAt"] =
|
|
2583
|
+
__o0["startedAt"] = __dt11(__o0["startedAt"], "OutputCast.startedAt");
|
|
2371
2584
|
return raw;
|
|
2372
2585
|
}
|
|
2373
2586
|
__name(reviveOutputCast, "reviveOutputCast");
|
|
@@ -2910,18 +3123,18 @@ var PersonasClient = class {
|
|
|
2910
3123
|
};
|
|
2911
3124
|
|
|
2912
3125
|
// src/playlists/types/playlists.types.ts
|
|
2913
|
-
import { DateTime as
|
|
2914
|
-
var
|
|
3126
|
+
import { DateTime as DateTime12 } from "luxon";
|
|
3127
|
+
var __dt12 = /* @__PURE__ */ __name((v, path) => {
|
|
2915
3128
|
if (typeof v !== "string") {
|
|
2916
3129
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
2917
3130
|
}
|
|
2918
|
-
const d =
|
|
3131
|
+
const d = DateTime12.fromISO(v);
|
|
2919
3132
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
2920
3133
|
return d;
|
|
2921
3134
|
}, "__dt");
|
|
2922
3135
|
function reviveCatalogPlaylistSource(raw) {
|
|
2923
3136
|
const __o0 = raw;
|
|
2924
|
-
__o0["listedAt"] =
|
|
3137
|
+
__o0["listedAt"] = __dt12(__o0["listedAt"], "CatalogPlaylistSource.listedAt");
|
|
2925
3138
|
return raw;
|
|
2926
3139
|
}
|
|
2927
3140
|
__name(reviveCatalogPlaylistSource, "reviveCatalogPlaylistSource");
|
|
@@ -2940,19 +3153,19 @@ function reviveCatalogPlaylistPage(raw) {
|
|
|
2940
3153
|
__name(reviveCatalogPlaylistPage, "reviveCatalogPlaylistPage");
|
|
2941
3154
|
|
|
2942
3155
|
// src/playlists/types/station.playlists.types.ts
|
|
2943
|
-
import { DateTime as
|
|
2944
|
-
var
|
|
3156
|
+
import { DateTime as DateTime13 } from "luxon";
|
|
3157
|
+
var __dt13 = /* @__PURE__ */ __name((v, path) => {
|
|
2945
3158
|
if (typeof v !== "string") {
|
|
2946
3159
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
2947
3160
|
}
|
|
2948
|
-
const d =
|
|
3161
|
+
const d = DateTime13.fromISO(v);
|
|
2949
3162
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
2950
3163
|
return d;
|
|
2951
3164
|
}, "__dt");
|
|
2952
3165
|
function reviveStationPlaylist(raw) {
|
|
2953
3166
|
const __o0 = raw;
|
|
2954
|
-
__o0["createdAt"] =
|
|
2955
|
-
__o0["updatedAt"] =
|
|
3167
|
+
__o0["createdAt"] = __dt13(__o0["createdAt"], "StationPlaylist.createdAt");
|
|
3168
|
+
__o0["updatedAt"] = __dt13(__o0["updatedAt"], "StationPlaylist.updatedAt");
|
|
2956
3169
|
return raw;
|
|
2957
3170
|
}
|
|
2958
3171
|
__name(reviveStationPlaylist, "reviveStationPlaylist");
|
|
@@ -3250,22 +3463,22 @@ var PlayoutClient = class {
|
|
|
3250
3463
|
};
|
|
3251
3464
|
|
|
3252
3465
|
// src/plugins/types/plugins.types.ts
|
|
3253
|
-
import { DateTime as
|
|
3254
|
-
var
|
|
3466
|
+
import { DateTime as DateTime14 } from "luxon";
|
|
3467
|
+
var __dt14 = /* @__PURE__ */ __name((v, path) => {
|
|
3255
3468
|
if (typeof v !== "string") {
|
|
3256
3469
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
3257
3470
|
}
|
|
3258
|
-
const d =
|
|
3471
|
+
const d = DateTime14.fromISO(v);
|
|
3259
3472
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
3260
3473
|
return d;
|
|
3261
3474
|
}, "__dt");
|
|
3262
3475
|
function revivePluginSummary(raw) {
|
|
3263
3476
|
const __o0 = raw;
|
|
3264
3477
|
if (__o0["firstEnabledAt"] != null) {
|
|
3265
|
-
__o0["firstEnabledAt"] =
|
|
3478
|
+
__o0["firstEnabledAt"] = __dt14(__o0["firstEnabledAt"], "PluginSummary.firstEnabledAt");
|
|
3266
3479
|
}
|
|
3267
3480
|
if (__o0["nextProbeAt"] != null) {
|
|
3268
|
-
__o0["nextProbeAt"] =
|
|
3481
|
+
__o0["nextProbeAt"] = __dt14(__o0["nextProbeAt"], "PluginSummary.nextProbeAt");
|
|
3269
3482
|
}
|
|
3270
3483
|
return raw;
|
|
3271
3484
|
}
|
|
@@ -3520,31 +3733,31 @@ var PluginsClient = class {
|
|
|
3520
3733
|
};
|
|
3521
3734
|
|
|
3522
3735
|
// src/productions/types/productions.types.ts
|
|
3523
|
-
import { DateTime as
|
|
3524
|
-
var
|
|
3736
|
+
import { DateTime as DateTime15 } from "luxon";
|
|
3737
|
+
var __dt15 = /* @__PURE__ */ __name((v, path) => {
|
|
3525
3738
|
if (typeof v !== "string") {
|
|
3526
3739
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
3527
3740
|
}
|
|
3528
|
-
const d =
|
|
3741
|
+
const d = DateTime15.fromISO(v);
|
|
3529
3742
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
3530
3743
|
return d;
|
|
3531
3744
|
}, "__dt");
|
|
3532
3745
|
function reviveProduction(raw) {
|
|
3533
3746
|
const __o0 = raw;
|
|
3534
3747
|
if (__o0["scheduledFor"] != null) {
|
|
3535
|
-
__o0["scheduledFor"] =
|
|
3748
|
+
__o0["scheduledFor"] = __dt15(__o0["scheduledFor"], "Production.scheduledFor");
|
|
3536
3749
|
}
|
|
3537
3750
|
if (__o0["cancelledAt"] != null) {
|
|
3538
|
-
__o0["cancelledAt"] =
|
|
3751
|
+
__o0["cancelledAt"] = __dt15(__o0["cancelledAt"], "Production.cancelledAt");
|
|
3539
3752
|
}
|
|
3540
|
-
__o0["createdAt"] =
|
|
3753
|
+
__o0["createdAt"] = __dt15(__o0["createdAt"], "Production.createdAt");
|
|
3541
3754
|
return raw;
|
|
3542
3755
|
}
|
|
3543
3756
|
__name(reviveProduction, "reviveProduction");
|
|
3544
3757
|
function reviveProductionRequest(raw) {
|
|
3545
3758
|
const __o0 = raw;
|
|
3546
3759
|
if (__o0["scheduledFor"] != null) {
|
|
3547
|
-
__o0["scheduledFor"] =
|
|
3760
|
+
__o0["scheduledFor"] = __dt15(__o0["scheduledFor"], "ProductionRequest.scheduledFor");
|
|
3548
3761
|
}
|
|
3549
3762
|
return raw;
|
|
3550
3763
|
}
|
|
@@ -3562,25 +3775,25 @@ function reviveProductionList(raw) {
|
|
|
3562
3775
|
__name(reviveProductionList, "reviveProductionList");
|
|
3563
3776
|
|
|
3564
3777
|
// src/podcasts/types/podcasts.types.ts
|
|
3565
|
-
import { DateTime as
|
|
3566
|
-
var
|
|
3778
|
+
import { DateTime as DateTime16 } from "luxon";
|
|
3779
|
+
var __dt16 = /* @__PURE__ */ __name((v, path) => {
|
|
3567
3780
|
if (typeof v !== "string") {
|
|
3568
3781
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
3569
3782
|
}
|
|
3570
|
-
const d =
|
|
3783
|
+
const d = DateTime16.fromISO(v);
|
|
3571
3784
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
3572
3785
|
return d;
|
|
3573
3786
|
}, "__dt");
|
|
3574
3787
|
function reviveOwnShow(raw) {
|
|
3575
3788
|
const __o0 = raw;
|
|
3576
|
-
__o0["createdAt"] =
|
|
3789
|
+
__o0["createdAt"] = __dt16(__o0["createdAt"], "OwnShow.createdAt");
|
|
3577
3790
|
return raw;
|
|
3578
3791
|
}
|
|
3579
3792
|
__name(reviveOwnShow, "reviveOwnShow");
|
|
3580
3793
|
function reviveOwnEpisodeRequest(raw) {
|
|
3581
3794
|
const __o0 = raw;
|
|
3582
3795
|
if (__o0["airAt"] != null) {
|
|
3583
|
-
__o0["airAt"] =
|
|
3796
|
+
__o0["airAt"] = __dt16(__o0["airAt"], "OwnEpisodeRequest.airAt");
|
|
3584
3797
|
}
|
|
3585
3798
|
return raw;
|
|
3586
3799
|
}
|
|
@@ -3776,25 +3989,25 @@ var ProductionsClient = class {
|
|
|
3776
3989
|
};
|
|
3777
3990
|
|
|
3778
3991
|
// src/render/types/render.types.ts
|
|
3779
|
-
import { DateTime as
|
|
3780
|
-
var
|
|
3992
|
+
import { DateTime as DateTime17 } from "luxon";
|
|
3993
|
+
var __dt17 = /* @__PURE__ */ __name((v, path) => {
|
|
3781
3994
|
if (typeof v !== "string") {
|
|
3782
3995
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
3783
3996
|
}
|
|
3784
|
-
const d =
|
|
3997
|
+
const d = DateTime17.fromISO(v);
|
|
3785
3998
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
3786
3999
|
return d;
|
|
3787
4000
|
}, "__dt");
|
|
3788
4001
|
function reviveScriptAttempt(raw) {
|
|
3789
4002
|
const __o0 = raw;
|
|
3790
|
-
__o0["at"] =
|
|
4003
|
+
__o0["at"] = __dt17(__o0["at"], "ScriptAttempt.at");
|
|
3791
4004
|
return raw;
|
|
3792
4005
|
}
|
|
3793
4006
|
__name(reviveScriptAttempt, "reviveScriptAttempt");
|
|
3794
4007
|
function revivePad(raw) {
|
|
3795
4008
|
const __o0 = raw;
|
|
3796
4009
|
if (__o0["lastUsedAt"] != null) {
|
|
3797
|
-
__o0["lastUsedAt"] =
|
|
4010
|
+
__o0["lastUsedAt"] = __dt17(__o0["lastUsedAt"], "Pad.lastUsedAt");
|
|
3798
4011
|
}
|
|
3799
4012
|
return raw;
|
|
3800
4013
|
}
|
|
@@ -4292,33 +4505,33 @@ var RenderClient = class {
|
|
|
4292
4505
|
};
|
|
4293
4506
|
|
|
4294
4507
|
// src/requests/types/requests.types.ts
|
|
4295
|
-
import { DateTime as
|
|
4296
|
-
var
|
|
4508
|
+
import { DateTime as DateTime18 } from "luxon";
|
|
4509
|
+
var __dt18 = /* @__PURE__ */ __name((v, path) => {
|
|
4297
4510
|
if (typeof v !== "string") {
|
|
4298
4511
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
4299
4512
|
}
|
|
4300
|
-
const d =
|
|
4513
|
+
const d = DateTime18.fromISO(v);
|
|
4301
4514
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
4302
4515
|
return d;
|
|
4303
4516
|
}, "__dt");
|
|
4304
4517
|
function revivePartyPass(raw) {
|
|
4305
4518
|
const __o0 = raw;
|
|
4306
|
-
__o0["createdAt"] =
|
|
4307
|
-
__o0["expiresAt"] =
|
|
4519
|
+
__o0["createdAt"] = __dt18(__o0["createdAt"], "PartyPass.createdAt");
|
|
4520
|
+
__o0["expiresAt"] = __dt18(__o0["expiresAt"], "PartyPass.expiresAt");
|
|
4308
4521
|
return raw;
|
|
4309
4522
|
}
|
|
4310
4523
|
__name(revivePartyPass, "revivePartyPass");
|
|
4311
4524
|
function revivePartyGuestSession(raw) {
|
|
4312
4525
|
const __o0 = raw;
|
|
4313
|
-
__o0["expiresAt"] =
|
|
4526
|
+
__o0["expiresAt"] = __dt18(__o0["expiresAt"], "PartyGuestSession.expiresAt");
|
|
4314
4527
|
return raw;
|
|
4315
4528
|
}
|
|
4316
4529
|
__name(revivePartyGuestSession, "revivePartyGuestSession");
|
|
4317
4530
|
function reviveListenerRequest(raw) {
|
|
4318
4531
|
const __o0 = raw;
|
|
4319
|
-
__o0["createdAt"] =
|
|
4532
|
+
__o0["createdAt"] = __dt18(__o0["createdAt"], "ListenerRequest.createdAt");
|
|
4320
4533
|
if (__o0["airedAt"] != null) {
|
|
4321
|
-
__o0["airedAt"] =
|
|
4534
|
+
__o0["airedAt"] = __dt18(__o0["airedAt"], "ListenerRequest.airedAt");
|
|
4322
4535
|
}
|
|
4323
4536
|
return raw;
|
|
4324
4537
|
}
|
|
@@ -4620,19 +4833,19 @@ var SettingsClient = class {
|
|
|
4620
4833
|
};
|
|
4621
4834
|
|
|
4622
4835
|
// src/station/types/logs.types.ts
|
|
4623
|
-
import { DateTime as
|
|
4624
|
-
var
|
|
4836
|
+
import { DateTime as DateTime19 } from "luxon";
|
|
4837
|
+
var __dt19 = /* @__PURE__ */ __name((v, path) => {
|
|
4625
4838
|
if (typeof v !== "string") {
|
|
4626
4839
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
4627
4840
|
}
|
|
4628
|
-
const d =
|
|
4841
|
+
const d = DateTime19.fromISO(v);
|
|
4629
4842
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
4630
4843
|
return d;
|
|
4631
4844
|
}, "__dt");
|
|
4632
4845
|
function reviveLogSource(raw) {
|
|
4633
4846
|
const __o0 = raw;
|
|
4634
4847
|
if (__o0["lastWriteAt"] != null) {
|
|
4635
|
-
__o0["lastWriteAt"] =
|
|
4848
|
+
__o0["lastWriteAt"] = __dt19(__o0["lastWriteAt"], "LogSource.lastWriteAt");
|
|
4636
4849
|
}
|
|
4637
4850
|
return raw;
|
|
4638
4851
|
}
|
|
@@ -4650,12 +4863,12 @@ function reviveLogSourceList(raw) {
|
|
|
4650
4863
|
__name(reviveLogSourceList, "reviveLogSourceList");
|
|
4651
4864
|
|
|
4652
4865
|
// src/station/types/station.types.ts
|
|
4653
|
-
import { DateTime as
|
|
4654
|
-
var
|
|
4866
|
+
import { DateTime as DateTime20 } from "luxon";
|
|
4867
|
+
var __dt20 = /* @__PURE__ */ __name((v, path) => {
|
|
4655
4868
|
if (typeof v !== "string") {
|
|
4656
4869
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
4657
4870
|
}
|
|
4658
|
-
const d =
|
|
4871
|
+
const d = DateTime20.fromISO(v);
|
|
4659
4872
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
4660
4873
|
return d;
|
|
4661
4874
|
}, "__dt");
|
|
@@ -4663,22 +4876,22 @@ var __dtf = /* @__PURE__ */ __name((v, path, fmt) => {
|
|
|
4663
4876
|
if (typeof v !== "string") {
|
|
4664
4877
|
throw new TypeError(`ContractKit: expected a string at '${path}' in format ${fmt}, received ${typeof v}.`);
|
|
4665
4878
|
}
|
|
4666
|
-
const d =
|
|
4879
|
+
const d = DateTime20.fromFormat(v, fmt);
|
|
4667
4880
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' does not match format ${fmt}.`);
|
|
4668
4881
|
return d;
|
|
4669
4882
|
}, "__dtf");
|
|
4670
4883
|
function reviveStationHeartbeat(raw) {
|
|
4671
4884
|
const __o0 = raw;
|
|
4672
|
-
__o0["startedAt"] =
|
|
4885
|
+
__o0["startedAt"] = __dt20(__o0["startedAt"], "StationHeartbeat.startedAt");
|
|
4673
4886
|
if (__o0["lastBeat"] != null) {
|
|
4674
|
-
__o0["lastBeat"] =
|
|
4887
|
+
__o0["lastBeat"] = __dt20(__o0["lastBeat"], "StationHeartbeat.lastBeat");
|
|
4675
4888
|
}
|
|
4676
4889
|
return raw;
|
|
4677
4890
|
}
|
|
4678
4891
|
__name(reviveStationHeartbeat, "reviveStationHeartbeat");
|
|
4679
4892
|
function reviveStationModelHolder(raw) {
|
|
4680
4893
|
const __o0 = raw;
|
|
4681
|
-
__o0["heldSince"] =
|
|
4894
|
+
__o0["heldSince"] = __dt20(__o0["heldSince"], "StationModelHolder.heldSince");
|
|
4682
4895
|
return raw;
|
|
4683
4896
|
}
|
|
4684
4897
|
__name(reviveStationModelHolder, "reviveStationModelHolder");
|
|
@@ -4707,7 +4920,7 @@ function reviveStationReleases(raw) {
|
|
|
4707
4920
|
}
|
|
4708
4921
|
}
|
|
4709
4922
|
if (__o0["checkedAt"] != null) {
|
|
4710
|
-
__o0["checkedAt"] =
|
|
4923
|
+
__o0["checkedAt"] = __dt20(__o0["checkedAt"], "StationReleases.checkedAt");
|
|
4711
4924
|
}
|
|
4712
4925
|
{
|
|
4713
4926
|
const __a3 = __o0["available"];
|
|
@@ -4720,7 +4933,7 @@ function reviveStationReleases(raw) {
|
|
|
4720
4933
|
__name(reviveStationReleases, "reviveStationReleases");
|
|
4721
4934
|
function reviveStationCheckup(raw) {
|
|
4722
4935
|
const __o0 = raw;
|
|
4723
|
-
__o0["readAt"] =
|
|
4936
|
+
__o0["readAt"] = __dt20(__o0["readAt"], "StationCheckup.readAt");
|
|
4724
4937
|
if (__o0["heartbeats"] != null) {
|
|
4725
4938
|
{
|
|
4726
4939
|
const __a1 = __o0["heartbeats"];
|
|
@@ -4737,24 +4950,24 @@ function reviveStationCheckup(raw) {
|
|
|
4737
4950
|
__name(reviveStationCheckup, "reviveStationCheckup");
|
|
4738
4951
|
|
|
4739
4952
|
// src/station/types/traces.types.ts
|
|
4740
|
-
import { DateTime as
|
|
4741
|
-
var
|
|
4953
|
+
import { DateTime as DateTime21 } from "luxon";
|
|
4954
|
+
var __dt21 = /* @__PURE__ */ __name((v, path) => {
|
|
4742
4955
|
if (typeof v !== "string") {
|
|
4743
4956
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
4744
4957
|
}
|
|
4745
|
-
const d =
|
|
4958
|
+
const d = DateTime21.fromISO(v);
|
|
4746
4959
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
4747
4960
|
return d;
|
|
4748
4961
|
}, "__dt");
|
|
4749
4962
|
function reviveTraceDecision(raw) {
|
|
4750
4963
|
const __o0 = raw;
|
|
4751
|
-
__o0["at"] =
|
|
4964
|
+
__o0["at"] = __dt21(__o0["at"], "TraceDecision.at");
|
|
4752
4965
|
return raw;
|
|
4753
4966
|
}
|
|
4754
4967
|
__name(reviveTraceDecision, "reviveTraceDecision");
|
|
4755
4968
|
function reviveTraceSpan(raw) {
|
|
4756
4969
|
const __o0 = raw;
|
|
4757
|
-
__o0["at"] =
|
|
4970
|
+
__o0["at"] = __dt21(__o0["at"], "TraceSpan.at");
|
|
4758
4971
|
return raw;
|
|
4759
4972
|
}
|
|
4760
4973
|
__name(reviveTraceSpan, "reviveTraceSpan");
|
|
@@ -4910,18 +5123,18 @@ var StationClient = class {
|
|
|
4910
5123
|
};
|
|
4911
5124
|
|
|
4912
5125
|
// src/storage/types/storage.types.ts
|
|
4913
|
-
import { DateTime as
|
|
4914
|
-
var
|
|
5126
|
+
import { DateTime as DateTime22 } from "luxon";
|
|
5127
|
+
var __dt22 = /* @__PURE__ */ __name((v, path) => {
|
|
4915
5128
|
if (typeof v !== "string") {
|
|
4916
5129
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
4917
5130
|
}
|
|
4918
|
-
const d =
|
|
5131
|
+
const d = DateTime22.fromISO(v);
|
|
4919
5132
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
4920
5133
|
return d;
|
|
4921
5134
|
}, "__dt");
|
|
4922
5135
|
function reviveStorageReport(raw) {
|
|
4923
5136
|
const __o0 = raw;
|
|
4924
|
-
__o0["readAt"] =
|
|
5137
|
+
__o0["readAt"] = __dt22(__o0["readAt"], "StorageReport.readAt");
|
|
4925
5138
|
return raw;
|
|
4926
5139
|
}
|
|
4927
5140
|
__name(reviveStorageReport, "reviveStorageReport");
|
|
@@ -5099,27 +5312,27 @@ var TopicsClient = class {
|
|
|
5099
5312
|
};
|
|
5100
5313
|
|
|
5101
5314
|
// src/users/types/users.types.ts
|
|
5102
|
-
import { DateTime as
|
|
5103
|
-
var
|
|
5315
|
+
import { DateTime as DateTime23 } from "luxon";
|
|
5316
|
+
var __dt23 = /* @__PURE__ */ __name((v, path) => {
|
|
5104
5317
|
if (typeof v !== "string") {
|
|
5105
5318
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
5106
5319
|
}
|
|
5107
|
-
const d =
|
|
5320
|
+
const d = DateTime23.fromISO(v);
|
|
5108
5321
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
5109
5322
|
return d;
|
|
5110
5323
|
}, "__dt");
|
|
5111
5324
|
function reviveUserSummary(raw) {
|
|
5112
5325
|
const __o0 = raw;
|
|
5113
|
-
__o0["createdAt"] =
|
|
5326
|
+
__o0["createdAt"] = __dt23(__o0["createdAt"], "UserSummary.createdAt");
|
|
5114
5327
|
if (__o0["lastSignInAt"] != null) {
|
|
5115
|
-
__o0["lastSignInAt"] =
|
|
5328
|
+
__o0["lastSignInAt"] = __dt23(__o0["lastSignInAt"], "UserSummary.lastSignInAt");
|
|
5116
5329
|
}
|
|
5117
5330
|
return raw;
|
|
5118
5331
|
}
|
|
5119
5332
|
__name(reviveUserSummary, "reviveUserSummary");
|
|
5120
5333
|
function reviveUserSignIn(raw) {
|
|
5121
5334
|
const __o0 = raw;
|
|
5122
|
-
__o0["occurredAt"] =
|
|
5335
|
+
__o0["occurredAt"] = __dt23(__o0["occurredAt"], "UserSignIn.occurredAt");
|
|
5123
5336
|
return raw;
|
|
5124
5337
|
}
|
|
5125
5338
|
__name(reviveUserSignIn, "reviveUserSignIn");
|
|
@@ -5154,30 +5367,30 @@ function reviveUserDetail(raw) {
|
|
|
5154
5367
|
__name(reviveUserDetail, "reviveUserDetail");
|
|
5155
5368
|
|
|
5156
5369
|
// src/users/types/invitations.types.ts
|
|
5157
|
-
import { DateTime as
|
|
5158
|
-
var
|
|
5370
|
+
import { DateTime as DateTime24 } from "luxon";
|
|
5371
|
+
var __dt24 = /* @__PURE__ */ __name((v, path) => {
|
|
5159
5372
|
if (typeof v !== "string") {
|
|
5160
5373
|
throw new TypeError(`ContractKit: expected an ISO 8601 string at '${path}', received ${typeof v}.`);
|
|
5161
5374
|
}
|
|
5162
|
-
const d =
|
|
5375
|
+
const d = DateTime24.fromISO(v);
|
|
5163
5376
|
if (!d.isValid) throw new TypeError(`ContractKit: '${v}' at '${path}' is not a valid ISO 8601 datetime.`);
|
|
5164
5377
|
return d;
|
|
5165
5378
|
}, "__dt");
|
|
5166
5379
|
function reviveInvitationDetails(raw) {
|
|
5167
5380
|
const __o0 = raw;
|
|
5168
|
-
__o0["expiresAt"] =
|
|
5381
|
+
__o0["expiresAt"] = __dt24(__o0["expiresAt"], "InvitationDetails.expiresAt");
|
|
5169
5382
|
return raw;
|
|
5170
5383
|
}
|
|
5171
5384
|
__name(reviveInvitationDetails, "reviveInvitationDetails");
|
|
5172
5385
|
function reviveInvitation(raw) {
|
|
5173
5386
|
const __o0 = raw;
|
|
5174
|
-
__o0["createdAt"] =
|
|
5175
|
-
__o0["expiresAt"] =
|
|
5387
|
+
__o0["createdAt"] = __dt24(__o0["createdAt"], "Invitation.createdAt");
|
|
5388
|
+
__o0["expiresAt"] = __dt24(__o0["expiresAt"], "Invitation.expiresAt");
|
|
5176
5389
|
if (__o0["acceptedAt"] != null) {
|
|
5177
|
-
__o0["acceptedAt"] =
|
|
5390
|
+
__o0["acceptedAt"] = __dt24(__o0["acceptedAt"], "Invitation.acceptedAt");
|
|
5178
5391
|
}
|
|
5179
5392
|
if (__o0["revokedAt"] != null) {
|
|
5180
|
-
__o0["revokedAt"] =
|
|
5393
|
+
__o0["revokedAt"] = __dt24(__o0["revokedAt"], "Invitation.revokedAt");
|
|
5181
5394
|
}
|
|
5182
5395
|
return raw;
|
|
5183
5396
|
}
|
|
@@ -5378,6 +5591,7 @@ var DeadairSdk = class {
|
|
|
5378
5591
|
catalog;
|
|
5379
5592
|
charts;
|
|
5380
5593
|
director;
|
|
5594
|
+
events;
|
|
5381
5595
|
history;
|
|
5382
5596
|
languages;
|
|
5383
5597
|
messaging;
|
|
@@ -5410,6 +5624,7 @@ var DeadairSdk = class {
|
|
|
5410
5624
|
this.catalog = new CatalogClient(sdkFetch);
|
|
5411
5625
|
this.charts = new ChartsClient(sdkFetch);
|
|
5412
5626
|
this.director = new DirectorClient(sdkFetch);
|
|
5627
|
+
this.events = new EventsClient(sdkFetch);
|
|
5413
5628
|
this.history = new HistoryClient(sdkFetch);
|
|
5414
5629
|
this.languages = new LanguagesClient(sdkFetch);
|
|
5415
5630
|
this.messaging = new MessagingClient(sdkFetch);
|
|
@@ -5447,6 +5662,7 @@ export {
|
|
|
5447
5662
|
ChartsClient,
|
|
5448
5663
|
DeadairSdk,
|
|
5449
5664
|
DirectorClient,
|
|
5665
|
+
EventsClient,
|
|
5450
5666
|
HistoryClient,
|
|
5451
5667
|
LanguagesClient,
|
|
5452
5668
|
MessagingClient,
|
|
@@ -5482,6 +5698,7 @@ export {
|
|
|
5482
5698
|
parseBigIntHeader,
|
|
5483
5699
|
parseJson,
|
|
5484
5700
|
parseJsonWithBigInt,
|
|
5701
|
+
parseSse,
|
|
5485
5702
|
readContentType,
|
|
5486
5703
|
reviveActivityEntry,
|
|
5487
5704
|
reviveActivityPage,
|
|
@@ -5508,6 +5725,11 @@ export {
|
|
|
5508
5725
|
reviveConsoleLanguage,
|
|
5509
5726
|
reviveConsoleLanguageList,
|
|
5510
5727
|
reviveEmailFactorRegistrationResponse,
|
|
5728
|
+
reviveEventDelivery,
|
|
5729
|
+
reviveEventDeliveryList,
|
|
5730
|
+
reviveEventDestination,
|
|
5731
|
+
reviveEventDestinationCreated,
|
|
5732
|
+
reviveEventDestinationList,
|
|
5511
5733
|
reviveFactClaim,
|
|
5512
5734
|
reviveFactorChallengeEmailStartResponse,
|
|
5513
5735
|
reviveFactorChallengeEmailStartResponseOutput,
|
|
@@ -5595,6 +5817,7 @@ export {
|
|
|
5595
5817
|
reviveUserDetail,
|
|
5596
5818
|
reviveUserPage,
|
|
5597
5819
|
reviveUserSignIn,
|
|
5598
|
-
reviveUserSummary
|
|
5820
|
+
reviveUserSummary,
|
|
5821
|
+
sseRequestHeaders
|
|
5599
5822
|
};
|
|
5600
5823
|
//# sourceMappingURL=index.js.map
|