jd_platform_sdk 0.1.1 → 0.1.3

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 (91) hide show
  1. package/dist/index.d.ts +13 -5
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +13 -6
  4. package/dist/sdk/models/dashboard/jdApplication.d.ts +27 -0
  5. package/dist/sdk/models/dashboard/jdApplication.d.ts.map +1 -0
  6. package/dist/sdk/models/dashboard/jdApplication.js +76 -0
  7. package/dist/sdk/models/dashboard/jdCallbackNotification.d.ts +25 -0
  8. package/dist/sdk/models/dashboard/jdCallbackNotification.d.ts.map +1 -0
  9. package/dist/sdk/models/dashboard/jdCallbackNotification.js +75 -0
  10. package/dist/sdk/models/dashboard/jdDashboardCombinations.d.ts +6 -0
  11. package/dist/sdk/models/dashboard/jdDashboardCombinations.d.ts.map +1 -0
  12. package/dist/sdk/models/dashboard/jdDashboardCombinations.js +21 -0
  13. package/dist/sdk/models/dashboard/jdModule.d.ts +16 -0
  14. package/dist/sdk/models/dashboard/jdModule.d.ts.map +1 -0
  15. package/dist/sdk/models/dashboard/jdModule.js +57 -0
  16. package/dist/sdk/models/dashboard/jdPlatform.d.ts +16 -0
  17. package/dist/sdk/models/dashboard/jdPlatform.d.ts.map +1 -0
  18. package/dist/sdk/models/dashboard/jdPlatform.js +57 -0
  19. package/dist/sdk/models/dashboard/jdSmsVerification.d.ts +18 -0
  20. package/dist/sdk/models/dashboard/jdSmsVerification.d.ts.map +1 -0
  21. package/dist/sdk/models/dashboard/jdSmsVerification.js +61 -0
  22. package/dist/sdk/models/jdApplication.d.ts +1 -1
  23. package/dist/sdk/models/jdApplication.d.ts.map +1 -1
  24. package/dist/sdk/models/jdApplication.js +1 -1
  25. package/dist/sdk/models/jdResource.d.ts +2 -2
  26. package/dist/sdk/models/jdResource.d.ts.map +1 -1
  27. package/dist/sdk/models/modules/dashboard/jdCallbackNotification.d.ts +25 -0
  28. package/dist/sdk/models/modules/dashboard/jdCallbackNotification.d.ts.map +1 -0
  29. package/dist/sdk/models/modules/dashboard/jdCallbackNotification.js +75 -0
  30. package/dist/sdk/models/modules/dashboard/jdPlatform.d.ts +16 -0
  31. package/dist/sdk/models/modules/dashboard/jdPlatform.d.ts.map +1 -0
  32. package/dist/sdk/models/modules/dashboard/jdPlatform.js +57 -0
  33. package/dist/sdk/models/modules/dashboard/jdSmsVerification.d.ts +18 -0
  34. package/dist/sdk/models/modules/dashboard/jdSmsVerification.d.ts.map +1 -0
  35. package/dist/sdk/models/modules/dashboard/jdSmsVerification.js +61 -0
  36. package/dist/sdk/models/modules/geolocation/jdCity.d.ts.map +1 -1
  37. package/dist/sdk/models/modules/geolocation/jdCity.js +1 -1
  38. package/dist/sdk/models/modules/geolocation/jdCountry.d.ts.map +1 -1
  39. package/dist/sdk/models/modules/geolocation/jdCountry.js +1 -1
  40. package/dist/sdk/models/modules/geolocation/jdDistrict.d.ts.map +1 -1
  41. package/dist/sdk/models/modules/geolocation/jdDistrict.js +1 -1
  42. package/dist/sdk/models/modules/geolocation/jdGeolocationCombinations.d.ts +6 -0
  43. package/dist/sdk/models/modules/geolocation/jdGeolocationCombinations.d.ts.map +1 -0
  44. package/dist/sdk/models/modules/geolocation/jdGeolocationCombinations.js +21 -0
  45. package/dist/sdk/models/modules/geolocation/jdState.d.ts.map +1 -1
  46. package/dist/sdk/models/modules/geolocation/jdState.js +1 -1
  47. package/dist/sdk/models/modules/karaoke/jdKtvShop.d.ts +5 -6
  48. package/dist/sdk/models/modules/karaoke/jdKtvShop.d.ts.map +1 -1
  49. package/dist/sdk/models/modules/karaoke/jdKtvShop.js +4 -12
  50. package/dist/sdk/models/modules/music/jdAlbum.d.ts +2 -2
  51. package/dist/sdk/models/modules/music/jdAlbum.d.ts.map +1 -1
  52. package/dist/sdk/models/modules/music/jdAlbum.js +3 -3
  53. package/dist/sdk/models/modules/music/jdArtist.d.ts +2 -5
  54. package/dist/sdk/models/modules/music/jdArtist.d.ts.map +1 -1
  55. package/dist/sdk/models/modules/music/jdArtist.js +3 -12
  56. package/dist/sdk/models/modules/music/jdComposer.d.ts +2 -4
  57. package/dist/sdk/models/modules/music/jdComposer.d.ts.map +1 -1
  58. package/dist/sdk/models/modules/music/jdComposer.js +3 -7
  59. package/dist/sdk/models/modules/music/jdSong.d.ts +1 -1
  60. package/dist/sdk/models/modules/music/jdSong.d.ts.map +1 -1
  61. package/dist/sdk/models/modules/music/jdSong.js +3 -3
  62. package/dist/sdk/models/modules/radio_station/jdRadioStation.d.ts +4 -5
  63. package/dist/sdk/models/modules/radio_station/jdRadioStation.d.ts.map +1 -1
  64. package/dist/sdk/models/modules/radio_station/jdRadioStation.js +3 -11
  65. package/dist/sdk/models/modules/user/jdAccessToken.d.ts +17 -0
  66. package/dist/sdk/models/modules/user/jdAccessToken.d.ts.map +1 -0
  67. package/dist/sdk/models/modules/user/jdAccessToken.js +59 -0
  68. package/dist/sdk/models/modules/user/jdModerator.d.ts +28 -0
  69. package/dist/sdk/models/modules/user/jdModerator.d.ts.map +1 -0
  70. package/dist/sdk/models/modules/user/jdModerator.js +71 -0
  71. package/dist/sdk/models/modules/user/jdPermission.d.ts +1 -2
  72. package/dist/sdk/models/modules/user/jdPermission.d.ts.map +1 -1
  73. package/dist/sdk/models/modules/user/jdPermission.js +2 -4
  74. package/dist/sdk/models/modules/user/jdPermissionGroup.d.ts +4 -6
  75. package/dist/sdk/models/modules/user/jdPermissionGroup.d.ts.map +1 -1
  76. package/dist/sdk/models/modules/user/jdPermissionGroup.js +4 -10
  77. package/dist/sdk/models/modules/user/jdSessionAccessToken.d.ts +19 -0
  78. package/dist/sdk/models/modules/user/jdSessionAccessToken.d.ts.map +1 -0
  79. package/dist/sdk/models/modules/user/jdSessionAccessToken.js +63 -0
  80. package/dist/sdk/models/modules/user/jdSessionUser.d.ts +1 -1
  81. package/dist/sdk/models/modules/user/jdSessionUser.d.ts.map +1 -1
  82. package/dist/sdk/models/modules/user/jdSessionUser.js +4 -4
  83. package/dist/sdk/models/modules/user/jdUser.d.ts +1 -1
  84. package/dist/sdk/models/modules/user/jdUser.d.ts.map +1 -1
  85. package/dist/sdk/models/modules/user/jdUser.js +4 -4
  86. package/dist/sdk/models/modules/user/jdUserRole.d.ts +1 -1
  87. package/dist/sdk/models/modules/user/jdUserRole.d.ts.map +1 -1
  88. package/dist/sdk/models/modules/user/jdUserRole.js +2 -2
  89. package/dist/sdk/utilities/browserUtils.d.ts.map +1 -1
  90. package/dist/sdk/utilities/utils.d.ts.map +1 -1
  91. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -8,13 +8,20 @@ export * from "./sdk/utilities/globalEventHandler";
