@emilgroup/discount-sdk-node
Advanced tools
@@ -51,4 +51,4 @@ "use strict"; | ||
| var __generator = (this && this.__generator) || function (thisArg, body) { | ||
| var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype); | ||
| return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | ||
| var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; | ||
| return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | ||
| function verb(n) { return function (v) { return step([n, v]); }; } | ||
@@ -78,11 +78,2 @@ function step(op) { | ||
| }; | ||
| var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { | ||
| if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { | ||
| if (ar || !(i in from)) { | ||
| if (!ar) ar = Array.prototype.slice.call(from, 0, i); | ||
| ar[i] = from[i]; | ||
| } | ||
| } | ||
| return to.concat(ar || Array.prototype.slice.call(from)); | ||
| }; | ||
| var __importDefault = (this && this.__importDefault) || function (mod) { | ||
@@ -116,10 +107,6 @@ return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
| */ | ||
| check: function () { | ||
| var args_1 = []; | ||
| for (var _i = 0; _i < arguments.length; _i++) { | ||
| args_1[_i] = arguments[_i]; | ||
| } | ||
| return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) { | ||
| check: function (options) { | ||
| if (options === void 0) { options = {}; } | ||
| return __awaiter(_this, void 0, void 0, function () { | ||
| var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; | ||
| if (options === void 0) { options = {}; } | ||
| return __generator(this, function (_a) { | ||
@@ -126,0 +113,0 @@ localVarPath = "/discountservice/health"; |
@@ -78,3 +78,3 @@ /** | ||
| */ | ||
| getPolicyVoucher: (code: string, authorization?: string, expand?: "transactions" | "campaign" | "voucher", options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
| getPolicyVoucher: (code: string, authorization?: string, expand?: 'transactions' | 'campaign' | 'voucher', options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
| /** | ||
@@ -167,3 +167,3 @@ * Returns a list of policy vouchers you have previously created. The policy vouchers are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. | ||
| */ | ||
| getPolicyVoucher(code: string, authorization?: string, expand?: "transactions" | "campaign" | "voucher", options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPolicyVoucherResponseClass>>; | ||
| getPolicyVoucher(code: string, authorization?: string, expand?: 'transactions' | 'campaign' | 'voucher', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPolicyVoucherResponseClass>>; | ||
| /** | ||
@@ -256,3 +256,3 @@ * Returns a list of policy vouchers you have previously created. The policy vouchers are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. | ||
| */ | ||
| getPolicyVoucher(code: string, authorization?: string, expand?: "transactions" | "campaign" | "voucher", options?: any): AxiosPromise<GetPolicyVoucherResponseClass>; | ||
| getPolicyVoucher(code: string, authorization?: string, expand?: 'transactions' | 'campaign' | 'voucher', options?: any): AxiosPromise<GetPolicyVoucherResponseClass>; | ||
| /** | ||
@@ -259,0 +259,0 @@ * Returns a list of policy vouchers you have previously created. The policy vouchers are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. |
@@ -53,3 +53,3 @@ /** | ||
| */ | ||
| getVoucher: (code: string, authorization?: string, expand?: "campaign" | "productDiscounts", options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
| getVoucher: (code: string, authorization?: string, expand?: 'campaign' | 'productDiscounts', options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
| /** | ||
@@ -113,3 +113,3 @@ * Returns a list of Vouchers you have previously created. The Vouchers are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. | ||
| */ | ||
| getVoucher(code: string, authorization?: string, expand?: "campaign" | "productDiscounts", options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetVoucherResponseClass>>; | ||
| getVoucher(code: string, authorization?: string, expand?: 'campaign' | 'productDiscounts', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetVoucherResponseClass>>; | ||
| /** | ||
@@ -173,3 +173,3 @@ * Returns a list of Vouchers you have previously created. The Vouchers are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. | ||
| */ | ||
| getVoucher(code: string, authorization?: string, expand?: "campaign" | "productDiscounts", options?: any): AxiosPromise<GetVoucherResponseClass>; | ||
| getVoucher(code: string, authorization?: string, expand?: 'campaign' | 'productDiscounts', options?: any): AxiosPromise<GetVoucherResponseClass>; | ||
| /** | ||
@@ -176,0 +176,0 @@ * Returns a list of Vouchers you have previously created. The Vouchers are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. |
+17
-46
@@ -51,4 +51,4 @@ "use strict"; | ||
| var __generator = (this && this.__generator) || function (thisArg, body) { | ||
| var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype); | ||
| return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | ||
| var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; | ||
| return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | ||
| function verb(n) { return function (v) { return step([n, v]); }; } | ||
@@ -78,11 +78,2 @@ function step(op) { | ||
| }; | ||
| var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) { | ||
| if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) { | ||
| if (ar || !(i in from)) { | ||
| if (!ar) ar = Array.prototype.slice.call(from, 0, i); | ||
| ar[i] = from[i]; | ||
| } | ||
| } | ||
| return to.concat(ar || Array.prototype.slice.call(from)); | ||
| }; | ||
| var __importDefault = (this && this.__importDefault) || function (mod) { | ||
@@ -118,10 +109,6 @@ return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
| */ | ||
| createVoucher: function (createVoucherRequestDto_1, authorization_1) { | ||
| var args_1 = []; | ||
| for (var _i = 2; _i < arguments.length; _i++) { | ||
| args_1[_i - 2] = arguments[_i]; | ||
| } | ||
| return __awaiter(_this, __spreadArray([createVoucherRequestDto_1, authorization_1], args_1, true), void 0, function (createVoucherRequestDto, authorization, options) { | ||
| createVoucher: function (createVoucherRequestDto, authorization, options) { | ||
| if (options === void 0) { options = {}; } | ||
| return __awaiter(_this, void 0, void 0, function () { | ||
| var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; | ||
| if (options === void 0) { options = {}; } | ||
| return __generator(this, function (_a) { | ||
@@ -172,10 +159,6 @@ switch (_a.label) { | ||
| */ | ||
| deleteVoucher: function (code_1, authorization_1) { | ||
| var args_1 = []; | ||
| for (var _i = 2; _i < arguments.length; _i++) { | ||
| args_1[_i - 2] = arguments[_i]; | ||
| } | ||
| return __awaiter(_this, __spreadArray([code_1, authorization_1], args_1, true), void 0, function (code, authorization, options) { | ||
| deleteVoucher: function (code, authorization, options) { | ||
| if (options === void 0) { options = {}; } | ||
| return __awaiter(_this, void 0, void 0, function () { | ||
| var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; | ||
| if (options === void 0) { options = {}; } | ||
| return __generator(this, function (_a) { | ||
@@ -226,10 +209,6 @@ switch (_a.label) { | ||
| */ | ||
| getVoucher: function (code_1, authorization_1, expand_1) { | ||
| var args_1 = []; | ||
| for (var _i = 3; _i < arguments.length; _i++) { | ||
| args_1[_i - 3] = arguments[_i]; | ||
| } | ||
| return __awaiter(_this, __spreadArray([code_1, authorization_1, expand_1], args_1, true), void 0, function (code, authorization, expand, options) { | ||
| getVoucher: function (code, authorization, expand, options) { | ||
| if (options === void 0) { options = {}; } | ||
| return __awaiter(_this, void 0, void 0, function () { | ||
| var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; | ||
| if (options === void 0) { options = {}; } | ||
| return __generator(this, function (_a) { | ||
@@ -288,10 +267,6 @@ switch (_a.label) { | ||
| */ | ||
| listVouchers: function (authorization_1, pageSize_1, pageToken_1, filter_1, search_1, order_1, expand_1, filters_1) { | ||
| var args_1 = []; | ||
| for (var _i = 8; _i < arguments.length; _i++) { | ||
| args_1[_i - 8] = arguments[_i]; | ||
| } | ||
| return __awaiter(_this, __spreadArray([authorization_1, pageSize_1, pageToken_1, filter_1, search_1, order_1, expand_1, filters_1], args_1, true), void 0, function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) { | ||
| listVouchers: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) { | ||
| if (options === void 0) { options = {}; } | ||
| return __awaiter(_this, void 0, void 0, function () { | ||
| var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; | ||
| if (options === void 0) { options = {}; } | ||
| return __generator(this, function (_a) { | ||
@@ -360,10 +335,6 @@ switch (_a.label) { | ||
| */ | ||
| updateVoucher: function (code_1, updateVoucherRequestDto_1, authorization_1) { | ||
| var args_1 = []; | ||
| for (var _i = 3; _i < arguments.length; _i++) { | ||
| args_1[_i - 3] = arguments[_i]; | ||
| } | ||
| return __awaiter(_this, __spreadArray([code_1, updateVoucherRequestDto_1, authorization_1], args_1, true), void 0, function (code, updateVoucherRequestDto, authorization, options) { | ||
| updateVoucher: function (code, updateVoucherRequestDto, authorization, options) { | ||
| if (options === void 0) { options = {}; } | ||
| return __awaiter(_this, void 0, void 0, function () { | ||
| var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions; | ||
| if (options === void 0) { options = {}; } | ||
| return __generator(this, function (_a) { | ||
@@ -370,0 +341,0 @@ switch (_a.label) { |
+15
-25
@@ -57,19 +57,9 @@ "use strict"; | ||
| }); | ||
| var __importStar = (this && this.__importStar) || (function () { | ||
| var ownKeys = function(o) { | ||
| ownKeys = Object.getOwnPropertyNames || function (o) { | ||
| var ar = []; | ||
| for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k; | ||
| return ar; | ||
| }; | ||
| return ownKeys(o); | ||
| }; | ||
| return function (mod) { | ||
| if (mod && mod.__esModule) return mod; | ||
| var result = {}; | ||
| if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]); | ||
| __setModuleDefault(result, mod); | ||
| return result; | ||
| }; | ||
| })(); | ||
| var __importStar = (this && this.__importStar) || function (mod) { | ||
| if (mod && mod.__esModule) return mod; | ||
| var result = {}; | ||
| if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
| __setModuleDefault(result, mod); | ||
| return result; | ||
| }; | ||
| var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
@@ -85,4 +75,4 @@ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } | ||
| var __generator = (this && this.__generator) || function (thisArg, body) { | ||
| var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype); | ||
| return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | ||
| var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; | ||
| return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | ||
| function verb(n) { return function (v) { return step([n, v]); }; } | ||
@@ -116,4 +106,3 @@ function step(op) { | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.RequiredError = exports.BaseAPI = exports.Environment = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0; | ||
| exports.resetRetry = resetRetry; | ||
| exports.RequiredError = exports.BaseAPI = exports.resetRetry = exports.Environment = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0; | ||
| var configuration_1 = require("./configuration"); | ||
@@ -149,3 +138,3 @@ // Some imports not used depending on template conditions | ||
| Environment["ProductionZurich"] = "https://eu-central-2.apiv2.emil.de"; | ||
| })(Environment || (exports.Environment = Environment = {})); | ||
| })(Environment = exports.Environment || (exports.Environment = {})); | ||
| var _retry_count = 0; | ||
@@ -156,2 +145,3 @@ var _retry = null; | ||
| } | ||
| exports.resetRetry = resetRetry; | ||
| var NETWORK_ERROR_MESSAGE = "Network Error"; | ||
@@ -180,5 +170,5 @@ /** | ||
| } | ||
| BaseAPI.prototype.initialize = function () { | ||
| return __awaiter(this, arguments, void 0, function (env) { | ||
| if (env === void 0) { env = Environment.Production; } | ||
| BaseAPI.prototype.initialize = function (env) { | ||
| if (env === void 0) { env = Environment.Production; } | ||
| return __awaiter(this, void 0, void 0, function () { | ||
| return __generator(this, function (_a) { | ||
@@ -185,0 +175,0 @@ switch (_a.label) { |
+1
-1
@@ -66,3 +66,3 @@ /** | ||
| */ | ||
| export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>; | ||
| export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>; | ||
| /** | ||
@@ -69,0 +69,0 @@ * EMIL DiscountService |
+2
-2
@@ -36,4 +36,4 @@ "use strict"; | ||
| var __generator = (this && this.__generator) || function (thisArg, body) { | ||
| var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype); | ||
| return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | ||
| var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; | ||
| return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; | ||
| function verb(n) { return function (v) { return step([n, v]); }; } | ||
@@ -40,0 +40,0 @@ function step(op) { |
+4
-4
| { | ||
| "name": "@emilgroup/discount-sdk-node", | ||
| "version": "1.1.1-beta.1", | ||
| "version": "1.2.0", | ||
| "description": "OpenAPI client for @emilgroup/discount-sdk-node", | ||
@@ -21,3 +21,3 @@ "author": "OpenAPI-Generator Contributors", | ||
| "dependencies": { | ||
| "axios": "^1.9.0", | ||
| "axios": "^0.27.2", | ||
| "form-data": "^4.0.0", | ||
@@ -27,5 +27,5 @@ "url": "^0.11.0" | ||
| "devDependencies": { | ||
| "@types/node": "^22.15.18", | ||
| "typescript": "^5.8" | ||
| "@types/node": "^12.11.5", | ||
| "typescript": "^4.0" | ||
| } | ||
| } |
+2
-2
@@ -20,7 +20,7 @@ # Emil Discount SDK | ||
| ``` | ||
| npm install @emilgroup/discount-sdk-node@1.1.1-beta.1 --save | ||
| npm install @emilgroup/discount-sdk-node@1.2.0 --save | ||
| ``` | ||
| or | ||
| ``` | ||
| yarn add @emilgroup/discount-sdk-node@1.1.1-beta.1 | ||
| yarn add @emilgroup/discount-sdk-node@1.2.0 | ||
| ``` | ||
@@ -27,0 +27,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
-50%728745
-1.25%14576
-0.99%+ Added
- Removed
- Removed
Updated