Skip to content

Commit 9740969

Browse files
committed
fix(ui): New generated api.ts
1 parent 74b8b64 commit 9740969

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

samling/ui/src/types/api.ts

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export interface User {
129129
email: string;
130130
groups: GroupSummary[];
131131
id: number;
132-
last_sign_in: string;
132+
last_sign_in?: null | string;
133133
name: string;
134134
organizations: UserOrganization[];
135135
profile_image?: null | string;
@@ -282,7 +282,7 @@ export interface PriceListSummary {
282282
export interface UserSummary {
283283
email: string;
284284
id: number;
285-
last_sign_in: string;
285+
last_sign_in?: null | string;
286286
name: string;
287287
profile_image?: null | string;
288288
[property: string]: any;
@@ -377,7 +377,7 @@ export interface Collection {
377377
* Nested size (well, used by NestedColor, so `color` field isn't needed)
378378
*/
379379
export interface NestedSize {
380-
delivery_period?: string;
380+
delivery_period?: null | string;
381381
ean_code?: null | string;
382382
external_id?: null | string;
383383
id: number;
@@ -866,20 +866,20 @@ export interface PriceList {
866866
* Size
867867
*/
868868
export interface Size {
869-
color: ColorSummary;
870-
created_at: string;
871-
created_by?: number | null;
872-
delivery_period: string;
873-
ean_code?: null | string;
874-
external_id?: null | string;
875-
id: number;
876-
name: I18NString;
877-
number: string;
878-
position: number;
879-
service_item?: boolean | null;
880-
slug: string;
881-
status?: null | string;
882-
updated_at: string;
869+
color: ColorSummary;
870+
created_at: string;
871+
created_by?: number | null;
872+
delivery_period?: null | string;
873+
ean_code?: null | string;
874+
external_id?: null | string;
875+
id: number;
876+
name: I18NString;
877+
number: string;
878+
position: number;
879+
service_item?: boolean | null;
880+
slug: string;
881+
status?: null | string;
882+
updated_at: string;
883883
[property: string]: any;
884884
}
885885

@@ -1745,7 +1745,7 @@ const typeMap: any = {
17451745
{ json: "email", js: "email", typ: "" },
17461746
{ json: "groups", js: "groups", typ: a(r("GroupSummary")) },
17471747
{ json: "id", js: "id", typ: 3.14 },
1748-
{ json: "last_sign_in", js: "last_sign_in", typ: "" },
1748+
{ json: "last_sign_in", js: "last_sign_in", typ: u(undefined, u(null, "")) },
17491749
{ json: "name", js: "name", typ: "" },
17501750
{ json: "organizations", js: "organizations", typ: a(r("UserOrganization")) },
17511751
{ json: "profile_image", js: "profile_image", typ: u(undefined, u(null, "")) },
@@ -1851,7 +1851,7 @@ const typeMap: any = {
18511851
"UserSummary": o([
18521852
{ json: "email", js: "email", typ: "" },
18531853
{ json: "id", js: "id", typ: 3.14 },
1854-
{ json: "last_sign_in", js: "last_sign_in", typ: "" },
1854+
{ json: "last_sign_in", js: "last_sign_in", typ: u(undefined, u(null, "")) },
18551855
{ json: "name", js: "name", typ: "" },
18561856
{ json: "profile_image", js: "profile_image", typ: u(undefined, u(null, "")) },
18571857
], "any"),
@@ -1916,7 +1916,7 @@ const typeMap: any = {
19161916
{ json: "updated_at", js: "updated_at", typ: "" },
19171917
], "any"),
19181918
"NestedSize": o([
1919-
{ json: "delivery_period", js: "delivery_period", typ: u(undefined, "") },
1919+
{ json: "delivery_period", js: "delivery_period", typ: u(undefined, u(null, "")) },
19201920
{ json: "ean_code", js: "ean_code", typ: u(undefined, u(null, "")) },
19211921
{ json: "external_id", js: "external_id", typ: u(undefined, u(null, "")) },
19221922
{ json: "id", js: "id", typ: 3.14 },
@@ -2183,7 +2183,7 @@ const typeMap: any = {
21832183
{ json: "color", js: "color", typ: r("ColorSummary") },
21842184
{ json: "created_at", js: "created_at", typ: "" },
21852185
{ json: "created_by", js: "created_by", typ: u(undefined, u(3.14, null)) },
2186-
{ json: "delivery_period", js: "delivery_period", typ: "" },
2186+
{ json: "delivery_period", js: "delivery_period", typ: u(undefined, u(null, "")) },
21872187
{ json: "ean_code", js: "ean_code", typ: u(undefined, u(null, "")) },
21882188
{ json: "external_id", js: "external_id", typ: u(undefined, u(null, "")) },
21892189
{ json: "id", js: "id", typ: 3.14 },

0 commit comments

Comments
 (0)