jd_platform_sdk 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +21 -13
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +29 -18
- 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/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 +29 -0
- package/dist/sdk/models/dashboard/jdCallbackNotification.d.ts.map +1 -0
- package/dist/sdk/models/dashboard/jdCallbackNotification.js +83 -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/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.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/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.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/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/jdApplication.js +1 -1
- package/dist/sdk/models/jdResource.d.ts.map +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/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
|
@@ -8,22 +8,30 @@ 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/
|
|
16
|
-
export * from "./sdk/models/
|
|
17
|
-
export * from "./sdk/models/
|
|
18
|
-
export * from "./sdk/models/
|
|
19
|
-
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/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";
|
|
20
32
|
export * from "./sdk/models/modules/music/jdAlbum";
|
|
21
33
|
export * from "./sdk/models/modules/music/jdSong";
|
|
22
34
|
export * from "./sdk/models/modules/music/jdArtist";
|
|
23
35
|
export * from "./sdk/models/modules/music/jdComposer";
|
|
24
36
|
export * from "./sdk/models/modules/music/jdMusicCombinations";
|
|
25
|
-
export * from "./sdk/models/modules/geolocation/jdCountry";
|
|
26
|
-
export * from "./sdk/models/modules/geolocation/jdState";
|
|
27
|
-
export * from "./sdk/models/modules/geolocation/jdCity";
|
|
28
|
-
export * from "./sdk/models/modules/geolocation/jdDistrict";
|
|
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;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
|
@@ -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,27 +9,39 @@ 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
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
/////////////////
|
|
13
|
+
////Dashboard////
|
|
14
|
+
/////////////////
|
|
15
|
+
export * from "./sdk/models/dashboard/jdApplication";
|
|
16
|
+
export * from "./sdk/models/dashboard/jdCallbackNotification";
|
|
17
|
+
export * from "./sdk/models/dashboard/jdDashboardCombinations";
|
|
18
|
+
export * from "./sdk/models/dashboard/jdModule";
|
|
19
|
+
export * from "./sdk/models/dashboard/jdPlatform";
|
|
20
|
+
export * from "./sdk/models/dashboard/jdSmsVerification";
|
|
16
21
|
//User
|
|
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
|
-
|
|
23
|
-
export * from "./sdk/models/
|
|
24
|
-
|
|
25
|
-
|
|
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
|
+
/////////////////
|
|
26
42
|
//Music
|
|
27
43
|
export * from "./sdk/models/modules/music/jdAlbum";
|
|
28
44
|
export * from "./sdk/models/modules/music/jdSong";
|
|
29
45
|
export * from "./sdk/models/modules/music/jdArtist";
|
|
30
46
|
export * from "./sdk/models/modules/music/jdComposer";
|
|
31
47
|
export * from "./sdk/models/modules/music/jdMusicCombinations";
|
|
32
|
-
//Geolocation
|
|
33
|
-
export * from "./sdk/models/modules/geolocation/jdCountry";
|
|
34
|
-
export * from "./sdk/models/modules/geolocation/jdState";
|
|
35
|
-
export * from "./sdk/models/modules/geolocation/jdCity";
|
|
36
|
-
export * from "./sdk/models/modules/geolocation/jdDistrict";
|
|
@@ -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
|
+
}
|
|
@@ -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
|
+
}
|