@flipdish/authorization 0.0.1-rc.1756734343

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/base.d.ts ADDED
@@ -0,0 +1,66 @@
1
+ /**
2
+ * Authorization API
3
+ * Authorization API
4
+ *
5
+ * The version of the OpenAPI document: 0.0.1
6
+ * Contact: support@flipdish.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Configuration } from './configuration';
13
+ import type { AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
+ export declare const BASE_PATH: string;
15
+ /**
16
+ *
17
+ * @export
18
+ */
19
+ export declare const COLLECTION_FORMATS: {
20
+ csv: string;
21
+ ssv: string;
22
+ tsv: string;
23
+ pipes: string;
24
+ };
25
+ /**
26
+ *
27
+ * @export
28
+ * @interface RequestArgs
29
+ */
30
+ export interface RequestArgs {
31
+ url: string;
32
+ options: RawAxiosRequestConfig;
33
+ }
34
+ /**
35
+ *
36
+ * @export
37
+ * @class BaseAPI
38
+ */
39
+ export declare class BaseAPI {
40
+ protected basePath: string;
41
+ protected axios: AxiosInstance;
42
+ protected configuration: Configuration | undefined;
43
+ constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
44
+ }
45
+ /**
46
+ *
47
+ * @export
48
+ * @class RequiredError
49
+ * @extends {Error}
50
+ */
51
+ export declare class RequiredError extends Error {
52
+ field: string;
53
+ constructor(field: string, msg?: string);
54
+ }
55
+ interface ServerMap {
56
+ [key: string]: {
57
+ url: string;
58
+ description: string;
59
+ }[];
60
+ }
61
+ /**
62
+ *
63
+ * @export
64
+ */
65
+ export declare const operationServerMap: ServerMap;
66
+ export {};
package/dist/base.js ADDED
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Authorization API
6
+ * Authorization API
7
+ *
8
+ * The version of the OpenAPI document: 0.0.1
9
+ * Contact: support@flipdish.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ Object.defineProperty(exports, "__esModule", { value: true });
31
+ exports.operationServerMap = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
32
+ var axios_1 = require("axios");
33
+ exports.BASE_PATH = "https://undefined".replace(/\/+$/, "");
34
+ /**
35
+ *
36
+ * @export
37
+ */
38
+ exports.COLLECTION_FORMATS = {
39
+ csv: ",",
40
+ ssv: " ",
41
+ tsv: "\t",
42
+ pipes: "|",
43
+ };
44
+ /**
45
+ *
46
+ * @export
47
+ * @class BaseAPI
48
+ */
49
+ var BaseAPI = /** @class */ (function () {
50
+ function BaseAPI(configuration, basePath, axios) {
51
+ if (basePath === void 0) { basePath = exports.BASE_PATH; }
52
+ if (axios === void 0) { axios = axios_1.default; }
53
+ var _a;
54
+ this.basePath = basePath;
55
+ this.axios = axios;
56
+ if (configuration) {
57
+ this.configuration = configuration;
58
+ this.basePath = (_a = configuration.basePath) !== null && _a !== void 0 ? _a : basePath;
59
+ }
60
+ }
61
+ return BaseAPI;
62
+ }());
63
+ exports.BaseAPI = BaseAPI;
64
+ ;
65
+ /**
66
+ *
67
+ * @export
68
+ * @class RequiredError
69
+ * @extends {Error}
70
+ */
71
+ var RequiredError = /** @class */ (function (_super) {
72
+ __extends(RequiredError, _super);
73
+ function RequiredError(field, msg) {
74
+ var _this = _super.call(this, msg) || this;
75
+ _this.field = field;
76
+ _this.name = "RequiredError";
77
+ return _this;
78
+ }
79
+ return RequiredError;
80
+ }(Error));
81
+ exports.RequiredError = RequiredError;
82
+ /**
83
+ *
84
+ * @export
85
+ */
86
+ exports.operationServerMap = {};
@@ -0,0 +1,65 @@
1
+ /**
2
+ * Authorization API
3
+ * Authorization API
4
+ *
5
+ * The version of the OpenAPI document: 0.0.1
6
+ * Contact: support@flipdish.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { Configuration } from "./configuration";
13
+ import type { RequestArgs } from "./base";
14
+ import type { AxiosInstance, AxiosResponse } from 'axios';
15
+ /**
16
+ *
17
+ * @export
18
+ */
19
+ export declare const DUMMY_BASE_URL = "https://example.com";
20
+ /**
21
+ *
22
+ * @throws {RequiredError}
23
+ * @export
24
+ */
25
+ export declare const assertParamExists: (functionName: string, paramName: string, paramValue: unknown) => void;
26
+ /**
27
+ *
28
+ * @export
29
+ */
30
+ export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
31
+ /**
32
+ *
33
+ * @export
34
+ */
35
+ export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
36
+ /**
37
+ *
38
+ * @export
39
+ */
40
+ export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
41
+ /**
42
+ *
43
+ * @export
44
+ */
45
+ export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
46
+ /**
47
+ *
48
+ * @export
49
+ */
50
+ export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
51
+ /**
52
+ *
53
+ * @export
54
+ */
55
+ export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
56
+ /**
57
+ *
58
+ * @export
59
+ */
60
+ export declare const toPathString: (url: URL) => string;
61
+ /**
62
+ *
63
+ * @export
64
+ */
65
+ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
package/dist/common.js ADDED
@@ -0,0 +1,253 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Authorization API
6
+ * Authorization API
7
+ *
8
+ * The version of the OpenAPI document: 0.0.1
9
+ * Contact: support@flipdish.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __assign = (this && this.__assign) || function () {
16
+ __assign = Object.assign || function(t) {
17
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
18
+ s = arguments[i];
19
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
20
+ t[p] = s[p];
21
+ }
22
+ return t;
23
+ };
24
+ return __assign.apply(this, arguments);
25
+ };
26
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
27
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
28
+ return new (P || (P = Promise))(function (resolve, reject) {
29
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
30
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
31
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
32
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
33
+ });
34
+ };
35
+ var __generator = (this && this.__generator) || function (thisArg, body) {
36
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
37
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
38
+ function verb(n) { return function (v) { return step([n, v]); }; }
39
+ function step(op) {
40
+ if (f) throw new TypeError("Generator is already executing.");
41
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
42
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
43
+ if (y = 0, t) op = [op[0] & 2, t.value];
44
+ switch (op[0]) {
45
+ case 0: case 1: t = op; break;
46
+ case 4: _.label++; return { value: op[1], done: false };
47
+ case 5: _.label++; y = op[1]; op = [0]; continue;
48
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
49
+ default:
50
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
51
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
52
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
53
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
54
+ if (t[2]) _.ops.pop();
55
+ _.trys.pop(); continue;
56
+ }
57
+ op = body.call(thisArg, _);
58
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
59
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
60
+ }
61
+ };
62
+ Object.defineProperty(exports, "__esModule", { value: true });
63
+ exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
64
+ var base_1 = require("./base");
65
+ /**
66
+ *
67
+ * @export
68
+ */
69
+ exports.DUMMY_BASE_URL = 'https://example.com';
70
+ /**
71
+ *
72
+ * @throws {RequiredError}
73
+ * @export
74
+ */
75
+ var assertParamExists = function (functionName, paramName, paramValue) {
76
+ if (paramValue === null || paramValue === undefined) {
77
+ throw new base_1.RequiredError(paramName, "Required parameter ".concat(paramName, " was null or undefined when calling ").concat(functionName, "."));
78
+ }
79
+ };
80
+ exports.assertParamExists = assertParamExists;
81
+ /**
82
+ *
83
+ * @export
84
+ */
85
+ var setApiKeyToObject = function (object, keyParamName, configuration) {
86
+ return __awaiter(this, void 0, void 0, function () {
87
+ var localVarApiKeyValue, _a;
88
+ return __generator(this, function (_b) {
89
+ switch (_b.label) {
90
+ case 0:
91
+ if (!(configuration && configuration.apiKey)) return [3 /*break*/, 5];
92
+ if (!(typeof configuration.apiKey === 'function')) return [3 /*break*/, 2];
93
+ return [4 /*yield*/, configuration.apiKey(keyParamName)];
94
+ case 1:
95
+ _a = _b.sent();
96
+ return [3 /*break*/, 4];
97
+ case 2: return [4 /*yield*/, configuration.apiKey];
98
+ case 3:
99
+ _a = _b.sent();
100
+ _b.label = 4;
101
+ case 4:
102
+ localVarApiKeyValue = _a;
103
+ object[keyParamName] = localVarApiKeyValue;
104
+ _b.label = 5;
105
+ case 5: return [2 /*return*/];
106
+ }
107
+ });
108
+ });
109
+ };
110
+ exports.setApiKeyToObject = setApiKeyToObject;
111
+ /**
112
+ *
113
+ * @export
114
+ */
115
+ var setBasicAuthToObject = function (object, configuration) {
116
+ if (configuration && (configuration.username || configuration.password)) {
117
+ object["auth"] = { username: configuration.username, password: configuration.password };
118
+ }
119
+ };
120
+ exports.setBasicAuthToObject = setBasicAuthToObject;
121
+ /**
122
+ *
123
+ * @export
124
+ */
125
+ var setBearerAuthToObject = function (object, configuration) {
126
+ return __awaiter(this, void 0, void 0, function () {
127
+ var accessToken, _a;
128
+ return __generator(this, function (_b) {
129
+ switch (_b.label) {
130
+ case 0:
131
+ if (!(configuration && configuration.accessToken)) return [3 /*break*/, 5];
132
+ if (!(typeof configuration.accessToken === 'function')) return [3 /*break*/, 2];
133
+ return [4 /*yield*/, configuration.accessToken()];
134
+ case 1:
135
+ _a = _b.sent();
136
+ return [3 /*break*/, 4];
137
+ case 2: return [4 /*yield*/, configuration.accessToken];
138
+ case 3:
139
+ _a = _b.sent();
140
+ _b.label = 4;
141
+ case 4:
142
+ accessToken = _a;
143
+ object["Authorization"] = "Bearer " + accessToken;
144
+ _b.label = 5;
145
+ case 5: return [2 /*return*/];
146
+ }
147
+ });
148
+ });
149
+ };
150
+ exports.setBearerAuthToObject = setBearerAuthToObject;
151
+ /**
152
+ *
153
+ * @export
154
+ */
155
+ var setOAuthToObject = function (object, name, scopes, configuration) {
156
+ return __awaiter(this, void 0, void 0, function () {
157
+ var localVarAccessTokenValue, _a;
158
+ return __generator(this, function (_b) {
159
+ switch (_b.label) {
160
+ case 0:
161
+ if (!(configuration && configuration.accessToken)) return [3 /*break*/, 5];
162
+ if (!(typeof configuration.accessToken === 'function')) return [3 /*break*/, 2];
163
+ return [4 /*yield*/, configuration.accessToken(name, scopes)];
164
+ case 1:
165
+ _a = _b.sent();
166
+ return [3 /*break*/, 4];
167
+ case 2: return [4 /*yield*/, configuration.accessToken];
168
+ case 3:
169
+ _a = _b.sent();
170
+ _b.label = 4;
171
+ case 4:
172
+ localVarAccessTokenValue = _a;
173
+ object["Authorization"] = "Bearer " + localVarAccessTokenValue;
174
+ _b.label = 5;
175
+ case 5: return [2 /*return*/];
176
+ }
177
+ });
178
+ });
179
+ };
180
+ exports.setOAuthToObject = setOAuthToObject;
181
+ function setFlattenedQueryParams(urlSearchParams, parameter, key) {
182
+ if (key === void 0) { key = ""; }
183
+ if (parameter == null)
184
+ return;
185
+ if (typeof parameter === "object") {
186
+ if (Array.isArray(parameter)) {
187
+ parameter.forEach(function (item) { return setFlattenedQueryParams(urlSearchParams, item, key); });
188
+ }
189
+ else {
190
+ Object.keys(parameter).forEach(function (currentKey) {
191
+ return setFlattenedQueryParams(urlSearchParams, parameter[currentKey], "".concat(key).concat(key !== '' ? '.' : '').concat(currentKey));
192
+ });
193
+ }
194
+ }
195
+ else {
196
+ if (urlSearchParams.has(key)) {
197
+ urlSearchParams.append(key, parameter);
198
+ }
199
+ else {
200
+ urlSearchParams.set(key, parameter);
201
+ }
202
+ }
203
+ }
204
+ /**
205
+ *
206
+ * @export
207
+ */
208
+ var setSearchParams = function (url) {
209
+ var objects = [];
210
+ for (var _i = 1; _i < arguments.length; _i++) {
211
+ objects[_i - 1] = arguments[_i];
212
+ }
213
+ var searchParams = new URLSearchParams(url.search);
214
+ setFlattenedQueryParams(searchParams, objects);
215
+ url.search = searchParams.toString();
216
+ };
217
+ exports.setSearchParams = setSearchParams;
218
+ /**
219
+ *
220
+ * @export
221
+ */
222
+ var serializeDataIfNeeded = function (value, requestOptions, configuration) {
223
+ var nonString = typeof value !== 'string';
224
+ var needsSerialization = nonString && configuration && configuration.isJsonMime
225
+ ? configuration.isJsonMime(requestOptions.headers['Content-Type'])
226
+ : nonString;
227
+ return needsSerialization
228
+ ? JSON.stringify(value !== undefined ? value : {})
229
+ : (value || "");
230
+ };
231
+ exports.serializeDataIfNeeded = serializeDataIfNeeded;
232
+ /**
233
+ *
234
+ * @export
235
+ */
236
+ var toPathString = function (url) {
237
+ return url.pathname + url.search + url.hash;
238
+ };
239
+ exports.toPathString = toPathString;
240
+ /**
241
+ *
242
+ * @export
243
+ */
244
+ var createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
245
+ return function (axios, basePath) {
246
+ var _a;
247
+ if (axios === void 0) { axios = globalAxios; }
248
+ if (basePath === void 0) { basePath = BASE_PATH; }
249
+ var axiosRequestArgs = __assign(__assign({}, axiosArgs.options), { url: (axios.defaults.baseURL ? '' : (_a = configuration === null || configuration === void 0 ? void 0 : configuration.basePath) !== null && _a !== void 0 ? _a : basePath) + axiosArgs.url });
250
+ return axios.request(axiosRequestArgs);
251
+ };
252
+ };
253
+ exports.createRequestFunction = createRequestFunction;
@@ -0,0 +1,99 @@
1
+ /**
2
+ * Authorization API
3
+ * Authorization API
4
+ *
5
+ * The version of the OpenAPI document: 0.0.1
6
+ * Contact: support@flipdish.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ export interface ConfigurationParameters {
13
+ apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
14
+ username?: string;
15
+ password?: string;
16
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
17
+ basePath?: string;
18
+ serverIndex?: number;
19
+ baseOptions?: any;
20
+ formDataCtor?: new () => any;
21
+ useDefaultUserAgent?: boolean;
22
+ }
23
+ export declare class Configuration {
24
+ /**
25
+ * parameter for apiKey security
26
+ * @param name security name
27
+ * @memberof Configuration
28
+ */
29
+ apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
30
+ /**
31
+ * parameter for basic security
32
+ *
33
+ * @type {string}
34
+ * @memberof Configuration
35
+ */
36
+ username?: string;
37
+ /**
38
+ * parameter for basic security
39
+ *
40
+ * @type {string}
41
+ * @memberof Configuration
42
+ */
43
+ password?: string;
44
+ /**
45
+ * parameter for oauth2 security
46
+ * @param name security name
47
+ * @param scopes oauth2 scope
48
+ * @memberof Configuration
49
+ */
50
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
51
+ /**
52
+ * override base path
53
+ *
54
+ * @type {string}
55
+ * @memberof Configuration
56
+ */
57
+ basePath?: string;
58
+ /**
59
+ * override server index
60
+ *
61
+ * @type {number}
62
+ * @memberof Configuration
63
+ */
64
+ serverIndex?: number;
65
+ /**
66
+ * base options for axios calls
67
+ *
68
+ * @type {any}
69
+ * @memberof Configuration
70
+ */
71
+ baseOptions?: any;
72
+ /**
73
+ * Do not override default useragent - useful in browsers which disallow overloading default UA
74
+ *
75
+ * @type boolean
76
+ * @memberof Configuration
77
+ */
78
+ useDefaultUserAgent?: boolean;
79
+ /**
80
+ * The FormData constructor that will be used to create multipart form data
81
+ * requests. You can inject this here so that execution environments that
82
+ * do not support the FormData class can still run the generated client.
83
+ *
84
+ * @type {new () => FormData}
85
+ */
86
+ formDataCtor?: new () => any;
87
+ constructor(param?: ConfigurationParameters);
88
+ /**
89
+ * Check if the given MIME is a JSON MIME.
90
+ * JSON MIME examples:
91
+ * application/json
92
+ * application/json; charset=UTF8
93
+ * APPLICATION/JSON
94
+ * application/vnd.company+json
95
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
96
+ * @return True if the given MIME is JSON, false otherwise.
97
+ */
98
+ isJsonMime(mime: string): boolean;
99
+ }
@@ -0,0 +1,61 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Authorization API
6
+ * Authorization API
7
+ *
8
+ * The version of the OpenAPI document: 0.0.1
9
+ * Contact: support@flipdish.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __assign = (this && this.__assign) || function () {
16
+ __assign = Object.assign || function(t) {
17
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
18
+ s = arguments[i];
19
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
20
+ t[p] = s[p];
21
+ }
22
+ return t;
23
+ };
24
+ return __assign.apply(this, arguments);
25
+ };
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.Configuration = void 0;
28
+ var Configuration = /** @class */ (function () {
29
+ function Configuration(param) {
30
+ if (param === void 0) { param = {}; }
31
+ this.apiKey = param.apiKey;
32
+ this.username = param.username;
33
+ this.password = param.password;
34
+ this.accessToken = param.accessToken;
35
+ this.basePath = param.basePath;
36
+ this.serverIndex = param.serverIndex;
37
+ var extraHeaders = param.useDefaultUserAgent ? {} : {
38
+ headers: {
39
+ "user-agent": "Flipdish authorization typescript SDK / 0.0.1-rc.1756734343"
40
+ }
41
+ };
42
+ this.baseOptions = __assign(__assign({}, extraHeaders), param.baseOptions);
43
+ this.formDataCtor = param.formDataCtor;
44
+ }
45
+ /**
46
+ * Check if the given MIME is a JSON MIME.
47
+ * JSON MIME examples:
48
+ * application/json
49
+ * application/json; charset=UTF8
50
+ * APPLICATION/JSON
51
+ * application/vnd.company+json
52
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
53
+ * @return True if the given MIME is JSON, false otherwise.
54
+ */
55
+ Configuration.prototype.isJsonMime = function (mime) {
56
+ var jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
57
+ return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
58
+ };
59
+ return Configuration;
60
+ }());
61
+ exports.Configuration = Configuration;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Authorization API
3
+ * Authorization API
4
+ *
5
+ * The version of the OpenAPI document: 0.0.1
6
+ * Contact: support@flipdish.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ export * from "./api";
13
+ export * from "./configuration";
package/dist/index.js ADDED
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Authorization API
6
+ * Authorization API
7
+ *
8
+ * The version of the OpenAPI document: 0.0.1
9
+ * Contact: support@flipdish.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ var desc = Object.getOwnPropertyDescriptor(m, k);
18
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
19
+ desc = { enumerable: true, get: function() { return m[k]; } };
20
+ }
21
+ Object.defineProperty(o, k2, desc);
22
+ }) : (function(o, m, k, k2) {
23
+ if (k2 === undefined) k2 = k;
24
+ o[k2] = m[k];
25
+ }));
26
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
27
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
28
+ };
29
+ Object.defineProperty(exports, "__esModule", { value: true });
30
+ __exportStar(require("./api"), exports);
31
+ __exportStar(require("./configuration"), exports);