8
8
  export * from "./sdk/utilities/stringUtils";
9
9
  export * from "./sdk/utilities/utils";
10
10
  export * from "./sdk/models/jdResource";
11
- export * from "./sdk/models/jdApplication";
12
- export * from "./sdk/models/modules/dashboard/jdDashboardCombinations";
13
- export * from "./sdk/models/modules/user/jdUser";
14
- export * from "./sdk/models/modules/user/jdUserRole";
15
- export * from "./sdk/models/modules/user/jdSessionUser";
11
+ export * from "./sdk/models/dashboard/jdApplication";
12
+ export * from "./sdk/models/dashboard/jdCallbackNotification";
13
+ export * from "./sdk/models/dashboard/jdDashboardCombinations";
14
+ export * from "./sdk/models/dashboard/jdModule";
15
+ export * from "./sdk/models/dashboard/jdPlatform";
16
+ export * from "./sdk/models/dashboard/jdSmsVerification";
17
+ export * from "./sdk/models/modules/user/jdAccessToken";
18
+ export * from "./sdk/models/modules/user/jdModerator";
16
19
  export * from "./sdk/models/modules/user/jdPermission";
17
20
  export * from "./sdk/models/modules/user/jdPermissionGroup";
21
+ export * from "./sdk/models/modules/user/jdSessionAccessToken";
22
+ export * from "./sdk/models/modules/user/jdSessionUser";
23
+ export * from "./sdk/models/modules/user/jdUser";
24
+ export * from "./sdk/models/modules/user/jdUserRole";
18
25
  export * from "./sdk/models/modules/karaoke/jdKtvShop";
