@dgpholdings/greatoak-shared 1.1.95 → 1.1.97
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.
|
@@ -17,7 +17,7 @@ export type TTemplateShopDb = {
|
|
|
17
17
|
fr?: string;
|
|
18
18
|
};
|
|
19
19
|
planCode: string;
|
|
20
|
-
|
|
20
|
+
gender: "male" | "female" | "all";
|
|
21
21
|
slug: string;
|
|
22
22
|
level: "beginner" | "intermediate" | "advanced" | "beginner-intermediate" | "intermediate-advanced" | "all";
|
|
23
23
|
estimatedDuration: number;
|
|
@@ -44,7 +44,7 @@ export type TApiTemplateShopCreateReq = ({
|
|
|
44
44
|
type: "trainer-created";
|
|
45
45
|
} & Omit<Extract<TTemplateShopDb, {
|
|
46
46
|
type: "trainer-created";
|
|
47
|
-
}>, "type" | "planCode" | "
|
|
47
|
+
}>, "type" | "planCode" | "slug" | "clonedCount" | "ownerId">) | ({
|
|
48
48
|
type: "system";
|
|
49
49
|
} & Omit<Extract<TTemplateShopDb, {
|
|
50
50
|
type: "system";
|
|
@@ -72,7 +72,15 @@ export type TApiTemplateShopUpdateRes = {
|
|
|
72
72
|
plan: TTemplateShopDb;
|
|
73
73
|
};
|
|
74
74
|
export type TApiTemplateShopGetReq = {
|
|
75
|
-
|
|
75
|
+
type: TTemplateShopDb["type"];
|
|
76
|
+
lastEvaluatedKey?: string;
|
|
77
|
+
limit?: number;
|
|
78
|
+
};
|
|
79
|
+
export type TTemplateShopDbWithUserInfo = TTemplateShopDb & {
|
|
80
|
+
ownerInfo?: {
|
|
81
|
+
userCode: string;
|
|
82
|
+
fullName: string;
|
|
83
|
+
};
|
|
76
84
|
};
|
|
77
85
|
export type TApiTemplateShopGetRes = {
|
|
78
86
|
status: 400;
|
|
@@ -81,7 +89,9 @@ export type TApiTemplateShopGetRes = {
|
|
|
81
89
|
} | {
|
|
82
90
|
status: 200;
|
|
83
91
|
state: "success";
|
|
84
|
-
templates:
|
|
92
|
+
templates: TTemplateShopDbWithUserInfo[];
|
|
93
|
+
lastEvaluatedKey?: string;
|
|
94
|
+
hasMore: boolean;
|
|
85
95
|
};
|
|
86
96
|
export type TApiTemplateShopAdoptOneReq = {
|
|
87
97
|
planCode: string;
|
|
@@ -117,5 +127,6 @@ export type TApiSharedPlanGetRes = {
|
|
|
117
127
|
state: "success";
|
|
118
128
|
plan: TTemplateShopDb & {
|
|
119
129
|
ownerCode: string;
|
|
130
|
+
ownerFullName: string;
|
|
120
131
|
};
|
|
121
132
|
};
|