@30nama/sdk 1.3.6 → 1.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.
@@ -1,3 +1,5 @@
1
1
  export * from './videoContent';
2
2
  export * from './news';
3
3
  export * from './biography';
4
+ export * from './soundtrack';
5
+ export * from './support';
@@ -17,4 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./videoContent"), exports);
18
18
  __exportStar(require("./news"), exports);
19
19
  __exportStar(require("./biography"), exports);
20
+ __exportStar(require("./soundtrack"), exports);
21
+ __exportStar(require("./support"), exports);
20
22
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA8B;AAC9B,yCAAsB;AACtB,8CAA2B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/api/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA8B;AAC9B,yCAAsB;AACtB,8CAA2B;AAC3B,+CAA4B;AAC5B,4CAAyB"}
@@ -15,6 +15,6 @@ export declare function newsDetail(this: any, id: number): Promise<BaseResponse<
15
15
  export declare function newsList(this: any, page: number, category: NewsCategory): Promise<BaseResponse<NewsPagination> | undefined>;
16
16
  export declare function newsSearch(this: any, page: number, search_text: string): Promise<BaseResponse<NewsPagination> | undefined>;
17
17
  export declare function newsVideoContent(this: any, video_content_id: string): Promise<BaseResponse<{
18
- news: IArticle;
18
+ news: IArticle[];
19
19
  }> | undefined>;
