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.
Files changed (30) hide show
  1. package/dist/index.js +28 -44
  2. package/dist/sdk/configs/jdConfig.js +1 -5
  3. package/dist/sdk/jdConnector.js +72 -63
  4. package/dist/sdk/jdSdk.js +1 -5
  5. package/dist/sdk/models/jdApplication.js +63 -71
  6. package/dist/sdk/models/jdResource.js +104 -91
  7. package/dist/sdk/models/modules/dashboard/jdDashboardCombinations.js +15 -31
  8. package/dist/sdk/models/modules/geolocation/jdCity.js +49 -55
  9. package/dist/sdk/models/modules/geolocation/jdCountry.js +47 -53
  10. package/dist/sdk/models/modules/geolocation/jdDistrict.js +49 -57
  11. package/dist/sdk/models/modules/geolocation/jdState.js +49 -55
  12. package/dist/sdk/models/modules/karaoke/jdKtvShop.js +82 -88
  13. package/dist/sdk/models/modules/music/jdAlbum.js +96 -102
  14. package/dist/sdk/models/modules/music/jdArtist.js +87 -89
  15. package/dist/sdk/models/modules/music/jdComposer.js +83 -87
  16. package/dist/sdk/models/modules/music/jdMusicCombinations.js +15 -31
  17. package/dist/sdk/models/modules/music/jdSong.js +105 -113
  18. package/dist/sdk/models/modules/radio_station/jdRadioStation.js +82 -88
  19. package/dist/sdk/models/modules/user/jdPermission.js +55 -63
  20. package/dist/sdk/models/modules/user/jdPermissionGroup.js +51 -57
  21. package/dist/sdk/models/modules/user/jdSessionUser.js +70 -72
  22. package/dist/sdk/models/modules/user/jdUser.js +73 -75
  23. package/dist/sdk/models/modules/user/jdUserRole.js +50 -54
  24. package/dist/sdk/utilities/browserUtils.js +31 -24
  25. package/dist/sdk/utilities/cryptoUtils.js +6 -13
  26. package/dist/sdk/utilities/dateUtils.js +1 -5
  27. package/dist/sdk/utilities/globalEventHandler.js +4 -5
  28. package/dist/sdk/utilities/stringUtils.js +2 -6
  29. package/dist/sdk/utilities/utils.js +19 -22
  30. package/package.json +1 -1
@@ -1,66 +1,58 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
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
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.JDDistrict = void 0;
27
- const jdResource_1 = __importStar(require("../../jdResource"));
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 utils_1.Utils.getString(utils_1.Utils.getObject(this.city, 'title'), 'en'); }
34
- get cityTitleMM() { return utils_1.Utils.getString(utils_1.Utils.getObject(this.city, 'title'), 'mm'); }
35
- constructor(data = {}, connectorInfo = new jdResource_1.ConnectorInfo("", "")) {
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 = utils_1.Utils.getString(data, "city_id");
42
- this.city = utils_1.Utils.getObject(data, "city");
43
- }
44
- async getContents(params = {}) {
45
- const queryParams = this.getSortParameters(params);
46
- return await this.getRelative('/modules/geolocation/districts', queryParams);
47
- }
48
- async paginateContents(params = {}) {
49
- const queryParams = this.getSortParameters(params);
50
- if (params.name)
51
- queryParams['name'] = params.name;
52
- return await this.getRelative('/modules/geolocation/districts/paginate', queryParams);
53
- }
54
- async findContents(title, params = {}) {
55
- const queryParams = this.getSortParameters(params);
56
- queryParams['title'] = title;
57
- return await this.getRelative('/modules/geolocation/districts/find', queryParams);
58
- }
59
- async getInfo(id) {
60
- return await this.getRelative(`/modules/geolocation/districts/${id}`, {});
61
- }
62
- async updateFields(id, body = {}) {
63
- return await this.postRelative(`/modules/geolocation/districts/${id}/update/single_fields`, body);
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
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
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
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.JDState = void 0;
27
- const jdResource_1 = __importStar(require("../../jdResource"));
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 utils_1.Utils.getString(utils_1.Utils.getObject(this.country, 'title'), 'en'); }
34
- get countryTitleMM() { return utils_1.Utils.getString(utils_1.Utils.getObject(this.country, 'title'), 'mm'); }
35
- constructor(data = {}, connectorInfo = new jdResource_1.ConnectorInfo("", "")) {
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 = utils_1.Utils.getString(data, "country_id");
42
- this.country = utils_1.Utils.getObject(data, "country");
24
+ this.countryId = Utils.getString(data, "country_id");
25
+ this.country = Utils.getObject(data, "country");
43
26
  }
