gst-common 1.6.23 → 1.6.24

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/index.cjs CHANGED
@@ -296,9 +296,10 @@ var COMMON_ROUTES = {
296
296
  classDetail: (id) => {
297
297
  return `${URL_CLASS_DETAIL}/${id}`;
298
298
  },
299
- programDetail: (id, tab) => {
300
- if (tab) return `/program-detail/${id}?tab=${tab}`;
301
- return `/program-detail/${id}`;
299
+ programDetailUrl: "chuong-trinh-hoc",
300
+ programDetail(id, tab) {
301
+ if (tab) return `${this.programDetailUrl}/${id}?tab=${tab}`;
302
+ return `${this.programDetailUrl}/${id}`;
302
303
  },
303
304
  classDetailReport: (classId, reportId) => {
304
305
  return `${URL_CLASS_DETAIL}/${classId}/report/${reportId}`;
package/dist/index.d.cts CHANGED
@@ -558,7 +558,8 @@ declare const COMMON_ROUTES: {
558
558
  studentClassList: string;
559
559
  wallet: string;
560
560
  classDetail: (id: string) => string;
561
- programDetail: (id: string, tab: PROGRAM_DETAIL_TABS) => string;
561
+ programDetailUrl: string;
562
+ programDetail(id: string, tab: PROGRAM_DETAIL_TABS): string;
562
563
  classDetailReport: (classId: string, reportId: string) => string;
563
564
  };
564
565
  declare const REGISTER_PROGRAM_TIME: number;
package/dist/index.d.ts CHANGED
@@ -558,7 +558,8 @@ declare const COMMON_ROUTES: {
558
558
  studentClassList: string;
559
559
  wallet: string;
560
560
  classDetail: (id: string) => string;
561
- programDetail: (id: string, tab: PROGRAM_DETAIL_TABS) => string;
561
+ programDetailUrl: string;
562
+ programDetail(id: string, tab: PROGRAM_DETAIL_TABS): string;
562
563
  classDetailReport: (classId: string, reportId: string) => string;
563
564
  };
564
565
  declare const REGISTER_PROGRAM_TIME: number;
package/dist/index.mjs CHANGED
@@ -204,9 +204,10 @@ var COMMON_ROUTES = {
204
204
  classDetail: (id) => {
205
205
  return `${URL_CLASS_DETAIL}/${id}`;
206
206
  },
207
- programDetail: (id, tab) => {
208
- if (tab) return `/program-detail/${id}?tab=${tab}`;
209
- return `/program-detail/${id}`;
207
+ programDetailUrl: "chuong-trinh-hoc",
208
+ programDetail(id, tab) {
209
+ if (tab) return `${this.programDetailUrl}/${id}?tab=${tab}`;
210
+ return `${this.programDetailUrl}/${id}`;
210
211
  },
211
212
  classDetailReport: (classId, reportId) => {
212
213
  return `${URL_CLASS_DETAIL}/${classId}/report/${reportId}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gst-common",
3
- "version": "1.6.23",
3
+ "version": "1.6.24",
4
4
  "description": "store all common variables that we need",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",