diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..763301f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +dist/ +node_modules/ \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index dcbcbe1..4215366 100644 --- a/package-lock.json +++ b/package-lock.json @@ -34,7 +34,8 @@ "@babel/register": "^7.0.0", "expect.js": "^0.3.1", "mocha": "^8.0.1", - "sinon": "^7.2.0" + "sinon": "^7.2.0", + "typescript": "^4.9.4" } }, "node_modules/@ampproject/remapping": { @@ -3900,6 +3901,19 @@ "node": ">=4" } }, + "node_modules/typescript": { + "version": "4.9.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.4.tgz", + "integrity": "sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg==", + "dev": true, + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + }, "node_modules/unicode-canonical-property-names-ecmascript": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", @@ -6960,6 +6974,12 @@ "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", "dev": true }, + "typescript": { + "version": "4.9.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.4.tgz", + "integrity": "sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg==", + "dev": true + }, "unicode-canonical-property-names-ecmascript": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", diff --git a/package.json b/package.json index c0bef66..7ad5218 100644 --- a/package.json +++ b/package.json @@ -4,51 +4,54 @@ "description": "JavaScript API client for accessing the Whop API", "license": "Apache 2.0", "main": "dist/index.js", + "types": "types/index.d.ts", "scripts": { - "build": "babel src -d dist", - "prepare": "npm run build", - "test": "mocha --require @babel/register --recursive" + "build": "babel src -d dist", + "prepare": "npm run build", + "test": "mocha --require @babel/register --recursive", + "build-types": "tsc" }, "browser": { - "fs": false + "fs": false }, "dependencies": { - "@babel/cli": "^7.0.0", - "superagent": "^5.3.0" + "@babel/cli": "^7.0.0", + "superagent": "^5.3.0" }, "repository": { - "type": "git", - "url": "https://github.com/whopio/whop-javascript-sdk.git" + "type": "git", + "url": "https://github.com/whopio/whop-javascript-sdk.git" }, "bugs": { - "url": "https://github.com/whopio/whop-javascript-sdk/issues", - "email": "support@whop.com" + "url": "https://github.com/whopio/whop-javascript-sdk/issues", + "email": "support@whop.com" }, "devDependencies": { - "@babel/core": "^7.0.0", - "@babel/plugin-proposal-class-properties": "^7.0.0", - "@babel/plugin-proposal-decorators": "^7.0.0", - "@babel/plugin-proposal-do-expressions": "^7.0.0", - "@babel/plugin-proposal-export-default-from": "^7.0.0", - "@babel/plugin-proposal-export-namespace-from": "^7.0.0", - "@babel/plugin-proposal-function-bind": "^7.0.0", - "@babel/plugin-proposal-function-sent": "^7.0.0", - "@babel/plugin-proposal-json-strings": "^7.0.0", - "@babel/plugin-proposal-logical-assignment-operators": "^7.0.0", - "@babel/plugin-proposal-nullish-coalescing-operator": "^7.0.0", - "@babel/plugin-proposal-numeric-separator": "^7.0.0", - "@babel/plugin-proposal-optional-chaining": "^7.0.0", - "@babel/plugin-proposal-pipeline-operator": "^7.0.0", - "@babel/plugin-proposal-throw-expressions": "^7.0.0", - "@babel/plugin-syntax-dynamic-import": "^7.0.0", - "@babel/plugin-syntax-import-meta": "^7.0.0", - "@babel/preset-env": "^7.0.0", - "@babel/register": "^7.0.0", - "expect.js": "^0.3.1", - "mocha": "^8.0.1", - "sinon": "^7.2.0" + "@babel/core": "^7.0.0", + "@babel/plugin-proposal-class-properties": "^7.0.0", + "@babel/plugin-proposal-decorators": "^7.0.0", + "@babel/plugin-proposal-do-expressions": "^7.0.0", + "@babel/plugin-proposal-export-default-from": "^7.0.0", + "@babel/plugin-proposal-export-namespace-from": "^7.0.0", + "@babel/plugin-proposal-function-bind": "^7.0.0", + "@babel/plugin-proposal-function-sent": "^7.0.0", + "@babel/plugin-proposal-json-strings": "^7.0.0", + "@babel/plugin-proposal-logical-assignment-operators": "^7.0.0", + "@babel/plugin-proposal-nullish-coalescing-operator": "^7.0.0", + "@babel/plugin-proposal-numeric-separator": "^7.0.0", + "@babel/plugin-proposal-optional-chaining": "^7.0.0", + "@babel/plugin-proposal-pipeline-operator": "^7.0.0", + "@babel/plugin-proposal-throw-expressions": "^7.0.0", + "@babel/plugin-syntax-dynamic-import": "^7.0.0", + "@babel/plugin-syntax-import-meta": "^7.0.0", + "@babel/preset-env": "^7.0.0", + "@babel/register": "^7.0.0", + "expect.js": "^0.3.1", + "mocha": "^8.0.1", + "sinon": "^7.2.0", + "typescript": "^4.9.4" }, "files": [ - "dist" + "dist" ] - } +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..55353f6 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,22 @@ +{ + // Change this to match your project + "include": ["src/**/*"], + "exclude": ["node_modules", "dist"], + "compilerOptions": { + // Tells TypeScript to read JS files, as + // normally they are ignored as source files + "allowJs": true, + // Generate d.ts files + "declaration": true, + // This compiler run should + // only output d.ts files + "emitDeclarationOnly": true, + // Types should go into this directory. + // Removing this would place the .d.ts files + // next to the .js files + "outDir": "types", + // go to js file when using IDE functions like + // "Go to Definition" in VSCode + "declarationMap": true + } +} \ No newline at end of file diff --git a/types/ApiClient.d.ts b/types/ApiClient.d.ts new file mode 100644 index 0000000..753390a --- /dev/null +++ b/types/ApiClient.d.ts @@ -0,0 +1,203 @@ +export default ApiClient; +/** +* @module ApiClient +* @version 1.0.10 +*/ +/** +* Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an +* application to use this class directly - the *Api and model classes provide the public API for the service. The +* contents of this file should be regarded as internal but are documented for completeness. +* @alias module:ApiClient +* @class +*/ +declare class ApiClient { + /** + * Returns a boolean indicating if the parameter could be JSON.stringified + * @param param The actual parameter + * @returns {Boolean} Flag indicating if param can be JSON.stringified + */ + static canBeJsonified(str: any): boolean; + /** + * Parses an ISO-8601 string representation or epoch representation of a date value. + * @param {String} str The date value as a string. + * @returns {Date} The parsed date object. + */ + static parseDate(str: string): Date; + /** + * Converts a value to the specified type. + * @param {(String|Object)} data The data to convert, as a string or object. + * @param {(String|Array.|Object.|Function)} type The type to return. Pass a string for simple types + * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To + * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type: + * all properties on data will be converted to this type. + * @returns An instance of the specified type or null or undefined if data is null or undefined. + */ + static convertToType(data: (string | any), type: (string | Array | any | Function)): any; + /** + * Constructs a new map or array model from REST data. + * @param data {Object|Array} The REST data. + * @param obj {Object|Array} The target object or array. + */ + static constructFromObject(data: any | any[], obj: any | any[], itemType: any): void; + /** + * The base URL against which to resolve every API call's (relative) path. + * Overrides the default value set in spec file if present + * @param {String} basePath + */ + constructor(basePath?: string); + /** + * The base URL against which to resolve every API call's (relative) path. + * @type {String} + * @default https://api.whop.com/api + */ + basePath: string; + /** + * The authentication methods to be included for all API calls. + * @type {Array.} + */ + authentications: Array; + /** + * The default HTTP headers to be included for all API calls. + * @type {Array.} + * @default {} + */ + defaultHeaders: Array; + /** + * The default HTTP timeout for all API calls. + * @type {Number} + * @default 60000 + */ + timeout: number; + /** + * If set to false an additional timestamp parameter is added to all API GET calls to + * prevent browser caching + * @type {Boolean} + * @default true + */ + cache: boolean; + /** + * If set to true, the client will save the cookies from each server + * response, and return them in the next request. + * @default false + */ + enableCookies: boolean; + agent: any; + requestAgent: any; + plugins: any; + /** + * Returns a string representation for an actual parameter. + * @param param The actual parameter. + * @returns {String} The string representation of param. + */ + paramToString(param: any): string; + /** + * Builds full URL by appending the given path to the base URL and replacing path parameter place-holders with parameter values. + * NOTE: query parameters are not handled here. + * @param {String} path The path to append to the base URL. + * @param {Object} pathParams The parameter values to append. + * @param {String} apiBasePath Base path defined in the path, operation level to override the default one + * @returns {String} The encoded path with parameter values substituted. + */ + buildUrl(path: string, pathParams: any, apiBasePath: string): string; + /** + * Checks whether the given content type represents JSON.
+ * JSON content type examples:
+ *
    + *
  • application/json
  • + *
  • application/json; charset=UTF8
  • + *
  • APPLICATION/JSON
  • + *
+ * @param {String} contentType The MIME content type to check. + * @returns {Boolean} true if contentType represents JSON, otherwise false. + */ + isJsonMime(contentType: string): boolean; + /** + * Chooses a content type from the given array, with JSON preferred; i.e. return JSON if included, otherwise return the first. + * @param {Array.} contentTypes + * @returns {String} The chosen content type, preferring JSON. + */ + jsonPreferredMime(contentTypes: Array): string; + /** + * Checks whether the given parameter value represents file-like content. + * @param param The parameter to check. + * @returns {Boolean} true if param represents a file. + */ + isFileParam(param: any): boolean; + /** + * Normalizes parameter values: + *
    + *
  • remove nils
  • + *
  • keep files and arrays
  • + *
  • format to string with `paramToString` for other cases
  • + *
+ * @param {Object.} params The parameters as object properties. + * @returns {Object.} normalized parameters. + */ + normalizeParams(params: any): any; + /** + * Builds a string representation of an array-type actual parameter, according to the given collection format. + * @param {Array} param An array parameter. + * @param {module:ApiClient.CollectionFormatEnum} collectionFormat The array element separator strategy. + * @returns {String|Array} A string representation of the supplied collection, using the specified delimiter. Returns + * param as is if collectionFormat is multi. + */ + buildCollectionParam(param: any[], collectionFormat: any): string | any[]; + /** + * Applies authentication headers to the request. + * @param {Object} request The request object created by a superagent() call. + * @param {Array.} authNames An array of authentication method names. + */ + applyAuthToRequest(request: any, authNames: Array): void; + /** + * Deserializes an HTTP response body into a value of the specified type. + * @param {Object} response A SuperAgent response object. + * @param {(String|Array.|Object.|Function)} returnType The type to return. Pass a string for simple types + * or the constructor function for a complex type. Pass an array containing the type name to return an array of that type. To + * return an object, pass an object with one property whose name is the key type and whose value is the corresponding value type: + * all properties on data will be converted to this type. + * @returns A value of the specified type. + */ + deserialize(response: any, returnType: (string | Array | any | Function)): any; + /** + * Invokes the REST service using the supplied settings and parameters. + * @param {String} path The base URL to invoke. + * @param {String} httpMethod The HTTP method to use. + * @param {Object.} pathParams A map of path parameters and their values. + * @param {Object.} queryParams A map of query parameters and their values. + * @param {Object.} headerParams A map of header parameters and their values. + * @param {Object.} formParams A map of form parameters and their values. + * @param {Object} bodyParam The value to pass as the request body. + * @param {Array.} authNames An array of authentication type names. + * @param {Array.} contentTypes An array of request MIME types. + * @param {Array.} accepts An array of acceptable response MIME types. + * @param {(String|Array|ObjectFunction)} returnType The required type to return; can be a string for simple types or the + * constructor for a complex type. + * @param {String} apiBasePath base path defined in the operation/path level to override the default one + * @returns {Promise} A {@link https://www.promisejs.org/|Promise} object. + */ + callApi(path: string, httpMethod: string, pathParams: any, queryParams: any, headerParams: any, formParams: any, bodyParam: any, authNames: Array, contentTypes: Array, accepts: Array, returnType: (string | any[] | ObjectFunction), apiBasePath: string): Promise; + /** + * Gets an array of host settings + * @returns An array of host settings + */ + hostSettings(): { + url: string; + description: string; + }[]; + getBasePathFromSettings(index: any, variables?: {}): string; +} +declare namespace ApiClient { + namespace CollectionFormatEnum { + const CSV: string; + const SSV: string; + const TSV: string; + const PIPES: string; + const MULTI: string; + } + /** + * * + */ + type CollectionFormatEnum = string; + const instance: any; +} +//# sourceMappingURL=ApiClient.d.ts.map \ No newline at end of file diff --git a/types/ApiClient.d.ts.map b/types/ApiClient.d.ts.map new file mode 100644 index 0000000..2cd0f67 --- /dev/null +++ b/types/ApiClient.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ApiClient.d.ts","sourceRoot":"","sources":["../src/ApiClient.js"],"names":[],"mappings":";AAiBA;;;EAGE;AAEF;;;;;;EAME;AACF;IA6FI;;;;MAIE;IACF,yCASC;IAsXD;;;;MAIE;IACF,+BAFY,IAAI,CAOf;IAED;;;;;;;;MAQE;IACF,2BAPU,CAAC,YAAa,CAAC,QACf,CAAC,SAAO,aAAc,iBAAiC,CAAC,OA+DjE;IA2CD;;;;MAIE;IACF,iCAHe,WAAY,OACb,WAAY,uBAczB;IA1mBD;;;;OAIG;IACH,+BAkEC;IAjEG;;;;OAIG;IACH,iBAA4C;IAE5C;;;OAGG;IACH,iBAFU,aAAc,CAKvB;IAED;;;;OAIG;IACH,gBAHU,aAAc,CAKvB;IAED;;;;OAIG;IACH,gBAAoB;IAEpB;;;;;OAKG;IACH,eAAiB;IAEjB;;;;OAIG;IACH,uBAA0B;IAOxB,WAAmC;IAMpC,kBAAwB;IAKzB,aAAmB;IAIvB;;;;MAIE;IACF,kCAYC;IAkBF;;;;;;;OAOG;IACF,qEAwBC;IAED;;;;;;;;;;MAUE;IACF,yCAEC;IAED;;;;MAIE;IACF,gCAHU,aAAc,UAWvB;IAED;;;;MAIE;IACF,iCA4BC;IAED;;;;;;;;;MASE;IACF,kCAcC;IAED;;;;;;MAME;IACF,2DAHY,cAAY,CAwBvB;IAED;;;;MAIE;IACF,4CAFU,aAAc,QAgDvB;IAEF;;;;;;;;OAQG;IACF,uCANU,CAAC,SAAO,aAAc,iBAAiC,CAAC,OAoBjE;IAGF;;;;;;;;;;;;;;;;OAgBG;IACF,4IARU,aAAc,gBACd,aAAc,WACd,aAAc,cACd,CAAC,+BAA2B,CAAC,qCA4HtC;IAkFH;;;QAGI;IACF;;;QAOC;IAED,4DA0BC;CAoBJ"} \ No newline at end of file diff --git a/types/api/CheckoutLogsApi.d.ts b/types/api/CheckoutLogsApi.d.ts new file mode 100644 index 0000000..0c060a6 --- /dev/null +++ b/types/api/CheckoutLogsApi.d.ts @@ -0,0 +1,57 @@ +/** +* CheckoutLogs service. +* @module api/CheckoutLogsApi +* @version 1.0.10 +*/ +export default class CheckoutLogsApi { + /** + * Constructs a new CheckoutLogsApi. + * @alias module:api/CheckoutLogsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient?: any); + apiClient: any; + /** + * Add Checkout Log + * @param {Object} opts Optional parameters + * @param {module:model/CreateCheckoutLogRequest} opts.createCheckoutLogRequest Click the arrow to the right to see the full body. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateCheckoutLogResponse} and HTTP response + */ + createCheckoutLogWithHttpInfo(opts: { + createCheckoutLogRequest: any; + }): Promise; + /** + * Add Checkout Log + * @param {Object} opts Optional parameters + * @param {module:model/CreateCheckoutLogRequest} opts.createCheckoutLogRequest Click the arrow to the right to see the full body. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateCheckoutLogResponse} + */ + createCheckoutLog(opts: { + createCheckoutLogRequest: any; + }): Promise; + /** + * Fetch Checkout Logs + * @param {Object} opts Optional parameters + * @param {String} opts.key Key for which you want to fetch checkout logs. + * @param {module:model/String} opts.status Status of checkout logs to filter by. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetCheckoutLogsResponse} and HTTP response + */ + getCheckoutLogsWithHttpInfo(opts: { + key: string; + status: any; + }): Promise; + /** + * Fetch Checkout Logs + * @param {Object} opts Optional parameters + * @param {String} opts.key Key for which you want to fetch checkout logs. + * @param {module:model/String} opts.status Status of checkout logs to filter by. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetCheckoutLogsResponse} + */ + getCheckoutLogs(opts: { + key: string; + status: any; + }): Promise; +} +//# sourceMappingURL=CheckoutLogsApi.d.ts.map \ No newline at end of file diff --git a/types/api/CheckoutLogsApi.d.ts.map b/types/api/CheckoutLogsApi.d.ts.map new file mode 100644 index 0000000..ec70d7a --- /dev/null +++ b/types/api/CheckoutLogsApi.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"CheckoutLogsApi.d.ts","sourceRoot":"","sources":["../../src/api/CheckoutLogsApi.js"],"names":[],"mappings":"AAoBA;;;;EAIE;AACF;IAEI;;;;;;MAME;IACF,6BAEC;IADG,eAAgD;IAKpD;;;;;OAKG;IACH;QAHuD,wBAAwB;qBAyB9E;IAED;;;;;OAKG;IACH;QAHuD,wBAAwB;qBAQ9E;IAGD;;;;;;OAMG;IACH;QAJwB,GAAG;QACU,MAAM;qBA2B1C;IAED;;;;;;OAMG;IACH;QAJwB,GAAG;QACU,MAAM;qBAQ1C;CAGJ"} \ No newline at end of file diff --git a/types/api/LicensesApi.d.ts b/types/api/LicensesApi.d.ts new file mode 100644 index 0000000..068dcfa --- /dev/null +++ b/types/api/LicensesApi.d.ts @@ -0,0 +1,123 @@ +/** +* Licenses service. +* @module api/LicensesApi +* @version 1.0.10 +*/ +export default class LicensesApi { + /** + * Constructs a new LicensesApi. + * @alias module:api/LicensesApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient?: any); + apiClient: any; + /** + * Ban License + * @param {String} key Key of the license you wish to ban. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/BanLicenseByKeyResponse} and HTTP response + */ + banLicenseByKeyWithHttpInfo(key: string): Promise; + /** + * Ban License + * @param {String} key Key of the license you wish to ban. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BanLicenseByKeyResponse} + */ + banLicenseByKey(key: string): Promise; + /** + * Fetch License + * @param {String} key Key of the license you wish to fetch. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetLicenseByKeyResponse} and HTTP response + */ + getLicenseByKeyWithHttpInfo(key: string): Promise; + /** + * Fetch License + * @param {String} key Key of the license you wish to fetch. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetLicenseByKeyResponse} + */ + getLicenseByKey(key: string): Promise; + /** + * Fetch All Licenses + * @param {Object} opts Optional parameters + * @param {String} opts.discordAccountId ID of the Discord account for which you want to fetch licenses. + * @param {Number} opts.page Page number of license data to fetch. + * @param {String} opts.start Start date of license creation. Date should be in the format YYYY-MM-DD. + * @param {String} opts.end End date of license creation. Date should be in the format YYYY-MM-DD. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetLicensesResponse} and HTTP response + */ + getLicensesWithHttpInfo(opts: { + discordAccountId: string; + page: number; + start: string; + end: string; + }): Promise; + /** + * Fetch All Licenses + * @param {Object} opts Optional parameters + * @param {String} opts.discordAccountId ID of the Discord account for which you want to fetch licenses. + * @param {Number} opts.page Page number of license data to fetch. + * @param {String} opts.start Start date of license creation. Date should be in the format YYYY-MM-DD. + * @param {String} opts.end End date of license creation. Date should be in the format YYYY-MM-DD. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetLicensesResponse} + */ + getLicenses(opts: { + discordAccountId: string; + page: number; + start: string; + end: string; + }): Promise; + /** + * Reset License + * @param {String} key Key of the license you wish to reset. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResetLicenseByKeyResponse} and HTTP response + */ + resetLicenseByKeyWithHttpInfo(key: string): Promise; + /** + * Reset License + * @param {String} key Key of the license you wish to reset. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResetLicenseByKeyResponse} + */ + resetLicenseByKey(key: string): Promise; + /** + * Update License + * @param {String} key Key of the license you wish to update. + * @param {Object} opts Optional parameters + * @param {module:model/UpdateLicenseByKeyRequest} opts.updateLicenseByKeyRequest Details of license key metadata. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateLicenseByKeyResponse} and HTTP response + */ + updateLicenseByKeyWithHttpInfo(key: string, opts: { + updateLicenseByKeyRequest: any; + }): Promise; + /** + * Update License + * @param {String} key Key of the license you wish to update. + * @param {Object} opts Optional parameters + * @param {module:model/UpdateLicenseByKeyRequest} opts.updateLicenseByKeyRequest Details of license key metadata. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateLicenseByKeyResponse} + */ + updateLicenseByKey(key: string, opts: { + updateLicenseByKeyRequest: any; + }): Promise; + /** + * Validate Key + * @param {String} key Key of the license you wish to validate. + * @param {Object} opts Optional parameters + * @param {module:model/ValidateLicenseByKeyRequest} opts.validateLicenseByKeyRequest Details of license key metadata. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ValidateLicenseByKeyResponse} and HTTP response + */ + validateLicenseByKeyWithHttpInfo(key: string, opts: { + validateLicenseByKeyRequest: any; + }): Promise; + /** + * Validate Key + * @param {String} key Key of the license you wish to validate. + * @param {Object} opts Optional parameters + * @param {module:model/ValidateLicenseByKeyRequest} opts.validateLicenseByKeyRequest Details of license key metadata. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ValidateLicenseByKeyResponse} + */ + validateLicenseByKey(key: string, opts: { + validateLicenseByKeyRequest: any; + }): Promise; +} +//# sourceMappingURL=LicensesApi.d.ts.map \ No newline at end of file diff --git a/types/api/LicensesApi.d.ts.map b/types/api/LicensesApi.d.ts.map new file mode 100644 index 0000000..62d5dc9 --- /dev/null +++ b/types/api/LicensesApi.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"LicensesApi.d.ts","sourceRoot":"","sources":["../../src/api/LicensesApi.js"],"names":[],"mappings":"AAyBA;;;;EAIE;AACF;IAEI;;;;;;MAME;IACF,6BAEC;IADG,eAAgD;IAKpD;;;;OAIG;IACH,uDA0BC;IAED;;;;OAIG;IACH,2CAKC;IAGD;;;;OAIG;IACH,uDA0BC;IAED;;;;OAIG;IACH,2CAKC;IAGD;;;;;;;;OAQG;IACH;QANwB,gBAAgB;QAChB,IAAI;QACJ,KAAK;QACL,GAAG;qBA6B1B;IAED;;;;;;;;OAQG;IACH;QANwB,gBAAgB;QAChB,IAAI;QACJ,KAAK;QACL,GAAG;qBAQ1B;IAGD;;;;OAIG;IACH,yDA0BC;IAED;;;;OAIG;IACH,6CAKC;IAGD;;;;;;OAMG;IACH;QAHwD,yBAAyB;qBA8BhF;IAED;;;;;;OAMG;IACH;QAHwD,yBAAyB;qBAQhF;IAGD;;;;;;OAMG;IACH;QAH0D,2BAA2B;qBA8BpF;IAED;;;;;;OAMG;IACH;QAH0D,2BAA2B;qBAQpF;CAGJ"} \ No newline at end of file diff --git a/types/api/LinksApi.d.ts b/types/api/LinksApi.d.ts new file mode 100644 index 0000000..1e46c13 --- /dev/null +++ b/types/api/LinksApi.d.ts @@ -0,0 +1,45 @@ +/** +* Links service. +* @module api/LinksApi +* @version 1.0.10 +*/ +export default class LinksApi { + /** + * Constructs a new LinksApi. + * @alias module:api/LinksApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient?: any); + apiClient: any; + /** + * Create Password Protected Link + * @param {Object} opts Optional parameters + * @param {module:model/CreateLinkRequest} opts.createLinkRequest Click the arrow to the right to see the full body. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateLinkResponse} and HTTP response + */ + createLinkWithHttpInfo(opts: { + createLinkRequest: any; + }): Promise; + /** + * Create Password Protected Link + * @param {Object} opts Optional parameters + * @param {module:model/CreateLinkRequest} opts.createLinkRequest Click the arrow to the right to see the full body. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateLinkResponse} + */ + createLink(opts: { + createLinkRequest: any; + }): Promise; + /** + * Fetch Links + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetLinksResponse} and HTTP response + */ + getLinksWithHttpInfo(): Promise; + /** + * Fetch Links + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetLinksResponse} + */ + getLinks(): Promise; +} +//# sourceMappingURL=LinksApi.d.ts.map \ No newline at end of file diff --git a/types/api/LinksApi.d.ts.map b/types/api/LinksApi.d.ts.map new file mode 100644 index 0000000..b0e3e2f --- /dev/null +++ b/types/api/LinksApi.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"LinksApi.d.ts","sourceRoot":"","sources":["../../src/api/LinksApi.js"],"names":[],"mappings":"AAoBA;;;;EAIE;AACF;IAEI;;;;;;MAME;IACF,6BAEC;IADG,eAAgD;IAKpD;;;;;OAKG;IACH;QAHgD,iBAAiB;qBAyBhE;IAED;;;;;OAKG;IACH;QAHgD,iBAAiB;qBAQhE;IAGD;;;OAGG;IACH,qCAqBC;IAED;;;OAGG;IACH,yBAKC;CAGJ"} \ No newline at end of file diff --git a/types/api/NotificationsApi.d.ts b/types/api/NotificationsApi.d.ts new file mode 100644 index 0000000..70ff8b4 --- /dev/null +++ b/types/api/NotificationsApi.d.ts @@ -0,0 +1,35 @@ +/** +* Notifications service. +* @module api/NotificationsApi +* @version 1.0.10 +*/ +export default class NotificationsApi { + /** + * Constructs a new NotificationsApi. + * @alias module:api/NotificationsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient?: any); + apiClient: any; + /** + * Send a push notification + * @param {Object} opts Optional parameters + * @param {module:model/SendPushNotificationRequest} opts.sendPushNotificationRequest Click the arrow to the right to see the full body. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendPushNotificationResponse} and HTTP response + */ + sendPushNotificationWithHttpInfo(opts: { + sendPushNotificationRequest: any; + }): Promise; + /** + * Send a push notification + * @param {Object} opts Optional parameters + * @param {module:model/SendPushNotificationRequest} opts.sendPushNotificationRequest Click the arrow to the right to see the full body. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendPushNotificationResponse} + */ + sendPushNotification(opts: { + sendPushNotificationRequest: any; + }): Promise; +} +//# sourceMappingURL=NotificationsApi.d.ts.map \ No newline at end of file diff --git a/types/api/NotificationsApi.d.ts.map b/types/api/NotificationsApi.d.ts.map new file mode 100644 index 0000000..81db9ac --- /dev/null +++ b/types/api/NotificationsApi.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"NotificationsApi.d.ts","sourceRoot":"","sources":["../../src/api/NotificationsApi.js"],"names":[],"mappings":"AAmBA;;;;EAIE;AACF;IAEI;;;;;;MAME;IACF,6BAEC;IADG,eAAgD;IAKpD;;;;;OAKG;IACH;QAH0D,2BAA2B;qBAyBpF;IAED;;;;;OAKG;IACH;QAH0D,2BAA2B;qBAQpF;CAGJ"} \ No newline at end of file diff --git a/types/api/ProductsApi.d.ts b/types/api/ProductsApi.d.ts new file mode 100644 index 0000000..ee1b068 --- /dev/null +++ b/types/api/ProductsApi.d.ts @@ -0,0 +1,75 @@ +/** +* Products service. +* @module api/ProductsApi +* @version 1.0.10 +*/ +export default class ProductsApi { + /** + * Constructs a new ProductsApi. + * @alias module:api/ProductsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient?: any); + apiClient: any; + /** + * Product Creation Confirmation + * @param {Object} opts Optional parameters + * @param {module:model/ConfirmProductRequest} opts.confirmProductRequest Click the arrow to the right to see the full body. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ConfirmProductResponse} and HTTP response + */ + confirmProductWithHttpInfo(opts: { + confirmProductRequest: any; + }): Promise; + /** + * Product Creation Confirmation + * @param {Object} opts Optional parameters + * @param {module:model/ConfirmProductRequest} opts.confirmProductRequest Click the arrow to the right to see the full body. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ConfirmProductResponse} + */ + confirmProduct(opts: { + confirmProductRequest: any; + }): Promise; + /** + * Create Product + * @param {Object} opts Optional parameters + * @param {module:model/CreateProductRequest} opts.createProductRequest Click the arrow to the right to see the full body. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateProductResponse} and HTTP response + */ + createProductWithHttpInfo(opts: { + createProductRequest: any; + }): Promise; + /** + * Create Product + * @param {Object} opts Optional parameters + * @param {module:model/CreateProductRequest} opts.createProductRequest Click the arrow to the right to see the full body. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateProductResponse} + */ + createProduct(opts: { + createProductRequest: any; + }): Promise; + /** + * Fetch Product + * @param {Number} id ID of the product you wish to fetch. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProductByIdResponse} and HTTP response + */ + getProductByIdWithHttpInfo(id: number): Promise; + /** + * Fetch Product + * @param {Number} id ID of the product you wish to fetch. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProductByIdResponse} + */ + getProductById(id: number): Promise; + /** + * Fetch All Products + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetProductsResponse} and HTTP response + */ + getProductsWithHttpInfo(): Promise; + /** + * Fetch All Products + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetProductsResponse} + */ + getProducts(): Promise; +} +//# sourceMappingURL=ProductsApi.d.ts.map \ No newline at end of file diff --git a/types/api/ProductsApi.d.ts.map b/types/api/ProductsApi.d.ts.map new file mode 100644 index 0000000..783ea39 --- /dev/null +++ b/types/api/ProductsApi.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ProductsApi.d.ts","sourceRoot":"","sources":["../../src/api/ProductsApi.js"],"names":[],"mappings":"AAuBA;;;;EAIE;AACF;IAEI;;;;;;MAME;IACF,6BAEC;IADG,eAAgD;IAKpD;;;;;OAKG;IACH;QAHoD,qBAAqB;qBAyBxE;IAED;;;;;OAKG;IACH;QAHoD,qBAAqB;qBAQxE;IAGD;;;;;OAKG;IACH;QAHmD,oBAAoB;qBAyBtE;IAED;;;;;OAKG;IACH;QAHmD,oBAAoB;qBAQtE;IAGD;;;;OAIG;IACH,qDA0BC;IAED;;;;OAIG;IACH,yCAKC;IAGD;;;OAGG;IACH,wCAqBC;IAED;;;OAGG;IACH,4BAKC;CAGJ"} \ No newline at end of file diff --git a/types/index.d.ts b/types/index.d.ts new file mode 100644 index 0000000..a8eb7e0 --- /dev/null +++ b/types/index.d.ts @@ -0,0 +1,40 @@ +import Whop from "./whop"; +import ApiClient from "./ApiClient"; +import BanLicenseByKeyResponse from "./model/BanLicenseByKeyResponse"; +import CheckoutLog from "./model/CheckoutLog"; +import ConfirmProductRequest from "./model/ConfirmProductRequest"; +import ConfirmProductResponse from "./model/ConfirmProductResponse"; +import CreateCheckoutLogRequest from "./model/CreateCheckoutLogRequest"; +import CreateCheckoutLogResponse from "./model/CreateCheckoutLogResponse"; +import CreateLinkRequest from "./model/CreateLinkRequest"; +import CreateLinkResponse from "./model/CreateLinkResponse"; +import CreateProductRequest from "./model/CreateProductRequest"; +import CreateProductResponse from "./model/CreateProductResponse"; +import CreateProductResponseProduct from "./model/CreateProductResponseProduct"; +import ErrorResponse from "./model/ErrorResponse"; +import GetCheckoutLogsResponse from "./model/GetCheckoutLogsResponse"; +import GetLicenseByKeyResponse from "./model/GetLicenseByKeyResponse"; +import GetLicensesResponse from "./model/GetLicensesResponse"; +import GetLinksResponse from "./model/GetLinksResponse"; +import GetProductByIdResponse from "./model/GetProductByIdResponse"; +import GetProductsResponse from "./model/GetProductsResponse"; +import License from "./model/License"; +import LicenseDiscord from "./model/LicenseDiscord"; +import LicensePlan from "./model/LicensePlan"; +import LicenseTwitter from "./model/LicenseTwitter"; +import Link from "./model/Link"; +import Product from "./model/Product"; +import ResetLicenseByKeyResponse from "./model/ResetLicenseByKeyResponse"; +import SendPushNotificationRequest from "./model/SendPushNotificationRequest"; +import SendPushNotificationResponse from "./model/SendPushNotificationResponse"; +import UpdateLicenseByKeyRequest from "./model/UpdateLicenseByKeyRequest"; +import UpdateLicenseByKeyResponse from "./model/UpdateLicenseByKeyResponse"; +import ValidateLicenseByKeyRequest from "./model/ValidateLicenseByKeyRequest"; +import ValidateLicenseByKeyResponse from "./model/ValidateLicenseByKeyResponse"; +import CheckoutLogsApi from "./api/CheckoutLogsApi"; +import LicensesApi from "./api/LicensesApi"; +import LinksApi from "./api/LinksApi"; +import NotificationsApi from "./api/NotificationsApi"; +import ProductsApi from "./api/ProductsApi"; +export { Whop, ApiClient, BanLicenseByKeyResponse, CheckoutLog, ConfirmProductRequest, ConfirmProductResponse, CreateCheckoutLogRequest, CreateCheckoutLogResponse, CreateLinkRequest, CreateLinkResponse, CreateProductRequest, CreateProductResponse, CreateProductResponseProduct, ErrorResponse, GetCheckoutLogsResponse, GetLicenseByKeyResponse, GetLicensesResponse, GetLinksResponse, GetProductByIdResponse, GetProductsResponse, License, LicenseDiscord, LicensePlan, LicenseTwitter, Link, Product, ResetLicenseByKeyResponse, SendPushNotificationRequest, SendPushNotificationResponse, UpdateLicenseByKeyRequest, UpdateLicenseByKeyResponse, ValidateLicenseByKeyRequest, ValidateLicenseByKeyResponse, CheckoutLogsApi, LicensesApi, LinksApi, NotificationsApi, ProductsApi }; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/types/index.d.ts.map b/types/index.d.ts.map new file mode 100644 index 0000000..6e08bd5 --- /dev/null +++ b/types/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/types/model/BanLicenseByKeyRequest.d.ts b/types/model/BanLicenseByKeyRequest.d.ts new file mode 100644 index 0000000..edfa3aa --- /dev/null +++ b/types/model/BanLicenseByKeyRequest.d.ts @@ -0,0 +1,24 @@ +export default BanLicenseByKeyRequest; +/** + * The BanLicenseByKeyRequest model module. + * @module model/BanLicenseByKeyRequest + * @version 1.0.10 + */ +declare class BanLicenseByKeyRequest { + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj: any): void; + /** + * Constructs a BanLicenseByKeyRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/BanLicenseByKeyRequest} obj Optional instance to populate. + * @return {module:model/BanLicenseByKeyRequest} The populated BanLicenseByKeyRequest instance. + */ + static constructFromObject(data: any, obj: any): any; + metadata: any; +} +//# sourceMappingURL=BanLicenseByKeyRequest.d.ts.map \ No newline at end of file diff --git a/types/model/BanLicenseByKeyRequest.d.ts.map b/types/model/BanLicenseByKeyRequest.d.ts.map new file mode 100644 index 0000000..3188e06 --- /dev/null +++ b/types/model/BanLicenseByKeyRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"BanLicenseByKeyRequest.d.ts","sourceRoot":"","sources":["../../src/model/BanLicenseByKeyRequest.js"],"names":[],"mappings":";AAgBA;;;;GAIG;AACH;IAUI;;;;OAIG;IACH,kCACC;IAED;;;;;;OAMG;IACH,qDASC;;CAGJ"} \ No newline at end of file diff --git a/types/model/BanLicenseByKeyResponse.d.ts b/types/model/BanLicenseByKeyResponse.d.ts new file mode 100644 index 0000000..3fc49cf --- /dev/null +++ b/types/model/BanLicenseByKeyResponse.d.ts @@ -0,0 +1,24 @@ +export default BanLicenseByKeyResponse; +/** + * The BanLicenseByKeyResponse model module. + * @module model/BanLicenseByKeyResponse + * @version 1.0.10 + */ +declare class BanLicenseByKeyResponse { + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj: any): void; + /** + * Constructs a BanLicenseByKeyResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/BanLicenseByKeyResponse} obj Optional instance to populate. + * @return {module:model/BanLicenseByKeyResponse} The populated BanLicenseByKeyResponse instance. + */ + static constructFromObject(data: any, obj: any): any; + message: any; +} +//# sourceMappingURL=BanLicenseByKeyResponse.d.ts.map \ No newline at end of file diff --git a/types/model/BanLicenseByKeyResponse.d.ts.map b/types/model/BanLicenseByKeyResponse.d.ts.map new file mode 100644 index 0000000..f19b3d2 --- /dev/null +++ b/types/model/BanLicenseByKeyResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"BanLicenseByKeyResponse.d.ts","sourceRoot":"","sources":["../../src/model/BanLicenseByKeyResponse.js"],"names":[],"mappings":";AAeA;;;;GAIG;AACH;IAUI;;;;OAIG;IACH,kCACC;IAED;;;;;;OAMG;IACH,qDASC;;CAGJ"} \ No newline at end of file diff --git a/types/model/CheckoutLog.d.ts b/types/model/CheckoutLog.d.ts new file mode 100644 index 0000000..3a476ec --- /dev/null +++ b/types/model/CheckoutLog.d.ts @@ -0,0 +1,42 @@ +export default CheckoutLog; +/** + * The CheckoutLog model module. + * @module model/CheckoutLog + * @version 1.0.10 + */ +declare class CheckoutLog { + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj: any): void; + /** + * Constructs a CheckoutLog from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CheckoutLog} obj Optional instance to populate. + * @return {module:model/CheckoutLog} The populated CheckoutLog instance. + */ + static constructFromObject(data: any, obj: any): any; + id: any; + bot_id: any; + seller_bot_id: any; + user_id: any; + key: any; + product_name: any; + website: any; + size: any; + image_url: any; + price: any; + created_at: any; + updated_at: any; + status: any; +} +declare namespace CheckoutLog { + namespace StatusEnum { + const success: string; + const denied: string; + } +} +//# sourceMappingURL=CheckoutLog.d.ts.map \ No newline at end of file diff --git a/types/model/CheckoutLog.d.ts.map b/types/model/CheckoutLog.d.ts.map new file mode 100644 index 0000000..b466400 --- /dev/null +++ b/types/model/CheckoutLog.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"CheckoutLog.d.ts","sourceRoot":"","sources":["../../src/model/CheckoutLog.js"],"names":[],"mappings":";AAeA;;;;GAIG;AACH;IAUI;;;;OAIG;IACH,kCACC;IAED;;;;;;OAMG;IACH,qDA6CC;;;;;;;;;;;;;;CAGJ"} \ No newline at end of file diff --git a/types/model/ConfirmProductRequest.d.ts b/types/model/ConfirmProductRequest.d.ts new file mode 100644 index 0000000..e3b7b83 --- /dev/null +++ b/types/model/ConfirmProductRequest.d.ts @@ -0,0 +1,46 @@ +export default ConfirmProductRequest; +/** + * The ConfirmProductRequest model module. + * @module model/ConfirmProductRequest + * @version 1.0.10 + */ +declare class ConfirmProductRequest { + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj: any): void; + /** + * Constructs a ConfirmProductRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ConfirmProductRequest} obj Optional instance to populate. + * @return {module:model/ConfirmProductRequest} The populated ConfirmProductRequest instance. + */ + static constructFromObject(data: any, obj: any): any; + cancel_action: any; + title: any; + expiration_days: any; + currency: any; + license_type: any; + initial_price: any; + price: any; + billing_period: any; + stock: any; + transferable: any; + custom_trial_period: any; +} +declare namespace ConfirmProductRequest { + namespace CancelActionEnum { + const kick_user: string; + const remove_roles: string; + const remove_all_roles: string; + const no_action: string; + } + namespace LicenseTypeEnum { + const one_time: string; + const renewal: string; + } +} +//# sourceMappingURL=ConfirmProductRequest.d.ts.map \ No newline at end of file diff --git a/types/model/ConfirmProductRequest.d.ts.map b/types/model/ConfirmProductRequest.d.ts.map new file mode 100644 index 0000000..a6d83c9 --- /dev/null +++ b/types/model/ConfirmProductRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ConfirmProductRequest.d.ts","sourceRoot":"","sources":["../../src/model/ConfirmProductRequest.js"],"names":[],"mappings":";AAeA;;;;GAIG;AACH;IAUI;;;;OAIG;IACH,kCACC;IAED;;;;;;OAMG;IACH,qDAuCC;;;;;;;;;;;;CAGJ"} \ No newline at end of file diff --git a/types/model/ConfirmProductResponse.d.ts b/types/model/ConfirmProductResponse.d.ts new file mode 100644 index 0000000..f1e6ff1 --- /dev/null +++ b/types/model/ConfirmProductResponse.d.ts @@ -0,0 +1,24 @@ +export default ConfirmProductResponse; +/** + * The ConfirmProductResponse model module. + * @module model/ConfirmProductResponse + * @version 1.0.10 + */ +declare class ConfirmProductResponse { + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj: any): void; + /** + * Constructs a ConfirmProductResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ConfirmProductResponse} obj Optional instance to populate. + * @return {module:model/ConfirmProductResponse} The populated ConfirmProductResponse instance. + */ + static constructFromObject(data: any, obj: any): any; + confirmation: any; +} +//# sourceMappingURL=ConfirmProductResponse.d.ts.map \ No newline at end of file diff --git a/types/model/ConfirmProductResponse.d.ts.map b/types/model/ConfirmProductResponse.d.ts.map new file mode 100644 index 0000000..16cda30 --- /dev/null +++ b/types/model/ConfirmProductResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ConfirmProductResponse.d.ts","sourceRoot":"","sources":["../../src/model/ConfirmProductResponse.js"],"names":[],"mappings":";AAeA;;;;GAIG;AACH;IAUI;;;;OAIG;IACH,kCACC;IAED;;;;;;OAMG;IACH,qDASC;;CAGJ"} \ No newline at end of file diff --git a/types/model/CreateCheckoutLogRequest.d.ts b/types/model/CreateCheckoutLogRequest.d.ts new file mode 100644 index 0000000..fd7e5a5 --- /dev/null +++ b/types/model/CreateCheckoutLogRequest.d.ts @@ -0,0 +1,36 @@ +export default CreateCheckoutLogRequest; +/** + * The CreateCheckoutLogRequest model module. + * @module model/CreateCheckoutLogRequest + * @version 1.0.10 + */ +declare class CreateCheckoutLogRequest { + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj: any): void; + /** + * Constructs a CreateCheckoutLogRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateCheckoutLogRequest} obj Optional instance to populate. + * @return {module:model/CreateCheckoutLogRequest} The populated CreateCheckoutLogRequest instance. + */ + static constructFromObject(data: any, obj: any): any; + key: any; + product_name: any; + website: any; + size: any; + image_url: any; + price: any; + status: any; +} +declare namespace CreateCheckoutLogRequest { + namespace StatusEnum { + const success: string; + const denied: string; + } +} +//# sourceMappingURL=CreateCheckoutLogRequest.d.ts.map \ No newline at end of file diff --git a/types/model/CreateCheckoutLogRequest.d.ts.map b/types/model/CreateCheckoutLogRequest.d.ts.map new file mode 100644 index 0000000..0a113f6 --- /dev/null +++ b/types/model/CreateCheckoutLogRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateCheckoutLogRequest.d.ts","sourceRoot":"","sources":["../../src/model/CreateCheckoutLogRequest.js"],"names":[],"mappings":";AAeA;;;;GAIG;AACH;IAUI;;;;OAIG;IACH,kCACC;IAED;;;;;;OAMG;IACH,qDA2BC;;;;;;;;CAGJ"} \ No newline at end of file diff --git a/types/model/CreateCheckoutLogResponse.d.ts b/types/model/CreateCheckoutLogResponse.d.ts new file mode 100644 index 0000000..0fff22f --- /dev/null +++ b/types/model/CreateCheckoutLogResponse.d.ts @@ -0,0 +1,25 @@ +export default CreateCheckoutLogResponse; +/** + * The CreateCheckoutLogResponse model module. + * @module model/CreateCheckoutLogResponse + * @version 1.0.10 + */ +declare class CreateCheckoutLogResponse { + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj: any): void; + /** + * Constructs a CreateCheckoutLogResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateCheckoutLogResponse} obj Optional instance to populate. + * @return {module:model/CreateCheckoutLogResponse} The populated CreateCheckoutLogResponse instance. + */ + static constructFromObject(data: any, obj: any): any; + checkout: any; + success: any; +} +//# sourceMappingURL=CreateCheckoutLogResponse.d.ts.map \ No newline at end of file diff --git a/types/model/CreateCheckoutLogResponse.d.ts.map b/types/model/CreateCheckoutLogResponse.d.ts.map new file mode 100644 index 0000000..b743f7d --- /dev/null +++ b/types/model/CreateCheckoutLogResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateCheckoutLogResponse.d.ts","sourceRoot":"","sources":["../../src/model/CreateCheckoutLogResponse.js"],"names":[],"mappings":";AAgBA;;;;GAIG;AACH;IAUI;;;;OAIG;IACH,kCACC;IAED;;;;;;OAMG;IACH,qDAYC;;;CAGJ"} \ No newline at end of file diff --git a/types/model/CreateLinkRequest.d.ts b/types/model/CreateLinkRequest.d.ts new file mode 100644 index 0000000..0b4334a --- /dev/null +++ b/types/model/CreateLinkRequest.d.ts @@ -0,0 +1,27 @@ +export default CreateLinkRequest; +/** + * The CreateLinkRequest model module. + * @module model/CreateLinkRequest + * @version 1.0.10 + */ +declare class CreateLinkRequest { + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj: any): void; + /** + * Constructs a CreateLinkRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateLinkRequest} obj Optional instance to populate. + * @return {module:model/CreateLinkRequest} The populated CreateLinkRequest instance. + */ + static constructFromObject(data: any, obj: any): any; + product_id: any; + password: any; + stock: any; + discord_ids: any; +} +//# sourceMappingURL=CreateLinkRequest.d.ts.map \ No newline at end of file diff --git a/types/model/CreateLinkRequest.d.ts.map b/types/model/CreateLinkRequest.d.ts.map new file mode 100644 index 0000000..2bdf7b1 --- /dev/null +++ b/types/model/CreateLinkRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateLinkRequest.d.ts","sourceRoot":"","sources":["../../src/model/CreateLinkRequest.js"],"names":[],"mappings":";AAeA;;;;GAIG;AACH;IAUI;;;;OAIG;IACH,kCACC;IAED;;;;;;OAMG;IACH,qDAkBC;;;;;CAGJ"} \ No newline at end of file diff --git a/types/model/CreateLinkResponse.d.ts b/types/model/CreateLinkResponse.d.ts new file mode 100644 index 0000000..a1a0171 --- /dev/null +++ b/types/model/CreateLinkResponse.d.ts @@ -0,0 +1,24 @@ +export default CreateLinkResponse; +/** + * The CreateLinkResponse model module. + * @module model/CreateLinkResponse + * @version 1.0.10 + */ +declare class CreateLinkResponse { + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj: any): void; + /** + * Constructs a CreateLinkResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateLinkResponse} obj Optional instance to populate. + * @return {module:model/CreateLinkResponse} The populated CreateLinkResponse instance. + */ + static constructFromObject(data: any, obj: any): any; + link: any; +} +//# sourceMappingURL=CreateLinkResponse.d.ts.map \ No newline at end of file diff --git a/types/model/CreateLinkResponse.d.ts.map b/types/model/CreateLinkResponse.d.ts.map new file mode 100644 index 0000000..f49f828 --- /dev/null +++ b/types/model/CreateLinkResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateLinkResponse.d.ts","sourceRoot":"","sources":["../../src/model/CreateLinkResponse.js"],"names":[],"mappings":";AAgBA;;;;GAIG;AACH;IAUI;;;;OAIG;IACH,kCACC;IAED;;;;;;OAMG;IACH,qDASC;;CAGJ"} \ No newline at end of file diff --git a/types/model/CreateProductRequest.d.ts b/types/model/CreateProductRequest.d.ts new file mode 100644 index 0000000..6ce59b2 --- /dev/null +++ b/types/model/CreateProductRequest.d.ts @@ -0,0 +1,46 @@ +export default CreateProductRequest; +/** + * The CreateProductRequest model module. + * @module model/CreateProductRequest + * @version 1.0.10 + */ +declare class CreateProductRequest { + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj: any): void; + /** + * Constructs a CreateProductRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateProductRequest} obj Optional instance to populate. + * @return {module:model/CreateProductRequest} The populated CreateProductRequest instance. + */ + static constructFromObject(data: any, obj: any): any; + cancel_action: any; + title: any; + expiration_days: any; + currency: any; + license_type: any; + initial_price: any; + price: any; + billing_period: any; + stock: any; + transferable: any; + custom_trial_period: any; +} +declare namespace CreateProductRequest { + namespace CancelActionEnum { + const kick_user: string; + const remove_roles: string; + const remove_all_roles: string; + const no_action: string; + } + namespace LicenseTypeEnum { + const one_time: string; + const renewal: string; + } +} +//# sourceMappingURL=CreateProductRequest.d.ts.map \ No newline at end of file diff --git a/types/model/CreateProductRequest.d.ts.map b/types/model/CreateProductRequest.d.ts.map new file mode 100644 index 0000000..c4b992b --- /dev/null +++ b/types/model/CreateProductRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateProductRequest.d.ts","sourceRoot":"","sources":["../../src/model/CreateProductRequest.js"],"names":[],"mappings":";AAeA;;;;GAIG;AACH;IAUI;;;;OAIG;IACH,kCACC;IAED;;;;;;OAMG;IACH,qDAuCC;;;;;;;;;;;;CAGJ"} \ No newline at end of file diff --git a/types/model/CreateProductResponse.d.ts b/types/model/CreateProductResponse.d.ts new file mode 100644 index 0000000..29cc4fd --- /dev/null +++ b/types/model/CreateProductResponse.d.ts @@ -0,0 +1,26 @@ +export default CreateProductResponse; +/** + * The CreateProductResponse model module. + * @module model/CreateProductResponse + * @version 1.0.10 + */ +declare class CreateProductResponse { + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj: any): void; + /** + * Constructs a CreateProductResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateProductResponse} obj Optional instance to populate. + * @return {module:model/CreateProductResponse} The populated CreateProductResponse instance. + */ + static constructFromObject(data: any, obj: any): any; + success: any; + formatted: any; + product: any; +} +//# sourceMappingURL=CreateProductResponse.d.ts.map \ No newline at end of file diff --git a/types/model/CreateProductResponse.d.ts.map b/types/model/CreateProductResponse.d.ts.map new file mode 100644 index 0000000..e3ff4f0 --- /dev/null +++ b/types/model/CreateProductResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateProductResponse.d.ts","sourceRoot":"","sources":["../../src/model/CreateProductResponse.js"],"names":[],"mappings":";AAgBA;;;;GAIG;AACH;IAUI;;;;OAIG;IACH,kCACC;IAED;;;;;;OAMG;IACH,qDAeC;;;;CAGJ"} \ No newline at end of file diff --git a/types/model/CreateProductResponseProduct.d.ts b/types/model/CreateProductResponseProduct.d.ts new file mode 100644 index 0000000..ff9be24 --- /dev/null +++ b/types/model/CreateProductResponseProduct.d.ts @@ -0,0 +1,35 @@ +export default CreateProductResponseProduct; +/** + * The CreateProductResponseProduct model module. + * @module model/CreateProductResponseProduct + * @version 1.0.10 + */ +declare class CreateProductResponseProduct { + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj: any): void; + /** + * Constructs a CreateProductResponseProduct from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateProductResponseProduct} obj Optional instance to populate. + * @return {module:model/CreateProductResponseProduct} The populated CreateProductResponseProduct instance. + */ + static constructFromObject(data: any, obj: any): any; + id: any; + title: any; + initial_price: any; + renewal_price: any; + billing_period: any; + license_type: any; +} +declare namespace CreateProductResponseProduct { + namespace LicenseTypeEnum { + const one_time: string; + const renewal: string; + } +} +//# sourceMappingURL=CreateProductResponseProduct.d.ts.map \ No newline at end of file diff --git a/types/model/CreateProductResponseProduct.d.ts.map b/types/model/CreateProductResponseProduct.d.ts.map new file mode 100644 index 0000000..8e05965 --- /dev/null +++ b/types/model/CreateProductResponseProduct.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateProductResponseProduct.d.ts","sourceRoot":"","sources":["../../src/model/CreateProductResponseProduct.js"],"names":[],"mappings":";AAeA;;;;GAIG;AACH;IAUI;;;;OAIG;IACH,kCACC;IAED;;;;;;OAMG;IACH,qDAwBC;;;;;;;CAGJ"} \ No newline at end of file diff --git a/types/model/ErrorResponse.d.ts b/types/model/ErrorResponse.d.ts new file mode 100644 index 0000000..44f421c --- /dev/null +++ b/types/model/ErrorResponse.d.ts @@ -0,0 +1,26 @@ +export default ErrorResponse; +/** + * The ErrorResponse model module. + * @module model/ErrorResponse + * @version 1.0.10 + */ +declare class ErrorResponse { + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj: any): void; + /** + * Constructs a ErrorResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ErrorResponse} obj Optional instance to populate. + * @return {module:model/ErrorResponse} The populated ErrorResponse instance. + */ + static constructFromObject(data: any, obj: any): any; + success: any; + message: any; + errors: any; +} +//# sourceMappingURL=ErrorResponse.d.ts.map \ No newline at end of file diff --git a/types/model/ErrorResponse.d.ts.map b/types/model/ErrorResponse.d.ts.map new file mode 100644 index 0000000..8221ca7 --- /dev/null +++ b/types/model/ErrorResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ErrorResponse.d.ts","sourceRoot":"","sources":["../../src/model/ErrorResponse.js"],"names":[],"mappings":";AAeA;;;;GAIG;AACH;IAUI;;;;OAIG;IACH,kCACC;IAED;;;;;;OAMG;IACH,qDAeC;;;;CAGJ"} \ No newline at end of file diff --git a/types/model/GetCheckoutLogsResponse.d.ts b/types/model/GetCheckoutLogsResponse.d.ts new file mode 100644 index 0000000..796488b --- /dev/null +++ b/types/model/GetCheckoutLogsResponse.d.ts @@ -0,0 +1,25 @@ +export default GetCheckoutLogsResponse; +/** + * The GetCheckoutLogsResponse model module. + * @module model/GetCheckoutLogsResponse + * @version 1.0.10 + */ +declare class GetCheckoutLogsResponse { + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj: any): void; + /** + * Constructs a GetCheckoutLogsResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetCheckoutLogsResponse} obj Optional instance to populate. + * @return {module:model/GetCheckoutLogsResponse} The populated GetCheckoutLogsResponse instance. + */ + static constructFromObject(data: any, obj: any): any; + checkouts: any; + total: any; +} +//# sourceMappingURL=GetCheckoutLogsResponse.d.ts.map \ No newline at end of file diff --git a/types/model/GetCheckoutLogsResponse.d.ts.map b/types/model/GetCheckoutLogsResponse.d.ts.map new file mode 100644 index 0000000..f8cdf0c --- /dev/null +++ b/types/model/GetCheckoutLogsResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"GetCheckoutLogsResponse.d.ts","sourceRoot":"","sources":["../../src/model/GetCheckoutLogsResponse.js"],"names":[],"mappings":";AAgBA;;;;GAIG;AACH;IAUI;;;;OAIG;IACH,kCACC;IAED;;;;;;OAMG;IACH,qDAYC;;;CAGJ"} \ No newline at end of file diff --git a/types/model/GetLicenseByKeyResponse.d.ts b/types/model/GetLicenseByKeyResponse.d.ts new file mode 100644 index 0000000..74e6b47 --- /dev/null +++ b/types/model/GetLicenseByKeyResponse.d.ts @@ -0,0 +1,59 @@ +export default GetLicenseByKeyResponse; +/** + * The GetLicenseByKeyResponse model module. + * @module model/GetLicenseByKeyResponse + * @version 1.0.10 + */ +declare class GetLicenseByKeyResponse { + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj: any): void; + /** + * Constructs a GetLicenseByKeyResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetLicenseByKeyResponse} obj Optional instance to populate. + * @return {module:model/GetLicenseByKeyResponse} The populated GetLicenseByKeyResponse instance. + */ + static constructFromObject(data: any, obj: any): any; + id: any; + key: any; + rental_key: any; + rented: any; + rental_end: any; + valid: any; + key_status: any; + subscription_status: any; + quantity: any; + banned: any; + metadata: any; + next_renewal_date: any; + renewal_period: any; + created_at: any; + discord: any; + twitter: any; + is_scammer: any; + plan: any; +} +declare namespace GetLicenseByKeyResponse { + namespace KeyStatusEnum { + const pending: string; + const approved: string; + const listed: string; + const removed: string; + const sold: string; + const terminated: string; + const expired: string; + const disabled: string; + } + namespace SubscriptionStatusEnum { + const completed: string; + const active: string; + const trialing: string; + const canceled: string; + } +} +//# sourceMappingURL=GetLicenseByKeyResponse.d.ts.map \ No newline at end of file diff --git a/types/model/GetLicenseByKeyResponse.d.ts.map b/types/model/GetLicenseByKeyResponse.d.ts.map new file mode 100644 index 0000000..8430acd --- /dev/null +++ b/types/model/GetLicenseByKeyResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"GetLicenseByKeyResponse.d.ts","sourceRoot":"","sources":["../../src/model/GetLicenseByKeyResponse.js"],"names":[],"mappings":";AAmBA;;;;GAIG;AACH;IAWI;;;;OAIG;IACH,kCACC;IAED;;;;;;OAMG;IACH,qDA6DC;;;;;;;;;;;;;;;;;;;CAGJ"} \ No newline at end of file diff --git a/types/model/GetLicensesResponse.d.ts b/types/model/GetLicensesResponse.d.ts new file mode 100644 index 0000000..59fefbf --- /dev/null +++ b/types/model/GetLicensesResponse.d.ts @@ -0,0 +1,24 @@ +export default GetLicensesResponse; +/** + * The GetLicensesResponse model module. + * @module model/GetLicensesResponse + * @version 1.0.10 + */ +declare class GetLicensesResponse { + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj: any): void; + /** + * Constructs a GetLicensesResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetLicensesResponse} obj Optional instance to populate. + * @return {module:model/GetLicensesResponse} The populated GetLicensesResponse instance. + */ + static constructFromObject(data: any, obj: any): any; + users: any; +} +//# sourceMappingURL=GetLicensesResponse.d.ts.map \ No newline at end of file diff --git a/types/model/GetLicensesResponse.d.ts.map b/types/model/GetLicensesResponse.d.ts.map new file mode 100644 index 0000000..3cb3c42 --- /dev/null +++ b/types/model/GetLicensesResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"GetLicensesResponse.d.ts","sourceRoot":"","sources":["../../src/model/GetLicensesResponse.js"],"names":[],"mappings":";AAgBA;;;;GAIG;AACH;IAUI;;;;OAIG;IACH,kCACC;IAED;;;;;;OAMG;IACH,qDASC;;CAGJ"} \ No newline at end of file diff --git a/types/model/GetLinksResponse.d.ts b/types/model/GetLinksResponse.d.ts new file mode 100644 index 0000000..2d45a04 --- /dev/null +++ b/types/model/GetLinksResponse.d.ts @@ -0,0 +1,24 @@ +export default GetLinksResponse; +/** + * The GetLinksResponse model module. + * @module model/GetLinksResponse + * @version 1.0.10 + */ +declare class GetLinksResponse { + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj: any): void; + /** + * Constructs a GetLinksResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetLinksResponse} obj Optional instance to populate. + * @return {module:model/GetLinksResponse} The populated GetLinksResponse instance. + */ + static constructFromObject(data: any, obj: any): any; + links: any; +} +//# sourceMappingURL=GetLinksResponse.d.ts.map \ No newline at end of file diff --git a/types/model/GetLinksResponse.d.ts.map b/types/model/GetLinksResponse.d.ts.map new file mode 100644 index 0000000..e426630 --- /dev/null +++ b/types/model/GetLinksResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"GetLinksResponse.d.ts","sourceRoot":"","sources":["../../src/model/GetLinksResponse.js"],"names":[],"mappings":";AAgBA;;;;GAIG;AACH;IAUI;;;;OAIG;IACH,kCACC;IAED;;;;;;OAMG;IACH,qDASC;;CAGJ"} \ No newline at end of file diff --git a/types/model/GetProductByIdResponse.d.ts b/types/model/GetProductByIdResponse.d.ts new file mode 100644 index 0000000..ba9d863 --- /dev/null +++ b/types/model/GetProductByIdResponse.d.ts @@ -0,0 +1,38 @@ +export default GetProductByIdResponse; +/** + * The GetProductByIdResponse model module. + * @module model/GetProductByIdResponse + * @version 1.0.10 + */ +declare class GetProductByIdResponse { + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj: any): void; + /** + * Constructs a GetProductByIdResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetProductByIdResponse} obj Optional instance to populate. + * @return {module:model/GetProductByIdResponse} The populated GetProductByIdResponse instance. + */ + static constructFromObject(data: any, obj: any): any; + id: any; + title: any; + license_type: any; + initial_price: any; + recurring_price: any; + billing_period: any; + discord_role: any; + stock: any; + test: any; +} +declare namespace GetProductByIdResponse { + namespace LicenseTypeEnum { + const one_time: string; + const renewal: string; + } +} +//# sourceMappingURL=GetProductByIdResponse.d.ts.map \ No newline at end of file diff --git a/types/model/GetProductByIdResponse.d.ts.map b/types/model/GetProductByIdResponse.d.ts.map new file mode 100644 index 0000000..7d41033 --- /dev/null +++ b/types/model/GetProductByIdResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"GetProductByIdResponse.d.ts","sourceRoot":"","sources":["../../src/model/GetProductByIdResponse.js"],"names":[],"mappings":";AAgBA;;;;GAIG;AACH;IAWI;;;;OAIG;IACH,kCACC;IAED;;;;;;OAMG;IACH,qDAkCC;;;;;;;;;;CAGJ"} \ No newline at end of file diff --git a/types/model/GetProductsResponse.d.ts b/types/model/GetProductsResponse.d.ts new file mode 100644 index 0000000..b0fcfc4 --- /dev/null +++ b/types/model/GetProductsResponse.d.ts @@ -0,0 +1,24 @@ +export default GetProductsResponse; +/** + * The GetProductsResponse model module. + * @module model/GetProductsResponse + * @version 1.0.10 + */ +declare class GetProductsResponse { + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj: any): void; + /** + * Constructs a GetProductsResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetProductsResponse} obj Optional instance to populate. + * @return {module:model/GetProductsResponse} The populated GetProductsResponse instance. + */ + static constructFromObject(data: any, obj: any): any; + products: any; +} +//# sourceMappingURL=GetProductsResponse.d.ts.map \ No newline at end of file diff --git a/types/model/GetProductsResponse.d.ts.map b/types/model/GetProductsResponse.d.ts.map new file mode 100644 index 0000000..92f7313 --- /dev/null +++ b/types/model/GetProductsResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"GetProductsResponse.d.ts","sourceRoot":"","sources":["../../src/model/GetProductsResponse.js"],"names":[],"mappings":";AAgBA;;;;GAIG;AACH;IAUI;;;;OAIG;IACH,kCACC;IAED;;;;;;OAMG;IACH,qDASC;;CAGJ"} \ No newline at end of file diff --git a/types/model/License.d.ts b/types/model/License.d.ts new file mode 100644 index 0000000..90fba44 --- /dev/null +++ b/types/model/License.d.ts @@ -0,0 +1,59 @@ +export default License; +/** + * The License model module. + * @module model/License + * @version 1.0.10 + */ +declare class License { + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj: any): void; + /** + * Constructs a License from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/License} obj Optional instance to populate. + * @return {module:model/License} The populated License instance. + */ + static constructFromObject(data: any, obj: any): any; + id: any; + key: any; + rental_key: any; + rented: any; + rental_end: any; + valid: any; + key_status: any; + subscription_status: any; + quantity: any; + banned: any; + metadata: any; + next_renewal_date: any; + renewal_period: any; + created_at: any; + discord: any; + twitter: any; + is_scammer: any; + plan: any; +} +declare namespace License { + namespace KeyStatusEnum { + const pending: string; + const approved: string; + const listed: string; + const removed: string; + const sold: string; + const terminated: string; + const expired: string; + const disabled: string; + } + namespace SubscriptionStatusEnum { + const completed: string; + const active: string; + const trialing: string; + const canceled: string; + } +} +//# sourceMappingURL=License.d.ts.map \ No newline at end of file diff --git a/types/model/License.d.ts.map b/types/model/License.d.ts.map new file mode 100644 index 0000000..b60bfaa --- /dev/null +++ b/types/model/License.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"License.d.ts","sourceRoot":"","sources":["../../src/model/License.js"],"names":[],"mappings":";AAkBA;;;;GAIG;AACH;IAUI;;;;OAIG;IACH,kCACC;IAED;;;;;;OAMG;IACH,qDA4DC;;;;;;;;;;;;;;;;;;;CAGJ"} \ No newline at end of file diff --git a/types/model/LicenseDiscord.d.ts b/types/model/LicenseDiscord.d.ts new file mode 100644 index 0000000..0bd9149 --- /dev/null +++ b/types/model/LicenseDiscord.d.ts @@ -0,0 +1,26 @@ +export default LicenseDiscord; +/** + * The LicenseDiscord model module. + * @module model/LicenseDiscord + * @version 1.0.10 + */ +declare class LicenseDiscord { + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj: any): void; + /** + * Constructs a LicenseDiscord from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LicenseDiscord} obj Optional instance to populate. + * @return {module:model/LicenseDiscord} The populated LicenseDiscord instance. + */ + static constructFromObject(data: any, obj: any): any; + username: any; + discord_account_id: any; + image_url: any; +} +//# sourceMappingURL=LicenseDiscord.d.ts.map \ No newline at end of file diff --git a/types/model/LicenseDiscord.d.ts.map b/types/model/LicenseDiscord.d.ts.map new file mode 100644 index 0000000..969eacc --- /dev/null +++ b/types/model/LicenseDiscord.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"LicenseDiscord.d.ts","sourceRoot":"","sources":["../../src/model/LicenseDiscord.js"],"names":[],"mappings":";AAeA;;;;GAIG;AACH;IAUI;;;;OAIG;IACH,kCACC;IAED;;;;;;OAMG;IACH,qDAeC;;;;CAGJ"} \ No newline at end of file diff --git a/types/model/LicensePlan.d.ts b/types/model/LicensePlan.d.ts new file mode 100644 index 0000000..d5ac9f7 --- /dev/null +++ b/types/model/LicensePlan.d.ts @@ -0,0 +1,35 @@ +export default LicensePlan; +/** + * The LicensePlan model module. + * @module model/LicensePlan + * @version 1.0.10 + */ +declare class LicensePlan { + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj: any): void; + /** + * Constructs a LicensePlan from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LicensePlan} obj Optional instance to populate. + * @return {module:model/LicensePlan} The populated LicensePlan instance. + */ + static constructFromObject(data: any, obj: any): any; + id: any; + title: any; + initial_price: any; + renewal_price: any; + billing_period: any; + license_type: any; +} +declare namespace LicensePlan { + namespace LicenseTypeEnum { + const one_time: string; + const renewal: string; + } +} +//# sourceMappingURL=LicensePlan.d.ts.map \ No newline at end of file diff --git a/types/model/LicensePlan.d.ts.map b/types/model/LicensePlan.d.ts.map new file mode 100644 index 0000000..b40ae83 --- /dev/null +++ b/types/model/LicensePlan.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"LicensePlan.d.ts","sourceRoot":"","sources":["../../src/model/LicensePlan.js"],"names":[],"mappings":";AAeA;;;;GAIG;AACH;IAUI;;;;OAIG;IACH,kCACC;IAED;;;;;;OAMG;IACH,qDAwBC;;;;;;;CAGJ"} \ No newline at end of file diff --git a/types/model/LicenseTwitter.d.ts b/types/model/LicenseTwitter.d.ts new file mode 100644 index 0000000..b93710b --- /dev/null +++ b/types/model/LicenseTwitter.d.ts @@ -0,0 +1,28 @@ +export default LicenseTwitter; +/** + * The LicenseTwitter model module. + * @module model/LicenseTwitter + * @version 1.0.10 + */ +declare class LicenseTwitter { + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj: any): void; + /** + * Constructs a LicenseTwitter from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LicenseTwitter} obj Optional instance to populate. + * @return {module:model/LicenseTwitter} The populated LicenseTwitter instance. + */ + static constructFromObject(data: any, obj: any): any; + username: any; + twitter_profile_pic: any; + followers: any; + following: any; + twitter_account_id: any; +} +//# sourceMappingURL=LicenseTwitter.d.ts.map \ No newline at end of file diff --git a/types/model/LicenseTwitter.d.ts.map b/types/model/LicenseTwitter.d.ts.map new file mode 100644 index 0000000..6a21928 --- /dev/null +++ b/types/model/LicenseTwitter.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"LicenseTwitter.d.ts","sourceRoot":"","sources":["../../src/model/LicenseTwitter.js"],"names":[],"mappings":";AAeA;;;;GAIG;AACH;IAUI;;;;OAIG;IACH,kCACC;IAED;;;;;;OAMG;IACH,qDAqBC;;;;;;CAGJ"} \ No newline at end of file diff --git a/types/model/Link.d.ts b/types/model/Link.d.ts new file mode 100644 index 0000000..1c70b58 --- /dev/null +++ b/types/model/Link.d.ts @@ -0,0 +1,30 @@ +export default Link; +/** + * The Link model module. + * @module model/Link + * @version 1.0.10 + */ +declare class Link { + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj: any): void; + /** + * Constructs a Link from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Link} obj Optional instance to populate. + * @return {module:model/Link} The populated Link instance. + */ + static constructFromObject(data: any, obj: any): any; + id: any; + product_id: any; + password: any; + stock: any; + created_at: any; + discord_ids: any; + hidden: any; +} +//# sourceMappingURL=Link.d.ts.map \ No newline at end of file diff --git a/types/model/Link.d.ts.map b/types/model/Link.d.ts.map new file mode 100644 index 0000000..d31e3db --- /dev/null +++ b/types/model/Link.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Link.d.ts","sourceRoot":"","sources":["../../src/model/Link.js"],"names":[],"mappings":";AAeA;;;;GAIG;AACH;IAUI;;;;OAIG;IACH,kCACC;IAED;;;;;;OAMG;IACH,qDA2BC;;;;;;;;CAGJ"} \ No newline at end of file diff --git a/types/model/Metadata.d.ts b/types/model/Metadata.d.ts new file mode 100644 index 0000000..99332a5 --- /dev/null +++ b/types/model/Metadata.d.ts @@ -0,0 +1,25 @@ +export default Metadata; +/** + * The Metadata model module. + * @module model/Metadata + * @version 1.0.10 + */ +declare class Metadata { + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj: any): void; + /** + * Constructs a Metadata from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Metadata} obj Optional instance to populate. + * @return {module:model/Metadata} The populated Metadata instance. + */ + static constructFromObject(data: any, obj: any): any; + hwid: any; + hardwareName: any; +} +//# sourceMappingURL=Metadata.d.ts.map \ No newline at end of file diff --git a/types/model/Metadata.d.ts.map b/types/model/Metadata.d.ts.map new file mode 100644 index 0000000..69ebd9c --- /dev/null +++ b/types/model/Metadata.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Metadata.d.ts","sourceRoot":"","sources":["../../src/model/Metadata.js"],"names":[],"mappings":";AAeA;;;;GAIG;AACH;IAUI;;;;OAIG;IACH,kCACC;IAED;;;;;;OAMG;IACH,qDAYC;;;CAGJ"} \ No newline at end of file diff --git a/types/model/Product.d.ts b/types/model/Product.d.ts new file mode 100644 index 0000000..49d357d --- /dev/null +++ b/types/model/Product.d.ts @@ -0,0 +1,38 @@ +export default Product; +/** + * The Product model module. + * @module model/Product + * @version 1.0.10 + */ +declare class Product { + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj: any): void; + /** + * Constructs a Product from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Product} obj Optional instance to populate. + * @return {module:model/Product} The populated Product instance. + */ + static constructFromObject(data: any, obj: any): any; + id: any; + title: any; + license_type: any; + initial_price: any; + recurring_price: any; + billing_period: any; + discord_role: any; + stock: any; + test: any; +} +declare namespace Product { + namespace LicenseTypeEnum { + const one_time: string; + const renewal: string; + } +} +//# sourceMappingURL=Product.d.ts.map \ No newline at end of file diff --git a/types/model/Product.d.ts.map b/types/model/Product.d.ts.map new file mode 100644 index 0000000..de4c69f --- /dev/null +++ b/types/model/Product.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Product.d.ts","sourceRoot":"","sources":["../../src/model/Product.js"],"names":[],"mappings":";AAeA;;;;GAIG;AACH;IAUI;;;;OAIG;IACH,kCACC;IAED;;;;;;OAMG;IACH,qDAiCC;;;;;;;;;;CAGJ"} \ No newline at end of file diff --git a/types/model/ResetLicenseByKeyRequest.d.ts b/types/model/ResetLicenseByKeyRequest.d.ts new file mode 100644 index 0000000..94c72b5 --- /dev/null +++ b/types/model/ResetLicenseByKeyRequest.d.ts @@ -0,0 +1,24 @@ +export default ResetLicenseByKeyRequest; +/** + * The ResetLicenseByKeyRequest model module. + * @module model/ResetLicenseByKeyRequest + * @version 1.0.10 + */ +declare class ResetLicenseByKeyRequest { + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj: any): void; + /** + * Constructs a ResetLicenseByKeyRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ResetLicenseByKeyRequest} obj Optional instance to populate. + * @return {module:model/ResetLicenseByKeyRequest} The populated ResetLicenseByKeyRequest instance. + */ + static constructFromObject(data: any, obj: any): any; + metadata: any; +} +//# sourceMappingURL=ResetLicenseByKeyRequest.d.ts.map \ No newline at end of file diff --git a/types/model/ResetLicenseByKeyRequest.d.ts.map b/types/model/ResetLicenseByKeyRequest.d.ts.map new file mode 100644 index 0000000..d70e8ff --- /dev/null +++ b/types/model/ResetLicenseByKeyRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ResetLicenseByKeyRequest.d.ts","sourceRoot":"","sources":["../../src/model/ResetLicenseByKeyRequest.js"],"names":[],"mappings":";AAgBA;;;;GAIG;AACH;IAUI;;;;OAIG;IACH,kCACC;IAED;;;;;;OAMG;IACH,qDASC;;CAGJ"} \ No newline at end of file diff --git a/types/model/ResetLicenseByKeyResponse.d.ts b/types/model/ResetLicenseByKeyResponse.d.ts new file mode 100644 index 0000000..5cdd1b5 --- /dev/null +++ b/types/model/ResetLicenseByKeyResponse.d.ts @@ -0,0 +1,24 @@ +export default ResetLicenseByKeyResponse; +/** + * The ResetLicenseByKeyResponse model module. + * @module model/ResetLicenseByKeyResponse + * @version 1.0.10 + */ +declare class ResetLicenseByKeyResponse { + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj: any): void; + /** + * Constructs a ResetLicenseByKeyResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ResetLicenseByKeyResponse} obj Optional instance to populate. + * @return {module:model/ResetLicenseByKeyResponse} The populated ResetLicenseByKeyResponse instance. + */ + static constructFromObject(data: any, obj: any): any; + success: any; +} +//# sourceMappingURL=ResetLicenseByKeyResponse.d.ts.map \ No newline at end of file diff --git a/types/model/ResetLicenseByKeyResponse.d.ts.map b/types/model/ResetLicenseByKeyResponse.d.ts.map new file mode 100644 index 0000000..54e49a5 --- /dev/null +++ b/types/model/ResetLicenseByKeyResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ResetLicenseByKeyResponse.d.ts","sourceRoot":"","sources":["../../src/model/ResetLicenseByKeyResponse.js"],"names":[],"mappings":";AAeA;;;;GAIG;AACH;IAUI;;;;OAIG;IACH,kCACC;IAED;;;;;;OAMG;IACH,qDASC;;CAGJ"} \ No newline at end of file diff --git a/types/model/SendPushNotificationRequest.d.ts b/types/model/SendPushNotificationRequest.d.ts new file mode 100644 index 0000000..f0aa537 --- /dev/null +++ b/types/model/SendPushNotificationRequest.d.ts @@ -0,0 +1,26 @@ +export default SendPushNotificationRequest; +/** + * The SendPushNotificationRequest model module. + * @module model/SendPushNotificationRequest + * @version 1.0.10 + */ +declare class SendPushNotificationRequest { + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj: any): void; + /** + * Constructs a SendPushNotificationRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendPushNotificationRequest} obj Optional instance to populate. + * @return {module:model/SendPushNotificationRequest} The populated SendPushNotificationRequest instance. + */ + static constructFromObject(data: any, obj: any): any; + title: any; + link: any; + body: any; +} +//# sourceMappingURL=SendPushNotificationRequest.d.ts.map \ No newline at end of file diff --git a/types/model/SendPushNotificationRequest.d.ts.map b/types/model/SendPushNotificationRequest.d.ts.map new file mode 100644 index 0000000..b6b6be5 --- /dev/null +++ b/types/model/SendPushNotificationRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"SendPushNotificationRequest.d.ts","sourceRoot":"","sources":["../../src/model/SendPushNotificationRequest.js"],"names":[],"mappings":";AAeA;;;;GAIG;AACH;IAUI;;;;OAIG;IACH,kCACC;IAED;;;;;;OAMG;IACH,qDAeC;;;;CAGJ"} \ No newline at end of file diff --git a/types/model/SendPushNotificationResponse.d.ts b/types/model/SendPushNotificationResponse.d.ts new file mode 100644 index 0000000..f864840 --- /dev/null +++ b/types/model/SendPushNotificationResponse.d.ts @@ -0,0 +1,24 @@ +export default SendPushNotificationResponse; +/** + * The SendPushNotificationResponse model module. + * @module model/SendPushNotificationResponse + * @version 1.0.10 + */ +declare class SendPushNotificationResponse { + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj: any): void; + /** + * Constructs a SendPushNotificationResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendPushNotificationResponse} obj Optional instance to populate. + * @return {module:model/SendPushNotificationResponse} The populated SendPushNotificationResponse instance. + */ + static constructFromObject(data: any, obj: any): any; + message: any; +} +//# sourceMappingURL=SendPushNotificationResponse.d.ts.map \ No newline at end of file diff --git a/types/model/SendPushNotificationResponse.d.ts.map b/types/model/SendPushNotificationResponse.d.ts.map new file mode 100644 index 0000000..b7e8ebd --- /dev/null +++ b/types/model/SendPushNotificationResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"SendPushNotificationResponse.d.ts","sourceRoot":"","sources":["../../src/model/SendPushNotificationResponse.js"],"names":[],"mappings":";AAeA;;;;GAIG;AACH;IAUI;;;;OAIG;IACH,kCACC;IAED;;;;;;OAMG;IACH,qDASC;;CAGJ"} \ No newline at end of file diff --git a/types/model/UpdateLicenseByKeyRequest.d.ts b/types/model/UpdateLicenseByKeyRequest.d.ts new file mode 100644 index 0000000..61a68a2 --- /dev/null +++ b/types/model/UpdateLicenseByKeyRequest.d.ts @@ -0,0 +1,24 @@ +export default UpdateLicenseByKeyRequest; +/** + * The UpdateLicenseByKeyRequest model module. + * @module model/UpdateLicenseByKeyRequest + * @version 1.0.10 + */ +declare class UpdateLicenseByKeyRequest { + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj: any): void; + /** + * Constructs a UpdateLicenseByKeyRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateLicenseByKeyRequest} obj Optional instance to populate. + * @return {module:model/UpdateLicenseByKeyRequest} The populated UpdateLicenseByKeyRequest instance. + */ + static constructFromObject(data: any, obj: any): any; + metadata: any; +} +//# sourceMappingURL=UpdateLicenseByKeyRequest.d.ts.map \ No newline at end of file diff --git a/types/model/UpdateLicenseByKeyRequest.d.ts.map b/types/model/UpdateLicenseByKeyRequest.d.ts.map new file mode 100644 index 0000000..c75dd9e --- /dev/null +++ b/types/model/UpdateLicenseByKeyRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"UpdateLicenseByKeyRequest.d.ts","sourceRoot":"","sources":["../../src/model/UpdateLicenseByKeyRequest.js"],"names":[],"mappings":";AAeA;;;;GAIG;AACH;IAUI;;;;OAIG;IACH,kCACC;IAED;;;;;;OAMG;IACH,qDASC;;CAGJ"} \ No newline at end of file diff --git a/types/model/UpdateLicenseByKeyRequestMetadata.d.ts b/types/model/UpdateLicenseByKeyRequestMetadata.d.ts new file mode 100644 index 0000000..b512499 --- /dev/null +++ b/types/model/UpdateLicenseByKeyRequestMetadata.d.ts @@ -0,0 +1,25 @@ +export default UpdateLicenseByKeyRequestMetadata; +/** + * The UpdateLicenseByKeyRequestMetadata model module. + * @module model/UpdateLicenseByKeyRequestMetadata + * @version 1.0.10 + */ +declare class UpdateLicenseByKeyRequestMetadata { + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj: any): void; + /** + * Constructs a UpdateLicenseByKeyRequestMetadata from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateLicenseByKeyRequestMetadata} obj Optional instance to populate. + * @return {module:model/UpdateLicenseByKeyRequestMetadata} The populated UpdateLicenseByKeyRequestMetadata instance. + */ + static constructFromObject(data: any, obj: any): any; + hwid: any; + hardwareName: any; +} +//# sourceMappingURL=UpdateLicenseByKeyRequestMetadata.d.ts.map \ No newline at end of file diff --git a/types/model/UpdateLicenseByKeyRequestMetadata.d.ts.map b/types/model/UpdateLicenseByKeyRequestMetadata.d.ts.map new file mode 100644 index 0000000..6cf8c06 --- /dev/null +++ b/types/model/UpdateLicenseByKeyRequestMetadata.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"UpdateLicenseByKeyRequestMetadata.d.ts","sourceRoot":"","sources":["../../src/model/UpdateLicenseByKeyRequestMetadata.js"],"names":[],"mappings":";AAeA;;;;GAIG;AACH;IAUI;;;;OAIG;IACH,kCACC;IAED;;;;;;OAMG;IACH,qDAYC;;;CAGJ"} \ No newline at end of file diff --git a/types/model/UpdateLicenseByKeyResponse.d.ts b/types/model/UpdateLicenseByKeyResponse.d.ts new file mode 100644 index 0000000..df3be5d --- /dev/null +++ b/types/model/UpdateLicenseByKeyResponse.d.ts @@ -0,0 +1,59 @@ +export default UpdateLicenseByKeyResponse; +/** + * The UpdateLicenseByKeyResponse model module. + * @module model/UpdateLicenseByKeyResponse + * @version 1.0.10 + */ +declare class UpdateLicenseByKeyResponse { + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj: any): void; + /** + * Constructs a UpdateLicenseByKeyResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateLicenseByKeyResponse} obj Optional instance to populate. + * @return {module:model/UpdateLicenseByKeyResponse} The populated UpdateLicenseByKeyResponse instance. + */ + static constructFromObject(data: any, obj: any): any; + id: any; + key: any; + rental_key: any; + rented: any; + rental_end: any; + valid: any; + key_status: any; + subscription_status: any; + quantity: any; + banned: any; + metadata: any; + next_renewal_date: any; + renewal_period: any; + created_at: any; + discord: any; + twitter: any; + is_scammer: any; + plan: any; +} +declare namespace UpdateLicenseByKeyResponse { + namespace KeyStatusEnum { + const pending: string; + const approved: string; + const listed: string; + const removed: string; + const sold: string; + const terminated: string; + const expired: string; + const disabled: string; + } + namespace SubscriptionStatusEnum { + const completed: string; + const active: string; + const trialing: string; + const canceled: string; + } +} +//# sourceMappingURL=UpdateLicenseByKeyResponse.d.ts.map \ No newline at end of file diff --git a/types/model/UpdateLicenseByKeyResponse.d.ts.map b/types/model/UpdateLicenseByKeyResponse.d.ts.map new file mode 100644 index 0000000..3054187 --- /dev/null +++ b/types/model/UpdateLicenseByKeyResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"UpdateLicenseByKeyResponse.d.ts","sourceRoot":"","sources":["../../src/model/UpdateLicenseByKeyResponse.js"],"names":[],"mappings":";AAmBA;;;;GAIG;AACH;IAWI;;;;OAIG;IACH,kCACC;IAED;;;;;;OAMG;IACH,qDA6DC;;;;;;;;;;;;;;;;;;;CAGJ"} \ No newline at end of file diff --git a/types/model/ValidateLicenseByKeyRequest.d.ts b/types/model/ValidateLicenseByKeyRequest.d.ts new file mode 100644 index 0000000..ffe8ae5 --- /dev/null +++ b/types/model/ValidateLicenseByKeyRequest.d.ts @@ -0,0 +1,24 @@ +export default ValidateLicenseByKeyRequest; +/** + * The ValidateLicenseByKeyRequest model module. + * @module model/ValidateLicenseByKeyRequest + * @version 1.0.10 + */ +declare class ValidateLicenseByKeyRequest { + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj: any): void; + /** + * Constructs a ValidateLicenseByKeyRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ValidateLicenseByKeyRequest} obj Optional instance to populate. + * @return {module:model/ValidateLicenseByKeyRequest} The populated ValidateLicenseByKeyRequest instance. + */ + static constructFromObject(data: any, obj: any): any; + metadata: any; +} +//# sourceMappingURL=ValidateLicenseByKeyRequest.d.ts.map \ No newline at end of file diff --git a/types/model/ValidateLicenseByKeyRequest.d.ts.map b/types/model/ValidateLicenseByKeyRequest.d.ts.map new file mode 100644 index 0000000..e2c4cd1 --- /dev/null +++ b/types/model/ValidateLicenseByKeyRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ValidateLicenseByKeyRequest.d.ts","sourceRoot":"","sources":["../../src/model/ValidateLicenseByKeyRequest.js"],"names":[],"mappings":";AAeA;;;;GAIG;AACH;IAUI;;;;OAIG;IACH,kCACC;IAED;;;;;;OAMG;IACH,qDASC;;CAGJ"} \ No newline at end of file diff --git a/types/model/ValidateLicenseByKeyResponse.d.ts b/types/model/ValidateLicenseByKeyResponse.d.ts new file mode 100644 index 0000000..af1a3a6 --- /dev/null +++ b/types/model/ValidateLicenseByKeyResponse.d.ts @@ -0,0 +1,59 @@ +export default ValidateLicenseByKeyResponse; +/** + * The ValidateLicenseByKeyResponse model module. + * @module model/ValidateLicenseByKeyResponse + * @version 1.0.10 + */ +declare class ValidateLicenseByKeyResponse { + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj: any): void; + /** + * Constructs a ValidateLicenseByKeyResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ValidateLicenseByKeyResponse} obj Optional instance to populate. + * @return {module:model/ValidateLicenseByKeyResponse} The populated ValidateLicenseByKeyResponse instance. + */ + static constructFromObject(data: any, obj: any): any; + id: any; + key: any; + rental_key: any; + rented: any; + rental_end: any; + valid: any; + key_status: any; + subscription_status: any; + quantity: any; + banned: any; + metadata: any; + next_renewal_date: any; + renewal_period: any; + created_at: any; + discord: any; + twitter: any; + is_scammer: any; + plan: any; +} +declare namespace ValidateLicenseByKeyResponse { + namespace KeyStatusEnum { + const pending: string; + const approved: string; + const listed: string; + const removed: string; + const sold: string; + const terminated: string; + const expired: string; + const disabled: string; + } + namespace SubscriptionStatusEnum { + const completed: string; + const active: string; + const trialing: string; + const canceled: string; + } +} +//# sourceMappingURL=ValidateLicenseByKeyResponse.d.ts.map \ No newline at end of file diff --git a/types/model/ValidateLicenseByKeyResponse.d.ts.map b/types/model/ValidateLicenseByKeyResponse.d.ts.map new file mode 100644 index 0000000..1a5853a --- /dev/null +++ b/types/model/ValidateLicenseByKeyResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ValidateLicenseByKeyResponse.d.ts","sourceRoot":"","sources":["../../src/model/ValidateLicenseByKeyResponse.js"],"names":[],"mappings":";AAmBA;;;;GAIG;AACH;IAWI;;;;OAIG;IACH,kCACC;IAED;;;;;;OAMG;IACH,qDA6DC;;;;;;;;;;;;;;;;;;;CAGJ"} \ No newline at end of file diff --git a/types/whop.d.ts b/types/whop.d.ts new file mode 100644 index 0000000..2534b45 --- /dev/null +++ b/types/whop.d.ts @@ -0,0 +1,25 @@ +export default Whop; +declare class Whop { + constructor({ bearer, clientID }?: { + bearer?: any; + clientID?: any; + }); + apiClient: ApiClient; + getProducts(): Promise; + getProductById(id: any): Promise; + createProduct(title: any, cancel_action: any, expiration_days: any, initial_price: any, license_type: any, stock: any, billing_period: any, currency: any, custom_trial_period: any, price: any, transferable: any): Promise; + confirmProduct(currency: any, stock: any, title: any, transferable: any, billing_period: any, cancel_action: any, initial_price: any, license_type: any, price: any, custom_trial_period: any, expiration_days: any): Promise; + sendPushNotification(link: any, title: any, body: any): Promise; + getLinks(): Promise; + createLink(discord_ids: any, password: any, product_id: any, stock: any): Promise; + validateLicenseByKey(key: any, metadata: any): Promise; + updateLicenseByKey(key: any, metadata: any): Promise; + resetLicenseByKey(key: any): Promise; + getLicenses(): Promise; + getLicenseByKey(key: any): Promise; + banLicenseByKey(key: any): Promise; + getCheckoutLogs(): Promise; + createCheckoutLog(website: any, image_url: any, key: any, price: any, product_name: any, size: any, status: any): Promise; +} +import ApiClient from "./ApiClient"; +//# sourceMappingURL=whop.d.ts.map \ No newline at end of file diff --git a/types/whop.d.ts.map b/types/whop.d.ts.map new file mode 100644 index 0000000..6a8f2bb --- /dev/null +++ b/types/whop.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"whop.d.ts","sourceRoot":"","sources":["../src/whop.js"],"names":[],"mappings":";AAOA;IACE;;;OAQC;IAPC,qBAAgC;IAUlC,4BAGC;IAED,sCAGC;IAED,kOA8BC;IAED,mOA8BC;IAED,qEAUC;IAED,yBAGC;IAED,uFAWC;IAED,4DAQC;IAED,0DAQC;IAED,0CAGC;IAED,4BAGC;IAED,wCAGC;IAED,wCAGC;IAED,gCAGC;IAED,+HAsBC;CACF"} \ No newline at end of file