19
26
  export * from "./sdk/models/modules/radio_station/jdRadioStation";
20
27
  export * from "./sdk/models/modules/music/jdAlbum";
@@ -26,4 +33,5 @@ export * from "./sdk/models/modules/geolocation/jdCountry";
26
33
  export * from "./sdk/models/modules/geolocation/jdState";
27
34
  export * from "./sdk/models/modules/geolocation/jdCity";
28
35
  export * from "./sdk/models/modules/geolocation/jdDistrict";
36
+ export * from "./sdk/models/modules/geolocation/jdGeolocationCombinations";
29
37
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,wBAAwB,CAAC;AAGvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oCAAoC,CAAC;AACnD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AAGtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAG3C,cAAc,wDAAwD,CAAC;AAGvE,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,yCAAyC,CAAC;AACxD,cAAc,wCAAwC,CAAC;AACvD,cAAc,6CAA6C,CAAC;AAG5D,cAAc,wCAAwC,CAAC;AAGvD,cAAc,mDAAmD,CAAC;AAGlE,cAAc,oCAAoC,CAAC;AACnD,cAAc,mCAAmC,CAAC;AAClD,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,gDAAgD,CAAC;AAG/D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,0CAA0C,CAAC;AACzD,cAAc,yCAAyC,CAAC;AACxD,cAAc,6CAA6C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,wBAAwB,CAAC;AAEvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oCAAoC,CAAC;AACnD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AAGtC,cAAc,yBAAyB,CAAC;AAGxC,cAAc,sCAAsC,CAAC;AACrD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,iCAAiC,CAAC;AAChD,cAAc,mCAAmC,CAAC;AAClD,cAAc,0CAA0C,CAAC;AAGzD,cAAc,yCAAyC,CAAC;AACxD,cAAc,uCAAuC,CAAC;AACtD,cAAc,wCAAwC,CAAC;AACvD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,gDAAgD,CAAC;AAC/D,cAAc,yCAAyC,CAAC;AACxD,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AAGrD,cAAc,wCAAwC,CAAC;AAGvD,cAAc,mDAAmD,CAAC;AAGlE,cAAc,oCAAoC,CAAC;AACnD,cAAc,mCAAmC,CAAC;AAClD,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,gDAAgD,CAAC;AAG/D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,0CAA0C,CAAC;AACzD,cAAc,yCAAyC,CAAC;AACxD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,4DAA4D,CAAC"}
package/dist/index.js CHANGED
@@ -1,7 +1,6 @@
1
1
  export * from "./sdk/jdConnector";
