@chanomhub/sdk 1.3.6 → 1.3.7

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
@@ -31,7 +31,7 @@
31
31
  * ```
32
32
  */
33
33
  import { type GraphQLFetcher } from './client';
34
- import { type ArticleRepository, type FavoritesRepository, type UsersRepository, type SearchRepository, type AuthRepository, type DownloadsRepository, type ModsRepository, type SponsoredArticlesRepository, type StorageRepository, type CheckoutRepository } from './repositories';
34
+ import { type ArticleRepository, type FavoritesRepository, type UsersRepository, type SearchRepository, type AuthRepository, type DownloadsRepository, type ModsRepository, type SponsoredArticlesRepository, type StorageRepository, type CheckoutRepository, type DeveloperRepository } from './repositories';
35
35
  import { type ChanomhubConfig } from './config';
36
36
  export * from './types';
37
37
  export * from './config';
@@ -59,6 +59,8 @@ export interface ChanomhubClient {
59
59
  storage: StorageRepository;
60
60
  /** Checkout and Purchase operations */
61
61
  checkout: CheckoutRepository;
62
+ /** Developer operations */
63
+ developer: DeveloperRepository;
62
64
  /** Raw GraphQL fetcher for custom queries */
63
65
  graphql: GraphQLFetcher;
64
66
  /** SDK configuration */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,EAAyC,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AACtF,OAAO,EAWH,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,cAAc,EACnB,KAAK,2BAA2B,EAChC,KAAK,iBAAiB,EACtB,KAAK,kBAAkB,EAC1B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAkB,KAAK,eAAe,EAAE,MAAM,UAAU,CAAC;AAGhE,cAAc,SAAS,CAAC;A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B,CACrC,KAAK,EAAE,MAAM,EACb,MAAM,GAAE,OAAO,CAAC,eAAe,CAAM,GACtC,eAAe,CAMjB;AAGD,eAAe,qBAAqB,CAAC"}
package/dist/index.js CHANGED
@@ -99,6 +99,7 @@ function createChanomhubClient(config = {}) {
99
99
  const sponsoredArticles = (0, repositories_1.createSponsoredArticlesRepository)(graphql, rest, fullConfig);
100
100
  const storage = (0, repositories_1.createStorageRepository)(fullConfig);
101
101
  const checkout = (0, repositories_1.createCheckoutRepository)(graphql);
102
+ const developer = (0, repositories_1.createDeveloperRepository)(rest);
102
103
  return {
103
104
  articles,
104
105
  favorites,
@@ -110,6 +111,7 @@ function createChanomhubClient(config = {}) {
110
111
  sponsoredArticles,
111
112
  storage,
112
113
  checkout,
114
+ developer,
113
115
  graphql,
114
116
  config: fullConfig,
115
117
  };
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;;;;;;;;;;;;;;;;;AAmFH,sDAiCC;AAUD,8DASC;AArID,qCAAsF;AACtF,iDAqBwB;AACxB,qCAAgE;AAEhE,kBAAkB;AAClB,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB;AACzB,kDAA2F;AAAlF,2GAAA,eAAe,OAAA;AAAE,0GAAA,cAAc,OAAA;AAAE,6GAAA,iBAAiB,OAAA;AA8B3D;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,qBAAqB,CAAC,SAAmC,EAAE;IACvE,MAAM,UAAU,GAAoB;QAChC,GAAG,uBAAc;QACjB,GAAG,MAAM;KACZ,CAAC;IAEF,MAAM,OAAO,GAAG,IAAA,4BAAmB,EAAC,UAAU,CAAC,CAAC;IAChD,MAAM,IAAI,GAAG,IAAA,yBAAgB,EAAC,UAAU,CAAC,CAAC;IAC1C,MAAM,QAAQ,GAAG,IAAA,sCAAuB,EAAC,OAAO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C;IACnD,MAAM,SAAS,GAAG,IAAA,wCAAyB,EAAC,IAAI,CAAC,CAAC;IAElD,OAAO;QACH,QAAQ;QACR,SAAS;QACT,KAAK;QACL,MAAM;QACN,IAAI;QACJ,SAAS;QACT,IAAI;QACJ,iBAAiB;QACjB,OAAO;QACP,QAAQ;QACR,SAAS;QACT,OAAO;QACP,MAAM,EAAE,UAAU;KACrB,CAAC;AACN,CAAC;AAED;;;;;;;GAOG;AACH,SAAgB,yBAAyB,CACrC,KAAa,EACb,SAAmC,EAAE;IAErC,OAAO,qBAAqB,CAAC;QACzB,GAAG,MAAM;QACT,KAAK;QACL,mBAAmB,EAAE,CAAC,EAAE,2CAA2C;KACtE,CAAC,CAAC;AACP,CAAC;AAED,iBAAiB;AACjB,kBAAe,qBAAqB,CAAC"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Chanomhub SDK - Developer Repository
3
+ *
4
+ * Handles developer verification and profile management.
5
+ */
6
+ import type { RestFetcher } from '../client';
7
+ import type { DeveloperProfile, VerifyDeveloperDto, OneTimeToken } from '../types/user';
8
+ export interface DeveloperRepository {
9
+ /**
10
+ * Generate a one-time verification token for a user.
11
+ * Admin only.
12
+ *
13
+ * @param userId - The ID of the user to generate a token for
14
+ */
15
+ generateVerificationToken(userId: number): Promise<OneTimeToken>;
16
+ /**
17
+ * Verify developer status using a one-time token.
18
+ * Requires authentication as the user the token belongs to.
19
+ *
20
+ * @param token - The one-time verification token
21
+ * @param data - Developer verification details (real name, bank account, etc.)
22
+ */
23
+ verifyDeveloper(token: string, data: VerifyDeveloperDto): Promise<DeveloperProfile>;
24
+ /**
25
+ * Get the developer profile for the currently authenticated user.
26
+ */
27
+ getProfile(): Promise<DeveloperProfile>;
28
+ }
29
+ /**
30
+ * Creates a developer repository
31
+ *
32
+ * @param fetcher - REST API fetcher
33
+ */
34
+ export declare function createDeveloperRepository(fetcher: RestFetcher): DeveloperRepository;
35
+ //# sourceMappingURL=developerRepository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"developerRepository.d.ts","sourceRoot":"","sources":["../../repositories/developerRepository.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,KAAK,EACR,gBAAgB,EAChB,kBAAkB,EAClB,YAAY,EACf,MAAM,eAAe,CAAC;AAEvB,MAAM,WAAW,mBAAmB;IAChC;;;;;OAKG;IACH,yBAAyB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAEjE;;;;;;OAMG;IACH,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAEpF;;OAEG;IACH,UAAU,IAAI,OAAO,CAAC,gBAAgB,CAAC,CAAC;CAC3C;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,WAAW,GAAG,mBAAmB,CAsDnF"}
@@ -0,0 +1,57 @@
1
+ "use strict";
2
+ /**
3
+ * Chanomhub SDK - Developer Repository
4
+ *
5
+ * Handles developer verification and profile management.
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.createDeveloperRepository = createDeveloperRepository;
9
+ /**
10
+ * Creates a developer repository
11
+ *
12
+ * @param fetcher - REST API fetcher
13
+ */
14
+ function createDeveloperRepository(fetcher) {
15
+ async function generateVerificationToken(userId) {
16
+ const { data, error } = await fetcher('/admin/developer/generate-token', {
17
+ method: 'POST',
18
+ body: { userId },
19
+ });
20
+ if (error) {
21
+ throw error;
22
+ }
23
+ if (!data) {
24
+ throw new Error('Failed to generate token: No data returned from server');
25
+ }
26
+ return data;
27
+ }
28
+ async function verifyDeveloper(token, data) {
29
+ const { data: profile, error } = await fetcher(`/developer/verify/${token}`, {
30
+ method: 'POST',
31
+ body: data,
32
+ });
33
+ if (error) {
34
+ throw error;
35
+ }
36
+ if (!profile) {
37
+ throw new Error('Failed to verify developer: No profile data returned from server');
38
+ }
39
+ return profile;
40
+ }
41
+ async function getProfile() {
42
+ const { data: profile, error } = await fetcher('/developer/profile');
43
+ if (error) {
44
+ throw error;
45
+ }
46
+ if (!profile) {
47
+ throw new Error('Developer profile not found');
48
+ }
49
+ return profile;
50
+ }
51
+ return {
52
+ generateVerificationToken,
53
+ verifyDeveloper,
54
+ getProfile,
55
+ };
56
+ }
57
+ //# sourceMappingURL=developerRepository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"developerRepository.js","sourceRoot":"","sources":["../../repositories/developerRepository.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;AAsCH,8DAsDC;AA3DD;;;;GAIG;AACH,SAAgB,yBAAyB,CAAC,OAAoB;IAC1D,KAAK,UAAU,yBAAyB,CAAC,MAAc;QACnD,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,OAAO,CAAe,iCAAiC,EAAE;YACnF,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,EAAE,MAAM,EAAE;SACnB,CAAC,CAAC;QAEH,IAAI,KAAK,EAAE,CAAC;YACR,MAAM,KAAK,CAAC;QAChB,CAAC;QAED,IAAI,CAAC,IAAI,EAAE,CAAC;YACR,MAAM,IAAI,KAAK,CAAC,wDAAwD,CAAC,CAAC;QAC9E,CAAC;QAED,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,KAAK,UAAU,eAAe,CAAC,KAAa,EAAE,IAAwB;QAClE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,MAAM,OAAO,CAAmB,qBAAqB,KAAK,EAAE,EAAE;YAC3F,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,IAA0C;SACnD,CAAC,CAAC;QAEH,IAAI,KAAK,EAAE,CAAC;YACR,MAAM,KAAK,CAAC;QAChB,CAAC;QAED,IAAI,CAAC,OAAO,EAAE,CAAC;YACX,MAAM,IAAI,KAAK,CAAC,kEAAkE,CAAC,CAAC;QACxF,CAAC;QAED,OAAO,OAAO,CAAC;IACnB,CAAC;IAED,KAAK,UAAU,UAAU;QACrB,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,MAAM,OAAO,CAAmB,oBAAoB,CAAC,CAAC;QAEvF,IAAI,KAAK,EAAE,CAAC;YACR,MAAM,KAAK,CAAC;QAChB,CAAC;QAED,IAAI,CAAC,OAAO,EAAE,CAAC;YACX,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;QACnD,CAAC;QAED,OAAO,OAAO,CAAC;IACnB,CAAC;IAED,OAAO;QACH,yBAAyB;QACzB,eAAe;QACf,UAAU;KACb,CAAC;AACN,CAAC"}
@@ -11,4 +11,5 @@ export { createModsRepository, type ModsRepository } from './modsRepository';
11
11
  export { createSponsoredArticlesRepository, type SponsoredArticlesRepository, } from './sponsoredArticlesRepository';
12
12
  export { createStorageRepository, type StorageRepository, type UploadResponse, type UploadOptions, } from './storageRepository';
13
13
  export { createCheckoutRepository, type CheckoutRepository, type CheckoutResponse, type CheckoutOptions, } from './checkoutRepository';
14
+ export { createDeveloperRepository, type DeveloperRepository, } from './developerRepository';
14
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../repositories/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,uBAAuB,EAAE,KAAK,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACtF,OAAO,EACH,yBAAyB,EACzB,KAAK,mBAAmB,EACxB,KAAK,gBAAgB,GACxB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,qBAAqB,EAAE,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAChF,OAAO,EACH,sBAAsB,EACtB,KAAK,gBAAgB,EACrB,KAAK,aAAa,GACrB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,oBAAoB,EAAE,KAAK,cAAc,EAAE,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nB,KAAK,aAAa,GACrB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACH,wBAAwB,EACxB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,eAAe,GACvB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACH,yBAAyB,EACzB,KAAK,mBAAmB,GAC3B,MAAM,uBAAuB,CAAC"}
@@ -3,7 +3,7 @@
3
3
  * Chanomhub SDK - Repositories Index
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.createCheckoutRepository = exports.createStorageRepository = exports.createSponsoredArticlesRepository = exports.createModsRepository = exports.createDownloadsRepository = exports.createAuthRepository = exports.createSearchRepository = exports.createUsersRepository = exports.createFavoritesRepository = exports.createArticleRepository = void 0;
6
+ exports.createDeveloperRepository = exports.createCheckoutRepository = exports.createStorageRepository = exports.createSponsoredArticlesRepository = exports.createModsRepository = exports.createDownloadsRepository = exports.createAuthRepository = exports.createSearchRepository = exports.createUsersRepository = exports.createFavoritesRepository = exports.createArticleRepository = void 0;
7
7
  var articleRepository_1 = require("./articleRepository");
8
8
  Object.defineProperty(exports, "createArticleRepository", { enumerable: true, get: function () { return articleRepository_1.createArticleRepository; } });
9
9
  var favoritesRepository_1 = require("./favoritesRepository");
@@ -24,4 +24,6 @@ var storageRepository_1 = require("./storageRepository");
24
24
  Object.defineProperty(exports, "createStorageRepository", { enumerable: true, get: function () { return storageRepository_1.createStorageRepository; } });
25
25
  var checkoutRepository_1 = require("./checkoutRepository");
26
26
  Object.defineProperty(exports, "createCheckoutRepository", { enumerable: true, get: function () { return checkoutRepository_1.createCheckoutRepository; } });
27
+ var developerRepository_1 = require("./developerRepository");
28
+ Object.defineProperty(exports, "createDeveloperRepository", { enumerable: true, get: function () { return developerRepository_1.createDeveloperRepository; } });
27
29
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../repositories/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,yDAAsF;AAA7E,4HAAA,uBAAuB,OAAA;AAChC,6DAI+B;AAH3B,gIAAA,yBAAyB,OAAA;AAI7B,qDAAgF;AAAvE,wHAAA,qBAAqB,OAAA;AAC9B,uDAI4B;AAHxB,0HAAA,sBAAsB,OAAA;AAI1B,mDAA6E;AAApE,sHAAA,oBAAoB,OAAA;AAC7B,6DAA4F;AAAnF,gIAAA,yBAAyB,OAAA;AAClC,mDAA6E;AAApE,sHAAA,oBAAoB,OAAA;AAC7B,6EAGuC;AAFnC,gJAAA,iCAAiC,OAAA;AAGrC,yDAK6B;AAJzB,4HAAA,uBAAuB,OAAA;AAK3B,2DAK8B;AAJ1B,8HAAA,wBAAwB,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../repositories/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAEH,yDAAsF;AAA7E,4HAAA,uBAAuB,OAAA;AAChC,6DAI+B;AAH3B,gIAAA,yBAAyB,OAAA;AAI7B,qDAAgF;AAAvE,wHAAA,qBAAqB,OAAA;AAC9B,uDAI4B;AAHxB,0HAAA,sBAAsB,OAAA;AAI1B,mDAA6E;AAApE,sHAAA,oBAAoB,OAAA;AAC7B,6DAA4F;AAAnF,gIAAA,yBAAyB,OAAA;AAClC,mDAA6E;AAApE,sHAAA,oBAAoB,OAAA;AAC7B,6EAGuC;AAFnC,gJAAA,iCAAiC,OAAA;AAGrC,yDAK6B;AAJzB,4HAAA,uBAAuB,OAAA;AAK3B,2DAK8B;AAJ1B,8HAAA,wBAAwB,OAAA;AAK5B,6DAG+B;AAF3B,gIAAA,yBAAyB,OAAA"}
@@ -20,6 +20,35 @@ export interface SocialMediaLink {
20
20
  platform: string;
21
21
  url: string;
22
22
  }
23
+ /** Developer verification profile */
24
+ export interface DeveloperProfile {
25
+ id: number;
26
+ userId: number;
27
+ realName: string;
28
+ bankName: string;
29
+ bankAccount: string;
30
+ citizenId?: string;
31
+ isVerified: boolean;
32
+ verifiedAt?: string;
33
+ createdAt: string;
34
+ updatedAt: string;
35
+ }
36
+ /** Developer verification request */
37
+ export interface VerifyDeveloperDto {
38
+ realName: string;
39
+ bankName: string;
40
+ bankAccount: string;
41
+ citizenId?: string;
42
+ }
43
+ /** One-time verification token */
44
+ export interface OneTimeToken {
45
+ id: string;
46
+ userId: number;
47
+ token: string;
48
+ type: 'DEVELOPER_VERIFICATION';
49
+ expiresAt: string;
50
+ createdAt: string;
51
+ }
23
52
  /** Public profile */
24
53
  export interface Profile {
25
54
  id: number;
@@ -1 +1 @@
1
- {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../types/user.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,6BAA6B;AAC7B,MAAM,WAAW,IAAI;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,4BAA4B;AAC5B,MAAM,WAAW,YAAY;IACzB,IAAI,EAAE,IAAI,CAAC;CACd;AAED,wBAAwB;AACxB,MAAM,WAAW,eAAe;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;CACf;AAED,qBAAqB;AACrB,MAAM,WAAW,OAAO;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,2CAA2C;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,SAAS,EAAE,OAAO,CAAC;IACnB,gBAAgB,EAAE,eAAe,EAA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AAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,wBAAwB,CAAC;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,qBAAqB;AACrB,MAAM,WAAW,OAAO;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,2CAA2C;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,+BAA+B;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,SAAS,EAAE,OAAO,CAAC;IACnB,gBAAgB,EAAE,eAAe,EAAE,CAAC;CACvC;AAED,+BAA+B;AAC/B,MAAM,WAAW,eAAe;IAC5B,OAAO,EAAE,OAAO,CAAC;CACpB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chanomhub/sdk",
3
- "version": "1.3.6",
3
+ "version": "1.3.7",
4
4
  "description": "ChanomHub SDK",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",