jd_platform_sdk 0.1.0 → 0.1.1
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.js +28 -44
- package/dist/sdk/configs/jdConfig.js +1 -5
- package/dist/sdk/jdConnector.js +72 -63
- package/dist/sdk/jdSdk.js +1 -5
- package/dist/sdk/models/jdApplication.js +63 -71
- package/dist/sdk/models/jdResource.js +104 -91
- package/dist/sdk/models/modules/dashboard/jdDashboardCombinations.js +15 -31
- package/dist/sdk/models/modules/geolocation/jdCity.js +49 -55
- package/dist/sdk/models/modules/geolocation/jdCountry.js +47 -53
- package/dist/sdk/models/modules/geolocation/jdDistrict.js +49 -57
- package/dist/sdk/models/modules/geolocation/jdState.js +49 -55
- package/dist/sdk/models/modules/karaoke/jdKtvShop.js +82 -88
- package/dist/sdk/models/modules/music/jdAlbum.js +96 -102
- package/dist/sdk/models/modules/music/jdArtist.js +87 -89
- package/dist/sdk/models/modules/music/jdComposer.js +83 -87
- package/dist/sdk/models/modules/music/jdMusicCombinations.js +15 -31
- package/dist/sdk/models/modules/music/jdSong.js +105 -113
- package/dist/sdk/models/modules/radio_station/jdRadioStation.js +82 -88
- package/dist/sdk/models/modules/user/jdPermission.js +55 -63
- package/dist/sdk/models/modules/user/jdPermissionGroup.js +51 -57
- package/dist/sdk/models/modules/user/jdSessionUser.js +70 -72
- package/dist/sdk/models/modules/user/jdUser.js +73 -75
- package/dist/sdk/models/modules/user/jdUserRole.js +50 -54
- package/dist/sdk/utilities/browserUtils.js +31 -24
- package/dist/sdk/utilities/cryptoUtils.js +6 -13
- package/dist/sdk/utilities/dateUtils.js +1 -5
- package/dist/sdk/utilities/globalEventHandler.js +4 -5
- package/dist/sdk/utilities/stringUtils.js +2 -6
- package/dist/sdk/utilities/utils.js +19 -22
- package/package.json +1 -1
|
@@ -1,66 +1,58 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
24
9
|
};
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const utils_1 = require("../../../utilities/utils");
|
|
29
|
-
class JDDistrict extends jdResource_1.default {
|
|
30
|
-
cityId = "";
|
|
31
|
-
city = {};
|
|
10
|
+
import JDResource, { ConnectorInfo } from "../../jdResource";
|
|
11
|
+
import { Utils } from "../../../utilities/utils";
|
|
12
|
+
export class JDDistrict extends JDResource {
|
|
32
13
|
get localisedCityTitle() { return globalThis.language == 'en' ? this.cityTitleEN : this.cityTitleMM; }
|
|
33
|
-
get cityTitleEN() { return
|
|
34
|
-
get cityTitleMM() { return
|
|
35
|
-
constructor(data = {}, connectorInfo = new
|
|
14
|
+
get cityTitleEN() { return Utils.getString(Utils.getObject(this.city, 'title'), 'en'); }
|
|
15
|
+
get cityTitleMM() { return Utils.getString(Utils.getObject(this.city, 'title'), 'mm'); }
|
|
16
|
+
constructor(data = {}, connectorInfo = new ConnectorInfo("", "")) {
|
|
36
17
|
super(connectorInfo);
|
|
18
|
+
this.cityId = "";
|
|
19
|
+
this.city = {};
|
|
37
20
|
this.setData(data);
|
|
38
21
|
}
|
|
39
22
|
setData(data) {
|
|
40
23
|
super.setData(data);
|
|
41
|
-
this.cityId =
|
|
42
|
-
this.city =
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
24
|
+
this.cityId = Utils.getString(data, "city_id");
|
|
25
|
+
this.city = Utils.getObject(data, "city");
|
|
26
|
+
}
|
|
27
|
+
getContents() {
|
|
28
|
+
return __awaiter(this, arguments, void 0, function* (params = {}) {
|
|
29
|
+
const queryParams = this.getSortParameters(params);
|
|
30
|
+
return yield this.getRelative('/modules/geolocation/districts', queryParams);
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
paginateContents() {
|
|
34
|
+
return __awaiter(this, arguments, void 0, function* (params = {}) {
|
|
35
|
+
const queryParams = this.getSortParameters(params);
|
|
36
|
+
if (params.name)
|
|
37
|
+
queryParams['name'] = params.name;
|
|
38
|
+
return yield this.getRelative('/modules/geolocation/districts/paginate', queryParams);
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
findContents(title_1) {
|
|
42
|
+
return __awaiter(this, arguments, void 0, function* (title, params = {}) {
|
|
43
|
+
const queryParams = this.getSortParameters(params);
|
|
44
|
+
queryParams['title'] = title;
|
|
45
|
+
return yield this.getRelative('/modules/geolocation/districts/find', queryParams);
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
getInfo(id) {
|
|
49
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
+
return yield this.getRelative(`/modules/geolocation/districts/${id}`, {});
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
updateFields(id_1) {
|
|
54
|
+
return __awaiter(this, arguments, void 0, function* (id, body = {}) {
|
|
55
|
+
return yield this.postRelative(`/modules/geolocation/districts/${id}/update/single_fields`, body);
|
|
56
|
+
});
|
|
64
57
|
}
|
|
65
58
|
}
|
|
66
|
-
exports.JDDistrict = JDDistrict;
|
|
@@ -1,70 +1,64 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
24
9
|
};
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const utils_1 = require("../../../utilities/utils");
|
|
29
|
-
class JDState extends jdResource_1.default {
|
|
30
|
-
countryId = "";
|
|
31
|
-
country = {};
|
|
10
|
+
import JDResource, { ConnectorInfo } from "../../jdResource";
|
|
11
|
+
import { Utils } from "../../../utilities/utils";
|
|
12
|
+
export class JDState extends JDResource {
|
|
32
13
|
get localisedCountryTitle() { return globalThis.language == 'en' ? this.countryTitleEN : this.countryTitleMM; }
|
|
33
|
-
get countryTitleEN() { return
|
|
34
|
-
get countryTitleMM() { return
|
|
35
|
-
constructor(data = {}, connectorInfo = new
|
|
14
|
+
get countryTitleEN() { return Utils.getString(Utils.getObject(this.country, 'title'), 'en'); }
|
|
15
|
+
get countryTitleMM() { return Utils.getString(Utils.getObject(this.country, 'title'), 'mm'); }
|
|
16
|
+
constructor(data = {}, connectorInfo = new ConnectorInfo("", "")) {
|
|
36
17
|
super(connectorInfo);
|
|
18
|
+
this.countryId = "";
|
|
19
|
+
this.country = {};
|
|
37
20
|
this.setData(data);
|
|
38
21
|
}
|
|
39
22
|
setData(data) {
|
|
40
23
|
super.setData(data);
|
|
41
|
-
this.countryId =
|
|
42
|
-
this.country =
|
|
24
|
+
this.countryId = Utils.getString(data, "country_id");
|
|
25
|
+
this.country = Utils.getObject(data, "country");
|
|
43
26
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
27
|
+
getContents() {
|
|
28
|
+
return __awaiter(this, arguments, void 0, function* (params = {}) {
|
|
29
|
+
const queryParams = this.getSortParameters(params);
|
|
30
|
+
return yield this.getRelative('/modules/geolocation/states', queryParams);
|
|
31
|
+
});
|
|
47
32
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
33
|
+
paginateContents() {
|
|
34
|
+
return __awaiter(this, arguments, void 0, function* (params = {}) {
|
|
35
|
+
const queryParams = this.getSortParameters(params);
|
|
36
|
+
if (params.name)
|
|
37
|
+
queryParams['name'] = params.name;
|
|
38
|
+
return yield this.getRelative('/modules/geolocation/states/paginate', queryParams);
|
|
39
|
+
});
|
|
53
40
|
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
41
|
+
findContents(title_1) {
|
|
42
|
+
return __awaiter(this, arguments, void 0, function* (title, params = {}) {
|
|
43
|
+
const queryParams = this.getSortParameters(params);
|
|
44
|
+
queryParams['title'] = title;
|
|
45
|
+
return yield this.getRelative('/modules/geolocation/states/find', queryParams);
|
|
46
|
+
});
|
|
58
47
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
48
|
+
getCities(countryId_1) {
|
|
49
|
+
return __awaiter(this, arguments, void 0, function* (countryId, params = {}) {
|
|
50
|
+
const queryParams = this.getSortParameters(params);
|
|
51
|
+
return yield this.getRelative(`/modules/geolocation/states/${countryId}/cities`, queryParams);
|
|
52
|
+
});
|
|
62
53
|
}
|
|
63
|
-
|
|
64
|
-
return
|
|
54
|
+
getInfo(id) {
|
|
55
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
56
|
+
return yield this.getRelative(`/modules/geolocation/states/${id}`, {});
|
|
57
|
+
});
|
|
65
58
|
}
|
|
66
|
-
|
|
67
|
-
return
|
|
59
|
+
updateFields(id_1) {
|
|
60
|
+
return __awaiter(this, arguments, void 0, function* (id, body = {}) {
|
|
61
|
+
return yield this.postRelative(`/modules/geolocation/states/${id}/update/single_fields`, body);
|
|
62
|
+
});
|
|
68
63
|
}
|
|
69
64
|
}
|
|
70
|
-
exports.JDState = JDState;
|
|
@@ -1,106 +1,100 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
24
9
|
};
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
const utils_1 = require("../../../utilities/utils");
|
|
29
|
-
class JDKtvShop extends jdResource_1.default {
|
|
30
|
-
licenseKey = "";
|
|
31
|
-
activationsCount = 0;
|
|
32
|
-
maxActivationsCount = 0;
|
|
33
|
-
countryId = "";
|
|
34
|
-
stateId = "";
|
|
35
|
-
cityId = "";
|
|
36
|
-
districtId = "";
|
|
37
|
-
address = {};
|
|
38
|
-
country = {};
|
|
39
|
-
state = {};
|
|
40
|
-
city = {};
|
|
41
|
-
district = {};
|
|
10
|
+
import JDResource, { ConnectorInfo } from "../../jdResource";
|
|
11
|
+
import { Utils } from "../../../utilities/utils";
|
|
12
|
+
export class JDKtvShop extends JDResource {
|
|
42
13
|
get localisedAddress() {
|
|
43
14
|
return globalThis.language != 'en' ? `${this.districtTitleMM}, ${this.stateTitleMM}, ${this.cityTitleMM}, ${this.countryTitleMM},` :
|
|
44
15
|
`${this.districtTitleEN}, ${this.stateTitleEN}, ${this.cityTitleEN}, ${this.countryTitleEN},`;
|
|
45
16
|
}
|
|
46
|
-
get countryTitleEN() { return
|
|
47
|
-
get countryTitleMM() { return
|
|
48
|
-
get stateTitleEN() { return
|
|
49
|
-
get stateTitleMM() { return
|
|
50
|
-
get cityTitleEN() { return
|
|
51
|
-
get cityTitleMM() { return
|
|
52
|
-
get districtTitleEN() { return
|
|
53
|
-
get districtTitleMM() { return
|
|
54
|
-
|
|
55
|
-
constructor(data = {}, connectorInfo = new jdResource_1.ConnectorInfo("", "")) {
|
|
17
|
+
get countryTitleEN() { return Utils.getString(Utils.getObject(this.country, 'title'), 'en'); }
|
|
18
|
+
get countryTitleMM() { return Utils.getString(Utils.getObject(this.country, 'title'), 'mm'); }
|
|
19
|
+
get stateTitleEN() { return Utils.getString(Utils.getObject(this.state, 'title'), 'en'); }
|
|
20
|
+
get stateTitleMM() { return Utils.getString(Utils.getObject(this.state, 'title'), 'mm'); }
|
|
21
|
+
get cityTitleEN() { return Utils.getString(Utils.getObject(this.city, 'title'), 'en'); }
|
|
22
|
+
get cityTitleMM() { return Utils.getString(Utils.getObject(this.city, 'title'), 'mm'); }
|
|
23
|
+
get districtTitleEN() { return Utils.getString(Utils.getObject(this.district, 'title'), 'en'); }
|
|
24
|
+
get districtTitleMM() { return Utils.getString(Utils.getObject(this.district, 'title'), 'mm'); }
|
|
25
|
+
constructor(data = {}, connectorInfo = new ConnectorInfo("", "")) {
|
|
56
26
|
super(connectorInfo);
|
|
27
|
+
this.licenseKey = "";
|
|
28
|
+
this.activationsCount = 0;
|
|
29
|
+
this.maxActivationsCount = 0;
|
|
30
|
+
this.countryId = "";
|
|
31
|
+
this.stateId = "";
|
|
32
|
+
this.cityId = "";
|
|
33
|
+
this.districtId = "";
|
|
34
|
+
this.address = {};
|
|
35
|
+
this.country = {};
|
|
36
|
+
this.state = {};
|
|
37
|
+
this.city = {};
|
|
38
|
+
this.district = {};
|
|
39
|
+
this.expiryDate = new Date();
|
|
57
40
|
this.setData(data);
|
|
58
41
|
}
|
|
59
42
|
setData(data) {
|
|
60
43
|
super.setData(data);
|
|
61
|
-
this.licenseKey =
|
|
62
|
-
this.activationsCount =
|
|
63
|
-
this.maxActivationsCount =
|
|
64
|
-
this.countryId =
|
|
65
|
-
this.stateId =
|
|
66
|
-
this.cityId =
|
|
67
|
-
this.districtId =
|
|
68
|
-
this.address =
|
|
69
|
-
this.country =
|
|
70
|
-
this.state =
|
|
71
|
-
this.city =
|
|
72
|
-
this.district =
|
|
73
|
-
this.expiryDate =
|
|
44
|
+
this.licenseKey = Utils.getString(data, "license_key");
|
|
45
|
+
this.activationsCount = Utils.getInteger(data, "activations_count");
|
|
46
|
+
this.maxActivationsCount = Utils.getInteger(data, "max_activations_count");
|
|
47
|
+
this.countryId = Utils.getString(data, "country_id");
|
|
48
|
+
this.stateId = Utils.getString(data, "state_id");
|
|
49
|
+
this.cityId = Utils.getString(data, "city_id");
|
|
50
|
+
this.districtId = Utils.getString(data, "district_id");
|
|
51
|
+
this.address = Utils.getObject(data, "address");
|
|
52
|
+
this.country = Utils.getObject(data, "country");
|
|
53
|
+
this.state = Utils.getObject(data, "state");
|
|
54
|
+
this.city = Utils.getObject(data, "city");
|
|
55
|
+
this.district = Utils.getObject(data, "district");
|
|
56
|
+
this.expiryDate = Utils.getDate(data, "expiry_date");
|
|
74
57
|
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
58
|
+
getContents() {
|
|
59
|
+
return __awaiter(this, arguments, void 0, function* (params = {}) {
|
|
60
|
+
const queryParams = this.getSortParameters(params);
|
|
61
|
+
return yield this.getRelative(`/modules/karaoke/ktv_shops`, queryParams);
|
|
62
|
+
});
|
|
78
63
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
64
|
+
paginateContents() {
|
|
65
|
+
return __awaiter(this, arguments, void 0, function* (params = {}) {
|
|
66
|
+
const queryParams = this.getSortParameters(params);
|
|
67
|
+
// Add custom filters
|
|
68
|
+
if (params.name)
|
|
69
|
+
queryParams['name'] = params.name;
|
|
70
|
+
if (params.guardName)
|
|
71
|
+
queryParams['guard_name'] = params.guardName;
|
|
72
|
+
if (params.published)
|
|
73
|
+
queryParams['published'] = params.published;
|
|
74
|
+
return yield this.getRelative('/modules/karaoke/ktv_shops/paginate', queryParams);
|
|
75
|
+
});
|
|
89
76
|
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
77
|
+
findContents() {
|
|
78
|
+
return __awaiter(this, arguments, void 0, function* (params = {}) {
|
|
79
|
+
const queryParams = this.getSortParameters(params);
|
|
80
|
+
if (params.name)
|
|
81
|
+
queryParams['name'] = params.name;
|
|
82
|
+
return yield this.getRelative('/modules/karaoke/ktv_shops/find', queryParams);
|
|
83
|
+
});
|
|
95
84
|
}
|
|
96
|
-
|
|
97
|
-
return
|
|
85
|
+
getInfo(id) {
|
|
86
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
87
|
+
return yield this.getRelative(`/modules/karaoke/ktv_shops/${id}`, {});
|
|
88
|
+
});
|
|
98
89
|
}
|
|
99
|
-
|
|
100
|
-
return
|
|
90
|
+
updateInfo(id, title, slug, expiryDate) {
|
|
91
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
92
|
+
return yield this.getRelative(`/modules/karaoke/ktv_shops/${id}`, {});
|
|
93
|
+
});
|
|
101
94
|
}
|
|
102
|
-
|
|
103
|
-
return
|
|
95
|
+
updateSingleFields(id_1) {
|
|
96
|
+
return __awaiter(this, arguments, void 0, function* (id, body = {}) {
|
|
97
|
+
return yield this.postRelative(`/modules/karaoke/ktv_shops/${id}/update/single_fields`, body);
|
|
98
|
+
});
|
|
104
99
|
}
|
|
105
100
|
}
|
|
106
|
-
exports.JDKtvShop = JDKtvShop;
|