2
2
  export * from "./sdk/jdSdk";
3
3
  export * from "./sdk/configs/jdConfig";
4
- // export * from "./sdk/extensions/extensions";
5
4
  export * from "./sdk/utilities/browserUtils";
6
5
  export * from "./sdk/utilities/cryptoUtils";
7
6
  export * from "./sdk/utilities/dateUtils";
@@ -10,15 +9,22 @@ export * from "./sdk/utilities/stringUtils";
10
9
  export * from "./sdk/utilities/utils";
11
10
  // Generic Models for different possible modules for all platforms
12
11
  export * from "./sdk/models/jdResource";
13
- export * from "./sdk/models/jdApplication";
14
12
  //Dashboard
15
- export * from "./sdk/models/modules/dashboard/jdDashboardCombinations";
13
+ export * from "./sdk/models/dashboard/jdApplication";
14
+ export * from "./sdk/models/dashboard/jdCallbackNotification";
15
+ export * from "./sdk/models/dashboard/jdDashboardCombinations";
16
+ export * from "./sdk/models/dashboard/jdModule";
17
+ export * from "./sdk/models/dashboard/jdPlatform";
18
+ export * from "./sdk/models/dashboard/jdSmsVerification";
16
19
  //User
17
- export * from "./sdk/models/modules/user/jdUser";
18
- export * from "./sdk/models/modules/user/jdUserRole";
19
- export * from "./sdk/models/modules/user/jdSessionUser";
20
+ export * from "./sdk/models/modules/user/jdAccessToken";
21
+ export * from "./sdk/models/modules/user/jdModerator";
20
22
  export * from "./sdk/models/modules/user/jdPermission";
21
23
  export * from "./sdk/models/modules/user/jdPermissionGroup";
24
+ export * from "./sdk/models/modules/user/jdSessionAccessToken";
25
+ export * from "./sdk/models/modules/user/jdSessionUser";
26
+ export * from "./sdk/models/modules/user/jdUser";
27
+ export * from "./sdk/models/modules/user/jdUserRole";
22
28
  //Karaoke
23
29
  export * from "./sdk/models/modules/karaoke/jdKtvShop";
24
30
  //Radio Station
@@ -34,3 +40,4 @@ export * from "./sdk/models/modules/geolocation/jdCountry";
34
40
  export * from "./sdk/models/modules/geolocation/jdState";
35
41
  export * from "./sdk/models/modules/geolocation/jdCity";
36
42
  export * from "./sdk/models/modules/geolocation/jdDistrict";
