jd_platform_sdk 0.1.3 → 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.
- package/dist/index.d.ts +15 -15
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +23 -19
- package/dist/sdk/models/dashboard/geolocation/jdCity.d.ts +19 -0
- package/dist/sdk/models/dashboard/geolocation/jdCity.d.ts.map +1 -0
- package/dist/sdk/models/dashboard/geolocation/jdCity.js +64 -0
- package/dist/sdk/models/dashboard/geolocation/jdCountry.d.ts +14 -0
- package/dist/sdk/models/dashboard/geolocation/jdCountry.d.ts.map +1 -0
- package/dist/sdk/models/dashboard/geolocation/jdCountry.js +56 -0
- package/dist/sdk/models/dashboard/geolocation/jdDistrict.d.ts +18 -0
- package/dist/sdk/models/dashboard/geolocation/jdDistrict.d.ts.map +1 -0
- package/dist/sdk/models/dashboard/geolocation/jdDistrict.js +58 -0
- package/dist/sdk/models/dashboard/geolocation/jdGeolocationCombinations.d.ts +6 -0
- package/dist/sdk/models/dashboard/geolocation/jdGeolocationCombinations.d.ts.map +1 -0
- package/dist/sdk/models/dashboard/geolocation/jdGeolocationCombinations.js +21 -0
- package/dist/sdk/models/dashboard/geolocation/jdState.d.ts +19 -0
- package/dist/sdk/models/dashboard/geolocation/jdState.d.ts.map +1 -0
- package/dist/sdk/models/dashboard/geolocation/jdState.js +64 -0
- package/dist/sdk/models/dashboard/jdCallbackNotification.d.ts +5 -1
- package/dist/sdk/models/dashboard/jdCallbackNotification.d.ts.map +1 -1
- package/dist/sdk/models/dashboard/jdCallbackNotification.js +15 -7
- package/dist/sdk/models/dashboard/jdDashboardCombinations.js +1 -1
- package/dist/sdk/models/dashboard/jdKtvShop.d.ts +41 -0
- package/dist/sdk/models/dashboard/jdKtvShop.d.ts.map +1 -0
- package/dist/sdk/models/dashboard/jdKtvShop.js +92 -0
- package/dist/sdk/models/dashboard/jdModule.js +4 -4
- package/dist/sdk/models/dashboard/jdPlatform.js +5 -5
- package/dist/sdk/models/dashboard/jdRadioStation.d.ts +41 -0
- package/dist/sdk/models/dashboard/jdRadioStation.d.ts.map +1 -0
- package/dist/sdk/models/dashboard/jdRadioStation.js +92 -0
- package/dist/sdk/models/dashboard/jdSmsVerification.js +5 -5
- package/dist/sdk/models/dashboard/user/jdAccessToken.d.ts +17 -0
- package/dist/sdk/models/dashboard/user/jdAccessToken.d.ts.map +1 -0
- package/dist/sdk/models/dashboard/user/jdAccessToken.js +59 -0
- package/dist/sdk/models/dashboard/user/jdModerator.d.ts +28 -0
- package/dist/sdk/models/dashboard/user/jdModerator.d.ts.map +1 -0
- package/dist/sdk/models/dashboard/user/jdModerator.js +71 -0
- package/dist/sdk/models/dashboard/user/jdPermission.d.ts +22 -0
- package/dist/sdk/models/dashboard/user/jdPermission.d.ts.map +1 -0
- package/dist/sdk/models/dashboard/user/jdPermission.js +68 -0
- package/dist/sdk/models/dashboard/user/jdPermissionGroup.d.ts +17 -0
- package/dist/sdk/models/dashboard/user/jdPermissionGroup.d.ts.map +1 -0
- package/dist/sdk/models/dashboard/user/jdPermissionGroup.js +60 -0
- package/dist/sdk/models/dashboard/user/jdSessionAccessToken.d.ts +19 -0
- package/dist/sdk/models/dashboard/user/jdSessionAccessToken.d.ts.map +1 -0
- package/dist/sdk/models/dashboard/user/jdSessionAccessToken.js +63 -0
- package/dist/sdk/models/dashboard/user/jdSessionUser.d.ts +30 -0
- package/dist/sdk/models/dashboard/user/jdSessionUser.d.ts.map +1 -0
- package/dist/sdk/models/dashboard/user/jdSessionUser.js +88 -0
- package/dist/sdk/models/dashboard/user/jdUser.d.ts +30 -0
- package/dist/sdk/models/dashboard/user/jdUser.d.ts.map +1 -0
- package/dist/sdk/models/dashboard/user/jdUser.js +90 -0
- package/dist/sdk/models/dashboard/user/jdUserRole.d.ts +16 -0
- package/dist/sdk/models/dashboard/user/jdUserRole.d.ts.map +1 -0
- package/dist/sdk/models/dashboard/user/jdUserRole.js +66 -0
- package/dist/sdk/models/jdResource.d.ts.map +1 -1
- package/dist/sdk/utilities/browserUtils.d.ts +1 -1
- package/dist/sdk/utilities/browserUtils.d.ts.map +1 -1
- package/dist/sdk/utilities/browserUtils.js +1 -1
- package/dist/sdk/utilities/utils.d.ts +1 -0
- package/dist/sdk/utilities/utils.d.ts.map +1 -1
- package/dist/sdk/utilities/utils.js +16 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -14,24 +14,24 @@ export * from "./sdk/models/dashboard/jdDashboardCombinations";
|
|
|
14
14
|
export * from "./sdk/models/dashboard/jdModule";
|
|
15
15
|
export * from "./sdk/models/dashboard/jdPlatform";
|
|
16
16
|
export * from "./sdk/models/dashboard/jdSmsVerification";
|
|
17
|
-
export * from "./sdk/models/
|
|
18
|
-
export * from "./sdk/models/
|
|
19
|
-
export * from "./sdk/models/
|
|
20
|
-
export * from "./sdk/models/
|
|
21
|
-
export * from "./sdk/models/
|
|
22
|
-
export * from "./sdk/models/
|
|
23
|
-
export * from "./sdk/models/
|
|
24
|
-
export * from "./sdk/models/
|
|
25
|
-
export * from "./sdk/models/
|
|
26
|
-
export * from "./sdk/models/
|
|
17
|
+
export * from "./sdk/models/dashboard/user/jdAccessToken";
|
|
18
|
+
export * from "./sdk/models/dashboard/user/jdModerator";
|
|
19
|
+
export * from "./sdk/models/dashboard/user/jdPermission";
|
|
20
|
+
export * from "./sdk/models/dashboard/user/jdPermissionGroup";
|
|
21
|
+
export * from "./sdk/models/dashboard/user/jdSessionAccessToken";
|
|
22
|
+
export * from "./sdk/models/dashboard/user/jdSessionUser";
|
|
23
|
+
export * from "./sdk/models/dashboard/user/jdUser";
|
|
24
|
+
export * from "./sdk/models/dashboard/user/jdUserRole";
|
|
25
|
+
export * from "./sdk/models/dashboard/jdKtvShop";
|
|
26
|
+
export * from "./sdk/models/dashboard/jdRadioStation";
|
|
27
|
+
export * from "./sdk/models/dashboard/geolocation/jdCountry";
|
|
28
|
+
export * from "./sdk/models/dashboard/geolocation/jdState";
|
|
29
|
+
export * from "./sdk/models/dashboard/geolocation/jdCity";
|
|
30
|
+
export * from "./sdk/models/dashboard/geolocation/jdDistrict";
|
|
31
|
+
export * from "./sdk/models/dashboard/geolocation/jdGeolocationCombinations";
|
|
27
32
|
export * from "./sdk/models/modules/music/jdAlbum";
|
|
28
33
|
export * from "./sdk/models/modules/music/jdSong";
|
|
29
34
|
export * from "./sdk/models/modules/music/jdArtist";
|
|
30
35
|
export * from "./sdk/models/modules/music/jdComposer";
|
|
31
36
|
export * from "./sdk/models/modules/music/jdMusicCombinations";
|
|
32
|
-
export * from "./sdk/models/modules/geolocation/jdCountry";
|
|
33
|
-
export * from "./sdk/models/modules/geolocation/jdState";
|
|
34
|
-
export * from "./sdk/models/modules/geolocation/jdCity";
|
|
35
|
-
export * from "./sdk/models/modules/geolocation/jdDistrict";
|
|
36
|
-
export * from "./sdk/models/modules/geolocation/jdGeolocationCombinations";
|
|
37
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;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;
|
|
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;AAKxC,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,2CAA2C,CAAC;AAC1D,cAAc,yCAAyC,CAAC;AACxD,cAAc,0CAA0C,CAAC;AACzD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,kDAAkD,CAAC;AACjE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC;AAGvD,cAAc,kCAAkC,CAAC;AACjD,cAAc,uCAAuC,CAAC;AAGtD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,8DAA8D,CAAC;AAO7E,cAAc,oCAAoC,CAAC;AACnD,cAAc,mCAAmC,CAAC;AAClD,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,gDAAgD,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -9,7 +9,9 @@ export * from "./sdk/utilities/stringUtils";
|
|
|
9
9
|
export * from "./sdk/utilities/utils";
|
|
10
10
|
// Generic Models for different possible modules for all platforms
|
|
11
11
|
export * from "./sdk/models/jdResource";
|
|
12
|
-
|
|
12
|
+
/////////////////
|
|
13
|
+
////Dashboard////
|
|
14
|
+
/////////////////
|
|
13
15
|
export * from "./sdk/models/dashboard/jdApplication";
|
|
14
16
|
export * from "./sdk/models/dashboard/jdCallbackNotification";
|
|
15
17
|
export * from "./sdk/models/dashboard/jdDashboardCombinations";
|
|
@@ -17,27 +19,29 @@ export * from "./sdk/models/dashboard/jdModule";
|
|
|
17
19
|
export * from "./sdk/models/dashboard/jdPlatform";
|
|
18
20
|
export * from "./sdk/models/dashboard/jdSmsVerification";
|
|
19
21
|
//User
|
|
20
|
-
export * from "./sdk/models/
|
|
21
|
-
export * from "./sdk/models/
|
|
22
|
-
export * from "./sdk/models/
|
|
23
|
-
export * from "./sdk/models/
|
|
24
|
-
export * from "./sdk/models/
|
|
25
|
-
export * from "./sdk/models/
|
|
26
|
-
export * from "./sdk/models/
|
|
27
|
-
export * from "./sdk/models/
|
|
28
|
-
//
|
|
29
|
-
export * from "./sdk/models/
|
|
30
|
-
|
|
31
|
-
|
|
22
|
+
export * from "./sdk/models/dashboard/user/jdAccessToken";
|
|
23
|
+
export * from "./sdk/models/dashboard/user/jdModerator";
|
|
24
|
+
export * from "./sdk/models/dashboard/user/jdPermission";
|
|
25
|
+
export * from "./sdk/models/dashboard/user/jdPermissionGroup";
|
|
26
|
+
export * from "./sdk/models/dashboard/user/jdSessionAccessToken";
|
|
27
|
+
export * from "./sdk/models/dashboard/user/jdSessionUser";
|
|
28
|
+
export * from "./sdk/models/dashboard/user/jdUser";
|
|
29
|
+
export * from "./sdk/models/dashboard/user/jdUserRole";
|
|
30
|
+
// KTV Shops and Radio Stations
|
|
31
|
+
export * from "./sdk/models/dashboard/jdKtvShop";
|
|
32
|
+
export * from "./sdk/models/dashboard/jdRadioStation";
|
|
33
|
+
//Geolocation
|
|
34
|
+
export * from "./sdk/models/dashboard/geolocation/jdCountry";
|
|
35
|
+
export * from "./sdk/models/dashboard/geolocation/jdState";
|
|
36
|
+
export * from "./sdk/models/dashboard/geolocation/jdCity";
|
|
37
|
+
export * from "./sdk/models/dashboard/geolocation/jdDistrict";
|
|
38
|
+
export * from "./sdk/models/dashboard/geolocation/jdGeolocationCombinations";
|
|
39
|
+
/////////////////
|
|
40
|
+
//// Modules ////
|
|
41
|
+
/////////////////
|
|
32
42
|
//Music
|
|
33
43
|
export * from "./sdk/models/modules/music/jdAlbum";
|
|
34
44
|
export * from "./sdk/models/modules/music/jdSong";
|
|
35
45
|
export * from "./sdk/models/modules/music/jdArtist";
|
|
36
46
|
export * from "./sdk/models/modules/music/jdComposer";
|
|
37
47
|
export * from "./sdk/models/modules/music/jdMusicCombinations";
|
|
38
|
-
//Geolocation
|
|
39
|
-
export * from "./sdk/models/modules/geolocation/jdCountry";
|
|
40
|
-
export * from "./sdk/models/modules/geolocation/jdState";
|
|
41
|
-
export * from "./sdk/models/modules/geolocation/jdCity";
|
|
42
|
-
export * from "./sdk/models/modules/geolocation/jdDistrict";
|
|
43
|
-
export * from "./sdk/models/modules/geolocation/jdGeolocationCombinations";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import JDResource, { ConnectorInfo, defaultSortParams, defaultUpdateFields, PaginateParams } from "../../jdResource";
|
|
2
|
+
export declare class JDCity extends JDResource {
|
|
3
|
+
stateId: string;
|
|
4
|
+
state: Record<string, any>;
|
|
5
|
+
get localisedStateTitle(): string;
|
|
6
|
+
get stateTitleEN(): string;
|
|
7
|
+
get stateTitleMM(): string;
|
|
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
|
+
getDistricts(stateId: string, params?: Partial<typeof defaultSortParams>): Promise<import("../../../jdConnector").SimpleResponse>;
|
|
16
|
+
getInfo(id: string): Promise<import("../../../jdConnector").SimpleResponse>;
|
|
17
|
+
updateFields(id: string, body?: Partial<typeof defaultUpdateFields>): Promise<import("../../../jdConnector").SimpleResponse>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=jdCity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jdCity.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/models/dashboard/geolocation/jdCity.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,EAAE,EAAC,aAAa,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAEnH,qBAAa,MAAO,SAAQ,UAAU;IACrC,OAAO,EAAC,MAAM,CAAM;IACpB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAM;IAEhC,IAAI,mBAAmB,IAAG,MAAM,CAAgF;IAChH,IAAI,YAAY,IAAG,MAAM,CAAuE;IAChG,IAAI,YAAY,IAAG,MAAM,CAAuE;gBAEpF,IAAI,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,EAAE,aAAa,GAAE,aAAyC;IAKpG,OAAO,CAAC,IAAI,EAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAM1B,WAAW,CAAC,MAAM,GAAE,OAAO,CAAC,OAAO,iBAAiB,CAAM;IAK1D,gBAAgB,CAAC,MAAM,GAAE,cAAc,GAAG;QAAE,IAAI,CAAC,EAAE,MAAM,GAAC,IAAI,CAAC;KAAO;IAMtE,YAAY,CAAE,KAAK,EAAE,MAAM,EAAE,MAAM,GAAE,OAAO,CAAC,OAAO,iBAAiB,CAAM;IAM3E,YAAY,CAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAE,OAAO,CAAC,OAAO,iBAAiB,CAAM;IAK7E,OAAO,CAAC,EAAE,EAAC,MAAM;IAIjB,YAAY,CAAC,EAAE,EAAC,MAAM,EAAE,IAAI,GAAE,OAAO,CAAC,OAAO,mBAAmB,CAAM;CAG5E"}
|
|
@@ -0,0 +1,64 @@
|
|
|
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 JDCity extends JDResource {
|
|
13
|
+
get localisedStateTitle() { return globalThis.language == 'en' ? this.stateTitleEN : this.stateTitleMM; }
|
|
14
|
+
get stateTitleEN() { return Utils.getString(Utils.getObject(this.state, 'title'), 'en'); }
|
|
15
|
+
get stateTitleMM() { return Utils.getString(Utils.getObject(this.state, 'title'), 'mm'); }
|
|
16
|
+
constructor(data = {}, connectorInfo = new ConnectorInfo("", "")) {
|
|
17
|
+
super(connectorInfo);
|
|
18
|
+
this.stateId = "";
|
|
19
|
+
this.state = {};
|
|
20
|
+
this.setData(data);
|
|
21
|
+
}
|
|
22
|
+
setData(data) {
|
|
23
|
+
super.setData(data);
|
|
24
|
+
this.stateId = Utils.getString(data, "state_id");
|
|
25
|
+
this.state = Utils.getObject(data, "state");
|
|
26
|
+
}
|
|
27
|
+
getContents() {
|
|
28
|
+
return __awaiter(this, arguments, void 0, function* (params = {}) {
|
|
29
|
+
const queryParams = this.getSortParameters(params);
|
|
30
|
+
return yield this.getRelative('/modules/geolocation/cities', queryParams);
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
paginateContents() {
|
|
34
|
+
return __awaiter(this, arguments, void 0, function* (params = {}) {
|
|
35
|
+
const queryParams = this.getSortParameters(params);
|
|
36
|
+
if (params.name)
|
|
37
|
+
queryParams['name'] = params.name;
|
|
38
|
+
return yield this.getRelative('/modules/geolocation/cities/paginate', queryParams);
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
findContents(title_1) {
|
|
42
|
+
return __awaiter(this, arguments, void 0, function* (title, params = {}) {
|
|
43
|
+
const queryParams = this.getSortParameters(params);
|
|
44
|
+
queryParams['title'] = title;
|
|
45
|
+
return yield this.getRelative('/modules/geolocation/cities/find', queryParams);
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
getDistricts(stateId_1) {
|
|
49
|
+
return __awaiter(this, arguments, void 0, function* (stateId, params = {}) {
|
|
50
|
+
const queryParams = this.getSortParameters(params);
|
|
51
|
+
return yield this.getRelative(`/modules/geolocation/cities/${stateId}/districts`, queryParams);
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
getInfo(id) {
|
|
55
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
56
|
+
return yield this.getRelative(`/modules/geolocation/cities/${id}`, {});
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
updateFields(id_1) {
|
|
60
|
+
return __awaiter(this, arguments, void 0, function* (id, body = {}) {
|
|
61
|
+
return yield this.postRelative(`/modules/geolocation/cities/${id}/update`, body);
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import JDResource, { ConnectorInfo, defaultSortParams, defaultUpdateFields, PaginateParams } from "../../jdResource";
|
|
2
|
+
export declare class JDCountry extends JDResource {
|
|
3
|
+
constructor(data?: Record<string, any>, connectorInfo?: ConnectorInfo);
|
|
4
|
+
setData(data: Record<string, any>): void;
|
|
5
|
+
getContents(params?: Partial<typeof defaultSortParams>): Promise<import("../../../jdConnector").SimpleResponse>;
|
|
6
|
+
paginateContents(params?: PaginateParams & {
|
|
7
|
+
name?: string | null;
|
|
8
|
+
}): Promise<import("../../../jdConnector").SimpleResponse>;
|
|
9
|
+
findContents(title: string, params?: Partial<typeof defaultSortParams>): Promise<import("../../../jdConnector").SimpleResponse>;
|
|
10
|
+
getStates(countryId: string, params?: Partial<typeof defaultSortParams>): Promise<import("../../../jdConnector").SimpleResponse>;
|
|
11
|
+
getInfo(id: string): Promise<import("../../../jdConnector").SimpleResponse>;
|
|
12
|
+
updateFields(id: string, body?: Partial<typeof defaultUpdateFields>): Promise<import("../../../jdConnector").SimpleResponse>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=jdCountry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jdCountry.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/models/dashboard/geolocation/jdCountry.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,EAAE,EAAC,aAAa,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAEnH,qBAAa,SAAU,SAAQ,UAAU;gBAC5B,IAAI,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,EAAE,aAAa,GAAE,aAAyC;IAKpG,OAAO,CAAC,IAAI,EAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAI1B,WAAW,CAAC,MAAM,GAAE,OAAO,CAAC,OAAO,iBAAiB,CAAM;IAK1D,gBAAgB,CAAC,MAAM,GAAE,cAAc,GAAG;QAAE,IAAI,CAAC,EAAE,MAAM,GAAC,IAAI,CAAC;KAAO;IAMtE,YAAY,CAAE,KAAK,EAAE,MAAM,EAAE,MAAM,GAAE,OAAO,CAAC,OAAO,iBAAiB,CAAM;IAM3E,SAAS,CAAE,SAAS,EAAE,MAAM,EAAE,MAAM,GAAE,OAAO,CAAC,OAAO,iBAAiB,CAAM;IAK5E,OAAO,CAAC,EAAE,EAAC,MAAM;IAIjB,YAAY,CAAC,EAAE,EAAC,MAAM,EAAE,IAAI,GAAE,OAAO,CAAC,OAAO,mBAAmB,CAAM;CAG5E"}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 JDCountry extends JDResource {
|
|
12
|
+
constructor(data = {}, connectorInfo = new ConnectorInfo("", "")) {
|
|
13
|
+
super(connectorInfo);
|
|
14
|
+
this.setData(data);
|
|
15
|
+
}
|
|
16
|
+
setData(data) {
|
|
17
|
+
super.setData(data);
|
|
18
|
+
}
|
|
19
|
+
getContents() {
|
|
20
|
+
return __awaiter(this, arguments, void 0, function* (params = {}) {
|
|
21
|
+
const queryParams = this.getSortParameters(params);
|
|
22
|
+
return yield this.getRelative('/modules/geolocation/countries', queryParams);
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
paginateContents() {
|
|
26
|
+
return __awaiter(this, arguments, void 0, function* (params = {}) {
|
|
27
|
+
const queryParams = this.getSortParameters(params);
|
|
28
|
+
if (params.name)
|
|
29
|
+
queryParams['name'] = params.name;
|
|
30
|
+
return yield this.getRelative('/modules/geolocation/countries/paginate', queryParams);
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
findContents(title_1) {
|
|
34
|
+
return __awaiter(this, arguments, void 0, function* (title, params = {}) {
|
|
35
|
+
const queryParams = this.getSortParameters(params);
|
|
36
|
+
queryParams['title'] = title;
|
|
37
|
+
return yield this.getRelative('/modules/geolocation/countries/find', queryParams);
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
getStates(countryId_1) {
|
|
41
|
+
return __awaiter(this, arguments, void 0, function* (countryId, params = {}) {
|
|
42
|
+
const queryParams = this.getSortParameters(params);
|
|
43
|
+
return yield this.getRelative(`/modules/geolocation/countries/${countryId}/states`, queryParams);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
getInfo(id) {
|
|
47
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
48
|
+
return yield this.getRelative(`/modules/geolocation/countries/${id}`, {});
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
updateFields(id_1) {
|
|
52
|
+
return __awaiter(this, arguments, void 0, function* (id, body = {}) {
|
|
53
|
+
return yield this.postRelative(`/modules/geolocation/countries/${id}/update`, body);
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import JDResource, { ConnectorInfo, defaultSortParams, defaultUpdateFields, PaginateParams } from "../../jdResource";
|
|
2
|
+
export declare class JDDistrict extends JDResource {
|
|
3
|
+
cityId: string;
|
|
4
|
+
city: Record<string, any>;
|
|
5
|
+
get localisedCityTitle(): string;
|
|
6
|
+
get cityTitleEN(): string;
|
|
7
|
+
get cityTitleMM(): string;
|
|
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=jdDistrict.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jdDistrict.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/models/dashboard/geolocation/jdDistrict.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,EAAE,EAAC,aAAa,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAEnH,qBAAa,UAAW,SAAQ,UAAU;IACzC,MAAM,EAAC,MAAM,CAAM;IACnB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAM;IAE/B,IAAI,kBAAkB,IAAG,MAAM,CAA8E;IAC7G,IAAI,WAAW,IAAG,MAAM,CAAsE;IAC9F,IAAI,WAAW,IAAG,MAAM,CAAsE;gBAElF,IAAI,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,EAAE,aAAa,GAAE,aAAyC;IAInG,OAAO,CAAC,IAAI,EAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAM3B,WAAW,CAAC,MAAM,GAAE,OAAO,CAAC,OAAO,iBAAiB,CAAM;IAK1D,gBAAgB,CAAC,MAAM,GAAE,cAAc,GAAG;QAAE,IAAI,CAAC,EAAE,MAAM,GAAC,IAAI,CAAC;KAAO;IAMtE,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,58 @@
|
|
|
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 JDDistrict extends JDResource {
|
|
13
|
+
get localisedCityTitle() { return globalThis.language == 'en' ? this.cityTitleEN : this.cityTitleMM; }
|
|
14
|
+
get cityTitleEN() { return Utils.getString(Utils.getObject(this.city, 'title'), 'en'); }
|
|
15
|
+
get cityTitleMM() { return Utils.getString(Utils.getObject(this.city, 'title'), 'mm'); }
|
|
16
|
+
constructor(data = {}, connectorInfo = new ConnectorInfo("", "")) {
|
|
17
|
+
super(connectorInfo);
|
|
18
|
+
this.cityId = "";
|
|
19
|
+
this.city = {};
|
|
20
|
+
this.setData(data);
|
|
21
|
+
}
|
|
22
|
+
setData(data) {
|
|
23
|
+
super.setData(data);
|
|
24
|
+
this.cityId = Utils.getString(data, "city_id");
|
|
25
|
+
this.city = Utils.getObject(data, "city");
|
|
26
|
+
}
|
|
27
|
+
getContents() {
|
|
28
|
+
return __awaiter(this, arguments, void 0, function* (params = {}) {
|
|
29
|
+
const queryParams = this.getSortParameters(params);
|
|
30
|
+
return yield this.getRelative('/modules/geolocation/districts', queryParams);
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
paginateContents() {
|
|
34
|
+
return __awaiter(this, arguments, void 0, function* (params = {}) {
|
|
35
|
+
const queryParams = this.getSortParameters(params);
|
|
36
|
+
if (params.name)
|
|
37
|
+
queryParams['name'] = params.name;
|
|
38
|
+
return yield this.getRelative('/modules/geolocation/districts/paginate', queryParams);
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
findContents(title_1) {
|
|
42
|
+
return __awaiter(this, arguments, void 0, function* (title, params = {}) {
|
|
43
|
+
const queryParams = this.getSortParameters(params);
|
|
44
|
+
queryParams['title'] = title;
|
|
45
|
+
return yield this.getRelative('/modules/geolocation/districts/find', queryParams);
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
getInfo(id) {
|
|
49
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
+
return yield this.getRelative(`/modules/geolocation/districts/${id}`, {});
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
updateFields(id_1) {
|
|
54
|
+
return __awaiter(this, arguments, void 0, function* (id, body = {}) {
|
|
55
|
+
return yield this.postRelative(`/modules/geolocation/districts/${id}/update`, body);
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import JDResource, { ConnectorInfo } from "../../jdResource";
|
|
2
|
+
export declare class JdGeolocationCombinations extends JDResource {
|
|
3
|
+
constructor(data?: Record<string, any>, connectorInfo?: ConnectorInfo);
|
|
4
|
+
getOverview(): Promise<import("../../../jdConnector").SimpleResponse>;
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=jdGeolocationCombinations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jdGeolocationCombinations.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/models/dashboard/geolocation/jdGeolocationCombinations.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,EAAE,EAAC,aAAa,EAAC,MAAM,kBAAkB,CAAC;AAE3D,qBAAa,yBAA0B,SAAQ,UAAU;gBAC5C,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 JdGeolocationCombinations 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/geolocation/combinations/overview', {});
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import JDResource, { ConnectorInfo, defaultSortParams, defaultUpdateFields, PaginateParams } from "../../jdResource";
|
|
2
|
+
export declare class JDState extends JDResource {
|
|
3
|
+
countryId: string;
|
|
4
|
+
country: Record<string, any>;
|
|
5
|
+
get localisedCountryTitle(): string;
|
|
6
|
+
get countryTitleEN(): string;
|
|
7
|
+
get countryTitleMM(): string;
|
|
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
|
+
getCities(countryId: string, params?: Partial<typeof defaultSortParams>): Promise<import("../../../jdConnector").SimpleResponse>;
|
|
16
|
+
getInfo(id: string): Promise<import("../../../jdConnector").SimpleResponse>;
|
|
17
|
+
updateFields(id: string, body?: Partial<typeof defaultUpdateFields>): Promise<import("../../../jdConnector").SimpleResponse>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=jdState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jdState.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/models/dashboard/geolocation/jdState.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,EAAE,EAAC,aAAa,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAEnH,qBAAa,OAAQ,SAAQ,UAAU;IACtC,SAAS,EAAC,MAAM,CAAM;IACtB,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAM;IAElC,IAAI,qBAAqB,IAAG,MAAM,CAAoF;IACtH,IAAI,cAAc,IAAG,MAAM,CAAyE;IACpG,IAAI,cAAc,IAAG,MAAM,CAAyE;gBAExF,IAAI,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,EAAE,aAAa,GAAE,aAAyC;IAKpG,OAAO,CAAC,IAAI,EAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAM1B,WAAW,CAAC,MAAM,GAAE,OAAO,CAAC,OAAO,iBAAiB,CAAM;IAK1D,gBAAgB,CAAC,MAAM,GAAE,cAAc,GAAG;QAAE,IAAI,CAAC,EAAE,MAAM,GAAC,IAAI,CAAC;KAAO;IAMtE,YAAY,CAAE,KAAK,EAAE,MAAM,EAAE,MAAM,GAAE,OAAO,CAAC,OAAO,iBAAiB,CAAM;IAM3E,SAAS,CAAE,SAAS,EAAE,MAAM,EAAE,MAAM,GAAE,OAAO,CAAC,OAAO,iBAAiB,CAAM;IAK5E,OAAO,CAAC,EAAE,EAAC,MAAM;IAIjB,YAAY,CAAC,EAAE,EAAC,MAAM,EAAE,IAAI,GAAE,OAAO,CAAC,OAAO,mBAAmB,CAAM;CAG5E"}
|
|
@@ -0,0 +1,64 @@
|
|
|
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 JDState extends JDResource {
|
|
13
|
+
get localisedCountryTitle() { return globalThis.language == 'en' ? this.countryTitleEN : this.countryTitleMM; }
|
|
14
|
+
get countryTitleEN() { return Utils.getString(Utils.getObject(this.country, 'title'), 'en'); }
|
|
15
|
+
get countryTitleMM() { return Utils.getString(Utils.getObject(this.country, 'title'), 'mm'); }
|
|
16
|
+
constructor(data = {}, connectorInfo = new ConnectorInfo("", "")) {
|
|
17
|
+
super(connectorInfo);
|
|
18
|
+
this.countryId = "";
|
|
19
|
+
this.country = {};
|
|
20
|
+
this.setData(data);
|
|
21
|
+
}
|
|
22
|
+
setData(data) {
|
|
23
|
+
super.setData(data);
|
|
24
|
+
this.countryId = Utils.getString(data, "country_id");
|
|
25
|
+
this.country = Utils.getObject(data, "country");
|
|
26
|
+
}
|
|
27
|
+
getContents() {
|
|
28
|
+
return __awaiter(this, arguments, void 0, function* (params = {}) {
|
|
29
|
+
const queryParams = this.getSortParameters(params);
|
|
30
|
+
return yield this.getRelative('/modules/geolocation/states', queryParams);
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
paginateContents() {
|
|
34
|
+
return __awaiter(this, arguments, void 0, function* (params = {}) {
|
|
35
|
+
const queryParams = this.getSortParameters(params);
|
|
36
|
+
if (params.name)
|
|
37
|
+
queryParams['name'] = params.name;
|
|
38
|
+
return yield this.getRelative('/modules/geolocation/states/paginate', queryParams);
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
findContents(title_1) {
|
|
42
|
+
return __awaiter(this, arguments, void 0, function* (title, params = {}) {
|
|
43
|
+
const queryParams = this.getSortParameters(params);
|
|
44
|
+
queryParams['title'] = title;
|
|
45
|
+
return yield this.getRelative('/modules/geolocation/states/find', queryParams);
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
getCities(countryId_1) {
|
|
49
|
+
return __awaiter(this, arguments, void 0, function* (countryId, params = {}) {
|
|
50
|
+
const queryParams = this.getSortParameters(params);
|
|
51
|
+
return yield this.getRelative(`/modules/geolocation/states/${countryId}/cities`, queryParams);
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
getInfo(id) {
|
|
55
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
56
|
+
return yield this.getRelative(`/modules/geolocation/states/${id}`, {});
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
updateFields(id_1) {
|
|
60
|
+
return __awaiter(this, arguments, void 0, function* (id, body = {}) {
|
|
61
|
+
return yield this.postRelative(`/modules/geolocation/states/${id}/update`, body);
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -16,7 +16,11 @@ export declare class JdCallbackNotification extends JDResource {
|
|
|
16
16
|
setData(data: Record<string, any>): void;
|
|
17
17
|
getContents(params?: Partial<typeof defaultSortParams>): Promise<import("../../jdConnector").SimpleResponse>;
|
|
18
18
|
paginateContents(params?: PaginateParams & {
|
|
19
|
-
|
|
19
|
+
msisdn?: string | null;
|
|
20
|
+
productCode?: string | null;
|
|
21
|
+
chargingType?: string | null;
|
|
22
|
+
fee?: string | null;
|
|
23
|
+
reason?: string | null;
|
|
20
24
|
}): Promise<import("../../jdConnector").SimpleResponse>;
|
|
21
25
|
findContents(title: string, params?: Partial<typeof defaultSortParams>): Promise<import("../../jdConnector").SimpleResponse>;
|
|
22
26
|
getInfo(id: string): Promise<import("../../jdConnector").SimpleResponse>;
|
|
@@ -1 +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;
|
|
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"}
|
|
@@ -44,32 +44,40 @@ export class JdCallbackNotification extends JDResource {
|
|
|
44
44
|
getContents() {
|
|
45
45
|
return __awaiter(this, arguments, void 0, function* (params = {}) {
|
|
46
46
|
const queryParams = this.getSortParameters(params);
|
|
47
|
-
return yield this.getRelative('/
|
|
47
|
+
return yield this.getRelative('/dashboard/callback_notifications', queryParams);
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
50
|
paginateContents() {
|
|
51
51
|
return __awaiter(this, arguments, void 0, function* (params = {}) {
|
|
52
52
|
const queryParams = this.getSortParameters(params);
|
|
53
|
-
if (params.
|
|
54
|
-
queryParams['
|
|
55
|
-
|
|
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);
|
|
56
64
|
});
|
|
57
65
|
}
|
|
58
66
|
findContents(title_1) {
|
|
59
67
|
return __awaiter(this, arguments, void 0, function* (title, params = {}) {
|
|
60
68
|
const queryParams = this.getSortParameters(params);
|
|
61
69
|
queryParams['title'] = title;
|
|
62
|
-
return yield this.getRelative('/
|
|
70
|
+
return yield this.getRelative('/dashboard/callback_notifications/find', queryParams);
|
|
63
71
|
});
|
|
64
72
|
}
|
|
65
73
|
getInfo(id) {
|
|
66
74
|
return __awaiter(this, void 0, void 0, function* () {
|
|
67
|
-
return yield this.getRelative(`/
|
|
75
|
+
return yield this.getRelative(`/dashboard/callback_notifications/${id}`, {});
|
|
68
76
|
});
|
|
69
77
|
}
|
|
70
78
|
updateFields(id_1) {
|
|
71
79
|
return __awaiter(this, arguments, void 0, function* (id, body = {}) {
|
|
72
|
-
return yield this.postRelative(`/
|
|
80
|
+
return yield this.postRelative(`/dashboard/callback_notifications/${id}/update`, body);
|
|
73
81
|
});
|
|
74
82
|
}
|
|
75
83
|
}
|
|
@@ -15,7 +15,7 @@ export class JdDashboardCombinations extends JDResource {
|
|
|
15
15
|
}
|
|
16
16
|
getOverview() {
|
|
17
17
|
return __awaiter(this, void 0, void 0, function* () {
|
|
18
|
-
return yield this.getRelative('/
|
|
18
|
+
return yield this.getRelative('/dashboard/combinations/overview', {});
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
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"}
|