44
- async getContents(params = {}) {
45
- const queryParams = this.getSortParameters(params);
46
- return await this.getRelative('/modules/geolocation/states', queryParams);
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
- async paginateContents(params = {}) {
49
- const queryParams = this.getSortParameters(params);
50
- if (params.name)
51
- queryParams['name'] = params.name;
52
- return await this.getRelative('/modules/geolocation/states/paginate', queryParams);
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
- async findContents(title, params = {}) {
55
- const queryParams = this.getSortParameters(params);
56
- queryParams['title'] = title;
57
- return await this.getRelative('/modules/geolocation/states/find', queryParams);
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
- async getCities(countryId, params = {}) {
60
- const queryParams = this.getSortParameters(params);
61
- return await this.getRelative(`/modules/geolocation/states/${countryId}/cities`, queryParams);
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
- async getInfo(id) {
64
- return await this.getRelative(`/modules/geolocation/states/${id}`, {});
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
- async updateFields(id, body = {}) {
67
- return await this.postRelative(`/modules/geolocation/states/${id}/update/single_fields`, body);
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
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
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
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.JDKtvShop = void 0;
27
- const jdResource_1 = __importStar(require("../../jdResource"));
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 utils_1.Utils.getString(utils_1.Utils.getObject(this.country, 'title'), 'en'); }
47
- get countryTitleMM() { return utils_1.Utils.getString(utils_1.Utils.getObject(this.country, 'title'), 'mm'); }
48
- get stateTitleEN() { return utils_1.Utils.getString(utils_1.Utils.getObject(this.state, 'title'), 'en'); }
49
- get stateTitleMM() { return utils_1.Utils.getString(utils_1.Utils.getObject(this.state, 'title'), 'mm'); }
50
- get cityTitleEN() { return utils_1.Utils.getString(utils_1.Utils.getObject(this.city, 'title'), 'en'); }
51
- get cityTitleMM() { return utils_1.Utils.getString(utils_1.Utils.getObject(this.city, 'title'), 'mm'); }
52
- get districtTitleEN() { return utils_1.Utils.getString(utils_1.Utils.getObject(this.district, 'title'), 'en'); }
53
- get districtTitleMM() { return utils_1.Utils.getString(utils_1.Utils.getObject(this.district, 'title'), 'mm'); }
54
- expiryDate = new Date();
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 = utils_1.Utils.getString(data, "license_key");
62
- this.activationsCount = utils_1.Utils.getInteger(data, "activations_count");
63
- this.maxActivationsCount = utils_1.Utils.getInteger(data, "max_activations_count");
64
- this.countryId = utils_1.Utils.getString(data, "country_id");
65
- this.stateId = utils_1.Utils.getString(data, "state_id");
66
- this.cityId = utils_1.Utils.getString(data, "city_id");
67
- this.districtId = utils_1.Utils.getString(data, "district_id");
68
- this.address = utils_1.Utils.getObject(data, "address");
69
- this.country = utils_1.Utils.getObject(data, "country");
70
- this.state = utils_1.Utils.getObject(data, "state");
71
- this.city = utils_1.Utils.getObject(data, "city");
72
- this.district = utils_1.Utils.getObject(data, "district");
73
- this.expiryDate = utils_1.Utils.getDate(data, "expiry_date");
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
- async getContents(params = {}) {
76
- const queryParams = this.getSortParameters(params);
77
- return await this.getRelative(`/modules/karaoke/ktv_shops`, queryParams);
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
- async paginateContents(params = {}) {
80
- const queryParams = this.getSortParameters(params);
81
- // Add custom filters
82
- if (params.name)
83
- queryParams['name'] = params.name;
84
- if (params.guardName)
85
- queryParams['guard_name'] = params.guardName;
86
- if (params.published)
87
- queryParams['published'] = params.published;
88
- return await this.getRelative('/modules/karaoke/ktv_shops/paginate', queryParams);
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
- async findContents(params = {}) {
91
- const queryParams = this.getSortParameters(params);
92
- if (params.name)
93
- queryParams['name'] = params.name;
94
- return await this.getRelative('/modules/karaoke/ktv_shops/find', queryParams);
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
- async getInfo(id) {
97
- return await this.getRelative(`/modules/karaoke/ktv_shops/${id}`, {});
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
- async updateInfo(id, title, slug, expiryDate) {
100
- return await this.getRelative(`/modules/karaoke/ktv_shops/${id}`, {});
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
- async updateSingleFields(id, body = {}) {
103
- return await this.postRelative(`/modules/karaoke/ktv_shops/${id}/update/single_fields`, body);
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;