jd_platform_sdk 0.1.2 → 0.1.4

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 (112) hide show
  1. package/dist/index.d.ts +21 -13
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +29 -18
  4. package/dist/sdk/models/dashboard/geolocation/jdCity.d.ts +19 -0
  5. package/dist/sdk/models/dashboard/geolocation/jdCity.d.ts.map +1 -0
  6. package/dist/sdk/models/dashboard/geolocation/jdCity.js +64 -0
  7. package/dist/sdk/models/dashboard/geolocation/jdCountry.d.ts +14 -0
  8. package/dist/sdk/models/dashboard/geolocation/jdCountry.d.ts.map +1 -0
  9. package/dist/sdk/models/dashboard/geolocation/jdCountry.js +56 -0
  10. package/dist/sdk/models/dashboard/geolocation/jdDistrict.d.ts +18 -0
  11. package/dist/sdk/models/dashboard/geolocation/jdDistrict.d.ts.map +1 -0
  12. package/dist/sdk/models/dashboard/geolocation/jdDistrict.js +58 -0
  13. package/dist/sdk/models/dashboard/geolocation/jdGeolocationCombinations.d.ts +6 -0
  14. package/dist/sdk/models/dashboard/geolocation/jdGeolocationCombinations.d.ts.map +1 -0
  15. package/dist/sdk/models/dashboard/geolocation/jdGeolocationCombinations.js +21 -0
  16. package/dist/sdk/models/dashboard/geolocation/jdState.d.ts +19 -0
  17. package/dist/sdk/models/dashboard/geolocation/jdState.d.ts.map +1 -0
  18. package/dist/sdk/models/dashboard/geolocation/jdState.js +64 -0
  19. package/dist/sdk/models/dashboard/jdApplication.d.ts +27 -0
  20. package/dist/sdk/models/dashboard/jdApplication.d.ts.map +1 -0
  21. package/dist/sdk/models/dashboard/jdApplication.js +76 -0
  22. package/dist/sdk/models/dashboard/jdCallbackNotification.d.ts +29 -0
  23. package/dist/sdk/models/dashboard/jdCallbackNotification.d.ts.map +1 -0
  24. package/dist/sdk/models/dashboard/jdCallbackNotification.js +83 -0
  25. package/dist/sdk/models/dashboard/jdDashboardCombinations.d.ts +6 -0
  26. package/dist/sdk/models/dashboard/jdDashboardCombinations.d.ts.map +1 -0
  27. package/dist/sdk/models/dashboard/jdDashboardCombinations.js +21 -0
  28. package/dist/sdk/models/dashboard/jdKtvShop.d.ts +41 -0
  29. package/dist/sdk/models/dashboard/jdKtvShop.d.ts.map +1 -0
  30. package/dist/sdk/models/dashboard/jdKtvShop.js +92 -0
  31. package/dist/sdk/models/dashboard/jdModule.d.ts +16 -0
  32. package/dist/sdk/models/dashboard/jdModule.d.ts.map +1 -0
  33. package/dist/sdk/models/dashboard/jdModule.js +57 -0
  34. package/dist/sdk/models/dashboard/jdPlatform.d.ts +16 -0
  35. package/dist/sdk/models/dashboard/jdPlatform.d.ts.map +1 -0
  36. package/dist/sdk/models/dashboard/jdPlatform.js +57 -0
  37. package/dist/sdk/models/dashboard/jdRadioStation.d.ts +41 -0
  38. package/dist/sdk/models/dashboard/jdRadioStation.d.ts.map +1 -0
  39. package/dist/sdk/models/dashboard/jdRadioStation.js +92 -0
  40. package/dist/sdk/models/dashboard/jdSmsVerification.d.ts +18 -0
  41. package/dist/sdk/models/dashboard/jdSmsVerification.d.ts.map +1 -0
  42. package/dist/sdk/models/dashboard/jdSmsVerification.js +61 -0
  43. package/dist/sdk/models/dashboard/user/jdAccessToken.d.ts +17 -0
  44. package/dist/sdk/models/dashboard/user/jdAccessToken.d.ts.map +1 -0
  45. package/dist/sdk/models/dashboard/user/jdAccessToken.js +59 -0
  46. package/dist/sdk/models/dashboard/user/jdModerator.d.ts +28 -0
  47. package/dist/sdk/models/dashboard/user/jdModerator.d.ts.map +1 -0
  48. package/dist/sdk/models/dashboard/user/jdModerator.js +71 -0
  49. package/dist/sdk/models/dashboard/user/jdPermission.d.ts +22 -0
  50. package/dist/sdk/models/dashboard/user/jdPermission.d.ts.map +1 -0
  51. package/dist/sdk/models/dashboard/user/jdPermission.js +68 -0
  52. package/dist/sdk/models/dashboard/user/jdPermissionGroup.d.ts +17 -0
  53. package/dist/sdk/models/dashboard/user/jdPermissionGroup.d.ts.map +1 -0
  54. package/dist/sdk/models/dashboard/user/jdPermissionGroup.js +60 -0
  55. package/dist/sdk/models/dashboard/user/jdSessionAccessToken.d.ts +19 -0
  56. package/dist/sdk/models/dashboard/user/jdSessionAccessToken.d.ts.map +1 -0
  57. package/dist/sdk/models/dashboard/user/jdSessionAccessToken.js +63 -0
  58. package/dist/sdk/models/dashboard/user/jdSessionUser.d.ts +30 -0
  59. package/dist/sdk/models/dashboard/user/jdSessionUser.d.ts.map +1 -0
  60. package/dist/sdk/models/dashboard/user/jdSessionUser.js +88 -0
  61. package/dist/sdk/models/dashboard/user/jdUser.d.ts +30 -0
  62. package/dist/sdk/models/dashboard/user/jdUser.d.ts.map +1 -0
  63. package/dist/sdk/models/dashboard/user/jdUser.js +90 -0
  64. package/dist/sdk/models/dashboard/user/jdUserRole.d.ts +16 -0
  65. package/dist/sdk/models/dashboard/user/jdUserRole.d.ts.map +1 -0
  66. package/dist/sdk/models/dashboard/user/jdUserRole.js +66 -0
  67. package/dist/sdk/models/jdApplication.js +1 -1
  68. package/dist/sdk/models/jdResource.d.ts.map +1 -1
  69. package/dist/sdk/models/modules/dashboard/jdCallbackNotification.d.ts +25 -0
  70. package/dist/sdk/models/modules/dashboard/jdCallbackNotification.d.ts.map +1 -0
  71. package/dist/sdk/models/modules/dashboard/jdCallbackNotification.js +75 -0
  72. package/dist/sdk/models/modules/dashboard/jdPlatform.d.ts +16 -0
  73. package/dist/sdk/models/modules/dashboard/jdPlatform.d.ts.map +1 -0
  74. package/dist/sdk/models/modules/dashboard/jdPlatform.js +57 -0
  75. package/dist/sdk/models/modules/dashboard/jdSmsVerification.d.ts +18 -0
  76. package/dist/sdk/models/modules/dashboard/jdSmsVerification.d.ts.map +1 -0
  77. package/dist/sdk/models/modules/dashboard/jdSmsVerification.js +61 -0
  78. package/dist/sdk/models/modules/geolocation/jdCity.js +1 -1
  79. package/dist/sdk/models/modules/geolocation/jdCountry.js +1 -1
  80. package/dist/sdk/models/modules/geolocation/jdDistrict.js +1 -1
  81. package/dist/sdk/models/modules/geolocation/jdGeolocationCombinations.d.ts +6 -0
  82. package/dist/sdk/models/modules/geolocation/jdGeolocationCombinations.d.ts.map +1 -0
  83. package/dist/sdk/models/modules/geolocation/jdGeolocationCombinations.js +21 -0
  84. package/dist/sdk/models/modules/geolocation/jdState.js +1 -1
  85. package/dist/sdk/models/modules/karaoke/jdKtvShop.js +1 -1
  86. package/dist/sdk/models/modules/music/jdAlbum.js +1 -1
  87. package/dist/sdk/models/modules/music/jdArtist.js +1 -1
  88. package/dist/sdk/models/modules/music/jdComposer.js +1 -1
  89. package/dist/sdk/models/modules/music/jdSong.js +1 -1
  90. package/dist/sdk/models/modules/radio_station/jdRadioStation.js +1 -1
  91. package/dist/sdk/models/modules/user/jdAccessToken.d.ts +17 -0
  92. package/dist/sdk/models/modules/user/jdAccessToken.d.ts.map +1 -0
  93. package/dist/sdk/models/modules/user/jdAccessToken.js +59 -0
  94. package/dist/sdk/models/modules/user/jdModerator.d.ts +28 -0
  95. package/dist/sdk/models/modules/user/jdModerator.d.ts.map +1 -0
  96. package/dist/sdk/models/modules/user/jdModerator.js +71 -0
  97. package/dist/sdk/models/modules/user/jdPermission.js +1 -1
  98. package/dist/sdk/models/modules/user/jdPermissionGroup.js +1 -1
  99. package/dist/sdk/models/modules/user/jdSessionAccessToken.d.ts +19 -0
  100. package/dist/sdk/models/modules/user/jdSessionAccessToken.d.ts.map +1 -0
  101. package/dist/sdk/models/modules/user/jdSessionAccessToken.js +63 -0
  102. package/dist/sdk/models/modules/user/jdSessionUser.js +1 -1
  103. package/dist/sdk/models/modules/user/jdUser.d.ts.map +1 -1
  104. package/dist/sdk/models/modules/user/jdUser.js +1 -1
  105. package/dist/sdk/models/modules/user/jdUserRole.js +1 -1
  106. package/dist/sdk/utilities/browserUtils.d.ts +1 -1
  107. package/dist/sdk/utilities/browserUtils.d.ts.map +1 -1
  108. package/dist/sdk/utilities/browserUtils.js +1 -1
  109. package/dist/sdk/utilities/utils.d.ts +1 -0
  110. package/dist/sdk/utilities/utils.d.ts.map +1 -1
  111. package/dist/sdk/utilities/utils.js +16 -0
  112. package/package.json +1 -1
