jd_platform_sdk 0.3.8 → 0.4.0

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 CHANGED
@@ -28,10 +28,14 @@ export * from "./sdk/models/dashboard/geolocation/jdCity";
28
28
  export * from "./sdk/models/dashboard/geolocation/jdDistrict";
29
29
  export * from "./sdk/models/dashboard/geolocation/jdGeolocationCombinations";
30
30
  export * from "./sdk/models/modules/auth/jdAuth";
31
+ export * from "./sdk/models/modules/basic/jdBackgroundErrorLog";
32
+ export * from "./sdk/models/modules/basic/jdCompany";
31
33
  export * from "./sdk/models/modules/basic/jdConfiguration";
32
34
  export * from "./sdk/models/modules/basic/jdInformation";
33
35
  export * from "./sdk/models/modules/basic/jdLanguage";
34
36
  export * from "./sdk/models/modules/basic/jdModerator";
37
+ export * from "./sdk/models/modules/basic/jdReason";
38
+ export * from "./sdk/models/modules/basic/jdReasonGroup";
35
39
  export * from "./sdk/models/modules/music/jdAlbum";
36
40
  export * from "./sdk/models/modules/music/jdSong";
37
41
  export * from "./sdk/models/modules/music/jdArtist";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,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,CA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AAC;AAC/D,cAAc,iCAAiC,CAAC;AAChD,cAAc,mCAAmC,CAAC;AAClD,cAAc,0CAA0C,CAAC;AAGzD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,0CAA0C,CAAC;AACzD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,kDAAkD,CAAC;AACjE,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,kCAAkC,CAAC;AAGjD,cAAc,iDAAiD,CAAC;AAChE,cAAc,sCAAsC,CAAC;AACrD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,0CAA0C,CAAC;AACzD,cAAc,uCAAuC,CAAC;AACtD,cAAc,wCAAwC,CAAC;AACvD,cAAc,qCAAqC,CAAC;AACpD,cAAc,0CAA0C,CAAC;AAGzD,cAAc,oCAAoC,CAAC;AACnD,cAAc,mCAAmC,CAAC;AAClD,cAAc,qCAAqC,CAAC;AACpD,cAAc,uCAAuC,CAAC;AACtD,cAAc,gDAAgD,CAAC;AAC/D,cAAc,2CAA2C,CAAC;AAG1D,cAAc,kCAAkC,CAAC;AAGjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,yCAAyC,CAAC;AACxD,cAAc,0CAA0C,CAAC;AACzD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,mDAAmD,CAAC;AAClE,cAAc,2CAA2C,CAAC"}
package/dist/index.js CHANGED
@@ -40,10 +40,14 @@ export * from "./sdk/models/dashboard/geolocation/jdGeolocationCombinations";
40
40
  //Auth
41
41
  export * from "./sdk/models/modules/auth/jdAuth";
42
42
  //Basic
43
+ export * from "./sdk/models/modules/basic/jdBackgroundErrorLog";
44
+ export * from "./sdk/models/modules/basic/jdCompany";
43
45
  export * from "./sdk/models/modules/basic/jdConfiguration";
44
46
  export * from "./sdk/models/modules/basic/jdInformation";
45
47
  export * from "./sdk/models/modules/basic/jdLanguage";
46
48
  export * from "./sdk/models/modules/basic/jdModerator";
49
+ export * from "./sdk/models/modules/basic/jdReason";
50
+ export * from "./sdk/models/modules/basic/jdReasonGroup";
47
51
  //Music
48
52
  export * from "./sdk/models/modules/music/jdAlbum";
49
53
  export * from "./sdk/models/modules/music/jdSong";
