@nizam-os/dashboard-sdk 1.0.1 → 2.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/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/identity/client/Client.d.ts +3 -2
- package/dist/api/resources/identity/client/Client.js +8 -2
- package/dist/api/resources/lookups/client/Client.d.ts +45 -1
- package/dist/api/resources/lookups/client/Client.js +192 -1
- 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 +23 -0
- package/dist/api/types/ListResponseBusinessCategory.js +11 -0
- package/dist/api/types/ListResponseCountry.d.ts +23 -0
- package/dist/api/types/{ListResponse.js → ListResponseCountry.js} +5 -5
- package/dist/api/types/ListResponseCurrency.d.ts +23 -0
- package/dist/api/types/ListResponseCurrency.js +11 -0
- package/dist/api/types/ListResponseLanguage.d.ts +23 -0
- package/dist/api/types/ListResponseLanguage.js +11 -0
- package/dist/api/types/ListResponseTimezone.d.ts +23 -0
- package/dist/api/types/ListResponseTimezone.js +11 -0
- package/dist/api/types/{ListResponse.d.ts → ListResponseUserResource.d.ts} +3 -3
- package/dist/api/types/ListResponseUserResource.js +11 -0
- package/dist/api/types/Timezone.d.ts +20 -0
- package/dist/api/types/Timezone.js +11 -0
- package/dist/api/types/index.d.ts +11 -1
- package/dist/api/types/index.js +11 -1
- package/package.json +1 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type * as core from "../../core/index.js";
|
|
2
|
+
import * as errors from "../../errors/index.js";
|
|
3
|
+
import type * as NizamDashboard from "../index.js";
|
|
4
|
+
export declare class BadRequestError extends errors.NizamDashboardError {
|
|
5
|
+
constructor(body: NizamDashboard.ProblemDetail, rawResponse?: core.RawResponse);
|
|
6
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.BadRequestError = void 0;
|
|
38
|
+
const errors = __importStar(require("../../errors/index.js"));
|
|
39
|
+
class BadRequestError extends errors.NizamDashboardError {
|
|
40
|
+
constructor(body, rawResponse) {
|
|
41
|
+
super({
|
|
42
|
+
message: "BadRequestError",
|
|
43
|
+
statusCode: 400,
|
|
44
|
+
body: body,
|
|
45
|
+
rawResponse: rawResponse,
|
|
46
|
+
});
|
|
47
|
+
Object.setPrototypeOf(this, new.target.prototype);
|
|
48
|
+
if (Error.captureStackTrace) {
|
|
49
|
+
Error.captureStackTrace(this, this.constructor);
|
|
50
|
+
}
|
|
51
|
+
this.name = this.constructor.name;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
exports.BadRequestError = BadRequestError;
|
package/dist/api/errors/index.js
CHANGED
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./BadRequestError.js"), exports);
|
|
17
18
|
__exportStar(require("./ConflictError.js"), exports);
|
|
18
19
|
__exportStar(require("./ForbiddenError.js"), exports);
|
|
19
20
|
__exportStar(require("./GoneError.js"), exports);
|
|
@@ -19,6 +19,7 @@ export declare class AssetsClient {
|
|
|
19
19
|
* @param {NizamDashboard.CreateAssetRequest} request
|
|
20
20
|
* @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
21
21
|
*
|
|
22
|
+
* @throws {@link NizamDashboard.BadRequestError}
|
|
22
23
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
23
24
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
24
25
|
* @throws {@link NizamDashboard.UnprocessableEntityError}
|
|
@@ -55,6 +55,7 @@ class AssetsClient {
|
|
|
55
55
|
* @param {NizamDashboard.CreateAssetRequest} request
|
|
56
56
|
* @param {AssetsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
57
57
|
*
|
|
58
|
+
* @throws {@link NizamDashboard.BadRequestError}
|
|
58
59
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
59
60
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
60
61
|
* @throws {@link NizamDashboard.UnprocessableEntityError}
|
|
@@ -94,6 +95,8 @@ class AssetsClient {
|
|
|
94
95
|
}
|
|
95
96
|
if (_response.error.reason === "status-code") {
|
|
96
97
|
switch (_response.error.statusCode) {
|
|
98
|
+
case 400:
|
|
99
|
+
throw new NizamDashboard.BadRequestError(_response.error.body, _response.rawResponse);
|
|
97
100
|
case 401:
|
|
98
101
|
throw new NizamDashboard.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
99
102
|
case 403:
|
|
@@ -37,11 +37,12 @@ export declare class IdentityClient {
|
|
|
37
37
|
me(requestOptions?: IdentityClient.RequestOptions): core.HttpResponsePromise<NizamDashboard.User>;
|
|
38
38
|
private __me;
|
|
39
39
|
/**
|
|
40
|
-
* Dashboard sees the active
|
|
40
|
+
* 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`.
|
|
41
41
|
*
|
|
42
42
|
* @param {NizamDashboard.ListUsersRequest} request
|
|
43
43
|
* @param {IdentityClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
44
44
|
*
|
|
45
|
+
* @throws {@link NizamDashboard.BadRequestError}
|
|
45
46
|
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
46
47
|
* @throws {@link NizamDashboard.ForbiddenError}
|
|
47
48
|
* @throws {@link NizamDashboard.InternalServerError}
|
|
@@ -49,7 +50,7 @@ export declare class IdentityClient {
|
|
|
49
50
|
* @example
|
|
50
51
|
* await client.identity.listUsers()
|
|
51
52
|
*/
|
|
52
|
-
listUsers(request?: NizamDashboard.ListUsersRequest, requestOptions?: IdentityClient.RequestOptions): core.HttpResponsePromise<NizamDashboard.
|
|
53
|
+
listUsers(request?: NizamDashboard.ListUsersRequest, requestOptions?: IdentityClient.RequestOptions): core.HttpResponsePromise<NizamDashboard.ListResponseUserResource>;
|
|
53
54
|
private __listUsers;
|
|
54
55
|
/**
|
|
55
56
|
* Tenant-admin operation. Creates a placeholder User row that JIT provisioning replaces once the recipient completes Keycloak signup.
|
|
@@ -113,11 +113,12 @@ 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`.
|
|
117
117
|
*
|
|
118
118
|
* @param {NizamDashboard.ListUsersRequest} request
|
|
119
119
|
* @param {IdentityClient.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}
|
|
@@ -155,10 +156,15 @@ class IdentityClient {
|
|
|
155
156
|
logging: this._options.logging,
|
|
156
157
|
});
|
|
157
158
|
if (_response.ok) {
|
|
158
|
-
return {
|
|
159
|
+
return {
|
|
160
|
+
data: _response.body,
|
|
161
|
+
rawResponse: _response.rawResponse,
|
|
162
|
+
};
|
|
159
163
|
}
|
|
160
164
|
if (_response.error.reason === "status-code") {
|
|
161
165
|
switch (_response.error.statusCode) {
|
|
166
|
+
case 400:
|
|
167
|
+
throw new NizamDashboard.BadRequestError(_response.error.body, _response.rawResponse);
|
|
162
168
|
case 401:
|
|
163
169
|
throw new NizamDashboard.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
164
170
|
case 403:
|
|
@@ -22,6 +22,50 @@ export declare class LookupsClient {
|
|
|
22
22
|
* @example
|
|
23
23
|
* await client.lookups.listBusinessCategories()
|
|
24
24
|
*/
|
|
25
|
-
listBusinessCategories(requestOptions?: LookupsClient.RequestOptions): core.HttpResponsePromise<NizamDashboard.
|
|
25
|
+
listBusinessCategories(requestOptions?: LookupsClient.RequestOptions): core.HttpResponsePromise<NizamDashboard.ListResponseBusinessCategory>;
|
|
26
26
|
private __listBusinessCategories;
|
|
27
|
+
/**
|
|
28
|
+
* @param {LookupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
29
|
+
*
|
|
30
|
+
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
31
|
+
* @throws {@link NizamDashboard.InternalServerError}
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* await client.lookups.listCountries()
|
|
35
|
+
*/
|
|
36
|
+
listCountries(requestOptions?: LookupsClient.RequestOptions): core.HttpResponsePromise<NizamDashboard.ListResponseCountry>;
|
|
37
|
+
private __listCountries;
|
|
38
|
+
/**
|
|
39
|
+
* @param {LookupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
40
|
+
*
|
|
41
|
+
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
42
|
+
* @throws {@link NizamDashboard.InternalServerError}
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* await client.lookups.listCurrencies()
|
|
46
|
+
*/
|
|
47
|
+
listCurrencies(requestOptions?: LookupsClient.RequestOptions): core.HttpResponsePromise<NizamDashboard.ListResponseCurrency>;
|
|
48
|
+
private __listCurrencies;
|
|
49
|
+
/**
|
|
50
|
+
* @param {LookupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
51
|
+
*
|
|
52
|
+
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
53
|
+
* @throws {@link NizamDashboard.InternalServerError}
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* await client.lookups.listLanguages()
|
|
57
|
+
*/
|
|
58
|
+
listLanguages(requestOptions?: LookupsClient.RequestOptions): core.HttpResponsePromise<NizamDashboard.ListResponseLanguage>;
|
|
59
|
+
private __listLanguages;
|
|
60
|
+
/**
|
|
61
|
+
* @param {LookupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
62
|
+
*
|
|
63
|
+
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
64
|
+
* @throws {@link NizamDashboard.InternalServerError}
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* await client.lookups.listTimezones()
|
|
68
|
+
*/
|
|
69
|
+
listTimezones(requestOptions?: LookupsClient.RequestOptions): core.HttpResponsePromise<NizamDashboard.ListResponseTimezone>;
|
|
70
|
+
private __listTimezones;
|
|
27
71
|
}
|
|
@@ -78,7 +78,10 @@ class LookupsClient {
|
|
|
78
78
|
logging: this._options.logging,
|
|
79
79
|
});
|
|
80
80
|
if (_response.ok) {
|
|
81
|
-
return {
|
|
81
|
+
return {
|
|
82
|
+
data: _response.body,
|
|
83
|
+
rawResponse: _response.rawResponse,
|
|
84
|
+
};
|
|
82
85
|
}
|
|
83
86
|
if (_response.error.reason === "status-code") {
|
|
84
87
|
switch (_response.error.statusCode) {
|
|
@@ -96,5 +99,193 @@ class LookupsClient {
|
|
|
96
99
|
}
|
|
97
100
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/lookups/business-categories");
|
|
98
101
|
}
|
|
102
|
+
/**
|
|
103
|
+
* @param {LookupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
104
|
+
*
|
|
105
|
+
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
106
|
+
* @throws {@link NizamDashboard.InternalServerError}
|
|
107
|
+
*
|
|
108
|
+
* @example
|
|
109
|
+
* await client.lookups.listCountries()
|
|
110
|
+
*/
|
|
111
|
+
listCountries(requestOptions) {
|
|
112
|
+
return core.HttpResponsePromise.fromPromise(this.__listCountries(requestOptions));
|
|
113
|
+
}
|
|
114
|
+
async __listCountries(requestOptions) {
|
|
115
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
116
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
117
|
+
const _response = await core.fetcher({
|
|
118
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
119
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
120
|
+
environments.NizamDashboardEnvironment.Production, "v1/lookups/countries"),
|
|
121
|
+
method: "GET",
|
|
122
|
+
headers: _headers,
|
|
123
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
124
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
125
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
126
|
+
abortSignal: requestOptions?.abortSignal,
|
|
127
|
+
fetchFn: this._options?.fetch,
|
|
128
|
+
logging: this._options.logging,
|
|
129
|
+
});
|
|
130
|
+
if (_response.ok) {
|
|
131
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
132
|
+
}
|
|
133
|
+
if (_response.error.reason === "status-code") {
|
|
134
|
+
switch (_response.error.statusCode) {
|
|
135
|
+
case 401:
|
|
136
|
+
throw new NizamDashboard.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
137
|
+
case 500:
|
|
138
|
+
throw new NizamDashboard.InternalServerError(_response.error.body, _response.rawResponse);
|
|
139
|
+
default:
|
|
140
|
+
throw new errors.NizamDashboardError({
|
|
141
|
+
statusCode: _response.error.statusCode,
|
|
142
|
+
body: _response.error.body,
|
|
143
|
+
rawResponse: _response.rawResponse,
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/lookups/countries");
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* @param {LookupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
151
|
+
*
|
|
152
|
+
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
153
|
+
* @throws {@link NizamDashboard.InternalServerError}
|
|
154
|
+
*
|
|
155
|
+
* @example
|
|
156
|
+
* await client.lookups.listCurrencies()
|
|
157
|
+
*/
|
|
158
|
+
listCurrencies(requestOptions) {
|
|
159
|
+
return core.HttpResponsePromise.fromPromise(this.__listCurrencies(requestOptions));
|
|
160
|
+
}
|
|
161
|
+
async __listCurrencies(requestOptions) {
|
|
162
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
163
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
164
|
+
const _response = await core.fetcher({
|
|
165
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
166
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
167
|
+
environments.NizamDashboardEnvironment.Production, "v1/lookups/currencies"),
|
|
168
|
+
method: "GET",
|
|
169
|
+
headers: _headers,
|
|
170
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
171
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
172
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
173
|
+
abortSignal: requestOptions?.abortSignal,
|
|
174
|
+
fetchFn: this._options?.fetch,
|
|
175
|
+
logging: this._options.logging,
|
|
176
|
+
});
|
|
177
|
+
if (_response.ok) {
|
|
178
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
179
|
+
}
|
|
180
|
+
if (_response.error.reason === "status-code") {
|
|
181
|
+
switch (_response.error.statusCode) {
|
|
182
|
+
case 401:
|
|
183
|
+
throw new NizamDashboard.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
184
|
+
case 500:
|
|
185
|
+
throw new NizamDashboard.InternalServerError(_response.error.body, _response.rawResponse);
|
|
186
|
+
default:
|
|
187
|
+
throw new errors.NizamDashboardError({
|
|
188
|
+
statusCode: _response.error.statusCode,
|
|
189
|
+
body: _response.error.body,
|
|
190
|
+
rawResponse: _response.rawResponse,
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/lookups/currencies");
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* @param {LookupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
198
|
+
*
|
|
199
|
+
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
200
|
+
* @throws {@link NizamDashboard.InternalServerError}
|
|
201
|
+
*
|
|
202
|
+
* @example
|
|
203
|
+
* await client.lookups.listLanguages()
|
|
204
|
+
*/
|
|
205
|
+
listLanguages(requestOptions) {
|
|
206
|
+
return core.HttpResponsePromise.fromPromise(this.__listLanguages(requestOptions));
|
|
207
|
+
}
|
|
208
|
+
async __listLanguages(requestOptions) {
|
|
209
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
210
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
211
|
+
const _response = await core.fetcher({
|
|
212
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
213
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
214
|
+
environments.NizamDashboardEnvironment.Production, "v1/lookups/languages"),
|
|
215
|
+
method: "GET",
|
|
216
|
+
headers: _headers,
|
|
217
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
218
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
219
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
220
|
+
abortSignal: requestOptions?.abortSignal,
|
|
221
|
+
fetchFn: this._options?.fetch,
|
|
222
|
+
logging: this._options.logging,
|
|
223
|
+
});
|
|
224
|
+
if (_response.ok) {
|
|
225
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
226
|
+
}
|
|
227
|
+
if (_response.error.reason === "status-code") {
|
|
228
|
+
switch (_response.error.statusCode) {
|
|
229
|
+
case 401:
|
|
230
|
+
throw new NizamDashboard.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
231
|
+
case 500:
|
|
232
|
+
throw new NizamDashboard.InternalServerError(_response.error.body, _response.rawResponse);
|
|
233
|
+
default:
|
|
234
|
+
throw new errors.NizamDashboardError({
|
|
235
|
+
statusCode: _response.error.statusCode,
|
|
236
|
+
body: _response.error.body,
|
|
237
|
+
rawResponse: _response.rawResponse,
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/lookups/languages");
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* @param {LookupsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
245
|
+
*
|
|
246
|
+
* @throws {@link NizamDashboard.UnauthorizedError}
|
|
247
|
+
* @throws {@link NizamDashboard.InternalServerError}
|
|
248
|
+
*
|
|
249
|
+
* @example
|
|
250
|
+
* await client.lookups.listTimezones()
|
|
251
|
+
*/
|
|
252
|
+
listTimezones(requestOptions) {
|
|
253
|
+
return core.HttpResponsePromise.fromPromise(this.__listTimezones(requestOptions));
|
|
254
|
+
}
|
|
255
|
+
async __listTimezones(requestOptions) {
|
|
256
|
+
const _authRequest = await this._options.authProvider.getAuthRequest();
|
|
257
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, this._options?.headers, requestOptions?.headers);
|
|
258
|
+
const _response = await core.fetcher({
|
|
259
|
+
url: core.url.join((await core.Supplier.get(this._options.baseUrl)) ??
|
|
260
|
+
(await core.Supplier.get(this._options.environment)) ??
|
|
261
|
+
environments.NizamDashboardEnvironment.Production, "v1/lookups/timezones"),
|
|
262
|
+
method: "GET",
|
|
263
|
+
headers: _headers,
|
|
264
|
+
queryString: core.url.queryBuilder().mergeAdditional(requestOptions?.queryParams).build(),
|
|
265
|
+
timeoutMs: (requestOptions?.timeoutInSeconds ?? this._options?.timeoutInSeconds ?? 60) * 1000,
|
|
266
|
+
maxRetries: requestOptions?.maxRetries ?? this._options?.maxRetries,
|
|
267
|
+
abortSignal: requestOptions?.abortSignal,
|
|
268
|
+
fetchFn: this._options?.fetch,
|
|
269
|
+
logging: this._options.logging,
|
|
270
|
+
});
|
|
271
|
+
if (_response.ok) {
|
|
272
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
273
|
+
}
|
|
274
|
+
if (_response.error.reason === "status-code") {
|
|
275
|
+
switch (_response.error.statusCode) {
|
|
276
|
+
case 401:
|
|
277
|
+
throw new NizamDashboard.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
278
|
+
case 500:
|
|
279
|
+
throw new NizamDashboard.InternalServerError(_response.error.body, _response.rawResponse);
|
|
280
|
+
default:
|
|
281
|
+
throw new errors.NizamDashboardError({
|
|
282
|
+
statusCode: _response.error.statusCode,
|
|
283
|
+
body: _response.error.body,
|
|
284
|
+
rawResponse: _response.rawResponse,
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/v1/lookups/timezones");
|
|
289
|
+
}
|
|
99
290
|
}
|
|
100
291
|
exports.LookupsClient = LookupsClient;
|
|
@@ -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,23 @@
|
|
|
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
|
+
/** Opaque cursor for the next page. `null` on the last page. */
|
|
13
|
+
next_cursor?: string | undefined;
|
|
14
|
+
/** Page size that produced this response. */
|
|
15
|
+
limit?: number | undefined;
|
|
16
|
+
}
|
|
17
|
+
export declare namespace ListResponseBusinessCategory {
|
|
18
|
+
/** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
|
|
19
|
+
const Object_: {
|
|
20
|
+
readonly List: "list";
|
|
21
|
+
};
|
|
22
|
+
type Object_ = (typeof Object_)[keyof typeof Object_];
|
|
23
|
+
}
|
|
@@ -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,23 @@
|
|
|
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
|
+
/** Opaque cursor for the next page. `null` on the last page. */
|
|
13
|
+
next_cursor?: string | undefined;
|
|
14
|
+
/** Page size that produced this response. */
|
|
15
|
+
limit?: number | undefined;
|
|
16
|
+
}
|
|
17
|
+
export declare namespace ListResponseCountry {
|
|
18
|
+
/** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
|
|
19
|
+
const Object_: {
|
|
20
|
+
readonly List: "list";
|
|
21
|
+
};
|
|
22
|
+
type Object_ = (typeof Object_)[keyof typeof Object_];
|
|
23
|
+
}
|
|
@@ -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,23 @@
|
|
|
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
|
+
/** Opaque cursor for the next page. `null` on the last page. */
|
|
13
|
+
next_cursor?: string | undefined;
|
|
14
|
+
/** Page size that produced this response. */
|
|
15
|
+
limit?: number | undefined;
|
|
16
|
+
}
|
|
17
|
+
export declare namespace ListResponseCurrency {
|
|
18
|
+
/** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
|
|
19
|
+
const Object_: {
|
|
20
|
+
readonly List: "list";
|
|
21
|
+
};
|
|
22
|
+
type Object_ = (typeof Object_)[keyof typeof Object_];
|
|
23
|
+
}
|
|
@@ -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,23 @@
|
|
|
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
|
+
/** Opaque cursor for the next page. `null` on the last page. */
|
|
13
|
+
next_cursor?: string | undefined;
|
|
14
|
+
/** Page size that produced this response. */
|
|
15
|
+
limit?: number | undefined;
|
|
16
|
+
}
|
|
17
|
+
export declare namespace ListResponseLanguage {
|
|
18
|
+
/** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
|
|
19
|
+
const Object_: {
|
|
20
|
+
readonly List: "list";
|
|
21
|
+
};
|
|
22
|
+
type Object_ = (typeof Object_)[keyof typeof Object_];
|
|
23
|
+
}
|
|
@@ -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,23 @@
|
|
|
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
|
+
/** Opaque cursor for the next page. `null` on the last page. */
|
|
13
|
+
next_cursor?: string | undefined;
|
|
14
|
+
/** Page size that produced this response. */
|
|
15
|
+
limit?: number | undefined;
|
|
16
|
+
}
|
|
17
|
+
export declare namespace ListResponseTimezone {
|
|
18
|
+
/** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
|
|
19
|
+
const Object_: {
|
|
20
|
+
readonly List: "list";
|
|
21
|
+
};
|
|
22
|
+
type Object_ = (typeof Object_)[keyof typeof Object_];
|
|
23
|
+
}
|
|
@@ -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 = {}));
|
|
@@ -2,9 +2,9 @@ import type * as NizamDashboard from "../index.js";
|
|
|
2
2
|
/**
|
|
3
3
|
* Envelope for paginated list responses (Stripe-style cursor pagination).
|
|
4
4
|
*/
|
|
5
|
-
export interface
|
|
5
|
+
export interface ListResponseUserResource {
|
|
6
6
|
/** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
|
|
7
|
-
object?:
|
|
7
|
+
object?: ListResponseUserResource.Object_ | undefined;
|
|
8
8
|
/** Page of resources. Empty array when there are no matches. */
|
|
9
9
|
data?: NizamDashboard.UserResource[] | undefined;
|
|
10
10
|
/** True when more pages exist; pass `next_cursor` as `?starting_after=` to fetch the next page. */
|
|
@@ -14,7 +14,7 @@ export interface ListResponse {
|
|
|
14
14
|
/** Page size that produced this response. */
|
|
15
15
|
limit?: number | undefined;
|
|
16
16
|
}
|
|
17
|
-
export declare namespace
|
|
17
|
+
export declare namespace ListResponseUserResource {
|
|
18
18
|
/** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
|
|
19
19
|
const Object_: {
|
|
20
20
|
readonly List: "list";
|
|
@@ -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.ListResponseUserResource = void 0;
|
|
5
|
+
var ListResponseUserResource;
|
|
6
|
+
(function (ListResponseUserResource) {
|
|
7
|
+
/** Object type discriminator (Stripe pattern). Always `list` for this envelope. */
|
|
8
|
+
ListResponseUserResource.Object_ = {
|
|
9
|
+
List: "list",
|
|
10
|
+
};
|
|
11
|
+
})(ListResponseUserResource || (exports.ListResponseUserResource = ListResponseUserResource = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* IANA timezone with localized display name + current GMT offset.
|
|
3
|
+
*/
|
|
4
|
+
export interface Timezone {
|
|
5
|
+
/** IANA timezone id (e.g. `America/New_York`). */
|
|
6
|
+
id?: string | undefined;
|
|
7
|
+
/** Long display name in the Accept-Language locale. */
|
|
8
|
+
display_name?: string | undefined;
|
|
9
|
+
/** Current offset from UTC in minutes (DST-aware). */
|
|
10
|
+
gmt_offset_minutes?: number | undefined;
|
|
11
|
+
/** Object type discriminator (Stripe pattern). */
|
|
12
|
+
object?: Timezone.Object_ | undefined;
|
|
13
|
+
}
|
|
14
|
+
export declare namespace Timezone {
|
|
15
|
+
/** Object type discriminator (Stripe pattern). */
|
|
16
|
+
const Object_: {
|
|
17
|
+
readonly Timezone: "timezone";
|
|
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.Timezone = void 0;
|
|
5
|
+
var Timezone;
|
|
6
|
+
(function (Timezone) {
|
|
7
|
+
/** Object type discriminator (Stripe pattern). */
|
|
8
|
+
Timezone.Object_ = {
|
|
9
|
+
Timezone: "timezone",
|
|
10
|
+
};
|
|
11
|
+
})(Timezone || (exports.Timezone = Timezone = {}));
|
|
@@ -1,16 +1,26 @@
|
|
|
1
1
|
export * from "./ApiFieldError.js";
|
|
2
2
|
export * from "./Asset.js";
|
|
3
3
|
export * from "./Assignment.js";
|
|
4
|
+
export * from "./BusinessCategory.js";
|
|
5
|
+
export * from "./Country.js";
|
|
4
6
|
export * from "./CreateAutonomousOperatorRequest.js";
|
|
5
7
|
export * from "./CreateHumanOperatorRequest.js";
|
|
6
8
|
export * from "./CreateOperatorRequest.js";
|
|
7
9
|
export * from "./CreateTeleoperatedOperatorRequest.js";
|
|
10
|
+
export * from "./Currency.js";
|
|
8
11
|
export * from "./InternalUserUpdateRequest.js";
|
|
9
12
|
export * from "./Invite.js";
|
|
10
|
-
export * from "./
|
|
13
|
+
export * from "./Language.js";
|
|
14
|
+
export * from "./ListResponseBusinessCategory.js";
|
|
15
|
+
export * from "./ListResponseCountry.js";
|
|
16
|
+
export * from "./ListResponseCurrency.js";
|
|
17
|
+
export * from "./ListResponseLanguage.js";
|
|
18
|
+
export * from "./ListResponseTimezone.js";
|
|
19
|
+
export * from "./ListResponseUserResource.js";
|
|
11
20
|
export * from "./Operator.js";
|
|
12
21
|
export * from "./Organization.js";
|
|
13
22
|
export * from "./OrganizationMembership.js";
|
|
14
23
|
export * from "./ProblemDetail.js";
|
|
24
|
+
export * from "./Timezone.js";
|
|
15
25
|
export * from "./User.js";
|
|
16
26
|
export * from "./UserResource.js";
|
package/dist/api/types/index.js
CHANGED
|
@@ -17,16 +17,26 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./ApiFieldError.js"), exports);
|
|
18
18
|
__exportStar(require("./Asset.js"), exports);
|
|
19
19
|
__exportStar(require("./Assignment.js"), exports);
|
|
20
|
+
__exportStar(require("./BusinessCategory.js"), exports);
|
|
21
|
+
__exportStar(require("./Country.js"), exports);
|
|
20
22
|
__exportStar(require("./CreateAutonomousOperatorRequest.js"), exports);
|
|
21
23
|
__exportStar(require("./CreateHumanOperatorRequest.js"), exports);
|
|
22
24
|
__exportStar(require("./CreateOperatorRequest.js"), exports);
|
|
23
25
|
__exportStar(require("./CreateTeleoperatedOperatorRequest.js"), exports);
|
|
26
|
+
__exportStar(require("./Currency.js"), exports);
|
|
24
27
|
__exportStar(require("./InternalUserUpdateRequest.js"), exports);
|
|
25
28
|
__exportStar(require("./Invite.js"), exports);
|
|
26
|
-
__exportStar(require("./
|
|
29
|
+
__exportStar(require("./Language.js"), exports);
|
|
30
|
+
__exportStar(require("./ListResponseBusinessCategory.js"), exports);
|
|
31
|
+
__exportStar(require("./ListResponseCountry.js"), exports);
|
|
32
|
+
__exportStar(require("./ListResponseCurrency.js"), exports);
|
|
33
|
+
__exportStar(require("./ListResponseLanguage.js"), exports);
|
|
34
|
+
__exportStar(require("./ListResponseTimezone.js"), exports);
|
|
35
|
+
__exportStar(require("./ListResponseUserResource.js"), exports);
|
|
27
36
|
__exportStar(require("./Operator.js"), exports);
|
|
28
37
|
__exportStar(require("./Organization.js"), exports);
|
|
29
38
|
__exportStar(require("./OrganizationMembership.js"), exports);
|
|
30
39
|
__exportStar(require("./ProblemDetail.js"), exports);
|
|
40
|
+
__exportStar(require("./Timezone.js"), exports);
|
|
31
41
|
__exportStar(require("./User.js"), exports);
|
|
32
42
|
__exportStar(require("./UserResource.js"), exports);
|