@@ -0,0 +1,29 @@
1
+ import JDResource, { ConnectorInfo, defaultSortParams, defaultUpdateFields, PaginateParams } from "../jdResource";
2
+ export declare class JdCallbackNotification extends JDResource {
3
+ subscriptionType: string;
4
+ productCode: string;
5
+ msisdn: string;
6
+ chargingType: string;
7
+ nextRenewDate: string;
8
+ processedTime: string;
9
+ fee: string;
10
+ lifecycle: string;
11
+ reason: string;
12
+ fbclid: string;
13
+ param01: string;
14
+ param02: string;
15
+ constructor(data?: Record<string, any>, connectorInfo?: ConnectorInfo);
16
+ setData(data: Record<string, any>): void;
17
+ getContents(params?: Partial<typeof defaultSortParams>): Promise<import("../../jdConnector").SimpleResponse>;
18
+ paginateContents(params?: PaginateParams & {
19
+ msisdn?: string | null;
20
+ productCode?: string | null;
21
+ chargingType?: string | null;
22
+ fee?: string | null;
23
+ reason?: string | null;
24
+ }): Promise<import("../../jdConnector").SimpleResponse>;
25
+ findContents(title: string, params?: Partial<typeof defaultSortParams>): Promise<import("../../jdConnector").SimpleResponse>;
26
+ getInfo(id: string): Promise<import("../../jdConnector").SimpleResponse>;
27
+ updateFields(id: string, body?: Partial<typeof defaultUpdateFields>): Promise<import("../../jdConnector").SimpleResponse>;
28
+ }
29
+ //# sourceMappingURL=jdCallbackNotification.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jdCallbackNotification.d.ts","sourceRoot":"","sources":["../../../../src/sdk/models/dashboard/jdCallbackNotification.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,EAAE,EAAC,aAAa,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,cAAc,EAAC,MAAM,eAAe,CAAC;AAGhH,qBAAa,sBAAuB,SAAQ,UAAU;IACrD,gBAAgB,SAAM;IACtB,WAAW,SAAM;IACjB,MAAM,SAAM;IACZ,YAAY,SAAM;IAClB,aAAa,SAAM;IACnB,aAAa,SAAM;IACnB,GAAG,SAAM;IACT,SAAS,SAAM;IACf,MAAM,SAAM;IACZ,MAAM,SAAM;IACZ,OAAO,SAAM;IACb,OAAO,SAAM;gBAED,IAAI,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,EAAE,aAAa,GAAE,aAAyC;IAKpG,OAAO,CAAC,IAAI,EAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAgB1B,WAAW,CAAC,MAAM,GAAE,OAAO,CAAC,OAAO,iBAAiB,CAAM;IAK1D,gBAAgB,CAAC,MAAM,GAAE,cAAc,GAAG;QAAE,MAAM,CAAC,EAAE,MAAM,GAAC,IAAI,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,GAAC,IAAI,CAAC;QAAC,YAAY,CAAC,EAAE,MAAM,GAAC,IAAI,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,GAAC,IAAI,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,GAAC,IAAI,CAAC;KAAO;IAUxK,YAAY,CAAE,KAAK,EAAE,MAAM,EAAE,MAAM,GAAE,OAAO,CAAC,OAAO,iBAAiB,CAAM;IAM3E,OAAO,CAAC,EAAE,EAAC,MAAM;IAIjB,YAAY,CAAC,EAAE,EAAC,MAAM,EAAE,IAAI,GAAE,OAAO,CAAC,OAAO,mBAAmB,CAAM;CAG5E"}
@@ -0,0 +1,83 @@
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
+ });
9
+ };
10
+ import JDResource, { ConnectorInfo } from "../jdResource";
11
+ import { Utils } from "../../utilities/utils";
12
+ export class JdCallbackNotification extends JDResource {
13
+ constructor(data = {}, connectorInfo = new ConnectorInfo("", "")) {
14
+ super(connectorInfo);
15
+ this.subscriptionType = '';
16
+ this.productCode = '';
17
+ this.msisdn = '';
18
+ this.chargingType = '';
19
+ this.nextRenewDate = '';
20
+ this.processedTime = '';
21
+ this.fee = '';
22
+ this.lifecycle = '';
23
+ this.reason = '';
24
+ this.fbclid = '';
25
+ this.param01 = '';
26
+ this.param02 = '';
27
+ this.setData(data);
28
+ }
29
+ setData(data) {
30
+ super.setData(data);
31
+ this.subscriptionType = Utils.getString(data, 'subscriptionType');
32
+ this.productCode = Utils.getString(data, 'productCode');
33
+ this.msisdn = Utils.getString(data, 'msisdn');
34
+ this.chargingType = Utils.getString(data, 'chargingType');
35
+ this.nextRenewDate = Utils.getString(data, 'nextRenewDate');
36
+ this.processedTime = Utils.getString(data, 'ProcessedTime');
37
+ this.fee = Utils.getString(data, 'fee');
38
+ this.lifecycle = Utils.getString(data, 'lifecycle');
39
+ this.reason = Utils.getString(data, 'reason');
40
+ this.fbclid = Utils.getString(data, 'fbclid');
41
+ this.param01 = Utils.getString(data, 'param01');
42
+ this.param02 = Utils.getString(data, 'param02');
43
+ }
44
+ getContents() {
45
+ return __awaiter(this, arguments, void 0, function* (params = {}) {
46
+ const queryParams = this.getSortParameters(params);
47
+ return yield this.getRelative('/dashboard/callback_notifications', queryParams);
48
+ });
49
+ }
50
+ paginateContents() {
51
+ return __awaiter(this, arguments, void 0, function* (params = {}) {
52
+ const queryParams = this.getSortParameters(params);
53
+ if (params.msisdn)
54
+ queryParams['msisdn'] = params.msisdn;
55
+ if (params.productCode)
56
+ queryParams['productCode'] = params.productCode;
57
+ if (params.chargingType)
58
+ queryParams['chargingType'] = params.chargingType;
59
+ if (params.fee)
60
+ queryParams['fee'] = params.fee;
61
+ if (params.reason)
62
+ queryParams['reason'] = params.reason;
63
+ return yield this.getRelative('/dashboard/callback_notifications/paginate', queryParams);
64
+ });
65
+ }
66
+ findContents(title_1) {
67
+ return __awaiter(this, arguments, void 0, function* (title, params = {}) {
68
+ const queryParams = this.getSortParameters(params);
69
+ queryParams['title'] = title;
70
+ return yield this.getRelative('/dashboard/callback_notifications/find', queryParams);
71
+ });
72
+ }
73
+ getInfo(id) {
74
+ return __awaiter(this, void 0, void 0, function* () {
75
+ return yield this.getRelative(`/dashboard/callback_notifications/${id}`, {});
76
+ });
77
+ }
78
+ updateFields(id_1) {
79
+ return __awaiter(this, arguments, void 0, function* (id, body = {}) {
80
+ return yield this.postRelative(`/dashboard/callback_notifications/${id}/update`, body);
81
+ });
82
+ }
83
+ }
@@ -0,0 +1,6 @@
1
+ import JDResource, { ConnectorInfo } from "../jdResource";
2
+ export declare class JdDashboardCombinations extends JDResource {
3
+ constructor(data?: Record<string, any>, connectorInfo?: ConnectorInfo);
4
+ getOverview(): Promise<import("../../jdConnector").SimpleResponse>;
5
+ }
6
+ //# sourceMappingURL=jdDashboardCombinations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jdDashboardCombinations.d.ts","sourceRoot":"","sources":["../../../../src/sdk/models/dashboard/jdDashboardCombinations.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,EAAE,EAAC,aAAa,EAAyD,MAAM,eAAe,CAAC;AAGhH,qBAAa,uBAAwB,SAAQ,UAAU;gBAC1C,IAAI,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,EAAE,aAAa,GAAE,aAAyC;IAI9F,WAAW;CAIjB"}
@@ -0,0 +1,21 @@
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
+ });
9
+ };
10
+ import JDResource, { ConnectorInfo } from "../jdResource";
11
+ export class JdDashboardCombinations extends JDResource {
12
+ constructor(data = {}, connectorInfo = new ConnectorInfo("", "")) {
13
+ super(connectorInfo);
14
+ this.setData(data);
15
+ }
16
+ getOverview() {
17
+ return __awaiter(this, void 0, void 0, function* () {
18
+ return yield this.getRelative('/dashboard/combinations/overview', {});
19
+ });
20
+ }
21
+ }
@@ -0,0 +1,41 @@
1
+ import JDResource, { ConnectorInfo, defaultSortParams, PaginateParams, UpdateFields } from "../jdResource";
2
+ export declare class JDKtvShop extends JDResource {
3
+ licenseKey: string;
4
+ activationsCount: number;
5
+ maxActivationsCount: number;
6
+ countryId: string;
7
+ stateId: string;
8
+ cityId: string;
9
+ districtId: string;
10
+ address: Record<string, any>;
11
+ country: Record<string, any>;
12
+ state: Record<string, any>;
13
+ city: Record<string, any>;
14
+ district: Record<string, any>;
15
+ get localisedAddress(): string;
16
+ get countryTitleEN(): string;
17
+ get countryTitleMM(): string;
18
+ get stateTitleEN(): string;
19
+ get stateTitleMM(): string;
20
+ get cityTitleEN(): string;
21
+ get cityTitleMM(): string;
22
+ get districtTitleEN(): string;
23
+ get districtTitleMM(): string;
24
+ expiryDate: Date;
25
+ constructor(data?: Record<string, any>, connectorInfo?: ConnectorInfo);
26
+ setData(data: Record<string, any>): void;
27
+ getContents(params?: Partial<typeof defaultSortParams>): Promise<import("../../jdConnector").SimpleResponse>;
28
+ paginateContents(params?: PaginateParams & {
29
+ name?: string | null;
30
+ guard_name?: string | null;
31
+ }): Promise<import("../../jdConnector").SimpleResponse>;
32
+ findContents(params?: PaginateParams & {
33
+ name?: string | null;
34
+ }): Promise<import("../../jdConnector").SimpleResponse>;
35
+ getInfo(id: string): Promise<import("../../jdConnector").SimpleResponse>;
36
+ updateFields(id: string, body?: UpdateFields & {
37
+ recommended?: boolean | null;
38
+ expiry_date?: Date | null;
39
+ }): Promise<import("../../jdConnector").SimpleResponse>;
40
+ }
41
+ //# sourceMappingURL=jdKtvShop.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jdKtvShop.d.ts","sourceRoot":"","sources":["../../../../src/sdk/models/dashboard/jdKtvShop.ts"],"names":[],"mappings":"AACA,OAAO,UAAU,EAAE,EAAC,aAAa,EAAE,iBAAiB,EAAE,cAAc,EAAE,YAAY,EAAC,MAAM,eAAe,CAAC;AAEzG,qBAAa,SAAU,SAAQ,UAAU;IACxC,UAAU,EAAC,MAAM,CAAM;IACvB,gBAAgB,EAAC,MAAM,CAAK;IAC5B,mBAAmB,EAAC,MAAM,CAAK;IAE/B,SAAS,EAAC,MAAM,CAAM;IACtB,OAAO,EAAC,MAAM,CAAM;IACpB,MAAM,EAAC,MAAM,CAAM;IACnB,UAAU,EAAC,MAAM,CAAM;IAEvB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAM;IAClC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAM;IAClC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAM;IAChC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAM;IAC/B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAM;IAEnC,IAAI,gBAAgB,IAAG,MAAM,CAG5B;IAED,IAAI,cAAc,IAAG,MAAM,CAAyE;IACpG,IAAI,cAAc,IAAG,MAAM,CAAyE;IAEpG,IAAI,YAAY,IAAG,MAAM,CAAuE;IAChG,IAAI,YAAY,IAAG,MAAM,CAAuE;IAEhG,IAAI,WAAW,IAAG,MAAM,CAAsE;IAC9F,IAAI,WAAW,IAAG,MAAM,CAAsE;IAE9F,IAAI,eAAe,IAAG,MAAM,CAA0E;IACtG,IAAI,eAAe,IAAG,MAAM,CAA0E;IAEtG,UAAU,EAAC,IAAI,CAAc;gBAEjB,IAAI,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,EAAE,aAAa,GAAE,aAAyC;IAKpG,OAAO,CAAC,IAAI,EAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAqB1B,WAAW,CAAC,MAAM,GAAE,OAAO,CAAC,OAAO,iBAAiB,CAAM;IAK1D,gBAAgB,CAAC,MAAM,GAAE,cAAc,GAAG;QAAE,IAAI,CAAC,EAAE,MAAM,GAAC,IAAI,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,GAAC,IAAI,CAAC;KAAO;IAOhG,YAAY,CAAC,MAAM,GAAE,cAAc,GAAG;QAAE,IAAI,CAAC,EAAE,MAAM,GAAC,IAAI,CAAC;KAAO;IAMlE,OAAO,CAAC,EAAE,EAAC,MAAM;IAIjB,YAAY,CAAC,EAAE,EAAC,MAAM,EAAE,IAAI,GAAE,YAAY,GAAI;QAAE,WAAW,CAAC,EAAE,OAAO,GAAC,IAAI,CAAC;QAAC,WAAW,CAAC,EAAC,IAAI,GAAC,IAAI,CAAA;KAAM;CAG9G"}
@@ -0,0 +1,92 @@
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
+ });
9
+ };
10
+ import { Utils } from "../../utilities/utils";
11
+ import JDResource, { ConnectorInfo } from "../jdResource";
12
+ export class JDKtvShop extends JDResource {
13
+ get localisedAddress() {
14
+ return globalThis.language != 'en' ? `${this.districtTitleMM}, ${this.stateTitleMM}, ${this.cityTitleMM}, ${this.countryTitleMM},` :
15
+ `${this.districtTitleEN}, ${this.stateTitleEN}, ${this.cityTitleEN}, ${this.countryTitleEN},`;
16
+ }
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("", "")) {
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();
40
+ this.setData(data);
41
+ }
42
+ setData(data) {
43
+ super.setData(data);
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");
57
+ }
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
+ });
63
+ }
64
+ paginateContents() {
65
+ return __awaiter(this, arguments, void 0, function* (params = {}) {
66
+ const queryParams = this.getSortParameters(params);
67
+ if (params.name)
68
+ queryParams['name'] = params.name;
69
+ if (params.guard_name)
70
+ queryParams['guard_name'] = params.guard_name;
71
+ return yield this.getRelative('/modules/karaoke/ktv_shops/paginate', queryParams);
72
+ });
73
+ }
74
+ findContents() {
75
+ return __awaiter(this, arguments, void 0, function* (params = {}) {
76
+ const queryParams = this.getSortParameters(params);
77
+ if (params.name)
78
+ queryParams['name'] = params.name;
79
+ return yield this.getRelative('/modules/karaoke/ktv_shops/find', queryParams);
80
+ });
81
+ }
82
+ getInfo(id) {
83
+ return __awaiter(this, void 0, void 0, function* () {
84
+ return yield this.getRelative(`/modules/karaoke/ktv_shops/${id}`, {});
85
+ });
86
+ }
87
+ updateFields(id_1) {
88
+ return __awaiter(this, arguments, void 0, function* (id, body = {}) {
89
+ return yield this.postRelative(`/modules/karaoke/ktv_shops/${id}/update`, body);
90
+ });
91
+ }
92
+ }
@@ -0,0 +1,16 @@
1
+ import JDResource, { ConnectorInfo, defaultSortParams, defaultUpdateFields, PaginateParams } from "../jdResource";
2
+ export declare class JdModule extends JDResource {
3
+ applicationIds: any[];
4
+ ktvShopIds: any[];
5
+ radioStationIds: any[];
6
+ constructor(data?: Record<string, any>, connectorInfo?: ConnectorInfo);
7
+ setData(data: Record<string, any>): void;
8
+ getContents(params?: Partial<typeof defaultSortParams>): Promise<import("../../jdConnector").SimpleResponse>;
9
+ paginateContents(params?: PaginateParams & {
10
+ name?: string | null;
11
+ }): Promise<import("../../jdConnector").SimpleResponse>;
12
+ findContents(title: string, params?: Partial<typeof defaultSortParams>): Promise<import("../../jdConnector").SimpleResponse>;
13
+ getInfo(id: string): Promise<import("../../jdConnector").SimpleResponse>;
14
+ updateFields(id: string, body?: Partial<typeof defaultUpdateFields>): Promise<import("../../jdConnector").SimpleResponse>;
15
+ }
16
+ //# sourceMappingURL=jdModule.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jdModule.d.ts","sourceRoot":"","sources":["../../../../src/sdk/models/dashboard/jdModule.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,EAAE,EAAC,aAAa,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,cAAc,EAAC,MAAM,eAAe,CAAC;AAGhH,qBAAa,QAAS,SAAQ,UAAU;IACvC,cAAc,EAAC,GAAG,EAAE,CAAM;IAC1B,UAAU,EAAC,GAAG,EAAE,CAAM;IACtB,eAAe,EAAC,GAAG,EAAE,CAAM;gBAEf,IAAI,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,EAAE,aAAa,GAAE,aAAyC;IAKpG,OAAO,CAAC,IAAI,EAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAO1B,WAAW,CAAC,MAAM,GAAE,OAAO,CAAC,OAAO,iBAAiB,CAAM;IAK1D,gBAAgB,CAAC,MAAM,GAAE,cAAc,GAAG;QAAE,IAAI,CAAC,EAAE,MAAM,GAAC,IAAI,CAAC;KAAQ;IAMvE,YAAY,CAAE,KAAK,EAAE,MAAM,EAAE,MAAM,GAAE,OAAO,CAAC,OAAO,iBAAiB,CAAM;IAM3E,OAAO,CAAC,EAAE,EAAC,MAAM;IAIjB,YAAY,CAAC,EAAE,EAAC,MAAM,EAAE,IAAI,GAAE,OAAO,CAAC,OAAO,mBAAmB,CAAM;CAG5E"}
@@ -0,0 +1,57 @@
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
+ });
9
+ };
10
+ import JDResource, { ConnectorInfo } from "../jdResource";
11
+ import { Utils } from "../../utilities/utils";
12
+ export class JdModule extends JDResource {
13
+ constructor(data = {}, connectorInfo = new ConnectorInfo("", "")) {
14
+ super(connectorInfo);
15
+ this.applicationIds = [];
16
+ this.ktvShopIds = [];
17
+ this.radioStationIds = [];
18
+ this.setData(data);
19
+ }
20
+ setData(data) {
21
+ super.setData(data);
22
+ this.applicationIds = Utils.getArray(data, 'application_ids');
23
+ this.ktvShopIds = Utils.getArray(data, 'ktv_shop_ids');
24
+ this.radioStationIds = Utils.getArray(data, 'radio_station_ids');
25
+ }
26
+ getContents() {
27
+ return __awaiter(this, arguments, void 0, function* (params = {}) {
28
+ const queryParams = this.getSortParameters(params);
29
+ return yield this.getRelative('/dashboard/modules', queryParams);
30
+ });
31
+ }
32
+ paginateContents() {
33
+ return __awaiter(this, arguments, void 0, function* (params = {}) {
34
+ const queryParams = this.getSortParameters(params);
35
+ if (params.name)
36
+ queryParams['name'] = params.name;
37
+ return yield this.getRelative('/dashboard/modules/paginate', queryParams);
38
+ });
39
+ }
40
+ findContents(title_1) {
41
+ return __awaiter(this, arguments, void 0, function* (title, params = {}) {
42
+ const queryParams = this.getSortParameters(params);
43
+ queryParams['title'] = title;
44
+ return yield this.getRelative('/dashboard/modules/find', queryParams);
45
+ });
46
+ }
47
+ getInfo(id) {
48
+ return __awaiter(this, void 0, void 0, function* () {
49
+ return yield this.getRelative(`/dashboard/modules/${id}`, {});
50
+ });
51
+ }
52
+ updateFields(id_1) {
53
+ return __awaiter(this, arguments, void 0, function* (id, body = {}) {
54
+ return yield this.postRelative(`/dashboard/modules/${id}/update`, body);
55
+ });
56
+ }
57
+ }
@@ -0,0 +1,16 @@
1
+ import JDResource, { ConnectorInfo, defaultSortParams, defaultUpdateFields, PaginateParams } from "../jdResource";
2
+ export declare class JdPlatform extends JDResource {
3
+ applicationIds: any[];
4
+ ktvShopIds: any[];
5
+ radioStationIds: any[];
6
+ constructor(data?: Record<string, any>, connectorInfo?: ConnectorInfo);
7
+ setData(data: Record<string, any>): void;
8
+ getContents(params?: Partial<typeof defaultSortParams>): Promise<import("../../jdConnector").SimpleResponse>;
9
+ paginateContents(params?: PaginateParams & {
10
+ name?: string | null;
11
+ }): Promise<import("../../jdConnector").SimpleResponse>;
12
+ findContents(title: string, params?: Partial<typeof defaultSortParams>): Promise<import("../../jdConnector").SimpleResponse>;
13
+ getInfo(id: string): Promise<import("../../jdConnector").SimpleResponse>;
14
+ updateFields(id: string, body?: Partial<typeof defaultUpdateFields>): Promise<import("../../jdConnector").SimpleResponse>;
15
+ }
16
+ //# sourceMappingURL=jdPlatform.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jdPlatform.d.ts","sourceRoot":"","sources":["../../../../src/sdk/models/dashboard/jdPlatform.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,EAAE,EAAC,aAAa,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,cAAc,EAAC,MAAM,eAAe,CAAC;AAGhH,qBAAa,UAAW,SAAQ,UAAU;IACzC,cAAc,EAAC,GAAG,EAAE,CAAM;IAC1B,UAAU,EAAC,GAAG,EAAE,CAAM;IACtB,eAAe,EAAC,GAAG,EAAE,CAAM;gBAEf,IAAI,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,EAAE,aAAa,GAAE,aAAyC;IAKpG,OAAO,CAAC,IAAI,EAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAO1B,WAAW,CAAC,MAAM,GAAE,OAAO,CAAC,OAAO,iBAAiB,CAAM;IAK1D,gBAAgB,CAAC,MAAM,GAAE,cAAc,GAAG;QAAE,IAAI,CAAC,EAAE,MAAM,GAAC,IAAI,CAAC;KAAQ;IAMvE,YAAY,CAAE,KAAK,EAAE,MAAM,EAAE,MAAM,GAAE,OAAO,CAAC,OAAO,iBAAiB,CAAM;IAM3E,OAAO,CAAC,EAAE,EAAC,MAAM;IAIjB,YAAY,CAAC,EAAE,EAAC,MAAM,EAAE,IAAI,GAAE,OAAO,CAAC,OAAO,mBAAmB,CAAM;CAG5E"}
@@ -0,0 +1,57 @@
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
+ });
9
+ };
10
+ import JDResource, { ConnectorInfo } from "../jdResource";
11
+ import { Utils } from "../../utilities/utils";
12
+ export class JdPlatform extends JDResource {
13
+ constructor(data = {}, connectorInfo = new ConnectorInfo("", "")) {
14
+ super(connectorInfo);
15
+ this.applicationIds = [];
16
+ this.ktvShopIds = [];
17
+ this.radioStationIds = [];
18
+ this.setData(data);
19
+ }
20
+ setData(data) {
21
+ super.setData(data);
22
+ this.applicationIds = Utils.getArray(data, 'application_ids');
23
+ this.ktvShopIds = Utils.getArray(data, 'ktv_shop_ids');
24
+ this.radioStationIds = Utils.getArray(data, 'radio_station_ids');
25
+ }
26
+ getContents() {
27
+ return __awaiter(this, arguments, void 0, function* (params = {}) {
28
+ const queryParams = this.getSortParameters(params);
29
+ return yield this.getRelative('/dashboard/platforms', queryParams);
30
+ });
31
+ }
32
+ paginateContents() {
33
+ return __awaiter(this, arguments, void 0, function* (params = {}) {
34
+ const queryParams = this.getSortParameters(params);
35
+ if (params.name)
36
+ queryParams['name'] = params.name;
37
+ return yield this.getRelative('/dashboard/platforms/paginate', queryParams);
38
+ });
39
+ }
40
+ findContents(title_1) {
41
+ return __awaiter(this, arguments, void 0, function* (title, params = {}) {
42
+ const queryParams = this.getSortParameters(params);
43
+ queryParams['title'] = title;
44
+ return yield this.getRelative('/dashboard/platforms/find', queryParams);
45
+ });
46
+ }
47
+ getInfo(id) {
48
+ return __awaiter(this, void 0, void 0, function* () {
49
+ return yield this.getRelative(`/dashboard/platforms/${id}`, {});
50
+ });
51
+ }
52
+ updateFields(id_1) {
53
+ return __awaiter(this, arguments, void 0, function* (id, body = {}) {
54
+ return yield this.postRelative(`/dashboard/platforms/${id}/update`, body);
55
+ });
56
+ }
57
+ }
@@ -0,0 +1,41 @@
1
+ import JDResource, { ConnectorInfo, defaultSortParams, PaginateParams, UpdateFields } from "../jdResource";
2
+ export declare class JdRadioStation extends JDResource {
3
+ licenseKey: string;
4
+ activationsCount: number;
5
+ maxActivationsCount: number;
6
+ countryId: string;
7
+ stateId: string;
8
+ cityId: string;
9
+ districtId: string;
10
+ address: Record<string, any>;
11
+ country: Record<string, any>;
12
+ state: Record<string, any>;
13
+ city: Record<string, any>;
14
+ district: Record<string, any>;
15
+ get localisedAddress(): string;
16
+ get countryTitleEN(): string;
17
+ get countryTitleMM(): string;
18
+ get stateTitleEN(): string;
19
+ get stateTitleMM(): string;
20
+ get cityTitleEN(): string;
21
+ get cityTitleMM(): string;
22
+ get districtTitleEN(): string;
23
+ get districtTitleMM(): string;
24
+ expiryDate: Date;
25
+ constructor(data?: Record<string, any>, connectorInfo?: ConnectorInfo);
26
+ setData(data: Record<string, any>): void;
27
+ getContents(params?: Partial<typeof defaultSortParams>): Promise<import("../../jdConnector").SimpleResponse>;
28
+ paginateContents(params?: PaginateParams & {
29
+ name?: string | null;
30
+ guard_name?: string | null;
31
+ }): Promise<import("../../jdConnector").SimpleResponse>;
32
+ findContents(params?: PaginateParams & {
33
+ name?: string | null;
34
+ }): Promise<import("../../jdConnector").SimpleResponse>;
35
+ getInfo(id: string): Promise<import("../../jdConnector").SimpleResponse>;
36
+ updateFields(id: string, body?: UpdateFields & {
37
+ recommended?: boolean | null;
38
+ expiry_date?: Date | null;
39
+ }): Promise<import("../../jdConnector").SimpleResponse>;
40
+ }
41
+ //# sourceMappingURL=jdRadioStation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jdRadioStation.d.ts","sourceRoot":"","sources":["../../../../src/sdk/models/dashboard/jdRadioStation.ts"],"names":[],"mappings":"AACA,OAAO,UAAU,EAAE,EAAC,aAAa,EAAE,iBAAiB,EAAE,cAAc,EAAE,YAAY,EAAC,MAAM,eAAe,CAAC;AAEzG,qBAAa,cAAe,SAAQ,UAAU;IAC7C,UAAU,EAAC,MAAM,CAAM;IACvB,gBAAgB,EAAC,MAAM,CAAK;IAC5B,mBAAmB,EAAC,MAAM,CAAK;IAE/B,SAAS,EAAC,MAAM,CAAM;IACtB,OAAO,EAAC,MAAM,CAAM;IACpB,MAAM,EAAC,MAAM,CAAM;IACnB,UAAU,EAAC,MAAM,CAAM;IAEvB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAM;IAClC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAM;IAClC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAM;IAChC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAM;IAC/B,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAM;IAEnC,IAAI,gBAAgB,IAAG,MAAM,CAG5B;IAED,IAAI,cAAc,IAAG,MAAM,CAAyE;IACpG,IAAI,cAAc,IAAG,MAAM,CAAyE;IAEpG,IAAI,YAAY,IAAG,MAAM,CAAuE;IAChG,IAAI,YAAY,IAAG,MAAM,CAAuE;IAEhG,IAAI,WAAW,IAAG,MAAM,CAAsE;IAC9F,IAAI,WAAW,IAAG,MAAM,CAAsE;IAE9F,IAAI,eAAe,IAAG,MAAM,CAA0E;IACtG,IAAI,eAAe,IAAG,MAAM,CAA0E;IAEtG,UAAU,EAAC,IAAI,CAAc;gBAEjB,IAAI,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,EAAE,aAAa,GAAE,aAAyC;IAKpG,OAAO,CAAC,IAAI,EAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAqB1B,WAAW,CAAC,MAAM,GAAE,OAAO,CAAC,OAAO,iBAAiB,CAAM;IAK1D,gBAAgB,CAAC,MAAM,GAAE,cAAc,GAAG;QAAE,IAAI,CAAC,EAAE,MAAM,GAAC,IAAI,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,GAAC,IAAI,CAAC;KAAO;IAOhG,YAAY,CAAC,MAAM,GAAE,cAAc,GAAG;QAAE,IAAI,CAAC,EAAE,MAAM,GAAC,IAAI,CAAC;KAAO;IAMlE,OAAO,CAAC,EAAE,EAAC,MAAM;IAIjB,YAAY,CAAC,EAAE,EAAC,MAAM,EAAE,IAAI,GAAE,YAAY,GAAI;QAAE,WAAW,CAAC,EAAE,OAAO,GAAC,IAAI,CAAC;QAAC,WAAW,CAAC,EAAE,IAAI,GAAC,IAAI,CAAC;KAAK;CAG/G"}
@@ -0,0 +1,92 @@
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
+ });
9
+ };
10
+ import { Utils } from "../../utilities/utils";
11
+ import JDResource, { ConnectorInfo } from "../jdResource";
12
+ export class JdRadioStation extends JDResource {
13
+ get localisedAddress() {
14
+ return globalThis.language != 'en' ? `${this.districtTitleMM}, ${this.stateTitleMM}, ${this.cityTitleMM}, ${this.countryTitleMM},` :
15
+ `${this.districtTitleEN}, ${this.stateTitleEN}, ${this.cityTitleEN}, ${this.countryTitleEN},`;
16
+ }
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("", "")) {
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();
40
+ this.setData(data);
41
+ }
42
+ setData(data) {
43
+ super.setData(data);
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");
57
+ }
58
+ getContents() {
59
+ return __awaiter(this, arguments, void 0, function* (params = {}) {
60
+ const queryParams = this.getSortParameters(params);
61
+ return yield this.getRelative(`/modules/radio_station/radio_stations`, queryParams);
62
+ });
63
+ }
64
+ paginateContents() {
65
+ return __awaiter(this, arguments, void 0, function* (params = {}) {
66
+ const queryParams = this.getSortParameters(params);
67
+ if (params.name)
68
+ queryParams['name'] = params.name;
69
+ if (params.guard_name)
70
+ queryParams['guard_name'] = params.guard_name;
71
+ return yield this.getRelative('/modules/radio_station/radio_stations/paginate', queryParams);
72
+ });
73
+ }
74
+ findContents() {
75
+ return __awaiter(this, arguments, void 0, function* (params = {}) {
76
+ const queryParams = this.getSortParameters(params);
77
+ if (params.name)
78
+ queryParams['name'] = params.name;
79
+ return yield this.getRelative('/modules/radio_station/radio_stations/find', queryParams);
80
+ });
81
+ }
82
+ getInfo(id) {
83
+ return __awaiter(this, void 0, void 0, function* () {
84
+ return yield this.getRelative(`/modules/radio_station/radio_stations/${id}`, {});
85
+ });
86
+ }
87
+ updateFields(id_1) {
88
+ return __awaiter(this, arguments, void 0, function* (id, body = {}) {
89
+ return yield this.postRelative(`/modules/radio_station/radio_stations/${id}/update`, body);
90
+ });
91
+ }
92
+ }
@@ -0,0 +1,18 @@
1
+ import JDResource, { ConnectorInfo, defaultSortParams, defaultUpdateFields, PaginateParams } from "../jdResource";
2
+ export declare class JdSmsVerification extends JDResource {
3
+ serviceName: string;
4
+ phone: string;
5
+ code: string;
6
+ verified: boolean;
7
+ expiryDate: Date;
8
+ constructor(data?: Record<string, any>, connectorInfo?: ConnectorInfo);
9
+ setData(data: Record<string, any>): void;
10
+ getContents(params?: Partial<typeof defaultSortParams>): Promise<import("../../jdConnector").SimpleResponse>;
11
+ paginateContents(params?: PaginateParams & {
12
+ name?: string | null;
13
+ }): Promise<import("../../jdConnector").SimpleResponse>;
14
+ findContents(title: string, params?: Partial<typeof defaultSortParams>): Promise<import("../../jdConnector").SimpleResponse>;
15
+ getInfo(id: string): Promise<import("../../jdConnector").SimpleResponse>;
16
+ updateFields(id: string, body?: Partial<typeof defaultUpdateFields>): Promise<import("../../jdConnector").SimpleResponse>;
17
+ }
18
+ //# sourceMappingURL=jdSmsVerification.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jdSmsVerification.d.ts","sourceRoot":"","sources":["../../../../src/sdk/models/dashboard/jdSmsVerification.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,EAAE,EAAC,aAAa,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,cAAc,EAAC,MAAM,eAAe,CAAC;AAGhH,qBAAa,iBAAkB,SAAQ,UAAU;IAChD,WAAW,SAAM;IACjB,KAAK,SAAM;IACX,IAAI,SAAM;IACV,QAAQ,EAAC,OAAO,CAAS;IACzB,UAAU,EAAC,IAAI,CAAc;gBAEjB,IAAI,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,EAAE,aAAa,GAAE,aAAyC;IAKpG,OAAO,CAAC,IAAI,EAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAS1B,WAAW,CAAC,MAAM,GAAE,OAAO,CAAC,OAAO,iBAAiB,CAAM;IAK1D,gBAAgB,CAAC,MAAM,GAAE,cAAc,GAAG;QAAE,IAAI,CAAC,EAAE,MAAM,GAAC,IAAI,CAAC;KAAQ;IAMvE,YAAY,CAAE,KAAK,EAAE,MAAM,EAAE,MAAM,GAAE,OAAO,CAAC,OAAO,iBAAiB,CAAM;IAM3E,OAAO,CAAC,EAAE,EAAC,MAAM;IAIjB,YAAY,CAAC,EAAE,EAAC,MAAM,EAAE,IAAI,GAAE,OAAO,CAAC,OAAO,mBAAmB,CAAM;CAG5E"}