@@ -44,6 +44,8 @@ export declare class JdResource {
44
44
  myId: string;
45
45
  slug: string;
46
46
  index: number;
47
+ userId: string;
48
+ user: Record<string, any>;
47
49
  title: Record<string, any>;
48
50
  description: Record<string, any>;
49
51
  images: Record<string, any>;
@@ -1 +1 @@
1
- {"version":3,"file":"jdResource.d.ts","sourceRoot":"","sources":["../../../src/sdk/models/jdResource.ts"],"names":[],"mappings":"AAGA,OAAO,EAAc,cAAc,EAAC,MAAM,gBAAgB,CAAC;AAG3D,eAAO,MAAM,qBAAqB;;;;;;;CAOjC,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;CAM7B,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;CAG/B,CAAC;AAEF,MAAM,WAAW,YAAY;IAC5B,SAAS,CAAC,EAAE,OAAO,GAAC,IAAI,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,GAAC,IAAI,CAAC;CACnB;AAED,MAAM,WAAW,cAAc;IAC9B,QAAQ,CAAC,EAAE,MAAM,GAAC,SAAS,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,GAAC,SAAS,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,GAAC,SAAS,CAAC;IAC/B,WAAW,CAAC,EAAE,MAAM,GAAC,SAAS,CAAC;IAC/B,SAAS,CAAC,EAAE,OAAO,GAAC,SAAS,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,GAAC,SAAS,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,GAAC,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AAE,MAAM,EAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,eAAe,UAAO,EAAE,aAAa,UAAQ,EAAE,iBAAiB,UAAQ,EAAE,eAAe,SAAK;IAO1J,YAAY,CAAC,WAAW,EAAC,MAAM,EAAE,IAAI,EAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAG,eAAe,UAAO,EAAE,iBAAiB,UAAQ,EAAE,eAAe,SAAK;IAQnI,SAAS,CAAC,SAAS,EAAC,MAAM,EAAE,MAAM,EAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAG,eAAe,UAAO,EAAE,aAAa,UAAQ,EAAE,iBAAiB,UAAQ,EAAE,eAAe,SAAK;IAKvJ,UAAU,CAAC,SAAS,EAAC,MAAM,EAAE,IAAI,EAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,eAAe,UAAO,EAAE,iBAAiB,UAAQ,EAAI,eAAe,SAAK;IAOhI,SAAS,CAAC,QAAQ,EAAC,cAAc;IAejC,UAAU,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAC,GAAG;IA0BvD,WAAW,CAAC,EAAE,EAAC,MAAM,EAAE,MAAM,EAAC,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG;CA4BpE"}
@@ -36,6 +36,8 @@ export class JdResource {
36
36
  myId = '';
37
37
  slug = '';
38
38
  index = 0;
39
+ userId = '';
40
+ user = {};
39
41
  title = {};
40
42
  description = {};
41
43
  images = {};
@@ -75,6 +77,8 @@ export class JdResource {
75
77
  this.myId = Utils.getString(data, "_id");
76
78
  this.slug = Utils.getString(data, "slug");
77
79
  this.index = Utils.getInteger(data, "index");
80
+ this.userId = Utils.getString(data, "user_id");
81
+ this.user = Utils.getObject(data, 'user');
78
82
  this.title = Utils.getObject(data, 'title');
79
83
  this.description = Utils.getObject(data, 'description');
80
84
  this.images = Utils.getObject(data, 'images');
@@ -0,0 +1,18 @@
1
+ import { JdResource, ConnectorInfo, defaultSortParams, defaultUpdateFields, PaginateParams } from "../../jdResource";
2
+ export declare class JdBackgroundErrorLog extends JdResource {
3
+ type: string;
4
+ message: string;
5
+ constructor(data?: Record<string, any>, connectorInfo?: ConnectorInfo);
6
+ setData(data: Record<string, any>): void;
7
+ getContents(params?: Partial<typeof defaultSortParams>): Promise<import("../../../jdConnector").SimpleResponse>;
8
+ paginateContents(params?: PaginateParams & {
9
+ name?: string | null;
10
+ email?: string | null;
11
+ }): Promise<import("../../../jdConnector").SimpleResponse>;
12
+ findContents(name: string, params?: Partial<typeof defaultSortParams>): Promise<import("../../../jdConnector").SimpleResponse>;
13
+ getInfo(id: string): Promise<import("../../../jdConnector").SimpleResponse>;
14
+ createNew(body?: Partial<typeof defaultUpdateFields>): Promise<import("../../../jdConnector").SimpleResponse>;
15
+ updateFields(id: string, body?: Partial<typeof defaultUpdateFields>): Promise<import("../../../jdConnector").SimpleResponse>;
16
+ delete(id: string): Promise<import("../../../jdConnector").SimpleResponse>;
17
+ }
18
+ //# sourceMappingURL=jdBackgroundErrorLog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jdBackgroundErrorLog.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/models/modules/basic/jdBackgroundErrorLog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,aAAa,EAAyB,iBAAiB,EAAE,mBAAmB,EAAE,cAAc,EAAe,MAAM,kBAAkB,CAAC;AAGxJ,qBAAa,oBAAqB,SAAQ,UAAU;IACnD,IAAI,EAAC,MAAM,CAAM;IACjB,OAAO,EAAC,MAAM,CAAM;gBAER,IAAI,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,EAAE,aAAa,GAAE,aAA6C;IAKxG,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;QAAC,KAAK,CAAC,EAAE,MAAM,GAAC,IAAI,CAAC;KAAO;IAO3F,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,GAAE,OAAO,CAAC,OAAO,iBAAiB,CAAM;IAMzE,OAAO,CAAC,EAAE,EAAC,MAAM;IAIjB,SAAS,CAAC,IAAI,GAAE,OAAO,CAAC,OAAO,mBAAmB,CAAM;IAIxD,YAAY,CAAC,EAAE,EAAC,MAAM,EAAE,IAAI,GAAE,OAAO,CAAC,OAAO,mBAAmB,CAAM;IAItE,MAAM,CAAC,EAAE,EAAC,MAAM;CAGtB"}
@@ -0,0 +1,44 @@
1
+ import { JdResource, ConnectorInfo } from "../../jdResource";
2
+ import { Utils } from "../../../utilities/utils";
3
+ export class JdBackgroundErrorLog extends JdResource {
4
+ type = "";
5
+ message = "";
6
+ constructor(data = {}, connectorInfo = new ConnectorInfo("", "", "")) {
7
+ super(connectorInfo);
8
+ this.setData(data);
9
+ }
10
+ setData(data) {
11
+ super.setData(data);
12
+ this.type = Utils.getString(data, "type");
13
+ this.message = Utils.getString(data, "message");
14
+ }
15
+ async getContents(params = {}) {
16
+ const queryParams = this.getSortParameters(params);
17
+ return await this.getRelative('/modules/basic/background_error_logs', queryParams);
18
+ }
19
+ async paginateContents(params = {}) {
20
+ const queryParams = this.getSortParameters(params);
21
+ if (params.name)
22
+ queryParams['name'] = params.name;
23
+ if (params.email)
24
+ queryParams['email'] = params.email;
25
+ return await this.getRelative('/modules/basic/background_error_logs/paginate', params);
26
+ }
27
+ async findContents(name, params = {}) {
28
+ const queryParams = this.getSortParameters(params);
29
+ queryParams['name'] = name;
30
+ return await this.getRelative('/modules/basic/background_error_logs/find', queryParams);
31
+ }
32
+ async getInfo(id) {
33
+ return await this.getRelative(`/modules/basic/background_error_logs/${id}`, {});
34
+ }
35
+ async createNew(body = {}) {
36
+ return await this.postRelative(`/modules/basic/background_error_logs/create`, body);
37
+ }
38
+ async updateFields(id, body = {}) {
39
+ return await this.postRelative(`/modules/basic/background_error_logs/${id}/update`, body);
40
+ }
41
+ async delete(id) {
42
+ return await this.postRelative(`/modules/basic/background_error_logs/${id}/delete`, {});
43
+ }
44
+ }
@@ -0,0 +1,25 @@
1
+ import { JdResource, ConnectorInfo, defaultSortParams, defaultUpdateFields, PaginateParams } from "../../jdResource";
2
+ export declare class JdCompany extends JdResource {
3
+ shortCode: string;
4
+ website: string;
5
+ addressPrefix: string;
6
+ address02: string;
7
+ address03: string;
8
+ headerTemplateType: string;
9
+ address: Record<string, any>;
10
+ phones: Record<string, any>;
11
+ get fullAddress(): string;
12
+ constructor(data?: Record<string, any>, connectorInfo?: ConnectorInfo);
13
+ setData(data: Record<string, any>): void;
14
+ getContents(params?: Partial<typeof defaultSortParams>): Promise<import("../../../jdConnector").SimpleResponse>;
15
+ paginateContents(params?: PaginateParams & {
16
+ name?: string | null;
17
+ email?: string | null;
18
+ }): Promise<import("../../../jdConnector").SimpleResponse>;
19
+ findContents(name: string, params?: Partial<typeof defaultSortParams>): Promise<import("../../../jdConnector").SimpleResponse>;
20
+ getInfo(id: string): Promise<import("../../../jdConnector").SimpleResponse>;
21
+ createNew(body?: Partial<typeof defaultUpdateFields>): Promise<import("../../../jdConnector").SimpleResponse>;
22
+ updateFields(id: string, body?: Partial<typeof defaultUpdateFields>): Promise<import("../../../jdConnector").SimpleResponse>;
23
+ delete(id: string): Promise<import("../../../jdConnector").SimpleResponse>;
24
+ }
25
+ //# sourceMappingURL=jdCompany.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jdCompany.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/models/modules/basic/jdCompany.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,aAAa,EAAyB,iBAAiB,EAAE,mBAAmB,EAAE,cAAc,EAAe,MAAM,kBAAkB,CAAC;AAGxJ,qBAAa,SAAU,SAAQ,UAAU;IACxC,SAAS,SAAM;IAAC,OAAO,SAAM;IAAC,aAAa,SAAM;IAAC,SAAS,SAAM;IAAC,SAAS,SAAM;IAAC,kBAAkB,SAAM;IAC1G,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAM;IAClC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAM;IACjC,IAAI,WAAW,IAAG,MAAM,CAAoM;gBAGhN,IAAI,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,EAAE,aAAa,GAAE,aAA6C;IAKxG,OAAO,CAAC,IAAI,EAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAa1B,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,KAAK,CAAC,EAAE,MAAM,GAAC,IAAI,CAAC;KAAO;IAO3F,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,GAAE,OAAO,CAAC,OAAO,iBAAiB,CAAM;IAMzE,OAAO,CAAC,EAAE,EAAC,MAAM;IAIjB,SAAS,CAAC,IAAI,GAAE,OAAO,CAAC,OAAO,mBAAmB,CAAM;IAIxD,YAAY,CAAC,EAAE,EAAC,MAAM,EAAE,IAAI,GAAE,OAAO,CAAC,OAAO,mBAAmB,CAAM;IAItE,MAAM,CAAC,EAAE,EAAC,MAAM;CAGtB"}
@@ -0,0 +1,57 @@
1
+ import { JdResource, ConnectorInfo } from "../../jdResource";
2
+ import { Utils } from "../../../utilities/utils";
3
+ export class JdCompany extends JdResource {
4
+ shortCode = "";
5
+ website = "";
6
+ addressPrefix = "";
7
+ address02 = "";
8
+ address03 = "";
9
+ headerTemplateType = "";
10
+ address = {};
11
+ phones = {};
12
+ get fullAddress() { return `${this.addressPrefix != "" ? this.addressPrefix + ": " : ""}${this.address?.street ?? ""}, ${this.address?.street_02 ?? ""}, ${this.address?.zip ?? ""}, ${this.address?.city ?? ""}`; }
13
+ constructor(data = {}, connectorInfo = new ConnectorInfo("", "", "")) {
14
+ super(connectorInfo);
15
+ this.setData(data);
16
+ }
17
+ setData(data) {
18
+ super.setData(data);
19
+ this.shortCode = Utils.getString(data, "short_code");
20
+ this.website = Utils.getString(data, "website");
21
+ this.addressPrefix = Utils.getString(data, "address_prefix");
22
+ this.address02 = Utils.getString(data, "address_02");
23
+ this.address03 = Utils.getString(data, "address_03");
24
+ this.headerTemplateType = Utils.getString(data, "header_template_type");
25
+ this.address = Utils.getObject(data, "address");
26
+ this.phones = Utils.getObject(data, "phones");
27
+ }
28
+ async getContents(params = {}) {
29
+ const queryParams = this.getSortParameters(params);
30
+ return await this.getRelative('/modules/basic/companies', queryParams);
31
+ }
32
+ async paginateContents(params = {}) {
33
+ const queryParams = this.getSortParameters(params);
34
+ if (params.name)
35
+ queryParams['name'] = params.name;
36
+ if (params.email)
37
+ queryParams['email'] = params.email;
38
+ return await this.getRelative('/modules/basic/companies/paginate', params);
39
+ }
40
+ async findContents(name, params = {}) {
41
+ const queryParams = this.getSortParameters(params);
42
+ queryParams['name'] = name;
43
+ return await this.getRelative('/modules/basic/companies/find', queryParams);
44
+ }
45
+ async getInfo(id) {
46
+ return await this.getRelative(`/modules/basic/companies/${id}`, {});
47
+ }
48
+ async createNew(body = {}) {
49
+ return await this.postRelative(`/modules/basic/companies/create`, body);
50
+ }
51
+ async updateFields(id, body = {}) {
52
+ return await this.postRelative(`/modules/basic/companies/${id}/update`, body);
53
+ }
54
+ async delete(id) {
55
+ return await this.postRelative(`/modules/basic/companies/${id}/delete`, {});
56
+ }
57
+ }
@@ -0,0 +1,18 @@
1
+ import { JdResource, ConnectorInfo, defaultSortParams, defaultUpdateFields, PaginateParams } from "../../jdResource";
2
+ export declare class JdReason extends JdResource {
3
+ reasonGroupId: string;
4
+ reasonGroup: Record<string, any>;
5
+ constructor(data?: Record<string, any>, connectorInfo?: ConnectorInfo);
6
+ setData(data: Record<string, any>): void;
7
+ getContents(params?: Partial<typeof defaultSortParams>): Promise<import("../../../jdConnector").SimpleResponse>;
8
+ paginateContents(params?: PaginateParams & {
9
+ name?: string | null;
10
+ email?: string | null;
11
+ }): Promise<import("../../../jdConnector").SimpleResponse>;
12
+ findContents(name: string, params?: Partial<typeof defaultSortParams>): Promise<import("../../../jdConnector").SimpleResponse>;
13
+ getInfo(id: string): Promise<import("../../../jdConnector").SimpleResponse>;
14
+ createNew(body?: Partial<typeof defaultUpdateFields>): Promise<import("../../../jdConnector").SimpleResponse>;
15
+ updateFields(id: string, body?: Partial<typeof defaultUpdateFields>): Promise<import("../../../jdConnector").SimpleResponse>;
16
+ delete(id: string): Promise<import("../../../jdConnector").SimpleResponse>;
17
+ }
18
+ //# sourceMappingURL=jdReason.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jdReason.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/models/modules/basic/jdReason.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,aAAa,EAAyB,iBAAiB,EAAE,mBAAmB,EAAE,cAAc,EAAe,MAAM,kBAAkB,CAAC;AAGxJ,qBAAa,QAAS,SAAQ,UAAU;IACvC,aAAa,EAAC,MAAM,CAAM;IAC1B,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAM;gBAE1B,IAAI,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,EAAE,aAAa,GAAE,aAA6C;IAKxG,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;QAAC,KAAK,CAAC,EAAE,MAAM,GAAC,IAAI,CAAC;KAAO;IAO3F,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,GAAE,OAAO,CAAC,OAAO,iBAAiB,CAAM;IAMzE,OAAO,CAAC,EAAE,EAAC,MAAM;IAIjB,SAAS,CAAC,IAAI,GAAE,OAAO,CAAC,OAAO,mBAAmB,CAAM;IAIxD,YAAY,CAAC,EAAE,EAAC,MAAM,EAAE,IAAI,GAAE,OAAO,CAAC,OAAO,mBAAmB,CAAM;IAItE,MAAM,CAAC,EAAE,EAAC,MAAM;CAGtB"}
@@ -0,0 +1,44 @@
1
+ import { JdResource, ConnectorInfo } from "../../jdResource";
2
+ import { Utils } from "../../../utilities/utils";
3
+ export class JdReason extends JdResource {
4
+ reasonGroupId = "";
5
+ reasonGroup = {};
6
+ constructor(data = {}, connectorInfo = new ConnectorInfo("", "", "")) {
7
+ super(connectorInfo);
8
+ this.setData(data);
9
+ }
10
+ setData(data) {
11
+ super.setData(data);
12
+ this.reasonGroupId = Utils.getString(data, "reason_group_id");
13
+ this.reasonGroup = Utils.getObject(data, "reason_group");
14
+ }
15
+ async getContents(params = {}) {
16
+ const queryParams = this.getSortParameters(params);
17
+ return await this.getRelative('/modules/basic/reasons', queryParams);
18
+ }
19
+ async paginateContents(params = {}) {
20
+ const queryParams = this.getSortParameters(params);
21
+ if (params.name)
22
+ queryParams['name'] = params.name;
23
+ if (params.email)
24
+ queryParams['email'] = params.email;
25
+ return await this.getRelative('/modules/basic/reasons/paginate', params);
26
+ }
27
+ async findContents(name, params = {}) {
28
+ const queryParams = this.getSortParameters(params);
29
+ queryParams['name'] = name;
30
+ return await this.getRelative('/modules/basic/reasons/find', queryParams);
31
+ }
32
+ async getInfo(id) {
33
+ return await this.getRelative(`/modules/basic/reasons/${id}`, {});
34
+ }
35
+ async createNew(body = {}) {
36
+ return await this.postRelative(`/modules/basic/reasons/create`, body);
37
+ }
38
+ async updateFields(id, body = {}) {
39
+ return await this.postRelative(`/modules/basic/reasons/${id}/update`, body);
40
+ }
41
+ async delete(id) {
42
+ return await this.postRelative(`/modules/basic/reasons/${id}/delete`, {});
43
+ }
44
+ }
@@ -0,0 +1,18 @@
1
+ import { JdResource, ConnectorInfo, defaultSortParams, defaultUpdateFields, PaginateParams } from "../../jdResource";
2
+ export declare class JdReasonGroup extends JdResource {
3
+ reasonGroupId: string;
4
+ reasonGroup: Record<string, any>;
5
+ constructor(data?: Record<string, any>, connectorInfo?: ConnectorInfo);
6
+ setData(data: Record<string, any>): void;
7
+ getContents(params?: Partial<typeof defaultSortParams>): Promise<import("../../../jdConnector").SimpleResponse>;
8
+ paginateContents(params?: PaginateParams & {
9
+ name?: string | null;
10
+ email?: string | null;
11
+ }): Promise<import("../../../jdConnector").SimpleResponse>;
12
+ findContents(name: string, params?: Partial<typeof defaultSortParams>): Promise<import("../../../jdConnector").SimpleResponse>;
13
+ getInfo(id: string): Promise<import("../../../jdConnector").SimpleResponse>;
14
+ createNew(body?: Partial<typeof defaultUpdateFields>): Promise<import("../../../jdConnector").SimpleResponse>;
15
+ updateFields(id: string, body?: Partial<typeof defaultUpdateFields>): Promise<import("../../../jdConnector").SimpleResponse>;
16
+ delete(id: string): Promise<import("../../../jdConnector").SimpleResponse>;
17
+ }
18
+ //# sourceMappingURL=jdReasonGroup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jdReasonGroup.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/models/modules/basic/jdReasonGroup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,aAAa,EAAyB,iBAAiB,EAAE,mBAAmB,EAAE,cAAc,EAAe,MAAM,kBAAkB,CAAC;AAGxJ,qBAAa,aAAc,SAAQ,UAAU;IAC5C,aAAa,EAAC,MAAM,CAAM;IAC1B,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAM;gBAE1B,IAAI,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,EAAE,aAAa,GAAE,aAA6C;IAKxG,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;QAAC,KAAK,CAAC,EAAE,MAAM,GAAC,IAAI,CAAC;KAAO;IAO3F,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,GAAE,OAAO,CAAC,OAAO,iBAAiB,CAAM;IAMzE,OAAO,CAAC,EAAE,EAAC,MAAM;IAIjB,SAAS,CAAC,IAAI,GAAE,OAAO,CAAC,OAAO,mBAAmB,CAAM;IAIxD,YAAY,CAAC,EAAE,EAAC,MAAM,EAAE,IAAI,GAAE,OAAO,CAAC,OAAO,mBAAmB,CAAM;IAItE,MAAM,CAAC,EAAE,EAAC,MAAM;CAGtB"}
@@ -0,0 +1,44 @@
1
+ import { JdResource, ConnectorInfo } from "../../jdResource";
2
+ import { Utils } from "../../../utilities/utils";
3
+ export class JdReasonGroup extends JdResource {
4
+ reasonGroupId = "";
5
+ reasonGroup = {};
6
+ constructor(data = {}, connectorInfo = new ConnectorInfo("", "", "")) {
7
+ super(connectorInfo);
8
+ this.setData(data);
9
+ }
10
+ setData(data) {
11
+ super.setData(data);
12
+ this.reasonGroupId = Utils.getString(data, "reason_group_id");
13
+ this.reasonGroup = Utils.getObject(data, "reason_group");
14
+ }
15
+ async getContents(params = {}) {
16
+ const queryParams = this.getSortParameters(params);
17
+ return await this.getRelative('/modules/basic/reasons', queryParams);
18
+ }
19
+ async paginateContents(params = {}) {
20
+ const queryParams = this.getSortParameters(params);
21
+ if (params.name)
22
+ queryParams['name'] = params.name;
23
+ if (params.email)
24
+ queryParams['email'] = params.email;
25
+ return await this.getRelative('/modules/basic/reasons/paginate', params);
26
+ }
27
+ async findContents(name, params = {}) {
28
+ const queryParams = this.getSortParameters(params);
29
+ queryParams['name'] = name;
30
+ return await this.getRelative('/modules/basic/reasons/find', queryParams);
31
+ }
32
+ async getInfo(id) {
33
+ return await this.getRelative(`/modules/basic/reasons/${id}`, {});
34
+ }
35
+ async createNew(body = {}) {
36
+ return await this.postRelative(`/modules/basic/reasons/create`, body);
37
+ }
38
+ async updateFields(id, body = {}) {
39
+ return await this.postRelative(`/modules/basic/reasons/${id}/update`, body);
40
+ }
41
+ async delete(id) {
42
+ return await this.postRelative(`/modules/basic/reasons/${id}/delete`, {});
43
+ }
44
+ }
@@ -1,5 +1,24 @@
1
1
  import { JdResource, ConnectorInfo, defaultSortParams, defaultUpdateFields, PaginateParams } from "../../jdResource";
2
2
  export declare class JdPlayer extends JdResource {
3
+ userId: string;
4
+ fbId: string;
5
+ googleId: string;
6
+ oneSignalId: string;
7
+ name: string;
8
+ nickname: string;
9
+ pin: string;
10
+ role: string;
11
+ email: string;
12
+ phone: string;
13
+ gender: string;
14
+ statusMessage: string;
15
+ platform: string;
16
+ credits: number;
17
+ gems: number;
18
+ isBanned: boolean;
19
+ bannedReason: string;
20
+ customData: Record<string, any>;
21
+ user: Record<string, any>;
3
22
  constructor(data?: Record<string, any>, connectorInfo?: ConnectorInfo);
4
23
  setData(data: Record<string, any>): void;
5
24
  getContents(params?: Partial<typeof defaultSortParams>): Promise<import("../../../jdConnector").SimpleResponse>;
@@ -1 +1 @@
1
- {"version":3,"file":"jdPlayer.d.ts","sourceRoot":"","sources":["../../../../../src/sdk/models/modules/player/jdPlayer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,aAAa,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,cAAc,EAAC,MAAM,kBAAkB,CAAC;AACnH,qBAAa,QAAS,SAAQ,UAAU;gBAC3B,IAAI,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,EAAE,aAAa,GAAE,aAA6C;IAIxG,OAAO,CAAC,IAAI,EAAC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AM,CAAM;IACrB,OAAO,EAAC,MAAM,CAAK;IACnB,IAAI,EAAC,MAAM,CAAK;IAChB,QAAQ,EAAC,OAAO,CAAS;IACzB,YAAY,EAAC,MAAM,CAAM;IACzB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAM;IACrC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAM;gBAEnB,IAAI,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,EAAE,aAAa,GAAE,aAA6C;IAIxG,OAAO,CAAC,IAAI,EAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IAuB1B,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,KAAK,CAAC,EAAE,MAAM,GAAC,IAAI,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,GAAC,IAAI,CAAC;QAAC,eAAe,CAAC,EAAE,MAAM,GAAC,IAAI,CAAA;KAAO;IAS9I,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;IAItE,MAAM,CAAC,EAAE,EAAC,MAAM;CAGtB"}
@@ -1,11 +1,50 @@
1
1
  import { JdResource, ConnectorInfo } from "../../jdResource";
2
+ import { Utils } from "../../../utilities/utils";
2
3
  export class JdPlayer extends JdResource {
4
+ userId = "";
5
+ fbId = "";
6
+ googleId = "";
7
+ oneSignalId = "";
8
+ name = "";
9
+ nickname = "";
10
+ pin = "";
11
+ role = "";
12
+ email = "";
13
+ phone = "";
14
+ gender = "";
15
+ statusMessage = "";
16
+ platform = "";
17
+ credits = 0;
18
+ gems = 0;
19
+ isBanned = false;
20
+ bannedReason = "";
21
+ customData = {};
22
+ user = {};
3
23
  constructor(data = {}, connectorInfo = new ConnectorInfo("", "", "")) {
4
24
  super(connectorInfo);
5
25
  this.setData(data);
6
26
  }
7
27
  setData(data) {
8
28
  super.setData(data);
29
+ this.userId = Utils.getString(data, "user_id");
30
+ this.fbId = Utils.getString(data, "fb_id");
31
+ this.googleId = Utils.getString(data, "google_id");
32
+ this.oneSignalId = Utils.getString(data, "one_signal_id");
33
+ this.name = Utils.getString(data, "name");
34
+ this.nickname = Utils.getString(data, "nickname");
35
+ this.pin = Utils.getString(data, "pin");
36
+ this.role = Utils.getString(data, "role");
37
+ this.email = Utils.getString(data, "email");
38
+ this.phone = Utils.getString(data, "phone");
39
+ this.gender = Utils.getString(data, "gender");
40
+ this.statusMessage = Utils.getString(data, "status_message");
41
+ this.platform = Utils.getString(data, "platform");
42
+ this.credits = Utils.getNumber(data, "credits");
43
+ this.gems = Utils.getNumber(data, "gems");
44
+ this.isBanned = Utils.getBoolean(data, "is_banned");
45
+ this.bannedReason = Utils.getString(data, "banned_reason");
46
+ this.customData = Utils.getObject(data, "custom_data");
47
+ this.user = Utils.getObject(data, "user");
9
48
  }
10
49
  async getContents(params = {}) {
11
50
  const queryParams = this.getSortParameters(params);
@@ -12,7 +12,7 @@ export class Utils {
12
12
  { value: "1000", label: "1000" }
13
13
  ];
14
14
  static getSdkVersion() {
15
- return "0.3.8";
15
+ return "0.3.9";
16
16
  }
17
17
  //Get linux timestamp for random value
18
18
  static getTimeStamp() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jd_platform_sdk",
3
- "version": "0.3.8",
3
+ "version": "0.4.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/readme.md CHANGED
@@ -1,55 +1,55 @@
1
- ## JdSDK
2
- Collection of useful utilities and model classes for JoyDash Platforms (PlayRivals, AppRivals, DeskProX, KaraokeProX)
3
-
4
- ## Creating a new project
5
- ````
6
- npm install typescript --save-dev
7
- ````
8
-
9
- ### Requirements
10
- ````
11
- npm install crypto-js
12
- npm install --save-dev @types/crypto-js
13
- ````
14
-
15
- ### Configure typescript
16
- ````
17
- {
18
- "compilerOptions": {
19
- "target": "ES6",
20
- "module": "ESNext",
21
- "declaration": true,
22
- "outDir": "./dist",
23
- "strict": true
24
- },
25
-
26
- "include": ["src/**/*.ts"]
27
- }
28
- ````
29
-
30
- ### Unit Tests
31
- ````
32
- npx vitest
33
- ````
34
-
35
- ### Individual file tests
36
- ````
37
- npm install ts-node typescript --save-dev
38
- npm i -D tsx
39
-
40
- npx ts-node .\test-script.ts
41
- node --import=tsx .\test-script.ts
42
- ````
43
-
44
- ### Linking project
45
- ````
46
- #This step is important for newly created server, otherwise, the module will be missing
47
- cd /path/to/my-utils-package
48
- npm link
49
- ````
50
-
51
- ### Publishing
52
- ````
53
- npm login
54
- npm publish
55
- ````
1
+ ## JdSDK
2
+ Collection of useful utilities and model classes for JoyDash Platforms (PlayRivals, AppRivals, DeskProX, KaraokeProX)
3
+
4
+ ## Creating a new project
5
+ ````
6
+ npm install typescript --save-dev
7
+ ````
8
+
9
+ ### Requirements
10
+ ````
11
+ npm install crypto-js
12
+ npm install --save-dev @types/crypto-js
13
+ ````
14
+
15
+ ### Configure typescript
16
+ ````
17
+ {
18
+ "compilerOptions": {
19
+ "target": "ES6",
20
+ "module": "ESNext",
21
+ "declaration": true,
22
+ "outDir": "./dist",
23
+ "strict": true
24
+ },
25
+
26
+ "include": ["src/**/*.ts"]
27
+ }
28
+ ````
29
+
30
+ ### Unit Tests
31
+ ````
32
+ npx vitest
33
+ ````
34
+
35
+ ### Individual file tests
36
+ ````
37
+ npm install ts-node typescript --save-dev
38
+ npm i -D tsx
39
+
40
+ npx ts-node .\test-script.ts
41
+ node --import=tsx .\test-script.ts
42
+ ````
43
+
44
+ ### Linking project
45
+ ````
46
+ #This step is important for newly created server, otherwise, the module will be missing
47
+ cd /path/to/my-utils-package
48
+ npm link
49
+ ````
50
+
51
+ ### Publishing
52
+ ````
53
+ npm login
54
+ npm publish
55
+ ````