20
20
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"news.js","sourceRoot":"","sources":["../../../src/api/services/news.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,wCAAgC;AAGhC,MAAM,WAAW,GAAG,MAAM,CAAA;AAK1B,SAAsB,YAAY;;QAC9B,MAAM,IAAI,GAAG,IAAW,CAAA;QACxB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QAAQ,CAAA;IACnB,CAAC;CAAA;AAhBD,4CAgBC"}
@@ -0,0 +1,10 @@
1
+ import { BaseResponse } from '../types';
2
+ import { ISoundTrack, ISoundTrackFile } from '../../entities/ISoundTrack';
3
+ export declare function soundtrackDetails(this: any, video_content_id: string): Promise<BaseResponse<{
4
+ count: number;
5
+ data: ISoundTrack[];
6
+ }> | undefined>;
7
+ export declare function soundtrackFile(this: any, soundtracks_id: number): Promise<BaseResponse<{
8
+ count: number;
9
+ data: ISoundTrackFile[];
10
+ }> | undefined>;
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.soundtrackFile = exports.soundtrackDetails = void 0;
13
+ const request_1 = require("../request");
14
+ const servicePath = 'soundtrack';
15
+ function soundtrackDetails(video_content_id) {
16
+ return __awaiter(this, void 0, void 0, function* () {
17
+ const This = this;
18
+ This.log('info', 'Running action: soundtrackDetails');
19
+ const req = new request_1.default(`soundtrack/sounds_details`, this);
20
+ req.withService(servicePath);
21
+ req.withMethod('get');
22
+ const response = (yield req.execute({ video_content_id }));
23
+ // TODO: remove-enforced-success
24
+ if (response) {
25
+ response.result = true;
26
+ response.success = true;
27
+ }
28
+ return response;
29
+ });
30
+ }
31
+ exports.soundtrackDetails = soundtrackDetails;
32
+ function soundtrackFile(soundtracks_id) {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ const This = this;
35
+ This.log('info', 'Running action: soundtrackFile');
36
+ const req = new request_1.default(`soundtrack/tracks`, this);
37
+ req.withService(servicePath);
38
+ req.withMethod('get');
39
+ const response = (yield req.execute({ soundtracks_id }));
40
+ // TODO: remove-enforced-success
41
+ if (response) {
42
+ response.result = true;
43
+ response.success = true;
44
+ }
45
+ return response;
46
+ });
47
+ }
48
+ exports.soundtrackFile = soundtrackFile;
49
+ //# sourceMappingURL=soundtrack.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"soundtrack.js","sourceRoot":"","sources":["../../../src/api/services/soundtrack.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,wCAAgC;AAGhC,MAAM,WAAW,GAAG,YAAY,CAAA;AAEhC,SAAsB,iBAAiB,CAAY,gBAAwB;;QACvE,MAAM,IAAI,GAAG,IAAW,CAAA;QACxB,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,mCAAmC,CAAC,CAAA;QACrD,MAAM,GAAG,GAAG,IAAI,iBAAO,CAAC,2BAA2B,EAAE,IAAI,CAAC,CAAA;QAC1D,GAAG,CAAC,WAAW,CAAC,WAAW,CAAC,CAAA;QAC5B,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,CAAA;QAErB,MAAM,QAAQ,GAAG,CAAC,MAAM,GAAG,CAAC,OAAO,CAAC,EAAE,gBAAgB,EAAE,CAAC,CAAqE,CAAA;QAE9H,gCAAgC;QAChC,IAAI,QAAQ,EAAE,CAAC;YACX,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAA;YACtB,QAAQ,CAAC,OAAO,GAAG,IAAI,CAAA;QAC3B,CAAC;QAED,OAAO,QAAQ,CAAA;IACnB,CAAC;CAAA;AAhBD,8CAgBC;AAED,SAAsB,cAAc,CAAY,cAAsB;;QAClE,MAAM,IAAI,GAAG,IAAW,CAAA;QACxB,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,gCAAgC,CAAC,CAAA;QAClD,MAAM,GAAG,GAAG,IAAI,iBAAO,CAAC,mBAAmB,EAAE,IAAI,CAAC,CAAA;QAClD,GAAG,CAAC,WAAW,CAAC,WAAW,CAAC,CAAA;QAC5B,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,CAAA;QAErB,MAAM,QAAQ,GAAG,CAAC,MAAM,GAAG,CAAC,OAAO,CAAC,EAAE,cAAc,EAAE,CAAC,CAAyE,CAAA;QAEhI,gCAAgC;QAChC,IAAI,QAAQ,EAAE,CAAC;YACX,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAA;YACtB,QAAQ,CAAC,OAAO,GAAG,IAAI,CAAA;QAC3B,CAAC;QAED,OAAO,QAAQ,CAAA;IACnB,CAAC;CAAA;AAhBD,wCAgBC"}
@@ -0,0 +1,31 @@
1
+ import { BaseResponse } from '../types';
2
+ export declare function supportCommonQuestions(this: any): Promise<BaseResponse<{
3
+ title: string;
4
+ content: string;
5
+ }> | undefined>;
6
+ export declare function supportDMCA(this: any): Promise<BaseResponse<{
7
+ title: string;
8
+ content: string;
9
+ }> | undefined>;
10
+ export declare function supportRules(this: any): Promise<BaseResponse<{
11
+ title: string;
12
+ content: string;
13
+ }> | undefined>;
14
+ export declare function supportTrainingCenter(this: any, search?: string, page?: number): Promise<BaseResponse<{
15
+ count: number;
16
+ next?: number | undefined;
17
+ previous?: number | undefined;
18
+ results: {
19
+ id: number;
20
+ title: string;
21
+ staff_username?: string;
22
+ updated_at: string;
23
+ picture?: string;
24
+ }[];
25
+ }> | undefined>;
26
+ export declare function supportTrainingDetail(this: any, id: number): Promise<BaseResponse<{
27
+ title: string;
28
+ content: string;
29
+ author_username?: string | undefined;
30
+ published_date: string;
31
+ }> | undefined>;
@@ -0,0 +1,100 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.supportTrainingDetail = exports.supportTrainingCenter = exports.supportRules = exports.supportDMCA = exports.supportCommonQuestions = void 0;
13
+ const request_1 = require("../request");
14
+ const servicePath = 'supportersystem';
15
+ function supportCommonQuestions() {
16
+ return __awaiter(this, void 0, void 0, function* () {
17
+ const This = this;
18
+ This.log('info', 'Running action: supportCommonQuestions');
19
+ const req = new request_1.default(`system/common/questions`, this);
20
+ req.withService(servicePath);
21
+ req.withMethod('get');
22
+ const response = (yield req.execute());
23
+ // TODO: remove-enforced-success
24
+ if (response) {
25
+ response.result = true;
26
+ response.success = true;
27
+ }
28
+ return response;
29
+ });
30
+ }
31
+ exports.supportCommonQuestions = supportCommonQuestions;
32
+ function supportDMCA() {
33
+ return __awaiter(this, void 0, void 0, function* () {
34
+ const This = this;
35
+ This.log('info', 'Running action: supportDMCA');
36
+ const req = new request_1.default(`system/dmca`, this);
37
+ req.withService(servicePath);
38
+ req.withMethod('get');
39
+ const response = (yield req.execute());
40
+ // TODO: remove-enforced-success
41
+ if (response) {
42
+ response.result = true;
43
+ response.success = true;
44
+ }
45
+ return response;
46
+ });
47
+ }
48
+ exports.supportDMCA = supportDMCA;
49
+ function supportRules() {
50
+ return __awaiter(this, void 0, void 0, function* () {
51
+ const This = this;
52
+ This.log('info', 'Running action: supportRules');
53
+ const req = new request_1.default(`system/rules`, this);
54
+ req.withService(servicePath);
55
+ req.withMethod('get');
56
+ const response = (yield req.execute());
57
+ // TODO: remove-enforced-success
58
+ if (response) {
59
+ response.result = true;
60
+ response.success = true;
61
+ }
62
+ return response;
63
+ });
64
+ }
65
+ exports.supportRules = supportRules;
66
+ function supportTrainingCenter(search, page) {
67
+ return __awaiter(this, void 0, void 0, function* () {
68
+ const This = this;
69
+ This.log('info', 'Running action: supportTrainingCenter');
70
+ const req = new request_1.default(`system/training/center`, this);
71
+ req.withService(servicePath);
72
+ req.withMethod('get');
73
+ const response = (yield req.execute({ search, page }));
74
+ // TODO: remove-enforced-success
75
+ if (response) {
76
+ response.result = true;
77
+ response.success = true;
78
+ }
79
+ return response;
80
+ });
81
+ }
82
+ exports.supportTrainingCenter = supportTrainingCenter;
83
+ function supportTrainingDetail(id) {
84
+ return __awaiter(this, void 0, void 0, function* () {
85
+ const This = this;
86
+ This.log('info', 'Running action: supportRules');
87
+ const req = new request_1.default(`system/training/${id}`, this);
88
+ req.withService(servicePath);
89
+ req.withMethod('get');
90
+ const response = (yield req.execute());
91
+ // TODO: remove-enforced-success
92
+ if (response) {
93
+ response.result = true;
94
+ response.success = true;
95
+ }
96
+ return response;
97
+ });
98
+ }
99
+ exports.supportTrainingDetail = supportTrainingDetail;
100
+ //# sourceMappingURL=support.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"support.js","sourceRoot":"","sources":["../../../src/api/services/support.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,wCAAgC;AAEhC,MAAM,WAAW,GAAG,iBAAiB,CAAA;AAErC,SAAsB,sBAAsB;;QACxC,MAAM,IAAI,GAAG,IAAW,CAAA;QACxB,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,wCAAwC,CAAC,CAAA;QAC1D,MAAM,GAAG,GAAG,IAAI,iBAAO,CAAC,yBAAyB,EAAE,IAAI,CAAC,CAAA;QACxD,GAAG,CAAC,WAAW,CAAC,WAAW,CAAC,CAAA;QAC5B,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,CAAA;QAErB,MAAM,QAAQ,GAAG,CAAC,MAAM,GAAG,CAAC,OAAO,EAAE,CAAiE,CAAA;QAEtG,gCAAgC;QAChC,IAAI,QAAQ,EAAE,CAAC;YACX,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAA;YACtB,QAAQ,CAAC,OAAO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0,0 +1,12 @@
1
+ export interface ISoundTrack {
2
+ id: number;
3
+ title: string;
4
+ release_date: string;
5
+ formats: string;
6
+ composer: string;
7
+ }
8
+ export interface ISoundTrackFile {
9
+ id: number;
10
+ file_name: string;
11
+ is_default: boolean;
12
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=ISoundTrack.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ISoundTrack.js","sourceRoot":"","sources":["../../src/entities/ISoundTrack.ts"],"names":[],"mappings":""}
@@ -8,3 +8,4 @@ export * from './IPerson';
8
8
  export * from './ITitle';
9
9
  export * from './IArticle';
10
10
  export * from './IBiography';
11
+ export * from './ISoundTrack';
@@ -24,4 +24,5 @@ __exportStar(require("./IPerson"), exports);
24
24
  __exportStar(require("./ITitle"), exports);
25
25
  __exportStar(require("./IArticle"), exports);
26
26
  __exportStar(require("./IBiography"), exports);
27
+ __exportStar(require("./ISoundTrack"), exports);
27
28
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAA+B;AAC/B,4CAAyB;AACzB,gDAA6B;AAC7B,+CAA4B;AAC5B,gDAA6B;AAC7B,+CAA4B;AAC5B,4CAAyB;AACzB,2CAAwB;AACxB,6CAA0B;AAC1B,+CAA4B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAA+B;AAC/B,4CAAyB;AACzB,gDAA6B;AAC7B,+CAA4B;AAC5B,gDAA6B;AAC7B,+CAA4B;AAC5B,4CAAyB;AACzB,2CAAwB;AACxB,6CAA0B;AAC1B,+CAA4B;AAC5B,gDAA6B"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@30nama/sdk",
3
3
  "description": "30nama SDK for Node.js",
4
- "version": "1.3.6",
4
+ "version": "1.4.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "files": [