@slotchain/sdk 1.1.0 → 1.1.1
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/README.md +23 -0
- package/dist/index.cjs.js +69 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.mts +91 -1
- package/dist/index.d.ts +91 -1
- package/dist/index.esm.js +69 -1
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/clients/organization-client.ts +83 -0
- package/src/index.ts +6 -0
- package/src/types/api.ts +45 -1
package/src/types/api.ts
CHANGED
|
@@ -26,7 +26,20 @@ export interface Tenant {
|
|
|
26
26
|
id: string;
|
|
27
27
|
slug: string;
|
|
28
28
|
name: string;
|
|
29
|
-
|
|
29
|
+
primary_domain?: string;
|
|
30
|
+
subdomain?: string;
|
|
31
|
+
custom_domains?: string[];
|
|
32
|
+
branding?: {
|
|
33
|
+
logo?: string;
|
|
34
|
+
colors?: {
|
|
35
|
+
primary?: string;
|
|
36
|
+
secondary?: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
is_public?: boolean;
|
|
40
|
+
metadata?: Record<string, unknown>;
|
|
41
|
+
created_at: string;
|
|
42
|
+
updated_at: string;
|
|
30
43
|
}
|
|
31
44
|
|
|
32
45
|
/**
|
|
@@ -166,6 +179,37 @@ export interface DataQualityIssue {
|
|
|
166
179
|
// TODO: Add actual data quality issue properties
|
|
167
180
|
}
|
|
168
181
|
|
|
182
|
+
/**
|
|
183
|
+
* Organization type
|
|
184
|
+
*/
|
|
185
|
+
export interface Organization {
|
|
186
|
+
id: string;
|
|
187
|
+
slug?: string;
|
|
188
|
+
name: string;
|
|
189
|
+
description?: string;
|
|
190
|
+
metadata?: Record<string, unknown>;
|
|
191
|
+
tenant_slugs?: string[];
|
|
192
|
+
created_at: string;
|
|
193
|
+
updated_at: string;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Organization with nested tenants
|
|
198
|
+
*/
|
|
199
|
+
export interface OrganizationFullConfig extends Organization {
|
|
200
|
+
tenants: Tenant[];
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Options for getting organization
|
|
205
|
+
*/
|
|
206
|
+
export interface GetOrganizationOptions {
|
|
207
|
+
includeTenants?: boolean;
|
|
208
|
+
page?: number;
|
|
209
|
+
limit?: number;
|
|
210
|
+
is_public?: boolean;
|
|
211
|
+
}
|
|
212
|
+
|
|
169
213
|
/**
|
|
170
214
|
* Full tenant configuration including branding, services, and service items
|
|
171
215
|
* Service items are nested within each service object (not as a separate top-level array)
|