@greensecurity/javascript-sdk 0.43.1-beta.127 → 0.43.1-beta.129
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/commonjs/__tests__/users.test.js +7 -57
- package/dist/commonjs/__tests__/users.test.js.map +1 -1
- package/dist/commonjs/__tests__/zones.test.js +16 -12
- package/dist/commonjs/__tests__/zones.test.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +1 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +1 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/user.d.ts +5 -65
- package/dist/commonjs/models/components/user.d.ts.map +1 -1
- package/dist/commonjs/models/components/user.js +3 -50
- package/dist/commonjs/models/components/user.js.map +1 -1
- package/dist/commonjs/models/components/userdetails.d.ts +72 -0
- package/dist/commonjs/models/components/userdetails.d.ts.map +1 -0
- package/dist/commonjs/models/components/userdetails.js +94 -0
- package/dist/commonjs/models/components/userdetails.js.map +1 -0
- package/dist/commonjs/models/operations/updateuser.d.ts +2 -2
- package/dist/commonjs/models/operations/updateuser.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updateuser.js +1 -1
- package/dist/commonjs/models/operations/updateuser.js.map +1 -1
- package/dist/esm/__tests__/users.test.js +7 -57
- package/dist/esm/__tests__/users.test.js.map +1 -1
- package/dist/esm/__tests__/zones.test.js +16 -12
- package/dist/esm/__tests__/zones.test.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +1 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +1 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/user.d.ts +5 -65
- package/dist/esm/models/components/user.d.ts.map +1 -1
- package/dist/esm/models/components/user.js +2 -48
- package/dist/esm/models/components/user.js.map +1 -1
- package/dist/esm/models/components/userdetails.d.ts +72 -0
- package/dist/esm/models/components/userdetails.d.ts.map +1 -0
- package/dist/esm/models/components/userdetails.js +57 -0
- package/dist/esm/models/components/userdetails.js.map +1 -0
- package/dist/esm/models/operations/updateuser.d.ts +2 -2
- package/dist/esm/models/operations/updateuser.d.ts.map +1 -1
- package/dist/esm/models/operations/updateuser.js +1 -1
- package/dist/esm/models/operations/updateuser.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/__tests__/users.test.ts +7 -57
- package/src/__tests__/zones.test.ts +16 -12
- package/src/lib/config.ts +3 -3
- package/src/models/components/index.ts +1 -0
- package/src/models/components/user.ts +6 -111
- package/src/models/components/userdetails.ts +125 -0
- package/src/models/operations/updateuser.ts +3 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"userdetails.js","sourceRoot":"","sources":["../../../../src/models/components/userdetails.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,KAAK,SAAS,MAAM,sBAAsB,CAAC;AAGlD,OAAO,KAAK,KAAK,MAAM,2BAA2B,CAAC;AAEnD,OAAO,EAAY,sBAAsB,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,EAAgB,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAE7E;;GAEG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,GAAG,EAAE,KAAK;IACV,KAAK,EAAE,OAAO;IACd,cAAc,EAAE,iBAAiB;IACjC,aAAa,EAAE,gBAAgB;IAC/B,YAAY,EAAE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,CAAC,0BAA0B,CAAC,CAAC,QAAQ,EAAE;CAC5D,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,YAAY,EAAE,WAAW;QACzB,WAAW,EAAE,UAAU;QACvB,cAAc,EAAE,aAAa;QAC7B,iBAAiB,EAAE,gBAAgB;QACnC,iBAAiB,EAAE,gBAAgB;QACnC,WAAW,EAAE,UAAU;QACvB,YAAY,EAAE,WAAW;KAC1B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,mBAAmB,CACjC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yBAAyB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrD,yCAAyC,CAC1C,CAAC;AACJ,CAAC"}
|
|
@@ -33,9 +33,9 @@ export type UpdateUserRequest = {
|
|
|
33
33
|
*/
|
|
34
34
|
export type UpdateUserUpdateUserOk = {
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Core user profile fields returned by user detail and update endpoints.
|
|
37
37
|
*/
|
|
38
|
-
user: components.
|
|
38
|
+
user: components.UserDetails;
|
|
39
39
|
};
|
|
40
40
|
/** @internal */
|
|
41
41
|
export type UpdateUserRequestBody$Outbound = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateuser.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/updateuser.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,qBAAqB,GAAG;IAClC,SAAS,CAAC,EAAE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MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,iBAAiB,CAQjB,CAAC;AAEH,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,iBAAiB,GACnC,MAAM,CAIR;AAED,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,sBAAsB,EACtB,CAAC,CAAC,UAAU,EACZ,OAAO,CAGP,CAAC;AAEH,wBAAgB,8BAA8B,CAC5C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,sBAAsB,EAAE,kBAAkB,CAAC,CAM7D"}
|
|
@@ -50,7 +50,7 @@ export function updateUserRequestToJSON(updateUserRequest) {
|
|
|
50
50
|
}
|
|
51
51
|
/** @internal */
|
|
52
52
|
export const UpdateUserUpdateUserOk$inboundSchema = z.object({
|
|
53
|
-
user: components.
|
|
53
|
+
user: components.UserDetails$inboundSchema,
|
|
54
54
|
});
|
|
55
55
|
export function updateUserUpdateUserOkFromJSON(jsonString) {
|
|
56
56
|
return safeParse(jsonString, (x) => UpdateUserUpdateUserOk$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateUserUpdateUserOk' from JSON`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateuser.js","sourceRoot":"","sources":["../../../../src/models/operations/updateuser.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AA8DrD,gBAAgB;AAChB,MAAM,CAAC,MAAM,oCAAoC,GAI7C,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;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AE5C,OAAO,IAAI,CAAC,SAAS,CACnB,oCAAoC,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAClE,CAAC;AACJ,CAAC;AAQD,gBAAgB;AAChB,MAAM,CAAC,MAAM,gCAAgC,GAIzC,CAAC,CAAC,MAAM,CAAC;IACX,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,WAAW,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,oCAAoC,CAAC;CAChE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,WAAW,EAAE,aAAa;KAC3B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,uBAAuB,CACrC,iBAAoC;IAEpC,OAAO,IAAI,CAAC,SAAS,CACnB,gCAAgC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAC1D,CAAC;AACJ,CAAC;AAED,gBAAgB;AAChB,MAAM,CAAC,MAAM,oCAAoC,GAI7C,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,UAAU,CAAC,yBAAyB;CAC3C,CAAC,CAAC;AAEH,MAAM,UAAU,8BAA8B,CAC5C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,oCAAoC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAChE,oDAAoD,CACrD,CAAC;AACJ,CAAC"}
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -113,63 +113,13 @@ test("Users Update User", async () => {
|
|
|
113
113
|
expect(result).toBeDefined();
|
|
114
114
|
expect(result).toEqual({
|
|
115
115
|
user: {
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
phone: "555-555-5555",
|
|
124
|
-
userType: "Facility User",
|
|
125
|
-
timezone: "America/Chicago",
|
|
126
|
-
},
|
|
127
|
-
userToken: {
|
|
128
|
-
token: "WDCINRKRKYQ3TUEUEUEHEGWN6WKXP7N12345C8CSHQVJD7D6I",
|
|
129
|
-
tokenType: "permanent",
|
|
130
|
-
},
|
|
131
|
-
vendor: {
|
|
132
|
-
badge: {
|
|
133
|
-
badgeType: "rfid",
|
|
134
|
-
},
|
|
135
|
-
vendorJob: {
|
|
136
|
-
id: 154462,
|
|
137
|
-
job: "Account Representatives/Managers|Account Executive",
|
|
138
|
-
},
|
|
139
|
-
primaryFacility: {
|
|
140
|
-
contacts: {
|
|
141
|
-
contact: {
|
|
142
|
-
status: "Deleted",
|
|
143
|
-
department: 123,
|
|
144
|
-
},
|
|
145
|
-
adminContact: {
|
|
146
|
-
status: "Inactive",
|
|
147
|
-
department: 123,
|
|
148
|
-
},
|
|
149
|
-
techContact: {
|
|
150
|
-
status: "Deleted",
|
|
151
|
-
department: 123,
|
|
152
|
-
},
|
|
153
|
-
greenSecurityCsm: {
|
|
154
|
-
status: "Inactive",
|
|
155
|
-
department: 123,
|
|
156
|
-
},
|
|
157
|
-
accountManager: {
|
|
158
|
-
status: "Inactive",
|
|
159
|
-
department: 123,
|
|
160
|
-
},
|
|
161
|
-
},
|
|
162
|
-
vendorGuestPolicy: {
|
|
163
|
-
enabled: true,
|
|
164
|
-
vendorGuestLimitAndOr: "and",
|
|
165
|
-
vendorGuestRequireEmail: true,
|
|
166
|
-
},
|
|
167
|
-
},
|
|
168
|
-
},
|
|
169
|
-
contact: {
|
|
170
|
-
status: "Deleted",
|
|
171
|
-
department: 123,
|
|
172
|
-
},
|
|
116
|
+
id: 123,
|
|
117
|
+
firstName: "John",
|
|
118
|
+
lastName: "Doe",
|
|
119
|
+
email: "john@example.com",
|
|
120
|
+
phone: "555-555-5555",
|
|
121
|
+
userType: "Facility User",
|
|
122
|
+
timezone: "America/Chicago",
|
|
173
123
|
},
|
|
174
124
|
});
|
|
175
125
|
});
|
|
@@ -36,6 +36,9 @@ test("Zones List Or Search Security Zones", async () => {
|
|
|
36
36
|
useUrlParams: false,
|
|
37
37
|
},
|
|
38
38
|
items: [
|
|
39
|
+
{
|
|
40
|
+
facility: {},
|
|
41
|
+
},
|
|
39
42
|
{
|
|
40
43
|
facility: {
|
|
41
44
|
contacts: {
|
|
@@ -44,28 +47,29 @@ test("Zones List Or Search Security Zones", async () => {
|
|
|
44
47
|
department: 123,
|
|
45
48
|
},
|
|
46
49
|
adminContact: {
|
|
47
|
-
status: "
|
|
48
|
-
department:
|
|
50
|
+
status: "Active",
|
|
51
|
+
department: 123,
|
|
49
52
|
},
|
|
50
53
|
techContact: {
|
|
51
|
-
status: "
|
|
54
|
+
status: "Inactive",
|
|
52
55
|
department: 123,
|
|
53
56
|
},
|
|
54
57
|
greenSecurityCsm: {
|
|
55
|
-
status: "
|
|
58
|
+
status: "Active",
|
|
56
59
|
department: 123,
|
|
57
60
|
},
|
|
58
61
|
accountManager: {
|
|
59
|
-
status: "
|
|
62
|
+
status: "Inactive",
|
|
60
63
|
department: 123,
|
|
61
64
|
},
|
|
62
65
|
},
|
|
63
|
-
vendorGuestPolicy:
|
|
66
|
+
vendorGuestPolicy: {
|
|
67
|
+
enabled: false,
|
|
68
|
+
vendorGuestLimitAndOr: "and",
|
|
69
|
+
vendorGuestRequireEmail: false,
|
|
70
|
+
},
|
|
64
71
|
},
|
|
65
72
|
},
|
|
66
|
-
{
|
|
67
|
-
facility: {},
|
|
68
|
-
},
|
|
69
73
|
],
|
|
70
74
|
});
|
|
71
75
|
});
|
|
@@ -82,9 +86,9 @@ test("Zones Security Zone Checkin", async () => {
|
|
|
82
86
|
});
|
|
83
87
|
|
|
84
88
|
const result = await greenSecurity.zones.securityZoneCheckin({
|
|
85
|
-
longitude:
|
|
86
|
-
latitude:
|
|
87
|
-
zoneId:
|
|
89
|
+
longitude: 6436.85,
|
|
90
|
+
latitude: 6346.87,
|
|
91
|
+
zoneId: 138233,
|
|
88
92
|
});
|
|
89
93
|
expect(result).toBeDefined();
|
|
90
94
|
expect(result).toEqual({});
|
package/src/lib/config.ts
CHANGED
|
@@ -81,8 +81,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
81
81
|
export const SDK_METADATA = {
|
|
82
82
|
language: "typescript",
|
|
83
83
|
openapiDocVersion: "0.0.11",
|
|
84
|
-
sdkVersion: "0.43.1-beta.
|
|
85
|
-
genVersion: "2.
|
|
84
|
+
sdkVersion: "0.43.1-beta.129",
|
|
85
|
+
genVersion: "2.882.0",
|
|
86
86
|
userAgent:
|
|
87
|
-
"speakeasy-sdk/typescript 0.43.1-beta.
|
|
87
|
+
"speakeasy-sdk/typescript 0.43.1-beta.129 2.882.0 0.0.11 @greensecurity/javascript-sdk",
|
|
88
88
|
} as const;
|
|
@@ -66,6 +66,7 @@ export * from "./supervisor.js";
|
|
|
66
66
|
export * from "./supportarticle.js";
|
|
67
67
|
export * from "./systemsummary.js";
|
|
68
68
|
export * from "./user.js";
|
|
69
|
+
export * from "./userdetails.js";
|
|
69
70
|
export * from "./userlocation.js";
|
|
70
71
|
export * from "./usersummary.js";
|
|
71
72
|
export * from "./vendor.js";
|
|
@@ -13,69 +13,9 @@ import * as types from "../../types/primitives.js";
|
|
|
13
13
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
14
14
|
import { Company, Company$inboundSchema } from "./company.js";
|
|
15
15
|
import { Contact, Contact$inboundSchema } from "./contact.js";
|
|
16
|
-
import {
|
|
17
|
-
import { UserLocation, UserLocation$inboundSchema } from "./userlocation.js";
|
|
16
|
+
import { UserDetails, UserDetails$inboundSchema } from "./userdetails.js";
|
|
18
17
|
import { Vendor, Vendor$inboundSchema } from "./vendor.js";
|
|
19
18
|
|
|
20
|
-
/**
|
|
21
|
-
* The flavor of user will determine the most relevant user experience for this user as well as permissions
|
|
22
|
-
*/
|
|
23
|
-
export const UserType = {
|
|
24
|
-
Api: "API",
|
|
25
|
-
Admin: "Admin",
|
|
26
|
-
CompanyManager: "Company Manager",
|
|
27
|
-
FacilityAdmin: "Facility Admin",
|
|
28
|
-
FacilityUser: "Facility User",
|
|
29
|
-
InventoryManager: "Inventory Manager",
|
|
30
|
-
SystemUser: "System User",
|
|
31
|
-
UserType: "User Type",
|
|
32
|
-
Vendor: "Vendor",
|
|
33
|
-
} as const;
|
|
34
|
-
/**
|
|
35
|
-
* The flavor of user will determine the most relevant user experience for this user as well as permissions
|
|
36
|
-
*/
|
|
37
|
-
export type UserType = OpenEnum<typeof UserType>;
|
|
38
|
-
|
|
39
|
-
export type UserUser = {
|
|
40
|
-
/**
|
|
41
|
-
* This identifier is only used to reference the underlying user. Based on the `user_type` a more relevant identifier may be used to get relvant information from other endpoints.
|
|
42
|
-
*/
|
|
43
|
-
id: number;
|
|
44
|
-
/**
|
|
45
|
-
* First name of the user
|
|
46
|
-
*/
|
|
47
|
-
firstName?: string | null | undefined;
|
|
48
|
-
/**
|
|
49
|
-
* Last name of the user
|
|
50
|
-
*/
|
|
51
|
-
lastName?: string | null | undefined;
|
|
52
|
-
/**
|
|
53
|
-
* Email address (not always valid)
|
|
54
|
-
*/
|
|
55
|
-
email: string;
|
|
56
|
-
phone?: string | null | undefined;
|
|
57
|
-
mobilePhone?: string | null | undefined;
|
|
58
|
-
fax?: string | null | undefined;
|
|
59
|
-
phoneConfirmed?: boolean | undefined;
|
|
60
|
-
emailConfirmed?: boolean | undefined;
|
|
61
|
-
/**
|
|
62
|
-
* The flavor of user will determine the most relevant user experience for this user as well as permissions
|
|
63
|
-
*/
|
|
64
|
-
userType: UserType;
|
|
65
|
-
/**
|
|
66
|
-
* The timezone of the user. This is used to display times in the user's local time. If not present, use the device's local timezone.
|
|
67
|
-
*/
|
|
68
|
-
timezone?: string | null | undefined;
|
|
69
|
-
/**
|
|
70
|
-
* A set of images in different sizes
|
|
71
|
-
*/
|
|
72
|
-
imageUrls?: ImageSet | null | undefined;
|
|
73
|
-
/**
|
|
74
|
-
* Reduced list of attributes of the User Location
|
|
75
|
-
*/
|
|
76
|
-
location?: UserLocation | null | undefined;
|
|
77
|
-
};
|
|
78
|
-
|
|
79
19
|
/**
|
|
80
20
|
* A `permanent` user token can be used to access any API endpoint as the logged in user. A `one time` token is used to authenticate the user once.
|
|
81
21
|
*/
|
|
@@ -110,7 +50,10 @@ export type User = {
|
|
|
110
50
|
*/
|
|
111
51
|
isGatekeeper?: boolean | undefined;
|
|
112
52
|
success: boolean;
|
|
113
|
-
|
|
53
|
+
/**
|
|
54
|
+
* Core user profile fields returned by user detail and update endpoints.
|
|
55
|
+
*/
|
|
56
|
+
user: UserDetails;
|
|
114
57
|
userToken: UserToken;
|
|
115
58
|
/**
|
|
116
59
|
* Vendor details
|
|
@@ -127,54 +70,6 @@ export type User = {
|
|
|
127
70
|
company?: Company | null | undefined;
|
|
128
71
|
};
|
|
129
72
|
|
|
130
|
-
/** @internal */
|
|
131
|
-
export const UserType$inboundSchema: z.ZodType<
|
|
132
|
-
UserType,
|
|
133
|
-
z.ZodTypeDef,
|
|
134
|
-
unknown
|
|
135
|
-
> = openEnums.inboundSchema(UserType);
|
|
136
|
-
|
|
137
|
-
/** @internal */
|
|
138
|
-
export const UserUser$inboundSchema: z.ZodType<
|
|
139
|
-
UserUser,
|
|
140
|
-
z.ZodTypeDef,
|
|
141
|
-
unknown
|
|
142
|
-
> = z.object({
|
|
143
|
-
id: types.number(),
|
|
144
|
-
first_name: z.nullable(types.string()).optional(),
|
|
145
|
-
last_name: z.nullable(types.string()).optional(),
|
|
146
|
-
email: types.string(),
|
|
147
|
-
phone: z.nullable(types.string()).optional(),
|
|
148
|
-
mobile_phone: z.nullable(types.string()).optional(),
|
|
149
|
-
fax: z.nullable(types.string()).optional(),
|
|
150
|
-
phone_confirmed: types.optional(types.boolean()),
|
|
151
|
-
email_confirmed: types.optional(types.boolean()),
|
|
152
|
-
user_type: UserType$inboundSchema,
|
|
153
|
-
timezone: z.nullable(types.string()).optional(),
|
|
154
|
-
image_urls: z.nullable(ImageSet$inboundSchema).optional(),
|
|
155
|
-
location: z.nullable(UserLocation$inboundSchema).optional(),
|
|
156
|
-
}).transform((v) => {
|
|
157
|
-
return remap$(v, {
|
|
158
|
-
"first_name": "firstName",
|
|
159
|
-
"last_name": "lastName",
|
|
160
|
-
"mobile_phone": "mobilePhone",
|
|
161
|
-
"phone_confirmed": "phoneConfirmed",
|
|
162
|
-
"email_confirmed": "emailConfirmed",
|
|
163
|
-
"user_type": "userType",
|
|
164
|
-
"image_urls": "imageUrls",
|
|
165
|
-
});
|
|
166
|
-
});
|
|
167
|
-
|
|
168
|
-
export function userUserFromJSON(
|
|
169
|
-
jsonString: string,
|
|
170
|
-
): SafeParseResult<UserUser, SDKValidationError> {
|
|
171
|
-
return safeParse(
|
|
172
|
-
jsonString,
|
|
173
|
-
(x) => UserUser$inboundSchema.parse(JSON.parse(x)),
|
|
174
|
-
`Failed to parse 'UserUser' from JSON`,
|
|
175
|
-
);
|
|
176
|
-
}
|
|
177
|
-
|
|
178
73
|
/** @internal */
|
|
179
74
|
export const TokenType$inboundSchema: z.ZodType<
|
|
180
75
|
TokenType,
|
|
@@ -228,7 +123,7 @@ export const User$inboundSchema: z.ZodType<User, z.ZodTypeDef, unknown> = z
|
|
|
228
123
|
.object({
|
|
229
124
|
is_gatekeeper: types.optional(types.boolean()),
|
|
230
125
|
success: types.boolean(),
|
|
231
|
-
user:
|
|
126
|
+
user: UserDetails$inboundSchema,
|
|
232
127
|
user_token: z.lazy(() => UserToken$inboundSchema),
|
|
233
128
|
vendor: types.optional(Vendor$inboundSchema),
|
|
234
129
|
inventory_manager: types.optional(
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: d94d6e1e0f97
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import * as z from "zod/v3";
|
|
7
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
8
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
9
|
+
import * as openEnums from "../../types/enums.js";
|
|
10
|
+
import { OpenEnum } from "../../types/enums.js";
|
|
11
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
12
|
+
import * as types from "../../types/primitives.js";
|
|
13
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
14
|
+
import { ImageSet, ImageSet$inboundSchema } from "./imageset.js";
|
|
15
|
+
import { UserLocation, UserLocation$inboundSchema } from "./userlocation.js";
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* The flavor of user will determine the most relevant user experience for this user as well as permissions
|
|
19
|
+
*/
|
|
20
|
+
export const UserType = {
|
|
21
|
+
Api: "API",
|
|
22
|
+
Admin: "Admin",
|
|
23
|
+
CompanyManager: "Company Manager",
|
|
24
|
+
FacilityAdmin: "Facility Admin",
|
|
25
|
+
FacilityUser: "Facility User",
|
|
26
|
+
InventoryManager: "Inventory Manager",
|
|
27
|
+
SystemUser: "System User",
|
|
28
|
+
UserType: "User Type",
|
|
29
|
+
Vendor: "Vendor",
|
|
30
|
+
} as const;
|
|
31
|
+
/**
|
|
32
|
+
* The flavor of user will determine the most relevant user experience for this user as well as permissions
|
|
33
|
+
*/
|
|
34
|
+
export type UserType = OpenEnum<typeof UserType>;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Core user profile fields returned by user detail and update endpoints.
|
|
38
|
+
*/
|
|
39
|
+
export type UserDetails = {
|
|
40
|
+
/**
|
|
41
|
+
* This identifier is only used to reference the underlying user. Based on the `user_type` a more relevant identifier may be used to get relvant information from other endpoints.
|
|
42
|
+
*/
|
|
43
|
+
id: number;
|
|
44
|
+
/**
|
|
45
|
+
* First name of the user
|
|
46
|
+
*/
|
|
47
|
+
firstName?: string | null | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* Last name of the user
|
|
50
|
+
*/
|
|
51
|
+
lastName?: string | null | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* Email address (not always valid)
|
|
54
|
+
*/
|
|
55
|
+
email: string;
|
|
56
|
+
phone?: string | null | undefined;
|
|
57
|
+
mobilePhone?: string | null | undefined;
|
|
58
|
+
fax?: string | null | undefined;
|
|
59
|
+
phoneConfirmed?: boolean | undefined;
|
|
60
|
+
emailConfirmed?: boolean | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* The flavor of user will determine the most relevant user experience for this user as well as permissions
|
|
63
|
+
*/
|
|
64
|
+
userType: UserType;
|
|
65
|
+
/**
|
|
66
|
+
* The timezone of the user. This is used to display times in the user's local time. If not present, use the device's local timezone.
|
|
67
|
+
*/
|
|
68
|
+
timezone?: string | null | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* A set of images in different sizes
|
|
71
|
+
*/
|
|
72
|
+
imageUrls?: ImageSet | null | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* Reduced list of attributes of the User Location
|
|
75
|
+
*/
|
|
76
|
+
location?: UserLocation | null | undefined;
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
/** @internal */
|
|
80
|
+
export const UserType$inboundSchema: z.ZodType<
|
|
81
|
+
UserType,
|
|
82
|
+
z.ZodTypeDef,
|
|
83
|
+
unknown
|
|
84
|
+
> = openEnums.inboundSchema(UserType);
|
|
85
|
+
|
|
86
|
+
/** @internal */
|
|
87
|
+
export const UserDetails$inboundSchema: z.ZodType<
|
|
88
|
+
UserDetails,
|
|
89
|
+
z.ZodTypeDef,
|
|
90
|
+
unknown
|
|
91
|
+
> = z.object({
|
|
92
|
+
id: types.number(),
|
|
93
|
+
first_name: z.nullable(types.string()).optional(),
|
|
94
|
+
last_name: z.nullable(types.string()).optional(),
|
|
95
|
+
email: types.string(),
|
|
96
|
+
phone: z.nullable(types.string()).optional(),
|
|
97
|
+
mobile_phone: z.nullable(types.string()).optional(),
|
|
98
|
+
fax: z.nullable(types.string()).optional(),
|
|
99
|
+
phone_confirmed: types.optional(types.boolean()),
|
|
100
|
+
email_confirmed: types.optional(types.boolean()),
|
|
101
|
+
user_type: UserType$inboundSchema,
|
|
102
|
+
timezone: z.nullable(types.string()).optional(),
|
|
103
|
+
image_urls: z.nullable(ImageSet$inboundSchema).optional(),
|
|
104
|
+
location: z.nullable(UserLocation$inboundSchema).optional(),
|
|
105
|
+
}).transform((v) => {
|
|
106
|
+
return remap$(v, {
|
|
107
|
+
"first_name": "firstName",
|
|
108
|
+
"last_name": "lastName",
|
|
109
|
+
"mobile_phone": "mobilePhone",
|
|
110
|
+
"phone_confirmed": "phoneConfirmed",
|
|
111
|
+
"email_confirmed": "emailConfirmed",
|
|
112
|
+
"user_type": "userType",
|
|
113
|
+
"image_urls": "imageUrls",
|
|
114
|
+
});
|
|
115
|
+
});
|
|
116
|
+
|
|
117
|
+
export function userDetailsFromJSON(
|
|
118
|
+
jsonString: string,
|
|
119
|
+
): SafeParseResult<UserDetails, SDKValidationError> {
|
|
120
|
+
return safeParse(
|
|
121
|
+
jsonString,
|
|
122
|
+
(x) => UserDetails$inboundSchema.parse(JSON.parse(x)),
|
|
123
|
+
`Failed to parse 'UserDetails' from JSON`,
|
|
124
|
+
);
|
|
125
|
+
}
|
|
@@ -43,9 +43,9 @@ export type UpdateUserRequest = {
|
|
|
43
43
|
*/
|
|
44
44
|
export type UpdateUserUpdateUserOk = {
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
* Core user profile fields returned by user detail and update endpoints.
|
|
47
47
|
*/
|
|
48
|
-
user: components.
|
|
48
|
+
user: components.UserDetails;
|
|
49
49
|
};
|
|
50
50
|
|
|
51
51
|
/** @internal */
|
|
@@ -143,7 +143,7 @@ export const UpdateUserUpdateUserOk$inboundSchema: z.ZodType<
|
|
|
143
143
|
z.ZodTypeDef,
|
|
144
144
|
unknown
|
|
145
145
|
> = z.object({
|
|
146
|
-
user: components.
|
|
146
|
+
user: components.UserDetails$inboundSchema,
|
|
147
147
|
});
|
|
148
148
|
|
|
149
149
|
export function updateUserUpdateUserOkFromJSON(
|