@fragus/sam-types 1.0.50 → 1.0.51

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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.50",
2
+ "version": "1.0.51",
3
3
  "name": "@fragus/sam-types",
4
4
  "description": "Typescript interfaces for all types used to communicate between SAM client(s) and the SAM API",
5
5
  "author": "Fragus",
@@ -0,0 +1,35 @@
1
+ import { IUserResponse } from './user'
2
+
3
+ export type ISuperAdminUserResponse = IUserResponse & {
4
+ userLastSeen: Date | null
5
+ restrictToTheseCountries: string[]
6
+ }
7
+
8
+ export interface ISuperAdminUserRequest {
9
+ email: string
10
+ restrictToTheseCountries: string[]
11
+ contactPerson: {
12
+ name: string
13
+ email: string
14
+ phone: string
15
+ address: {
16
+ address1: string
17
+ address2?: string
18
+ city: string
19
+ postalCode: string
20
+ countryIsoName: string
21
+ }
22
+ }
23
+ }
24
+
25
+ export interface ISuperAdminUserRequestGet {
26
+ search?: string
27
+ country?: string
28
+ limit: number
29
+ cursor?: number
30
+ }
31
+
32
+ export interface IPaginatedSuperAdminUserResponse {
33
+ data: ISuperAdminUserResponse[]
34
+ nextCursor: number | null
35
+ }