@nizam-os/dashboard-sdk 8.0.1 → 9.0.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/Client.d.ts +9 -0
- package/dist/Client.js +36 -24
- package/dist/api/resources/devices/client/Client.d.ts +71 -0
- package/dist/api/resources/devices/client/Client.js +238 -0
- package/dist/api/resources/devices/client/index.d.ts +1 -0
- package/dist/api/resources/devices/client/index.js +17 -0
- package/dist/api/resources/devices/client/requests/DeregisterDeviceRequest.d.ts +9 -0
- package/dist/api/resources/devices/client/requests/DeregisterDeviceRequest.js +3 -0
- package/dist/api/resources/devices/client/requests/RegisterDevice.d.ts +22 -0
- package/dist/api/resources/devices/client/requests/RegisterDevice.js +13 -0
- package/dist/api/resources/devices/client/requests/index.d.ts +2 -0
- package/dist/api/resources/devices/client/requests/index.js +5 -0
- package/dist/api/resources/devices/exports.d.ts +2 -0
- package/dist/api/resources/devices/exports.js +21 -0
- package/dist/api/resources/devices/index.d.ts +1 -0
- package/dist/api/resources/devices/index.js +17 -0
- package/dist/api/resources/index.d.ts +6 -0
- package/dist/api/resources/index.js +7 -1
- package/dist/api/resources/notificationPreferences/client/Client.d.ts +49 -0
- package/dist/api/resources/notificationPreferences/client/Client.js +175 -0
- package/dist/api/resources/notificationPreferences/client/index.d.ts +1 -0
- package/dist/api/resources/notificationPreferences/client/index.js +17 -0
- package/dist/api/resources/notificationPreferences/client/requests/UpdateNotificationPreferences.d.ts +11 -0
- package/dist/api/resources/notificationPreferences/client/requests/UpdateNotificationPreferences.js +3 -0
- package/dist/api/resources/notificationPreferences/client/requests/index.d.ts +1 -0
- package/dist/api/resources/notificationPreferences/client/requests/index.js +2 -0
- package/dist/api/resources/notificationPreferences/exports.d.ts +2 -0
- package/dist/api/resources/notificationPreferences/exports.js +21 -0
- package/dist/api/resources/notificationPreferences/index.d.ts +1 -0
- package/dist/api/resources/notificationPreferences/index.js +17 -0
- package/dist/api/resources/notifications/client/Client.d.ts +179 -0
- package/dist/api/resources/notifications/client/Client.js +623 -0
- package/dist/api/resources/notifications/client/index.d.ts +1 -0
- package/dist/api/resources/notifications/client/index.js +17 -0
- package/dist/api/resources/notifications/client/requests/ArchiveNotificationRequest.d.ts +9 -0
- package/dist/api/resources/notifications/client/requests/ArchiveNotificationRequest.js +3 -0
- package/dist/api/resources/notifications/client/requests/ListNotificationsRequest.d.ts +30 -0
- package/dist/api/resources/notifications/client/requests/ListNotificationsRequest.js +3 -0
- package/dist/api/resources/notifications/client/requests/MarkNotificationReadRequest.d.ts +9 -0
- package/dist/api/resources/notifications/client/requests/MarkNotificationReadRequest.js +3 -0
- package/dist/api/resources/notifications/client/requests/MarkNotificationUnreadRequest.d.ts +9 -0
- package/dist/api/resources/notifications/client/requests/MarkNotificationUnreadRequest.js +3 -0
- package/dist/api/resources/notifications/client/requests/UnarchiveNotificationRequest.d.ts +9 -0
- package/dist/api/resources/notifications/client/requests/UnarchiveNotificationRequest.js +3 -0
- package/dist/api/resources/notifications/client/requests/index.d.ts +5 -0
- package/dist/api/resources/notifications/client/requests/index.js +2 -0
- package/dist/api/resources/notifications/exports.d.ts +2 -0
- package/dist/api/resources/notifications/exports.js +21 -0
- package/dist/api/resources/notifications/index.d.ts +1 -0
- package/dist/api/resources/notifications/index.js +17 -0
- package/dist/api/types/ActiveOrganization.d.ts +2 -2
- package/dist/api/types/ActiveOrganization.js +1 -1
- package/dist/api/types/ActivityResource.d.ts +2 -2
- package/dist/api/types/ActivityResource.js +1 -1
- package/dist/api/types/Asset.d.ts +2 -2
- package/dist/api/types/Asset.js +1 -1
- package/dist/api/types/AssetListItem.d.ts +2 -2
- package/dist/api/types/AssetListItem.js +1 -1
- package/dist/api/types/Assignment.d.ts +2 -2
- package/dist/api/types/Assignment.js +1 -1
- package/dist/api/types/BusinessCategory.d.ts +2 -2
- package/dist/api/types/BusinessCategory.js +1 -1
- package/dist/api/types/Country.d.ts +2 -2
- package/dist/api/types/Country.js +1 -1
- package/dist/api/types/Currency.d.ts +2 -2
- package/dist/api/types/Currency.js +1 -1
- package/dist/api/types/Device.d.ts +24 -0
- package/dist/api/types/Device.js +11 -0
- package/dist/api/types/Devices.d.ts +17 -0
- package/dist/api/types/Devices.js +11 -0
- package/dist/api/types/Invite.d.ts +2 -2
- package/dist/api/types/Invite.js +1 -1
- package/dist/api/types/Language.d.ts +2 -2
- package/dist/api/types/Language.js +1 -1
- package/dist/api/types/ListResponseActivityResource.d.ts +3 -3
- package/dist/api/types/ListResponseActivityResource.js +1 -1
- package/dist/api/types/ListResponseAssetListItem.d.ts +3 -3
- package/dist/api/types/ListResponseAssetListItem.js +1 -1
- package/dist/api/types/ListResponseBusinessCategory.d.ts +3 -3
- package/dist/api/types/ListResponseBusinessCategory.js +1 -1
- package/dist/api/types/ListResponseCountry.d.ts +3 -3
- package/dist/api/types/ListResponseCountry.js +1 -1
- package/dist/api/types/ListResponseCurrency.d.ts +3 -3
- package/dist/api/types/ListResponseCurrency.js +1 -1
- package/dist/api/types/ListResponseFile.d.ts +3 -3
- package/dist/api/types/ListResponseFile.js +1 -1
- package/dist/api/types/ListResponseHeatmapCell.d.ts +3 -3
- package/dist/api/types/ListResponseHeatmapCell.js +1 -1
- package/dist/api/types/ListResponseJob.d.ts +3 -3
- package/dist/api/types/ListResponseJob.js +1 -1
- package/dist/api/types/ListResponseLanguage.d.ts +3 -3
- package/dist/api/types/ListResponseLanguage.js +1 -1
- package/dist/api/types/ListResponseMembership.d.ts +3 -3
- package/dist/api/types/ListResponseMembership.js +1 -1
- package/dist/api/types/ListResponseNotification.d.ts +27 -0
- package/dist/api/types/ListResponseNotification.js +11 -0
- package/dist/api/types/ListResponseNotificationDeadLetter.d.ts +27 -0
- package/dist/api/types/ListResponseNotificationDeadLetter.js +11 -0
- package/dist/api/types/ListResponseOperatorPosition.d.ts +3 -3
- package/dist/api/types/ListResponseOperatorPosition.js +1 -1
- package/dist/api/types/ListResponseOrganization.d.ts +3 -3
- package/dist/api/types/ListResponseOrganization.js +1 -1
- package/dist/api/types/ListResponsePosition.d.ts +3 -3
- package/dist/api/types/ListResponsePosition.js +1 -1
- package/dist/api/types/ListResponseTimezone.d.ts +3 -3
- package/dist/api/types/ListResponseTimezone.js +1 -1
- package/dist/api/types/ListResponseUserResource.d.ts +3 -3
- package/dist/api/types/ListResponseUserResource.js +1 -1
- package/dist/api/types/Membership.d.ts +2 -2
- package/dist/api/types/Membership.js +1 -1
- package/dist/api/types/Notification.d.ts +52 -0
- package/dist/api/types/Notification.js +27 -0
- package/dist/api/types/NotificationCategoryCount.d.ts +23 -0
- package/dist/api/types/NotificationCategoryCount.js +16 -0
- package/dist/api/types/NotificationCounts.d.ts +23 -0
- package/dist/api/types/NotificationCounts.js +11 -0
- package/dist/api/types/NotificationDeadLetter.d.ts +36 -0
- package/dist/api/types/NotificationDeadLetter.js +11 -0
- package/dist/api/types/NotificationPreference.d.ts +13 -0
- package/dist/api/types/NotificationPreference.js +3 -0
- package/dist/api/types/NotificationPreferenceItem.d.ts +13 -0
- package/dist/api/types/NotificationPreferenceItem.js +3 -0
- package/dist/api/types/NotificationPreferences.d.ts +17 -0
- package/dist/api/types/NotificationPreferences.js +11 -0
- package/dist/api/types/NotificationUnreadCount.d.ts +16 -0
- package/dist/api/types/NotificationUnreadCount.js +11 -0
- package/dist/api/types/NotificationsArchived.d.ts +16 -0
- package/dist/api/types/NotificationsArchived.js +11 -0
- package/dist/api/types/NotificationsMarkedRead.d.ts +16 -0
- package/dist/api/types/NotificationsMarkedRead.js +11 -0
- package/dist/api/types/Operator.d.ts +2 -2
- package/dist/api/types/Operator.js +1 -1
- package/dist/api/types/Organization.d.ts +2 -2
- package/dist/api/types/Organization.js +1 -1
- package/dist/api/types/QuietHours.d.ts +11 -0
- package/dist/api/types/QuietHours.js +3 -0
- package/dist/api/types/RealtimeTicket.d.ts +2 -2
- package/dist/api/types/RealtimeTicket.js +1 -1
- package/dist/api/types/ReconcileResponse.d.ts +2 -2
- package/dist/api/types/ReconcileResponse.js +1 -1
- package/dist/api/types/Timezone.d.ts +2 -2
- package/dist/api/types/Timezone.js +1 -1
- package/dist/api/types/User.d.ts +2 -2
- package/dist/api/types/User.js +1 -1
- package/dist/api/types/UserResource.d.ts +2 -2
- package/dist/api/types/UserResource.js +1 -1
- package/dist/api/types/index.d.ts +15 -0
- package/dist/api/types/index.js +15 -0
- package/package.json +1 -1
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* status: "<string>",
|
|
5
|
+
* q: "<string>",
|
|
6
|
+
* since: "2026-05-20T14:00:00Z",
|
|
7
|
+
* starting_after: "Y3Vyc29yX25leHRfMDFKNVE=",
|
|
8
|
+
* ending_before: "Y3Vyc29yX25leHRfMDFKNVE="
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface ListNotificationsRequest {
|
|
12
|
+
/** Inbox segment. One of: `all` (default — active, non-archived), `unread`, `read`, `archived`. */
|
|
13
|
+
status?: string;
|
|
14
|
+
/** Filter by category. Comma-separated; values: `transactional`, `operational`, `alert`, `marketing`, `security`, `system`. */
|
|
15
|
+
category?: string | string[];
|
|
16
|
+
/** Filter by notification kind (wire key). Comma-separated; e.g. `membership.joined`. */
|
|
17
|
+
kind?: string | string[];
|
|
18
|
+
/** Free-text search over the notification title/body (max 200 chars). */
|
|
19
|
+
q?: string;
|
|
20
|
+
/** Only notifications created at/after this RFC 3339 instant. */
|
|
21
|
+
since?: string;
|
|
22
|
+
/** Sort order. Allowed fields: `created_at`. Prefix a field with `-` for descending (e.g. `-created_at`); unknown fields are rejected with `400 validation_failed`. */
|
|
23
|
+
sort?: string | string[];
|
|
24
|
+
/** Page size. Default 20, maximum 100. Out-of-range values are silently clamped; the response body's `limit` field reflects what was applied. */
|
|
25
|
+
limit?: number;
|
|
26
|
+
/** Opaque cursor — return the page starting strictly after this entity in the sort order. Mutually exclusive with `ending_before`. */
|
|
27
|
+
starting_after?: string;
|
|
28
|
+
/** Opaque cursor — return the page ending strictly before this entity in the sort order. Mutually exclusive with `starting_after`. */
|
|
29
|
+
ending_before?: string;
|
|
30
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export type { ArchiveNotificationRequest } from "./ArchiveNotificationRequest.js";
|
|
2
|
+
export type { ListNotificationsRequest } from "./ListNotificationsRequest.js";
|
|
3
|
+
export type { MarkNotificationReadRequest } from "./MarkNotificationReadRequest.js";
|
|
4
|
+
export type { MarkNotificationUnreadRequest } from "./MarkNotificationUnreadRequest.js";
|
|
5
|
+
export type { UnarchiveNotificationRequest } from "./UnarchiveNotificationRequest.js";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
|
+
};
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.NotificationsClient = void 0;
|
|
19
|
+
var Client_js_1 = require("./client/Client.js");
|
|
20
|
+
Object.defineProperty(exports, "NotificationsClient", { enumerable: true, get: function () { return Client_js_1.NotificationsClient; } });
|
|
21
|
+
__exportStar(require("./client/index.js"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./client/index.js"), exports);
|
|
@@ -9,11 +9,11 @@ export interface ActiveOrganization {
|
|
|
9
9
|
preferred_organization_id?: string | undefined;
|
|
10
10
|
/** All active memberships for the picker UI. */
|
|
11
11
|
memberships?: NizamDashboard.MembershipChoice[] | undefined;
|
|
12
|
-
/** Object type discriminator
|
|
12
|
+
/** Object type discriminator. */
|
|
13
13
|
object?: ActiveOrganization.Object_ | undefined;
|
|
14
14
|
}
|
|
15
15
|
export declare namespace ActiveOrganization {
|
|
16
|
-
/** Object type discriminator
|
|
16
|
+
/** Object type discriminator. */
|
|
17
17
|
const Object_: {
|
|
18
18
|
readonly ActiveOrganization: "active_organization";
|
|
19
19
|
};
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.ActiveOrganization = void 0;
|
|
5
5
|
var ActiveOrganization;
|
|
6
6
|
(function (ActiveOrganization) {
|
|
7
|
-
/** Object type discriminator
|
|
7
|
+
/** Object type discriminator. */
|
|
8
8
|
ActiveOrganization.Object_ = {
|
|
9
9
|
ActiveOrganization: "active_organization",
|
|
10
10
|
};
|
|
@@ -22,7 +22,7 @@ export interface ActivityResource {
|
|
|
22
22
|
log_name?: string | undefined;
|
|
23
23
|
/** When the activity was recorded — the authoritative timestamp. */
|
|
24
24
|
occurred_at?: string | undefined;
|
|
25
|
-
/** Object type discriminator
|
|
25
|
+
/** Object type discriminator. */
|
|
26
26
|
object?: ActivityResource.Object_ | undefined;
|
|
27
27
|
}
|
|
28
28
|
export declare namespace ActivityResource {
|
|
@@ -47,7 +47,7 @@ export declare namespace ActivityResource {
|
|
|
47
47
|
readonly Custom: "custom";
|
|
48
48
|
};
|
|
49
49
|
type Event = (typeof Event)[keyof typeof Event];
|
|
50
|
-
/** Object type discriminator
|
|
50
|
+
/** Object type discriminator. */
|
|
51
51
|
const Object_: {
|
|
52
52
|
readonly Activity: "activity";
|
|
53
53
|
};
|
|
@@ -22,7 +22,7 @@ export interface Asset {
|
|
|
22
22
|
organization_id?: string | undefined;
|
|
23
23
|
/** Current primary operator (active assignment, role=primary). */
|
|
24
24
|
current_primary_operator_id?: string | undefined;
|
|
25
|
-
/** Object type discriminator
|
|
25
|
+
/** Object type discriminator. */
|
|
26
26
|
object?: Asset.Object_ | undefined;
|
|
27
27
|
}
|
|
28
28
|
export declare namespace Asset {
|
|
@@ -50,7 +50,7 @@ export declare namespace Asset {
|
|
|
50
50
|
readonly Lost: "lost";
|
|
51
51
|
};
|
|
52
52
|
type Status = (typeof Status)[keyof typeof Status];
|
|
53
|
-
/** Object type discriminator
|
|
53
|
+
/** Object type discriminator. */
|
|
54
54
|
const Object_: {
|
|
55
55
|
readonly Asset: "asset";
|
|
56
56
|
};
|
package/dist/api/types/Asset.js
CHANGED
|
@@ -28,7 +28,7 @@ export interface AssetListItem {
|
|
|
28
28
|
rank?: number | undefined;
|
|
29
29
|
/** Highlighted match fragment when the request carried `q&highlight=true`. Matched terms are wrapped in `<mark>…</mark>`. */
|
|
30
30
|
snippet?: string | undefined;
|
|
31
|
-
/** Object type discriminator
|
|
31
|
+
/** Object type discriminator. */
|
|
32
32
|
object?: AssetListItem.Object_ | undefined;
|
|
33
33
|
}
|
|
34
34
|
export declare namespace AssetListItem {
|
|
@@ -56,7 +56,7 @@ export declare namespace AssetListItem {
|
|
|
56
56
|
readonly Lost: "lost";
|
|
57
57
|
};
|
|
58
58
|
type Status = (typeof Status)[keyof typeof Status];
|
|
59
|
-
/** Object type discriminator
|
|
59
|
+
/** Object type discriminator. */
|
|
60
60
|
const Object_: {
|
|
61
61
|
readonly Asset: "asset";
|
|
62
62
|
};
|
|
@@ -16,7 +16,7 @@ export interface Assignment {
|
|
|
16
16
|
valid_until?: string | undefined;
|
|
17
17
|
/** Why the assignment was closed (null while active). */
|
|
18
18
|
terminated_reason?: Assignment.TerminatedReason | undefined;
|
|
19
|
-
/** Object type discriminator
|
|
19
|
+
/** Object type discriminator. */
|
|
20
20
|
object?: Assignment.Object_ | undefined;
|
|
21
21
|
}
|
|
22
22
|
export declare namespace Assignment {
|
|
@@ -41,7 +41,7 @@ export declare namespace Assignment {
|
|
|
41
41
|
readonly ManualClose: "manual_close";
|
|
42
42
|
};
|
|
43
43
|
type TerminatedReason = (typeof TerminatedReason)[keyof typeof TerminatedReason];
|
|
44
|
-
/** Object type discriminator
|
|
44
|
+
/** Object type discriminator. */
|
|
45
45
|
const Object_: {
|
|
46
46
|
readonly Assignment: "assignment";
|
|
47
47
|
};
|
|
@@ -6,11 +6,11 @@ export interface BusinessCategory {
|
|
|
6
6
|
slug?: string | undefined;
|
|
7
7
|
/** Human-readable label for picker UIs. */
|
|
8
8
|
display_name?: string | undefined;
|
|
9
|
-
/** Object type discriminator
|
|
9
|
+
/** Object type discriminator. */
|
|
10
10
|
object?: BusinessCategory.Object_ | undefined;
|
|
11
11
|
}
|
|
12
12
|
export declare namespace BusinessCategory {
|
|
13
|
-
/** Object type discriminator
|
|
13
|
+
/** Object type discriminator. */
|
|
14
14
|
const Object_: {
|
|
15
15
|
readonly BusinessCategory: "business_category";
|
|
16
16
|
};
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.BusinessCategory = void 0;
|
|
5
5
|
var BusinessCategory;
|
|
6
6
|
(function (BusinessCategory) {
|
|
7
|
-
/** Object type discriminator
|
|
7
|
+
/** Object type discriminator. */
|
|
8
8
|
BusinessCategory.Object_ = {
|
|
9
9
|
BusinessCategory: "business_category",
|
|
10
10
|
};
|
|
@@ -8,11 +8,11 @@ export interface Country {
|
|
|
8
8
|
name?: string | undefined;
|
|
9
9
|
/** E.164 country calling code with `+` prefix, or null if not allocated. */
|
|
10
10
|
calling_code?: string | undefined;
|
|
11
|
-
/** Object type discriminator
|
|
11
|
+
/** Object type discriminator. */
|
|
12
12
|
object?: Country.Object_ | undefined;
|
|
13
13
|
}
|
|
14
14
|
export declare namespace Country {
|
|
15
|
-
/** Object type discriminator
|
|
15
|
+
/** Object type discriminator. */
|
|
16
16
|
const Object_: {
|
|
17
17
|
readonly Country: "country";
|
|
18
18
|
};
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.Country = void 0;
|
|
5
5
|
var Country;
|
|
6
6
|
(function (Country) {
|
|
7
|
-
/** Object type discriminator
|
|
7
|
+
/** Object type discriminator. */
|
|
8
8
|
Country.Object_ = {
|
|
9
9
|
Country: "country",
|
|
10
10
|
};
|
|
@@ -10,11 +10,11 @@ export interface Currency {
|
|
|
10
10
|
symbol?: string | undefined;
|
|
11
11
|
/** Default number of fractional digits per ISO 4217. */
|
|
12
12
|
fraction_digits?: number | undefined;
|
|
13
|
-
/** Object type discriminator
|
|
13
|
+
/** Object type discriminator. */
|
|
14
14
|
object?: Currency.Object_ | undefined;
|
|
15
15
|
}
|
|
16
16
|
export declare namespace Currency {
|
|
17
|
-
/** Object type discriminator
|
|
17
|
+
/** Object type discriminator. */
|
|
18
18
|
const Object_: {
|
|
19
19
|
readonly Currency: "currency";
|
|
20
20
|
};
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.Currency = void 0;
|
|
5
5
|
var Currency;
|
|
6
6
|
(function (Currency) {
|
|
7
|
-
/** Object type discriminator
|
|
7
|
+
/** Object type discriminator. */
|
|
8
8
|
Currency.Object_ = {
|
|
9
9
|
Currency: "currency",
|
|
10
10
|
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A registered push device (the token is never returned).
|
|
3
|
+
*/
|
|
4
|
+
export interface Device {
|
|
5
|
+
/** Device id. */
|
|
6
|
+
id?: string | undefined;
|
|
7
|
+
/** Push transport. */
|
|
8
|
+
platform?: string | undefined;
|
|
9
|
+
/** Registration lifecycle. */
|
|
10
|
+
status?: string | undefined;
|
|
11
|
+
/** When the device was first registered. */
|
|
12
|
+
registered_at?: string | undefined;
|
|
13
|
+
/** When the registration was last refreshed (last seen). */
|
|
14
|
+
last_seen_at?: string | undefined;
|
|
15
|
+
/** Object type discriminator. */
|
|
16
|
+
object?: Device.Object_ | undefined;
|
|
17
|
+
}
|
|
18
|
+
export declare namespace Device {
|
|
19
|
+
/** Object type discriminator. */
|
|
20
|
+
const Object_: {
|
|
21
|
+
readonly Device: "device";
|
|
22
|
+
};
|
|
23
|
+
type Object_ = (typeof Object_)[keyof typeof Object_];
|
|
24
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Device = void 0;
|
|
5
|
+
var Device;
|
|
6
|
+
(function (Device) {
|
|
7
|
+
/** Object type discriminator. */
|
|
8
|
+
Device.Object_ = {
|
|
9
|
+
Device: "device",
|
|
10
|
+
};
|
|
11
|
+
})(Device || (exports.Device = Device = {}));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type * as NizamDashboard from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* The current user's registered push devices.
|
|
4
|
+
*/
|
|
5
|
+
export interface Devices {
|
|
6
|
+
/** The caller's live device registrations. */
|
|
7
|
+
devices?: NizamDashboard.Device[] | undefined;
|
|
8
|
+
/** Object type discriminator. */
|
|
9
|
+
object?: Devices.Object_ | undefined;
|
|
10
|
+
}
|
|
11
|
+
export declare namespace Devices {
|
|
12
|
+
/** Object type discriminator. */
|
|
13
|
+
const Object_: {
|
|
14
|
+
readonly DeviceList: "device_list";
|
|
15
|
+
};
|
|
16
|
+
type Object_ = (typeof Object_)[keyof typeof Object_];
|
|
17
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Devices = void 0;
|
|
5
|
+
var Devices;
|
|
6
|
+
(function (Devices) {
|
|
7
|
+
/** Object type discriminator. */
|
|
8
|
+
Devices.Object_ = {
|
|
9
|
+
DeviceList: "device_list",
|
|
10
|
+
};
|
|
11
|
+
})(Devices || (exports.Devices = Devices = {}));
|
|
@@ -16,7 +16,7 @@ export interface Invite {
|
|
|
16
16
|
expires_at?: string | undefined;
|
|
17
17
|
/** Bearer secret used to redeem the invite. Returned only on POST /v1/invites; subsequent lookups omit it. */
|
|
18
18
|
token?: string | undefined;
|
|
19
|
-
/** Object type discriminator
|
|
19
|
+
/** Object type discriminator. */
|
|
20
20
|
object?: Invite.Object_ | undefined;
|
|
21
21
|
}
|
|
22
22
|
export declare namespace Invite {
|
|
@@ -38,7 +38,7 @@ export declare namespace Invite {
|
|
|
38
38
|
readonly Revoked: "revoked";
|
|
39
39
|
};
|
|
40
40
|
type Status = (typeof Status)[keyof typeof Status];
|
|
41
|
-
/** Object type discriminator
|
|
41
|
+
/** Object type discriminator. */
|
|
42
42
|
const Object_: {
|
|
43
43
|
readonly Invite: "invite";
|
|
44
44
|
};
|
package/dist/api/types/Invite.js
CHANGED
|
@@ -8,11 +8,11 @@ export interface Language {
|
|
|
8
8
|
name?: string | undefined;
|
|
9
9
|
/** Name in the language itself, useful in language pickers. */
|
|
10
10
|
native_name?: string | undefined;
|
|
11
|
-
/** Object type discriminator
|
|
11
|
+
/** Object type discriminator. */
|
|
12
12
|
object?: Language.Object_ | undefined;
|
|
13
13
|
}
|
|
14
14
|
export declare namespace Language {
|
|
15
|
-
/** Object type discriminator
|
|
15
|
+
/** Object type discriminator. */
|
|
16
16
|
const Object_: {
|
|
17
17
|
readonly Language: "language";
|
|
18
18
|
};
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.Language = void 0;
|
|
5
5
|
var Language;
|
|
6
6
|
(function (Language) {
|
|
7
|
-
/** Object type discriminator
|
|
7
|
+
/** Object type discriminator. */
|
|
8
8
|
Language.Object_ = {
|
|
9
9
|
Language: "language",
|
|
10
10
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type * as NizamDashboard from "../index.js";
|
|
2
2
|
/**
|
|
3
|
-
* Envelope for paginated list responses (
|
|
3
|
+
* Envelope for paginated list responses (opaque cursor pagination).
|
|
4
4
|
*/
|
|
5
5
|
export interface ListResponseActivityResource {
|
|
6
|
-
/** Object type discriminator
|
|
6
|
+
/** Object type discriminator. Always `list` for this envelope. */
|
|
7
7
|
object?: ListResponseActivityResource.Object_ | undefined;
|
|
8
8
|
/** Page of resources. Empty array when there are no matches. */
|
|
9
9
|
data?: NizamDashboard.ActivityResource[] | undefined;
|
|
@@ -19,7 +19,7 @@ export interface ListResponseActivityResource {
|
|
|
19
19
|
limit?: number | undefined;
|
|
20
20
|
}
|
|
21
21
|
export declare namespace ListResponseActivityResource {
|
|
22
|
-
/** Object type discriminator
|
|
22
|
+
/** Object type discriminator. Always `list` for this envelope. */
|
|
23
23
|
const Object_: {
|
|
24
24
|
readonly List: "list";
|
|
25
25
|
};
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.ListResponseActivityResource = void 0;
|
|
5
5
|
var ListResponseActivityResource;
|
|
6
6
|
(function (ListResponseActivityResource) {
|
|
7
|
-
/** Object type discriminator
|
|
7
|
+
/** Object type discriminator. Always `list` for this envelope. */
|
|
8
8
|
ListResponseActivityResource.Object_ = {
|
|
9
9
|
List: "list",
|
|
10
10
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type * as NizamDashboard from "../index.js";
|
|
2
2
|
/**
|
|
3
|
-
* Envelope for paginated list responses (
|
|
3
|
+
* Envelope for paginated list responses (opaque cursor pagination).
|
|
4
4
|
*/
|
|
5
5
|
export interface ListResponseAssetListItem {
|
|
6
|
-
/** Object type discriminator
|
|
6
|
+
/** Object type discriminator. Always `list` for this envelope. */
|
|
7
7
|
object?: ListResponseAssetListItem.Object_ | undefined;
|
|
8
8
|
/** Page of resources. Empty array when there are no matches. */
|
|
9
9
|
data?: NizamDashboard.AssetListItem[] | undefined;
|
|
@@ -19,7 +19,7 @@ export interface ListResponseAssetListItem {
|
|
|
19
19
|
limit?: number | undefined;
|
|
20
20
|
}
|
|
21
21
|
export declare namespace ListResponseAssetListItem {
|
|
22
|
-
/** Object type discriminator
|
|
22
|
+
/** Object type discriminator. Always `list` for this envelope. */
|
|
23
23
|
const Object_: {
|
|
24
24
|
readonly List: "list";
|
|
25
25
|
};
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.ListResponseAssetListItem = void 0;
|
|
5
5
|
var ListResponseAssetListItem;
|
|
6
6
|
(function (ListResponseAssetListItem) {
|
|
7
|
-
/** Object type discriminator
|
|
7
|
+
/** Object type discriminator. Always `list` for this envelope. */
|
|
8
8
|
ListResponseAssetListItem.Object_ = {
|
|
9
9
|
List: "list",
|
|
10
10
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type * as NizamDashboard from "../index.js";
|
|
2
2
|
/**
|
|
3
|
-
* Envelope for paginated list responses (
|
|
3
|
+
* Envelope for paginated list responses (opaque cursor pagination).
|
|
4
4
|
*/
|
|
5
5
|
export interface ListResponseBusinessCategory {
|
|
6
|
-
/** Object type discriminator
|
|
6
|
+
/** Object type discriminator. Always `list` for this envelope. */
|
|
7
7
|
object?: ListResponseBusinessCategory.Object_ | undefined;
|
|
8
8
|
/** Page of resources. Empty array when there are no matches. */
|
|
9
9
|
data?: NizamDashboard.BusinessCategory[] | undefined;
|
|
@@ -19,7 +19,7 @@ export interface ListResponseBusinessCategory {
|
|
|
19
19
|
limit?: number | undefined;
|
|
20
20
|
}
|
|
21
21
|
export declare namespace ListResponseBusinessCategory {
|
|
22
|
-
/** Object type discriminator
|
|
22
|
+
/** Object type discriminator. Always `list` for this envelope. */
|
|
23
23
|
const Object_: {
|
|
24
24
|
readonly List: "list";
|
|
25
25
|
};
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.ListResponseBusinessCategory = void 0;
|
|
5
5
|
var ListResponseBusinessCategory;
|
|
6
6
|
(function (ListResponseBusinessCategory) {
|
|
7
|
-
/** Object type discriminator
|
|
7
|
+
/** Object type discriminator. Always `list` for this envelope. */
|
|
8
8
|
ListResponseBusinessCategory.Object_ = {
|
|
9
9
|
List: "list",
|
|
10
10
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type * as NizamDashboard from "../index.js";
|
|
2
2
|
/**
|
|
3
|
-
* Envelope for paginated list responses (
|
|
3
|
+
* Envelope for paginated list responses (opaque cursor pagination).
|
|
4
4
|
*/
|
|
5
5
|
export interface ListResponseCountry {
|
|
6
|
-
/** Object type discriminator
|
|
6
|
+
/** Object type discriminator. Always `list` for this envelope. */
|
|
7
7
|
object?: ListResponseCountry.Object_ | undefined;
|
|
8
8
|
/** Page of resources. Empty array when there are no matches. */
|
|
9
9
|
data?: NizamDashboard.Country[] | undefined;
|
|
@@ -19,7 +19,7 @@ export interface ListResponseCountry {
|
|
|
19
19
|
limit?: number | undefined;
|
|
20
20
|
}
|
|
21
21
|
export declare namespace ListResponseCountry {
|
|
22
|
-
/** Object type discriminator
|
|
22
|
+
/** Object type discriminator. Always `list` for this envelope. */
|
|
23
23
|
const Object_: {
|
|
24
24
|
readonly List: "list";
|
|
25
25
|
};
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.ListResponseCountry = void 0;
|
|
5
5
|
var ListResponseCountry;
|
|
6
6
|
(function (ListResponseCountry) {
|
|
7
|
-
/** Object type discriminator
|
|
7
|
+
/** Object type discriminator. Always `list` for this envelope. */
|
|
8
8
|
ListResponseCountry.Object_ = {
|
|
9
9
|
List: "list",
|
|
10
10
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type * as NizamDashboard from "../index.js";
|
|
2
2
|
/**
|
|
3
|
-
* Envelope for paginated list responses (
|
|
3
|
+
* Envelope for paginated list responses (opaque cursor pagination).
|
|
4
4
|
*/
|
|
5
5
|
export interface ListResponseCurrency {
|
|
6
|
-
/** Object type discriminator
|
|
6
|
+
/** Object type discriminator. Always `list` for this envelope. */
|
|
7
7
|
object?: ListResponseCurrency.Object_ | undefined;
|
|
8
8
|
/** Page of resources. Empty array when there are no matches. */
|
|
9
9
|
data?: NizamDashboard.Currency[] | undefined;
|
|
@@ -19,7 +19,7 @@ export interface ListResponseCurrency {
|
|
|
19
19
|
limit?: number | undefined;
|
|
20
20
|
}
|
|
21
21
|
export declare namespace ListResponseCurrency {
|
|
22
|
-
/** Object type discriminator
|
|
22
|
+
/** Object type discriminator. Always `list` for this envelope. */
|
|
23
23
|
const Object_: {
|
|
24
24
|
readonly List: "list";
|
|
25
25
|
};
|