zmp-openapi-nodejs
Advanced tools
Comparing version 1.3.2 to 1.4.5
@@ -8,2 +8,3 @@ export declare class Constant { | ||
static readonly PUBLISH = "/publish"; | ||
static readonly STATS = "/stats"; | ||
} |
@@ -13,2 +13,3 @@ "use strict"; | ||
Constant.PUBLISH = '/publish'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29uZmlnL2NvbnN0YW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLE1BQWEsUUFBUTs7QUFBckIsNEJBT0M7QUFOd0Isb0JBQVcsR0FBRyw4QkFBOEIsQ0FBQztBQUM3QyxhQUFJLEdBQUcsT0FBTyxDQUFDO0FBQ2YsZUFBTSxHQUFHLFNBQVMsQ0FBQztBQUNuQixpQkFBUSxHQUFHLFdBQVcsQ0FBQztBQUN2Qix3QkFBZSxHQUFHLGtCQUFrQixDQUFDO0FBQ3JDLGdCQUFPLEdBQUcsVUFBVSxDQUFDIn0= | ||
Constant.STATS = '/stats'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29uZmlnL2NvbnN0YW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLE1BQWEsUUFBUTs7QUFBckIsNEJBUUM7QUFQd0Isb0JBQVcsR0FBRyw4QkFBOEIsQ0FBQztBQUM3QyxhQUFJLEdBQUcsT0FBTyxDQUFDO0FBQ2YsZUFBTSxHQUFHLFNBQVMsQ0FBQztBQUNuQixpQkFBUSxHQUFHLFdBQVcsQ0FBQztBQUN2Qix3QkFBZSxHQUFHLGtCQUFrQixDQUFDO0FBQ3JDLGdCQUFPLEdBQUcsVUFBVSxDQUFDO0FBQ3JCLGNBQUssR0FBRyxRQUFRLENBQUMifQ== |
@@ -33,3 +33,3 @@ "use strict"; | ||
this.domain = constant_1.Constant.DOMAIN_PROD; | ||
this.sdkVersion = '1.0.0'; | ||
this.sdkVersion = '1.0.1'; | ||
this.sdkName = 'Node.js'; | ||
@@ -36,0 +36,0 @@ this.validateInit = () => { |
@@ -8,2 +8,3 @@ import { AppInfo, CreateAppResult } from '../interface/app-info.interface'; | ||
import { BaseResult } from '../interface/response.interface'; | ||
import { StatsRequest } from '../interface/stats.interface'; | ||
export declare class OpenAPIClient extends BaseClient { | ||
@@ -16,2 +17,9 @@ getMiniApps(appSlice: AppSlice): Promise<BaseResult & AppList>; | ||
publishMiniApp: (publishApp: PublishApp) => Promise<BaseResult>; | ||
getStats: (statsRequest: StatsRequest) => Promise<{ | ||
error: number; | ||
message: string; | ||
data: { | ||
data: JSON; | ||
}; | ||
}>; | ||
} | ||
@@ -18,0 +26,0 @@ declare const _default: { |
"use strict"; | ||
var __rest = (this && this.__rest) || function (s, e) { | ||
var t = {}; | ||
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) | ||
t[p] = s[p]; | ||
if (s != null && typeof Object.getOwnPropertySymbols === "function") | ||
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { | ||
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) | ||
t[p[i]] = s[p[i]]; | ||
} | ||
return t; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
@@ -15,3 +26,3 @@ return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
this.getVersionsMiniApp = (appSlice) => { | ||
return this.doGet(`${constant_1.Constant.APPS}/${appSlice === null || appSlice === void 0 ? void 0 : appSlice.miniAppId}${constant_1.Constant.VERSIONS}`, Object.assign({}, appSlice), { | ||
return this.doGet(`${constant_1.Constant.APPS}/${appSlice === null || appSlice === void 0 ? void 0 : appSlice.miniAppId}/${constant_1.Constant.VERSIONS}`, Object.assign({}, appSlice), { | ||
mapAxiosError(error) { | ||
@@ -44,2 +55,11 @@ if (error.response.status === 400) { | ||
}; | ||
this.getStats = async (statsRequest) => { | ||
const response = await this.doGet(`${constant_1.Constant.APPS}/${statsRequest.miniAppId}/${constant_1.Constant.STATS}`, Object.assign({}, statsRequest)); | ||
const { error, message } = response, data = __rest(response, ["error", "message"]); | ||
return { | ||
error, | ||
message, | ||
data, | ||
}; | ||
}; | ||
} | ||
@@ -52,2 +72,2 @@ async getMiniApps(appSlice) { | ||
exports.default = { OpenAPIClient }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3Blbi1hcGktY2xpZW50LmR0by5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9kdG8vb3Blbi1hcGktY2xpZW50LmR0by50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSw0Q0FBb0I7QUFDcEIsMERBQWlDO0FBQ2pDLGlEQUE4QztBQVk5Qyx1REFBK0M7QUFJL0MsTUFBYSxhQUFjLFNBQVEsNEJBQVU7SUFBN0M7O1FBS1MsdUJBQWtCLEdBQUcsQ0FBQyxRQUFzQixFQUFFLEVBQUU7WUFDckQsT0FBTyxJQUFJLENBQUMsS0FBSyxDQUNmLEdBQUcsbUJBQVEsQ0FBQyxJQUFJLElBQUksUUFBUSxhQUFSLFFBQVEsdUJBQVIsUUFBUSxDQUFFLFNBQVMsR0FBRyxtQkFBUSxDQUFDLFFBQVEsRUFBRSxvQkFDeEQsUUFBUSxHQUNiO2dCQUNFLGFBQWEsQ0FBQyxLQUFLO29CQUNqQixJQUFJLEtBQUssQ0FBQyxRQUFRLENBQUMsTUFBTSxLQUFLLEdBQUcsRUFBRTt3QkFDakMsT0FBTyxxQkFBcUIsQ0FBQztxQkFDOUI7b0JBQ0QsT0FBTyxLQUFLL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client.dto'; | ||
export { VerifySignature } from './dto/verify-signature.dto'; | ||
export { StatsRequest, StatsResult } from './interface/stats.interface'; | ||
export { StatsType } from './types/stats'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.VerifySignature = exports.AppCategory = exports.AppInfo = exports.OpenAPIClient = void 0; | ||
exports.StatsType = exports.VerifySignature = exports.AppCategory = exports.AppInfo = exports.OpenAPIClient = void 0; | ||
var open_api_client_dto_1 = require("./dto/open-api-client.dto"); | ||
@@ -12,2 +12,4 @@ Object.defineProperty(exports, "OpenAPIClient", { enumerable: true, get: function () { return open_api_client_dto_1.OpenAPIClient; } }); | ||
Object.defineProperty(exports, "VerifySignature", { enumerable: true, get: function () { return verify_signature_dto_1.VerifySignature; } }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsaUVBQTBEO0FBQWpELG9IQUFBLGFBQWEsT0FBQTtBQUV0QixxRUFBeUQ7QUFBaEQsNkdBQUEsT0FBTyxPQUFBO0FBSWhCLHNEQUFvRDtBQUEzQywyR0FBQSxXQUFXLE9BQUE7QUFDcEIsbUVBQTZEO0FBQXBELHVIQUFBLGVBQWUsT0FBQSJ9 | ||
var stats_1 = require("./types/stats"); | ||
Object.defineProperty(exports, "StatsType", { enumerable: true, get: function () { return stats_1.StatsType; } }); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsaUVBQTBEO0FBQWpELG9IQUFBLGFBQWEsT0FBQTtBQUV0QixxRUFBeUQ7QUFBaEQsNkdBQUEsT0FBTyxPQUFBO0FBSWhCLHNEQUFvRDtBQUEzQywyR0FBQSxXQUFXLE9BQUE7QUFDcEIsbUVBQTZEO0FBQXBELHVIQUFBLGVBQWUsT0FBQTtBQUV4Qix1Q0FBMEM7QUFBakMsa0dBQUEsU0FBUyxPQUFBIn0= |
@@ -8,2 +8,3 @@ export declare class Constant { | ||
static readonly PUBLISH = "/publish"; | ||
static readonly STATS = "/stats"; | ||
} |
@@ -8,3 +8,4 @@ export class Constant { | ||
static PUBLISH = '/publish'; | ||
static STATS = '/stats'; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29uZmlnL2NvbnN0YW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sT0FBTyxRQUFRO0lBQ1osTUFBTSxDQUFVLFdBQVcsR0FBRyw4QkFBOEIsQ0FBQztJQUM3RCxNQUFNLENBQVUsSUFBSSxHQUFHLE9BQU8sQ0FBQztJQUMvQixNQUFNLENBQVUsTUFBTSxHQUFHLFNBQVMsQ0FBQztJQUNuQyxNQUFNLENBQVUsUUFBUSxHQUFHLFdBQVcsQ0FBQztJQUN2QyxNQUFNLENBQVUsZUFBZSxHQUFHLGtCQUFrQixDQUFDO0lBQ3JELE1BQU0sQ0FBVSxPQUFPLEdBQUcsVUFBVSxDQUFDIn0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29uZmlnL2NvbnN0YW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sT0FBTyxRQUFRO0lBQ1osTUFBTSxDQUFVLFdBQVcsR0FBRyw4QkFBOEIsQ0FBQztJQUM3RCxNQUFNLENBQVUsSUFBSSxHQUFHLE9BQU8sQ0FBQztJQUMvQixNQUFNLENBQVUsTUFBTSxHQUFHLFNBQVMsQ0FBQztJQUNuQyxNQUFNLENBQVUsUUFBUSxHQUFHLFdBQVcsQ0FBQztJQUN2QyxNQUFNLENBQVUsZUFBZSxHQUFHLGtCQUFrQixDQUFDO0lBQ3JELE1BQU0sQ0FBVSxPQUFPLEdBQUcsVUFBVSxDQUFDO0lBQ3JDLE1BQU0sQ0FBVSxLQUFLLEdBQUcsUUFBUSxDQUFDIn0= |
@@ -9,3 +9,3 @@ import axios, { AxiosError } from 'axios'; | ||
domain = Constant.DOMAIN_PROD; | ||
sdkVersion = '1.0.0'; | ||
sdkVersion = '1.0.1'; | ||
sdkName = 'Node.js'; | ||
@@ -12,0 +12,0 @@ headers; |
@@ -8,2 +8,3 @@ import { AppInfo, CreateAppResult } from '../interface/app-info.interface'; | ||
import { BaseResult } from '../interface/response.interface'; | ||
import { StatsRequest } from '../interface/stats.interface'; | ||
export declare class OpenAPIClient extends BaseClient { | ||
@@ -16,2 +17,9 @@ getMiniApps(appSlice: AppSlice): Promise<BaseResult & AppList>; | ||
publishMiniApp: (publishApp: PublishApp) => Promise<BaseResult>; | ||
getStats: (statsRequest: StatsRequest) => Promise<{ | ||
error: number; | ||
message: string; | ||
data: { | ||
data: JSON; | ||
}; | ||
}>; | ||
} | ||
@@ -18,0 +26,0 @@ declare const _default: { |
@@ -10,3 +10,3 @@ import qs from 'qs'; | ||
getVersionsMiniApp = (appSlice) => { | ||
return this.doGet(`${Constant.APPS}/${appSlice?.miniAppId}${Constant.VERSIONS}`, { ...appSlice }, { | ||
return this.doGet(`${Constant.APPS}/${appSlice?.miniAppId}/${Constant.VERSIONS}`, { ...appSlice }, { | ||
mapAxiosError(error) { | ||
@@ -39,4 +39,15 @@ if (error.response.status === 400) { | ||
}; | ||
getStats = async (statsRequest) => { | ||
const response = await this.doGet(`${Constant.APPS}/${statsRequest.miniAppId}/${Constant.STATS}`, { | ||
...statsRequest, | ||
}); | ||
const { error, message, ...data } = response; | ||
return { | ||
error, | ||
message, | ||
data, | ||
}; | ||
}; | ||
} | ||
export default { OpenAPIClient }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3Blbi1hcGktY2xpZW50LmR0by5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9kdG8vb3Blbi1hcGktY2xpZW50LmR0by50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsTUFBTSxJQUFJLENBQUM7QUFDcEIsT0FBTyxRQUFRLE1BQU0sV0FBVyxDQUFDO0FBQ2pDLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQztBQVk5QyxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFJL0MsTUFBTSxPQUFPLGFBQWMsU0FBUSxVQUFVO0lBQ3BDLEtBQUssQ0FBQyxXQUFXLENBQUMsUUFBa0I7UUFDekMsT0FBTyxJQUFJLENBQUMsS0FBSyxDQUFVLFFBQVEsQ0FBQyxJQUFJLEVBQUUsRUFBRSxHQUFHLFFBQVEsRUFBRSxDQUFDLENBQUM7SUFDN0QsQ0FBQztJQUVNLGtCQUFrQixHQUFHLENBQUMsUUFBc0IsRUFBRSxFQUFFO1FBQ3JELE9BQU8sSUFBSSxDQUFDLEtBQUssQ0FDZixHQUFHLFFBQVEsQ0FBQyxJQUFJLElBQUksUUFBUSxFQUFFLFNBQVMsR0FBRyxRQUFRLENBQUMsUUFBUSxFQUFFLEVBQzdELEVBQUUsR0FBRyxRQUFRLEVBQUUsRUFDZjtZQUNFLGFBQWEsQ0FBQyxLQUFLO2dCQUNqQixJQUFJLEtBQUssQ0FBQyxRQUFRLENBQUMsTUFBTSxLQUFLLEdBQUc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QUFhLEVBQUUsQ0FBQyJ9 |
@@ -9,1 +9,3 @@ export { OpenAPIClient } from './dto/open-api-client.dto'; | ||
export { VerifySignature } from './dto/verify-signature.dto'; | ||
export { StatsRequest, StatsResult } from './interface/stats.interface'; | ||
export { StatsType } from './types/stats'; |
@@ -5,2 +5,3 @@ export { OpenAPIClient } from './dto/open-api-client.dto'; | ||
export { VerifySignature } from './dto/verify-signature.dto'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLDJCQUEyQixDQUFDO0FBRTFELE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxnQ0FBZ0MsQ0FBQztBQUl6RCxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sdUJBQXVCLENBQUM7QUFDcEQsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLDRCQUE0QixDQUFDIn0= | ||
export { StatsType } from './types/stats'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLDJCQUEyQixDQUFDO0FBRTFELE9BQU8sRUFBRSxPQUFPLEVBQUUsTUFBTSxnQ0FBZ0MsQ0FBQztBQUl6RCxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0sdUJBQXVCLENBQUM7QUFDcEQsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLDRCQUE0QixDQUFDO0FBRTdELE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxlQUFlLENBQUMifQ== |
{ | ||
"name": "zmp-openapi-nodejs", | ||
"version": "1.3.2", | ||
"version": "1.4.5", | ||
"description": "SDK for ZaloMiniApp with Node.js", | ||
@@ -55,2 +55,3 @@ "main": "build/main/index.js", | ||
"cz-conventional-changelog": "^3.3.0", | ||
"dotenv": "^16.3.1", | ||
"gh-pages": "^3.1.0", | ||
@@ -57,0 +58,0 @@ "npm-run-all": "^4.1.5", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
65510
64
992
17
1