jd_platform_sdk 0.1.2 → 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.
- package/dist/index.d.ts +13 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -6
- package/dist/sdk/models/dashboard/jdApplication.d.ts +27 -0
- package/dist/sdk/models/dashboard/jdApplication.d.ts.map +1 -0
- package/dist/sdk/models/dashboard/jdApplication.js +76 -0
- package/dist/sdk/models/dashboard/jdCallbackNotification.d.ts +25 -0
- package/dist/sdk/models/dashboard/jdCallbackNotification.d.ts.map +1 -0
- package/dist/sdk/models/dashboard/jdCallbackNotification.js +75 -0
- package/dist/sdk/models/dashboard/jdDashboardCombinations.d.ts +6 -0
- package/dist/sdk/models/dashboard/jdDashboardCombinations.d.ts.map +1 -0
- package/dist/sdk/models/dashboard/jdDashboardCombinations.js +21 -0
- package/dist/sdk/models/dashboard/jdModule.d.ts +16 -0
- package/dist/sdk/models/dashboard/jdModule.d.ts.map +1 -0
- package/dist/sdk/models/dashboard/jdModule.js +57 -0
- package/dist/sdk/models/dashboard/jdPlatform.d.ts +16 -0
- package/dist/sdk/models/dashboard/jdPlatform.d.ts.map +1 -0
- package/dist/sdk/models/dashboard/jdPlatform.js +57 -0
- package/dist/sdk/models/dashboard/jdSmsVerification.d.ts +18 -0
- package/dist/sdk/models/dashboard/jdSmsVerification.d.ts.map +1 -0
- package/dist/sdk/models/dashboard/jdSmsVerification.js +61 -0
- package/dist/sdk/models/jdApplication.js +1 -1
- package/dist/sdk/models/modules/dashboard/jdCallbackNotification.d.ts +25 -0
- package/dist/sdk/models/modules/dashboard/jdCallbackNotification.d.ts.map +1 -0
- package/dist/sdk/models/modules/dashboard/jdCallbackNotification.js +75 -0
- package/dist/sdk/models/modules/dashboard/jdPlatform.d.ts +16 -0
- package/dist/sdk/models/modules/dashboard/jdPlatform.d.ts.map +1 -0
- package/dist/sdk/models/modules/dashboard/jdPlatform.js +57 -0
- package/dist/sdk/models/modules/dashboard/jdSmsVerification.d.ts +18 -0
- package/dist/sdk/models/modules/dashboard/jdSmsVerification.d.ts.map +1 -0
- package/dist/sdk/models/modules/dashboard/jdSmsVerification.js +61 -0
- package/dist/sdk/models/modules/geolocation/jdCity.js +1 -1
- package/dist/sdk/models/modules/geolocation/jdCountry.js +1 -1
- package/dist/sdk/models/modules/geolocation/jdDistrict.js +1 -1
- package/dist/sdk/models/modules/geolocation/jdGeolocationCombinations.d.ts +6 -0
- package/dist/sdk/models/modules/geolocation/jdGeolocationCombinations.d.ts.map +1 -0
- package/dist/sdk/models/modules/geolocation/jdGeolocationCombinations.js +21 -0
- package/dist/sdk/models/modules/geolocation/jdState.js +1 -1
- package/dist/sdk/models/modules/karaoke/jdKtvShop.js +1 -1
- package/dist/sdk/models/modules/music/jdAlbum.js +1 -1
- package/dist/sdk/models/modules/music/jdArtist.js +1 -1
- package/dist/sdk/models/modules/music/jdComposer.js +1 -1
- package/dist/sdk/models/modules/music/jdSong.js +1 -1
- package/dist/sdk/models/modules/radio_station/jdRadioStation.js +1 -1
- package/dist/sdk/models/modules/user/jdAccessToken.d.ts +17 -0
- package/dist/sdk/models/modules/user/jdAccessToken.d.ts.map +1 -0
- package/dist/sdk/models/modules/user/jdAccessToken.js +59 -0
- package/dist/sdk/models/modules/user/jdModerator.d.ts +28 -0
- package/dist/sdk/models/modules/user/jdModerator.d.ts.map +1 -0
- package/dist/sdk/models/modules/user/jdModerator.js +71 -0
- package/dist/sdk/models/modules/user/jdPermission.js +1 -1
- package/dist/sdk/models/modules/user/jdPermissionGroup.js +1 -1
- package/dist/sdk/models/modules/user/jdSessionAccessToken.d.ts +19 -0
- package/dist/sdk/models/modules/user/jdSessionAccessToken.d.ts.map +1 -0
- package/dist/sdk/models/modules/user/jdSessionAccessToken.js +63 -0
- package/dist/sdk/models/modules/user/jdSessionUser.js +1 -1
- package/dist/sdk/models/modules/user/jdUser.d.ts.map +1 -1
- package/dist/sdk/models/modules/user/jdUser.js +1 -1
- package/dist/sdk/models/modules/user/jdUserRole.js +1 -1
- 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/
|
|
13
|
-
export * from "./sdk/models/
|
|
14
|
-
export * from "./sdk/models/
|
|
15
|
-
export * from "./sdk/models/
|
|
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
|
package/dist/index.d.ts.map
CHANGED
|
@@ -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;
|
|
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/
|
|
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/
|
|
18
|
-
export * from "./sdk/models/modules/user/
|
|
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
|
+
}
|
|
@@ -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
|
|
73
|
+
return yield this.postRelative(`/dashboard/applications/${id}/update`, body);
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
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/modules/dashboard/jdCallbackNotification.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,EAAE,EAAC,aAAa,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAEnH,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"}
|