43
+ export * from "./sdk/models/modules/geolocation/jdGeolocationCombinations";
@@ -0,0 +1,27 @@
1
+ import JDResource, { ConnectorInfo, defaultSortParams, defaultUpdateFields, PaginateParams } from "../jdResource";
2
+ export declare class JDApplication extends JDResource {
3
+ appId: string;
4
+ appKey: string;
5
+ appSecret: string;
6
+ storeLinks: object;
7
+ urls: object;
8
+ orientation: string;
9
+ version: string;
10
+ versionCode: number;
11
+ bundleCodeAndroid: number;
12
+ bundleCodeIos: number;
13
+ constructor(data?: Record<string, any>, connectorInfo?: ConnectorInfo);
14
+ setData(data: Record<string, any>): void;
15
+ getContents(params?: Partial<typeof defaultSortParams>): Promise<import("../../jdConnector").SimpleResponse>;
16
+ paginateContents(params?: PaginateParams & {
17
+ name?: string | null;
18
+ sandbox?: string | null;
19
+ featured?: string | null;
20
+ }): Promise<import("../../jdConnector").SimpleResponse>;
21
+ findContents(params?: PaginateParams & {
22
+ title?: string | null;
23
+ }): Promise<import("../../jdConnector").SimpleResponse>;
24
+ getInfo(id: string): Promise<import("../../jdConnector").SimpleResponse>;
25
+ updateFields(id: string, body?: Partial<typeof defaultUpdateFields>): Promise<import("../../jdConnector").SimpleResponse>;
26
+ }
27
+ //# sourceMappingURL=jdApplication.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jdApplication.d.ts","sourceRoot":"","sources":["../../../../src/sdk/models/dashboard/jdApplication.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,EAAE,EAAC,aAAa,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,cAAc,EAAC,MAAM,eAAe,CAAC;AAGhH,qBAAa,aAAc,SAAQ,UAAU;IAC5C,KAAK,SAAM;IACX,MAAM,SAAM;IACZ,SAAS,SAAM;IACf,UAAU,EAAE,MAAM,CAAM;IACxB,IAAI,EAAE,MAAM,CAAM;IAClB,WAAW,SAAM;IACjB,OAAO,SAAM;IACb,WAAW,SAAK;IAChB,iBAAiB,SAAK;IACtB,aAAa,SAAK;gBAEN,IAAI,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,EAAE,aAAa,GAAE,aAAyC;IAKpG,OAAO,CAAC,IAAI,EAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAe1B,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,OAAO,CAAC,EAAE,MAAM,GAAC,IAAI,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,GAAC,IAAI,CAAC;KAAM;IAQpH,YAAY,CAAC,MAAM,GAAE,cAAc,GAAG;QAAE,KAAK,CAAC,EAAE,MAAM,GAAC,IAAI,CAAC;KAAO;IAMnE,OAAO,CAAC,EAAE,EAAC,MAAM;IAIjB,YAAY,CAAC,EAAE,EAAC,MAAM,EAAE,IAAI,GAAE,OAAO,CAAC,OAAO,mBAAmB,CAAM;CAG5E"}
@@ -0,0 +1,76 @@
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 JDApplication extends JDResource {
13
+ constructor(data = {}, connectorInfo = new ConnectorInfo("", "")) {
14
+ super(connectorInfo);
15
+ this.appId = '';
16
+ this.appKey = '';
17
+ this.appSecret = '';
18
+ this.storeLinks = {};
19
+ this.urls = {};
20
+ this.orientation = '';
21
+ this.version = '';
22
+ this.versionCode = 0;
23
+ this.bundleCodeAndroid = 0;
24
+ this.bundleCodeIos = 0;
25
+ this.setData(data);
26
+ }
27
+ setData(data) {
28
+ super.setData(data);
29
+ this.appId = Utils.getString(data, 'app_id');
30
+ this.appKey = Utils.getString(data, 'app_key');
31
+ this.appSecret = Utils.getString(data, 'app_secret');
32
+ this.orientation = Utils.getString(data, 'orientation');
33
+ this.version = Utils.getString(data, 'version');
34
+ this.storeLinks = Utils.getObject(data, 'store_links');
35
+ this.urls = Utils.getObject(data, 'urls');
36
+ this.versionCode = Utils.getInteger(data, 'version_code');
37
+ this.bundleCodeAndroid = Utils.getInteger(data, 'bundle_code_android');
38
+ this.bundleCodeIos = Utils.getInteger(data, 'bundle_code_ios');
39
+ }
40
+ getContents() {
41
+ return __awaiter(this, arguments, void 0, function* (params = {}) {
42
+ const queryParams = this.getSortParameters(params);
43
+ return yield this.getRelative('/dashboard/applications', queryParams);
44
+ });
45
+ }
46
+ paginateContents() {
47
+ return __awaiter(this, arguments, void 0, function* (params = {}) {
48
+ const queryParams = this.getSortParameters(params);
49
+ if (params.name)
50
+ queryParams['name'] = params.name;
51
+ if (params.sandbox)
52
+ queryParams['sandbox'] = params.sandbox;
53
+ if (params.featured)
54
+ queryParams['featured'] = params.featured;
55
+ return yield this.getRelative('/dashboard/applications', queryParams);
56
+ });
57
+ }
58
+ findContents() {
59
+ return __awaiter(this, arguments, void 0, function* (params = {}) {
60
+ const queryParams = this.getSortParameters(params);
61
+ if (params.title)
62
+ queryParams['name'] = params.title;
63
+ return yield this.getRelative('/dashboard/applications', queryParams);
64
+ });
65
+ }
66
+ getInfo(id) {
67
+ return __awaiter(this, void 0, void 0, function* () {
68
+ return yield this.getRelative(`/dashboard/applications/${id}`, {});
69
+ });
70
+ }
71
+ updateFields(id_1) {
72
+ return __awaiter(this, arguments, void 0, function* (id, body = {}) {
73
+ return yield this.postRelative(`/dashboard/applications/${id}/update`, body);
74
+ });
75
+ }
76
+ }
@@ -0,0 +1,25 @@
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
+ name?: string | null;
20
+ }): Promise<import("../../jdConnector").SimpleResponse>;
21
+ findContents(title: string, params?: Partial<typeof defaultSortParams>): Promise<import("../../jdConnector").SimpleResponse>;
22
+ getInfo(id: string): Promise<import("../../jdConnector").SimpleResponse>;
23
+ updateFields(id: string, body?: Partial<typeof defaultUpdateFields>): Promise<import("../../jdConnector").SimpleResponse>;
24
+ }
25
+ //# 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,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,75 @@
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('/modules/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.name)
54
+ queryParams['name'] = params.name;
55
+ return yield this.getRelative('/modules/dashboard/callback_notifications/paginate', queryParams);
56
+ });
57
+ }
58
+ findContents(title_1) {
59
+ return __awaiter(this, arguments, void 0, function* (title, params = {}) {
60
+ const queryParams = this.getSortParameters(params);
61
+ queryParams['title'] = title;
62
+ return yield this.getRelative('/modules/dashboard/callback_notifications/find', queryParams);
63
+ });
64
+ }
65
+ getInfo(id) {
66
+ return __awaiter(this, void 0, void 0, function* () {
67
+ return yield this.getRelative(`/modules/dashboard/callback_notifications/${id}`, {});
68
+ });
69
+ }
70
+ updateFields(id_1) {
71
+ return __awaiter(this, arguments, void 0, function* (id, body = {}) {
72
+ return yield this.postRelative(`/modules/dashboard/callback_notifications/${id}/update`, body);
73
+ });
74
+ }
75
+ }
@@ -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('/modules/dashboard/combinations/overview', {});
19
+ });
20
+ }
21
+ }
@@ -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('/modules/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('/modules/dashboard/modules/find', queryParams);
45
+ });
46
+ }
47
+ getInfo(id) {
48
+ return __awaiter(this, void 0, void 0, function* () {
49
+ return yield this.getRelative(`/modules/dashboard/modules/${id}`, {});
50
+ });
51
+ }
52
+ updateFields(id_1) {
53
+ return __awaiter(this, arguments, void 0, function* (id, body = {}) {
54
+ return yield this.postRelative(`/modules/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('/modules/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('/modules/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('/modules/dashboard/platforms/find', queryParams);
45
+ });
46
+ }
47
+ getInfo(id) {
48
+ return __awaiter(this, void 0, void 0, function* () {
49
+ return yield this.getRelative(`/modules/dashboard/platforms/${id}`, {});
50
+ });
51
+ }
52
+ updateFields(id_1) {
53
+ return __awaiter(this, arguments, void 0, function* (id, body = {}) {
54
+ return yield this.postRelative(`/modules/dashboard/platforms/${id}/update`, body);
55
+ });
56
+ }
57
+ }
@@ -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"}
@@ -0,0 +1,61 @@
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 JdSmsVerification extends JDResource {
13
+ constructor(data = {}, connectorInfo = new ConnectorInfo("", "")) {
14
+ super(connectorInfo);
15
+ this.serviceName = '';
16
+ this.phone = '';
17
+ this.code = '';
18
+ this.verified = false;
19
+ this.expiryDate = new Date();
20
+ this.setData(data);
21
+ }
22
+ setData(data) {
23
+ super.setData(data);
24
+ this.serviceName = Utils.getString(data, 'serviceName');
25
+ this.phone = Utils.getString(data, 'phone');
26
+ this.code = Utils.getString(data, 'code');
27
+ this.verified = Utils.getBoolean(data, 'verified');
28
+ this.expiryDate = Utils.getDate(data, 'expiry_date');
29
+ }
30
+ getContents() {
31
+ return __awaiter(this, arguments, void 0, function* (params = {}) {
32
+ const queryParams = this.getSortParameters(params);
33
+ return yield this.getRelative('/modules/dashboard/sms_verifications', queryParams);
34
+ });
35
+ }
36
+ paginateContents() {
37
+ return __awaiter(this, arguments, void 0, function* (params = {}) {
38
+ const queryParams = this.getSortParameters(params);
39
+ if (params.name)
40
+ queryParams['name'] = params.name;
41
+ return yield this.getRelative('/modules/dashboard/sms_verifications/paginate', queryParams);
42
+ });
43
+ }
44
+ findContents(title_1) {
45
+ return __awaiter(this, arguments, void 0, function* (title, params = {}) {
46
+ const queryParams = this.getSortParameters(params);
47
+ queryParams['title'] = title;
48
+ return yield this.getRelative('/modules/dashboard/sms_verifications/find', queryParams);
49
+ });
50
+ }
51
+ getInfo(id) {
52
+ return __awaiter(this, void 0, void 0, function* () {
53
+ return yield this.getRelative(`/modules/dashboard/sms_verifications/${id}`, {});
54
+ });
55
+ }
56
+ updateFields(id_1) {
57
+ return __awaiter(this, arguments, void 0, function* (id, body = {}) {
58
+ return yield this.postRelative(`/modules/dashboard/sms_verifications/${id}/update`, body);
59
+ });
60
+ }
61
+ }
@@ -19,7 +19,7 @@ export declare class JDApplication extends JDResource {
19
19
  featured?: string | null;
20
20
  }): Promise<import("../jdConnector").SimpleResponse>;
21
21
  findContents(params?: PaginateParams & {
22
- title?: string;
22
+ title?: string | null;
23
23
  }): Promise<import("../jdConnector").SimpleResponse>;
24
24
  getInfo(id: string): Promise<import("../jdConnector").SimpleResponse>;
25
25
  updateFields(id: string, body?: Partial<typeof defaultUpdateFields>): Promise<import("../jdConnector").SimpleResponse>;
@@ -1 +1 @@
1
- {"version":3,"file":"jdApplication.d.ts","sourceRoot":"","sources":["../../../src/sdk/models/jdApplication.ts"],"names":[],"mappings":"AACA,OAAO,UAAU,EAAE,EAAC,aAAa,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,cAAc,EAAC,MAAM,cAAc,CAAC;AAE/G,qBAAa,aAAc,SAAQ,UAAU;IAC5C,KAAK,SAAM;IACX,MAAM,SAAM;IACZ,SAAS,SAAM;IACf,UAAU,EAAE,MAAM,CAAM;IACxB,IAAI,EAAE,MAAM,CAAM;IAClB,WAAW,SAAM;IACjB,OAAO,SAAM;IACb,WAAW,SAAK;IAChB,iBAAiB,SAAK;IACtB,aAAa,SAAK;gBAEN,IAAI,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,EAAE,aAAa,GAAE,aAAyC;IAKpG,OAAO,CAAC,IAAI,EAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAe1B,WAAW,CAAC,MAAM,GAAE,OAAO,CAAC,OAAO,iBAAiB,CAAM;IAK1D,gBAAgB,CAAC,MAAM,GAAE,cAAc,GAAG;QAAE,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAAM;IAQ1H,YAAY,CAAC,MAAM,GAAE,cAAc,GAAG;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;KAAO;IAM9D,OAAO,CAAC,EAAE,EAAC,MAAM;IAIjB,YAAY,CAAC,EAAE,EAAC,MAAM,EAAE,IAAI,GAAE,OAAO,CAAC,OAAO,mBAAmB,CAAM;CAG5E"}
1
+ {"version":3,"file":"jdApplication.d.ts","sourceRoot":"","sources":["../../../src/sdk/models/jdApplication.ts"],"names":[],"mappings":"AACA,OAAO,UAAU,EAAE,EAAC,aAAa,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,cAAc,EAAC,MAAM,cAAc,CAAC;AAE/G,qBAAa,aAAc,SAAQ,UAAU;IAC5C,KAAK,SAAM;IACX,MAAM,SAAM;IACZ,SAAS,SAAM;IACf,UAAU,EAAE,MAAM,CAAM;IACxB,IAAI,EAAE,MAAM,CAAM;IAClB,WAAW,SAAM;IACjB,OAAO,SAAM;IACb,WAAW,SAAK;IAChB,iBAAiB,SAAK;IACtB,aAAa,SAAK;gBAEN,IAAI,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,EAAE,aAAa,GAAE,aAAyC;IAKpG,OAAO,CAAC,IAAI,EAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAe1B,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,OAAO,CAAC,EAAE,MAAM,GAAC,IAAI,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,GAAC,IAAI,CAAC;KAAM;IAQpH,YAAY,CAAC,MAAM,GAAE,cAAc,GAAG;QAAE,KAAK,CAAC,EAAE,MAAM,GAAC,IAAI,CAAC;KAAO;IAMnE,OAAO,CAAC,EAAE,EAAC,MAAM;IAIjB,YAAY,CAAC,EAAE,EAAC,MAAM,EAAE,IAAI,GAAE,OAAO,CAAC,OAAO,mBAAmB,CAAM;CAG5E"}
@@ -70,7 +70,7 @@ export class JDApplication extends JDResource {
70
70
  }
71
71
  updateFields(id_1) {
72
72
  return __awaiter(this, arguments, void 0, function* (id, body = {}) {
73
- return yield this.postRelative(`/dashboard/applications/${id}/update/single_fields`, body);
73
+ return yield this.postRelative(`/dashboard/applications/${id}/update`, body);
74
74
  });
75
75
  }
76
76
  }
@@ -20,14 +20,14 @@ export declare const defaultUpdateFields: {
20
20
  };
21
21
  export interface UpdateFields {
22
22
  published?: boolean | null;
23
- note?: string | undefined;
23
+ note?: string | null;
24
24
  }
25
25
  export interface PaginateParams {
26
26
  title_en?: string | undefined;
27
27
  title_mm?: string | undefined;
28
28
  keywords_en?: string | undefined;
29
29
  keywords_mm?: string | undefined;
30
- published?: boolean | null;
30
+ published?: boolean | undefined;
31
31
  order_by?: string | undefined;
32
32
  order?: string | undefined;
33
33
  page_index?: number | undefined;