@nizam-os/dashboard-sdk 1.0.1 → 3.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 +8 -5
- package/dist/Client.js +13 -9
- package/dist/api/errors/BadRequestError.d.ts +6 -0
- package/dist/api/errors/BadRequestError.js +54 -0
- package/dist/api/errors/index.d.ts +1 -0
- package/dist/api/errors/index.js +1 -0
- package/dist/api/resources/assets/client/Client.d.ts +1 -0
- package/dist/api/resources/assets/client/Client.js +3 -0
- package/dist/api/resources/index.d.ts +4 -2
- package/dist/api/resources/index.js +5 -3
- package/dist/api/resources/invites/client/requests/CreateInviteRequest.d.ts +2 -2
- package/dist/api/resources/invites/client/requests/CreateInviteRequest.js +1 -1
- package/dist/api/resources/lookups/client/Client.d.ts +45 -1
- package/dist/api/resources/lookups/client/Client.js +192 -1
- package/dist/api/resources/memberships/client/Client.d.ts +52 -0
- package/dist/api/resources/memberships/client/Client.js +181 -0
- package/dist/api/resources/memberships/client/requests/ListMyMembershipsRequest.d.ts +15 -0
- package/dist/api/resources/memberships/client/requests/index.d.ts +2 -0
- package/dist/api/resources/memberships/exports.d.ts +2 -0
- package/dist/api/resources/memberships/exports.js +21 -0
- package/dist/api/resources/organizations/client/Client.d.ts +1 -34
- package/dist/api/resources/organizations/client/Client.js +1 -118
- package/dist/api/resources/organizations/client/requests/index.d.ts +0 -1
- package/dist/api/resources/{identity → users}/client/Client.d.ts +25 -21
- package/dist/api/resources/{identity → users}/client/Client.js +29 -19
- package/dist/api/resources/users/client/index.d.ts +1 -0
- package/dist/api/resources/users/client/index.js +17 -0
- package/dist/api/resources/users/client/requests/ListUsersRequest.d.ts +17 -0
- package/dist/api/resources/users/client/requests/UserUpdateRequest.js +3 -0
- package/dist/api/resources/users/client/requests/index.js +2 -0
- package/dist/api/resources/users/exports.d.ts +2 -0
- package/dist/api/resources/{identity → users}/exports.js +2 -2
- package/dist/api/resources/users/index.d.ts +1 -0
- package/dist/api/resources/users/index.js +17 -0
- package/dist/api/types/BusinessCategory.d.ts +18 -0
- package/dist/api/types/BusinessCategory.js +11 -0
- package/dist/api/types/Country.d.ts +20 -0
- package/dist/api/types/Country.js +11 -0
- package/dist/api/types/Currency.d.ts +22 -0
- package/dist/api/types/Currency.js +11 -0
- package/dist/api/types/Language.d.ts +20 -0
- package/dist/api/types/Language.js +11 -0
- package/dist/api/types/ListResponseBusinessCategory.d.ts +27 -0
- package/dist/api/types/ListResponseBusinessCategory.js +11 -0
- package/dist/api/types/ListResponseCountry.d.ts +27 -0
- package/dist/api/types/{ListResponse.js → ListResponseCountry.js} +5 -5
- package/dist/api/types/ListResponseCurrency.d.ts +27 -0
- package/dist/api/types/ListResponseCurrency.js +11 -0
- package/dist/api/types/ListResponseLanguage.d.ts +27 -0
- package/dist/api/types/ListResponseLanguage.js +11 -0
- package/dist/api/types/ListResponseMembership.d.ts +27 -0
- package/dist/api/types/ListResponseMembership.js +11 -0
- package/dist/api/types/ListResponseTimezone.d.ts +27 -0
- package/dist/api/types/ListResponseTimezone.js +11 -0
- package/dist/api/types/{ListResponse.d.ts → ListResponseUserResource.d.ts} +7 -3
- package/dist/api/types/ListResponseUserResource.js +11 -0
- package/dist/api/types/{OrganizationMembership.d.ts → Membership.d.ts} +5 -5
- package/dist/api/types/{OrganizationMembership.js → Membership.js} +7 -7
- package/dist/api/types/Timezone.d.ts +20 -0
- package/dist/api/types/Timezone.js +11 -0
- package/dist/api/types/index.d.ts +13 -2
- package/dist/api/types/index.js +13 -2
- package/package.json +1 -1
- package/dist/api/resources/identity/client/requests/ListUsersRequest.d.ts +0 -10
- package/dist/api/resources/identity/exports.d.ts +0 -2
- /package/dist/api/resources/{identity → memberships}/client/index.d.ts +0 -0
- /package/dist/api/resources/{identity → memberships}/client/index.js +0 -0
- /package/dist/api/resources/{organizations → memberships}/client/requests/LeaveOrganizationRequest.d.ts +0 -0
- /package/dist/api/resources/{organizations → memberships}/client/requests/LeaveOrganizationRequest.js +0 -0
- /package/dist/api/resources/{identity/client/requests/InviteUserRequest.js → memberships/client/requests/ListMyMembershipsRequest.js} +0 -0
- /package/dist/api/resources/{identity → memberships}/client/requests/index.js +0 -0
- /package/dist/api/resources/{identity → memberships}/index.d.ts +0 -0
- /package/dist/api/resources/{identity → memberships}/index.js +0 -0
- /package/dist/api/resources/{identity → users}/client/requests/InviteUserRequest.d.ts +0 -0
- /package/dist/api/resources/{identity/client/requests/ListUsersRequest.js → users/client/requests/InviteUserRequest.js} +0 -0
- /package/dist/api/resources/{identity/client/requests/SoftDeleteUserRequest.js → users/client/requests/ListUsersRequest.js} +0 -0
- /package/dist/api/resources/{identity → users}/client/requests/SoftDeleteUserRequest.d.ts +0 -0
- /package/dist/api/resources/{identity/client/requests/UserUpdateRequest.js → users/client/requests/SoftDeleteUserRequest.js} +0 -0
- /package/dist/api/resources/{identity → users}/client/requests/UserUpdateRequest.d.ts +0 -0
- /package/dist/api/resources/{identity → users}/client/requests/index.d.ts +0 -0
|
@@ -34,7 +34,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
};
|
|
35
35
|
})();
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
-
exports.
|
|
37
|
+
exports.UsersClient = void 0;
|
|
38
38
|
const BaseClient_js_1 = require("../../../../BaseClient.js");
|
|
39
39
|
const headers_js_1 = require("../../../../core/headers.js");
|
|
40
40
|
const core = __importStar(require("../../../../core/index.js"));
|
|
@@ -43,9 +43,9 @@ const handleNonStatusCodeError_js_1 = require("../../../../errors/handleNonStatu
|
|
|
43
43
|
const errors = __importStar(require("../../../../errors/index.js"));
|
|
44
44
|
const NizamDashboard = __importStar(require("../../../index.js"));
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
* User aggregate — current session (`/me`) and user-entity operations (invite, list, lifecycle, platform-staff admin).
|
|
47
47
|
*/
|
|
48
|
-
class
|
|
48
|
+
class UsersClient {
|
|
49
49
|
constructor(options) {
|
|
50
50
|
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
51
51
|
}
|
|
@@ -60,7 +60,7 @@ class IdentityClient {
|
|
|
60
60
|
* client roles (prefixed, e.g. `dashboard:dispatcher`). The frontend usually drops the
|
|
61
61
|
* portal prefix when rendering since it knows its own portal.
|
|
62
62
|
*
|
|
63
|
-
* @param {
|
|
63
|
+
* @param {UsersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
64
64
|
*
|
|
65
65
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
66
66
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
@@ -68,7 +68,7 @@ class IdentityClient {
|
|
|
68
68
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
71
|
-
* await client.
|
|
71
|
+
* await client.users.me()
|
|
72
72
|
*/
|
|
73
73
|
me(requestOptions) {
|
|
74
74
|
return core.HttpResponsePromise.fromPromise(this.__me(requestOptions));
|
|
@@ -113,27 +113,32 @@ class IdentityClient {
|
|
|
113
113
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/me");
|
|
114
114
|
}
|
|
115
115
|
/**
|
|
116
|
-
* Dashboard sees the active
|
|
116
|
+
* Dashboard sees co-members of the caller's active organization (tenant-scoped via the organization_users join). Platform staff bypass RLS and see across tenants, and may sort by `deleted_at`. RFC 8288 Link header carries `first`, `prev`, `next` rels alongside the body's bidirectional cursors.
|
|
117
117
|
*
|
|
118
118
|
* @param {NizamDashboard.ListUsersRequest} request
|
|
119
|
-
* @param {
|
|
119
|
+
* @param {UsersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
120
120
|
*
|
|
121
|
+
* @throws {@link NizamDashboard.BadRequestError}
|
|
121
122
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
122
123
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
123
124
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
124
125
|
*
|
|
125
126
|
* @example
|
|
126
|
-
* await client.
|
|
127
|
+
* await client.users.listUsers({
|
|
128
|
+
* starting_after: "Y3Vyc29yX25leHRfMDFKNVE=",
|
|
129
|
+
* ending_before: "Y3Vyc29yX25leHRfMDFKNVE="
|
|
130
|
+
* })
|
|
127
131
|
*/
|
|
128
132
|
listUsers(request = {}, requestOptions) {
|
|
129
133
|
return core.HttpResponsePromise.fromPromise(this.__listUsers(request, requestOptions));
|
|
130
134
|
}
|
|
131
135
|
async __listUsers(request = {}, requestOptions) {
|
|
132
|
-
const { limit,
|
|
136
|
+
const { sort, limit, starting_after: startingAfter, ending_before: endingBefore } = request;
|
|
133
137
|
const _queryParams = {
|
|
134
|
-
limit,
|
|
135
|
-
offset,
|
|
136
138
|
sort,
|
|
139
|
+
limit,
|
|
140
|
+
starting_after: startingAfter,
|
|
141
|
+
ending_before: endingBefore,
|
|
137
142
|
};
|
|
138
143
|
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
139
144
|
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
@@ -155,10 +160,15 @@ class IdentityClient {
|
|
|
155
160
|
logging: this._options.logging,
|
|
156
161
|
});
|
|
157
162
|
if (_response.ok) {
|
|
158
|
-
return {
|
|
163
|
+
return {
|
|
164
|
+
data: _response.body,
|
|
165
|
+
rawResponse: _response.rawResponse,
|
|
166
|
+
};
|
|
159
167
|
}
|
|
160
168
|
if (_response.error.reason === "status-code") {
|
|
161
169
|
switch (_response.error.statusCode) {
|
|
170
|
+
case 400:
|
|
171
|
+
throw new NizamDashboard.BadRequestError(_response.error.body, _response.rawResponse);
|
|
162
172
|
case 401:
|
|
163
173
|
throw new NizamDashboard.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
164
174
|
case 403:
|
|
@@ -179,7 +189,7 @@ class IdentityClient {
|
|
|
179
189
|
* Tenant-admin operation. Creates a placeholder User row that JIT provisioning replaces once the recipient completes Keycloak signup.
|
|
180
190
|
*
|
|
181
191
|
* @param {NizamDashboard.InviteUserRequest} request
|
|
182
|
-
* @param {
|
|
192
|
+
* @param {UsersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
183
193
|
*
|
|
184
194
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
185
195
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
@@ -188,7 +198,7 @@ class IdentityClient {
|
|
|
188
198
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
189
199
|
*
|
|
190
200
|
* @example
|
|
191
|
-
* await client.
|
|
201
|
+
* await client.users.inviteUser({
|
|
192
202
|
* email: "newhire@acme.example",
|
|
193
203
|
* name: "New Hire"
|
|
194
204
|
* })
|
|
@@ -244,7 +254,7 @@ class IdentityClient {
|
|
|
244
254
|
* Tenant-admin operation. Sets `deleted_at = NOW()`. Subsequent dashboard reads filter the row out; platform staff can still surface and act on it.
|
|
245
255
|
*
|
|
246
256
|
* @param {NizamDashboard.SoftDeleteUserRequest} request
|
|
247
|
-
* @param {
|
|
257
|
+
* @param {UsersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
248
258
|
*
|
|
249
259
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
250
260
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
@@ -252,7 +262,7 @@ class IdentityClient {
|
|
|
252
262
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
253
263
|
*
|
|
254
264
|
* @example
|
|
255
|
-
* await client.
|
|
265
|
+
* await client.users.softDeleteUser({
|
|
256
266
|
* id: "00000000-0000-0000-0000-000000000000"
|
|
257
267
|
* })
|
|
258
268
|
*/
|
|
@@ -303,7 +313,7 @@ class IdentityClient {
|
|
|
303
313
|
* Tenant-admin operation. Body has no `status` — lifecycle changes go through the platform-staff surface.
|
|
304
314
|
*
|
|
305
315
|
* @param {NizamDashboard.UserUpdateRequest} request
|
|
306
|
-
* @param {
|
|
316
|
+
* @param {UsersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
307
317
|
*
|
|
308
318
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
309
319
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
@@ -313,7 +323,7 @@ class IdentityClient {
|
|
|
313
323
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
314
324
|
*
|
|
315
325
|
* @example
|
|
316
|
-
* await client.
|
|
326
|
+
* await client.users.updateUser({
|
|
317
327
|
* id: "00000000-0000-0000-0000-000000000000",
|
|
318
328
|
* email: "renamed@acme.example",
|
|
319
329
|
* name: "Ali Issa"
|
|
@@ -370,4 +380,4 @@ class IdentityClient {
|
|
|
370
380
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/v1/users/{id}");
|
|
371
381
|
}
|
|
372
382
|
}
|
|
373
|
-
exports.
|
|
383
|
+
exports.UsersClient = UsersClient;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/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("./requests/index.js"), exports);
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* starting_after: "Y3Vyc29yX25leHRfMDFKNVE=",
|
|
5
|
+
* ending_before: "Y3Vyc29yX25leHRfMDFKNVE="
|
|
6
|
+
* }
|
|
7
|
+
*/
|
|
8
|
+
export interface ListUsersRequest {
|
|
9
|
+
/** Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported. */
|
|
10
|
+
sort?: string | string[];
|
|
11
|
+
/** Page size. Default 20, maximum 100. Out-of-range values are silently clamped; the response body's `limit` field reflects what was applied. */
|
|
12
|
+
limit?: number;
|
|
13
|
+
/** Opaque cursor — return the page starting strictly after this entity in the sort order. Mutually exclusive with `ending_before`. */
|
|
14
|
+
starting_after?: string;
|
|
15
|
+
/** Opaque cursor — return the page ending strictly before this entity in the sort order. Mutually exclusive with `starting_after`. */
|
|
16
|
+
ending_before?: string;
|
|
17
|
+
}
|
|
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
16
16
|
};
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.
|
|
18
|
+
exports.UsersClient = void 0;
|
|
19
19
|
var Client_js_1 = require("./client/Client.js");
|
|
20
|
-
Object.defineProperty(exports, "
|
|
20
|
+
Object.defineProperty(exports, "UsersClient", { enumerable: true, get: function () { return Client_js_1.UsersClient; } });
|
|
21
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);
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Self-selected vertical an organization operates in. Picker option for the onboarding flow.
|
|
3
|
+
*/
|
|
4
|
+
export interface BusinessCategory {
|
|
5
|
+
/** Stable slug — matches the DB CHECK constraint on `organizations.business_category`. */
|
|
6
|
+
slug?: string | undefined;
|
|
7
|
+
/** Human-readable label for picker UIs. */
|
|
8
|
+
display_name?: string | undefined;
|
|
9
|
+
/** Object type discriminator (Stripe pattern). */
|
|
10
|
+
object?: BusinessCategory.Object_ | undefined;
|
|
11
|
+
}
|
|
12
|
+
export declare namespace BusinessCategory {
|
|
13
|
+
/** Object type discriminator (Stripe pattern). */
|
|
14
|
+
const Object_: {
|
|
15
|
+
readonly BusinessCategory: "business_category";
|
|
16
|
+
};
|
|
17
|
+
type Object_ = (typeof Object_)[keyof typeof Object_];
|
|
18
|
+
}
|
|
@@ -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.BusinessCategory = void 0;
|
|
5
|
+
var BusinessCategory;
|
|
6
|
+
(function (BusinessCategory) {
|
|
7
|
+
/** Object type discriminator (Stripe pattern). */
|
|
8
|
+
BusinessCategory.Object_ = {
|
|
9
|
+
BusinessCategory: "business_category",
|
|
10
|
+
};
|
|
11
|
+
})(BusinessCategory || (exports.BusinessCategory = BusinessCategory = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ISO 3166-1 alpha-2 country with localized name + E.164 calling code.
|
|
3
|
+
*/
|
|
4
|
+
export interface Country {
|
|
5
|
+
/** ISO 3166-1 alpha-2 code. */
|
|
6
|
+
code?: string | undefined;
|
|
7
|
+
/** Display name in the Accept-Language locale. */
|
|
8
|
+
name?: string | undefined;
|
|
9
|
+
/** E.164 country calling code with `+` prefix, or null if not allocated. */
|
|
10
|
+
calling_code?: string | undefined;
|
|
11
|
+
/** Object type discriminator (Stripe pattern). */
|
|
12
|
+
object?: Country.Object_ | undefined;
|
|
13
|
+
}
|
|
14
|
+
export declare namespace Country {
|
|
15
|
+
/** Object type discriminator (Stripe pattern). */
|
|
16
|
+
const Object_: {
|
|
17
|
+
readonly Country: "country";
|
|
18
|
+
};
|
|
19
|
+
type Object_ = (typeof Object_)[keyof typeof Object_];
|
|
20
|
+
}
|
|
@@ -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.Country = void 0;
|
|
5
|
+
var Country;
|
|
6
|
+
(function (Country) {
|
|
7
|
+
/** Object type discriminator (Stripe pattern). */
|
|
8
|
+
Country.Object_ = {
|
|
9
|
+
Country: "country",
|
|
10
|
+
};
|
|
11
|
+
})(Country || (exports.Country = Country = {}));
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ISO 4217 currency with localized name + symbol.
|
|
3
|
+
*/
|
|
4
|
+
export interface Currency {
|
|
5
|
+
/** ISO 4217 code. */
|
|
6
|
+
code?: string | undefined;
|
|
7
|
+
/** Display name in the Accept-Language locale. */
|
|
8
|
+
name?: string | undefined;
|
|
9
|
+
/** Short symbol in the Accept-Language locale. */
|
|
10
|
+
symbol?: string | undefined;
|
|
11
|
+
/** Default number of fractional digits per ISO 4217. */
|
|
12
|
+
fraction_digits?: number | undefined;
|
|
13
|
+
/** Object type discriminator (Stripe pattern). */
|
|
14
|
+
object?: Currency.Object_ | undefined;
|
|
15
|
+
}
|
|
16
|
+
export declare namespace Currency {
|
|
17
|
+
/** Object type discriminator (Stripe pattern). */
|
|
18
|
+
const Object_: {
|
|
19
|
+
readonly Currency: "currency";
|
|
20
|
+
};
|
|
21
|
+
type Object_ = (typeof Object_)[keyof typeof Object_];
|
|
22
|
+
}
|
|
@@ -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.Currency = void 0;
|
|
5
|
+
var Currency;
|
|
6
|
+
(function (Currency) {
|
|
7
|
+
/** Object type discriminator (Stripe pattern). */
|
|
8
|
+
Currency.Object_ = {
|
|
9
|
+
Currency: "currency",
|
|
10
|
+
};
|
|
11
|
+
})(Currency || (exports.Currency = Currency = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ISO 639-1 language with localized + native names.
|
|
3
|
+
*/
|
|
4
|
+
export interface Language {
|
|
5
|
+
/** ISO 639-1 two-letter code. */
|
|
6
|
+
code?: string | undefined;
|
|
7
|
+
/** Display name in the Accept-Language locale. */
|
|
8
|
+
name?: string | undefined;
|
|
9
|
+
/** Name in the language itself, useful in language pickers. */
|
|
10
|
+
native_name?: string | undefined;
|
|
11
|
+
/** Object type discriminator (Stripe pattern). */
|
|
12
|
+
object?: Language.Object_ | undefined;
|
|
13
|
+
}
|
|
14
|
+
export declare namespace Language {
|
|
15
|
+
/** Object type discriminator (Stripe pattern). */
|
|
16
|
+
const Object_: {
|
|
17
|
+
readonly Language: "language";
|
|
18
|
+
};
|
|
19
|
+
type Object_ = (typeof Object_)[keyof typeof Object_];
|
|
20
|
+
}
|
|
@@ -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.Language = void 0;
|
|
5
|
+
var Language;
|
|
6
|
+
(function (Language) {
|
|
7
|
+
/** Object type discriminator (Stripe pattern). */
|
|
8
|
+
Language.Object_ = {
|
|
9
|
+
Language: "language",
|
|
10
|
+
};
|
|
11
|
+
})(Language || (exports.Language = Language = {}));
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type * as NizamDashboard from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Envelope for paginated list responses (Stripe-style cursor pagination).
|
|
4
|
+
*/
|
|
5
|
+
export interface ListResponseBusinessCategory {
|
|
6
|
+
/** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
|
|
7
|
+
object?: ListResponseBusinessCategory.Object_ | undefined;
|
|
8
|
+
/** Page of resources. Empty array when there are no matches. */
|
|
9
|
+
data?: NizamDashboard.BusinessCategory[] | undefined;
|
|
10
|
+
/** True when more pages exist; pass `next_cursor` as `?starting_after=` to fetch the next page. */
|
|
11
|
+
has_more?: boolean | undefined;
|
|
12
|
+
/** True when earlier pages exist; pass `prev_cursor` as `?ending_before=` to fetch the previous page. */
|
|
13
|
+
has_previous?: boolean | undefined;
|
|
14
|
+
/** Opaque cursor for the next page. `null` on the last page. */
|
|
15
|
+
next_cursor?: string | undefined;
|
|
16
|
+
/** Opaque cursor for the previous page. `null` on the first page. */
|
|
17
|
+
prev_cursor?: string | undefined;
|
|
18
|
+
/** Page size that produced this response. */
|
|
19
|
+
limit?: number | undefined;
|
|
20
|
+
}
|
|
21
|
+
export declare namespace ListResponseBusinessCategory {
|
|
22
|
+
/** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
|
|
23
|
+
const Object_: {
|
|
24
|
+
readonly List: "list";
|
|
25
|
+
};
|
|
26
|
+
type Object_ = (typeof Object_)[keyof typeof Object_];
|
|
27
|
+
}
|
|
@@ -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.ListResponseBusinessCategory = void 0;
|
|
5
|
+
var ListResponseBusinessCategory;
|
|
6
|
+
(function (ListResponseBusinessCategory) {
|
|
7
|
+
/** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
|
|
8
|
+
ListResponseBusinessCategory.Object_ = {
|
|
9
|
+
List: "list",
|
|
10
|
+
};
|
|
11
|
+
})(ListResponseBusinessCategory || (exports.ListResponseBusinessCategory = ListResponseBusinessCategory = {}));
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type * as NizamDashboard from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Envelope for paginated list responses (Stripe-style cursor pagination).
|
|
4
|
+
*/
|
|
5
|
+
export interface ListResponseCountry {
|
|
6
|
+
/** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
|
|
7
|
+
object?: ListResponseCountry.Object_ | undefined;
|
|
8
|
+
/** Page of resources. Empty array when there are no matches. */
|
|
9
|
+
data?: NizamDashboard.Country[] | undefined;
|
|
10
|
+
/** True when more pages exist; pass `next_cursor` as `?starting_after=` to fetch the next page. */
|
|
11
|
+
has_more?: boolean | undefined;
|
|
12
|
+
/** True when earlier pages exist; pass `prev_cursor` as `?ending_before=` to fetch the previous page. */
|
|
13
|
+
has_previous?: boolean | undefined;
|
|
14
|
+
/** Opaque cursor for the next page. `null` on the last page. */
|
|
15
|
+
next_cursor?: string | undefined;
|
|
16
|
+
/** Opaque cursor for the previous page. `null` on the first page. */
|
|
17
|
+
prev_cursor?: string | undefined;
|
|
18
|
+
/** Page size that produced this response. */
|
|
19
|
+
limit?: number | undefined;
|
|
20
|
+
}
|
|
21
|
+
export declare namespace ListResponseCountry {
|
|
22
|
+
/** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
|
|
23
|
+
const Object_: {
|
|
24
|
+
readonly List: "list";
|
|
25
|
+
};
|
|
26
|
+
type Object_ = (typeof Object_)[keyof typeof Object_];
|
|
27
|
+
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
var
|
|
6
|
-
(function (
|
|
4
|
+
exports.ListResponseCountry = void 0;
|
|
5
|
+
var ListResponseCountry;
|
|
6
|
+
(function (ListResponseCountry) {
|
|
7
7
|
/** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
|
|
8
|
-
|
|
8
|
+
ListResponseCountry.Object_ = {
|
|
9
9
|
List: "list",
|
|
10
10
|
};
|
|
11
|
-
})(
|
|
11
|
+
})(ListResponseCountry || (exports.ListResponseCountry = ListResponseCountry = {}));
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type * as NizamDashboard from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Envelope for paginated list responses (Stripe-style cursor pagination).
|
|
4
|
+
*/
|
|
5
|
+
export interface ListResponseCurrency {
|
|
6
|
+
/** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
|
|
7
|
+
object?: ListResponseCurrency.Object_ | undefined;
|
|
8
|
+
/** Page of resources. Empty array when there are no matches. */
|
|
9
|
+
data?: NizamDashboard.Currency[] | undefined;
|
|
10
|
+
/** True when more pages exist; pass `next_cursor` as `?starting_after=` to fetch the next page. */
|
|
11
|
+
has_more?: boolean | undefined;
|
|
12
|
+
/** True when earlier pages exist; pass `prev_cursor` as `?ending_before=` to fetch the previous page. */
|
|
13
|
+
has_previous?: boolean | undefined;
|
|
14
|
+
/** Opaque cursor for the next page. `null` on the last page. */
|
|
15
|
+
next_cursor?: string | undefined;
|
|
16
|
+
/** Opaque cursor for the previous page. `null` on the first page. */
|
|
17
|
+
prev_cursor?: string | undefined;
|
|
18
|
+
/** Page size that produced this response. */
|
|
19
|
+
limit?: number | undefined;
|
|
20
|
+
}
|
|
21
|
+
export declare namespace ListResponseCurrency {
|
|
22
|
+
/** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
|
|
23
|
+
const Object_: {
|
|
24
|
+
readonly List: "list";
|
|
25
|
+
};
|
|
26
|
+
type Object_ = (typeof Object_)[keyof typeof Object_];
|
|
27
|
+
}
|
|
@@ -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.ListResponseCurrency = void 0;
|
|
5
|
+
var ListResponseCurrency;
|
|
6
|
+
(function (ListResponseCurrency) {
|
|
7
|
+
/** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
|
|
8
|
+
ListResponseCurrency.Object_ = {
|
|
9
|
+
List: "list",
|
|
10
|
+
};
|
|
11
|
+
})(ListResponseCurrency || (exports.ListResponseCurrency = ListResponseCurrency = {}));
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type * as NizamDashboard from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Envelope for paginated list responses (Stripe-style cursor pagination).
|
|
4
|
+
*/
|
|
5
|
+
export interface ListResponseLanguage {
|
|
6
|
+
/** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
|
|
7
|
+
object?: ListResponseLanguage.Object_ | undefined;
|
|
8
|
+
/** Page of resources. Empty array when there are no matches. */
|
|
9
|
+
data?: NizamDashboard.Language[] | undefined;
|
|
10
|
+
/** True when more pages exist; pass `next_cursor` as `?starting_after=` to fetch the next page. */
|
|
11
|
+
has_more?: boolean | undefined;
|
|
12
|
+
/** True when earlier pages exist; pass `prev_cursor` as `?ending_before=` to fetch the previous page. */
|
|
13
|
+
has_previous?: boolean | undefined;
|
|
14
|
+
/** Opaque cursor for the next page. `null` on the last page. */
|
|
15
|
+
next_cursor?: string | undefined;
|
|
16
|
+
/** Opaque cursor for the previous page. `null` on the first page. */
|
|
17
|
+
prev_cursor?: string | undefined;
|
|
18
|
+
/** Page size that produced this response. */
|
|
19
|
+
limit?: number | undefined;
|
|
20
|
+
}
|
|
21
|
+
export declare namespace ListResponseLanguage {
|
|
22
|
+
/** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
|
|
23
|
+
const Object_: {
|
|
24
|
+
readonly List: "list";
|
|
25
|
+
};
|
|
26
|
+
type Object_ = (typeof Object_)[keyof typeof Object_];
|
|
27
|
+
}
|
|
@@ -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.ListResponseLanguage = void 0;
|
|
5
|
+
var ListResponseLanguage;
|
|
6
|
+
(function (ListResponseLanguage) {
|
|
7
|
+
/** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
|
|
8
|
+
ListResponseLanguage.Object_ = {
|
|
9
|
+
List: "list",
|
|
10
|
+
};
|
|
11
|
+
})(ListResponseLanguage || (exports.ListResponseLanguage = ListResponseLanguage = {}));
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type * as NizamDashboard from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Envelope for paginated list responses (Stripe-style cursor pagination).
|
|
4
|
+
*/
|
|
5
|
+
export interface ListResponseMembership {
|
|
6
|
+
/** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
|
|
7
|
+
object?: ListResponseMembership.Object_ | undefined;
|
|
8
|
+
/** Page of resources. Empty array when there are no matches. */
|
|
9
|
+
data?: NizamDashboard.Membership[] | undefined;
|
|
10
|
+
/** True when more pages exist; pass `next_cursor` as `?starting_after=` to fetch the next page. */
|
|
11
|
+
has_more?: boolean | undefined;
|
|
12
|
+
/** True when earlier pages exist; pass `prev_cursor` as `?ending_before=` to fetch the previous page. */
|
|
13
|
+
has_previous?: boolean | undefined;
|
|
14
|
+
/** Opaque cursor for the next page. `null` on the last page. */
|
|
15
|
+
next_cursor?: string | undefined;
|
|
16
|
+
/** Opaque cursor for the previous page. `null` on the first page. */
|
|
17
|
+
prev_cursor?: string | undefined;
|
|
18
|
+
/** Page size that produced this response. */
|
|
19
|
+
limit?: number | undefined;
|
|
20
|
+
}
|
|
21
|
+
export declare namespace ListResponseMembership {
|
|
22
|
+
/** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
|
|
23
|
+
const Object_: {
|
|
24
|
+
readonly List: "list";
|
|
25
|
+
};
|
|
26
|
+
type Object_ = (typeof Object_)[keyof typeof Object_];
|
|
27
|
+
}
|
|
@@ -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.ListResponseMembership = void 0;
|
|
5
|
+
var ListResponseMembership;
|
|
6
|
+
(function (ListResponseMembership) {
|
|
7
|
+
/** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
|
|
8
|
+
ListResponseMembership.Object_ = {
|
|
9
|
+
List: "list",
|
|
10
|
+
};
|
|
11
|
+
})(ListResponseMembership || (exports.ListResponseMembership = ListResponseMembership = {}));
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type * as NizamDashboard from "../index.js";
|
|
2
|
+
/**
|
|
3
|
+
* Envelope for paginated list responses (Stripe-style cursor pagination).
|
|
4
|
+
*/
|
|
5
|
+
export interface ListResponseTimezone {
|
|
6
|
+
/** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
|
|
7
|
+
object?: ListResponseTimezone.Object_ | undefined;
|
|
8
|
+
/** Page of resources. Empty array when there are no matches. */
|
|
9
|
+
data?: NizamDashboard.Timezone[] | undefined;
|
|
10
|
+
/** True when more pages exist; pass `next_cursor` as `?starting_after=` to fetch the next page. */
|
|
11
|
+
has_more?: boolean | undefined;
|
|
12
|
+
/** True when earlier pages exist; pass `prev_cursor` as `?ending_before=` to fetch the previous page. */
|
|
13
|
+
has_previous?: boolean | undefined;
|
|
14
|
+
/** Opaque cursor for the next page. `null` on the last page. */
|
|
15
|
+
next_cursor?: string | undefined;
|
|
16
|
+
/** Opaque cursor for the previous page. `null` on the first page. */
|
|
17
|
+
prev_cursor?: string | undefined;
|
|
18
|
+
/** Page size that produced this response. */
|
|
19
|
+
limit?: number | undefined;
|
|
20
|
+
}
|
|
21
|
+
export declare namespace ListResponseTimezone {
|
|
22
|
+
/** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
|
|
23
|
+
const Object_: {
|
|
24
|
+
readonly List: "list";
|
|
25
|
+
};
|
|
26
|
+
type Object_ = (typeof Object_)[keyof typeof Object_];
|
|
27
|
+
}
|
|
@@ -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.ListResponseTimezone = void 0;
|
|
5
|
+
var ListResponseTimezone;
|
|
6
|
+
(function (ListResponseTimezone) {
|
|
7
|
+
/** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
|
|
8
|
+
ListResponseTimezone.Object_ = {
|
|
9
|
+
List: "list",
|
|
10
|
+
};
|
|
11
|
+
})(ListResponseTimezone || (exports.ListResponseTimezone = ListResponseTimezone = {}));
|