arlas-permissions-api 19.0.0
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/api.d.ts +134 -0
- package/api.js +191 -0
- package/api.js.map +1 -0
- package/configuration.d.ts +55 -0
- package/configuration.js +25 -0
- package/configuration.js.map +1 -0
- package/custom.d.ts +1 -0
- package/index.d.ts +13 -0
- package/index.js +15 -0
- package/index.js.map +1 -0
- package/package.json +18 -0
package/api.d.ts
ADDED
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
/// <reference path="custom.d.ts" />
|
|
2
|
+
import { Configuration } from "./configuration";
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* @export
|
|
6
|
+
*/
|
|
7
|
+
export declare const COLLECTION_FORMATS: {
|
|
8
|
+
csv: string;
|
|
9
|
+
ssv: string;
|
|
10
|
+
tsv: string;
|
|
11
|
+
pipes: string;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface FetchAPI
|
|
17
|
+
*/
|
|
18
|
+
export interface FetchAPI {
|
|
19
|
+
(url: string, init?: any): Promise<Response>;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @export
|
|
24
|
+
* @interface FetchArgs
|
|
25
|
+
*/
|
|
26
|
+
export interface FetchArgs {
|
|
27
|
+
url: string;
|
|
28
|
+
options: any;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @export
|
|
33
|
+
* @class BaseAPI
|
|
34
|
+
*/
|
|
35
|
+
export declare class BaseAPI {
|
|
36
|
+
protected basePath: string;
|
|
37
|
+
protected fetch: FetchAPI;
|
|
38
|
+
protected configuration: Configuration;
|
|
39
|
+
constructor(configuration?: Configuration, basePath?: string, fetch?: FetchAPI);
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @export
|
|
44
|
+
* @class RequiredError
|
|
45
|
+
* @extends {Error}
|
|
46
|
+
*/
|
|
47
|
+
export declare class RequiredError extends Error {
|
|
48
|
+
field: string;
|
|
49
|
+
name: "RequiredError";
|
|
50
|
+
constructor(field: string, msg?: string);
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @export
|
|
55
|
+
* @interface ModelError
|
|
56
|
+
*/
|
|
57
|
+
export interface ModelError {
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {number}
|
|
61
|
+
* @memberof ModelError
|
|
62
|
+
*/
|
|
63
|
+
status?: number;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof ModelError
|
|
68
|
+
*/
|
|
69
|
+
message?: string;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof ModelError
|
|
74
|
+
*/
|
|
75
|
+
error?: string;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @export
|
|
80
|
+
* @interface Resource
|
|
81
|
+
*/
|
|
82
|
+
export interface Resource {
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof Resource
|
|
87
|
+
*/
|
|
88
|
+
verb: string;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {string}
|
|
92
|
+
* @memberof Resource
|
|
93
|
+
*/
|
|
94
|
+
path: string;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* AuthorizeApi - fetch parameter creator
|
|
98
|
+
* @export
|
|
99
|
+
*/
|
|
100
|
+
export declare const AuthorizeApiFetchParamCreator: (configuration?: Configuration) => {
|
|
101
|
+
get(filter: string, pretty?: boolean, options?: any): FetchArgs;
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* AuthorizeApi - functional programming interface
|
|
105
|
+
* @export
|
|
106
|
+
*/
|
|
107
|
+
export declare const AuthorizeApiFp: (configuration?: Configuration) => {
|
|
108
|
+
get(filter: string, pretty?: boolean, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Resource[]>;
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* AuthorizeApi - factory interface
|
|
112
|
+
* @export
|
|
113
|
+
*/
|
|
114
|
+
export declare const AuthorizeApiFactory: (configuration?: Configuration, fetch?: FetchAPI, basePath?: string) => {
|
|
115
|
+
get(filter: string, pretty?: boolean, options?: any): Promise<Resource[]>;
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* AuthorizeApi - object-oriented interface
|
|
119
|
+
* @export
|
|
120
|
+
* @class AuthorizeApi
|
|
121
|
+
* @extends {BaseAPI}
|
|
122
|
+
*/
|
|
123
|
+
export declare class AuthorizeApi extends BaseAPI {
|
|
124
|
+
/**
|
|
125
|
+
* Returns a list of permissions for the current context/user
|
|
126
|
+
* @summary Returns a list of permissions for the current context/user
|
|
127
|
+
* @param {} filter A regex to apply to permissions uris in order to filter the returned list.
|
|
128
|
+
* @param {} [pretty] Pretty print
|
|
129
|
+
* @param {*} [options] Override http request option.
|
|
130
|
+
* @throws {RequiredError}
|
|
131
|
+
* @memberof AuthorizeApi
|
|
132
|
+
*/
|
|
133
|
+
get(filter: string, pretty?: boolean, options?: any): Promise<Resource[]>;
|
|
134
|
+
}
|
package/api.js
ADDED
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
/// <reference path="./custom.d.ts" />
|
|
2
|
+
// tslint:disable
|
|
3
|
+
/**
|
|
4
|
+
* ARLAS permissions API
|
|
5
|
+
* permissions REST services
|
|
6
|
+
*
|
|
7
|
+
* OpenAPI spec version: 19.0.0
|
|
8
|
+
* Contact: contact@gisaia.com
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
11
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __extends = (this && this.__extends) || (function () {
|
|
15
|
+
var extendStatics = Object.setPrototypeOf ||
|
|
16
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
17
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
18
|
+
return function (d, b) {
|
|
19
|
+
extendStatics(d, b);
|
|
20
|
+
function __() { this.constructor = d; }
|
|
21
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
import * as url from "url";
|
|
25
|
+
import * as portableFetch from "portable-fetch";
|
|
26
|
+
var BASE_PATH = "http://localhost/arlas_permissions_server".replace(/\/+$/, "");
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @export
|
|
30
|
+
*/
|
|
31
|
+
export var COLLECTION_FORMATS = {
|
|
32
|
+
csv: ",",
|
|
33
|
+
ssv: " ",
|
|
34
|
+
tsv: "\t",
|
|
35
|
+
pipes: "|",
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @export
|
|
40
|
+
* @class BaseAPI
|
|
41
|
+
*/
|
|
42
|
+
var BaseAPI = (function () {
|
|
43
|
+
function BaseAPI(configuration, basePath, fetch) {
|
|
44
|
+
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
45
|
+
if (fetch === void 0) { fetch = portableFetch; }
|
|
46
|
+
this.basePath = basePath;
|
|
47
|
+
this.fetch = fetch;
|
|
48
|
+
if (configuration) {
|
|
49
|
+
this.configuration = configuration;
|
|
50
|
+
this.basePath = configuration.basePath || this.basePath;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return BaseAPI;
|
|
54
|
+
}());
|
|
55
|
+
export { BaseAPI };
|
|
56
|
+
;
|
|
57
|
+
/**
|
|
58
|
+
*
|
|
59
|
+
* @export
|
|
60
|
+
* @class RequiredError
|
|
61
|
+
* @extends {Error}
|
|
62
|
+
*/
|
|
63
|
+
var RequiredError = (function (_super) {
|
|
64
|
+
__extends(RequiredError, _super);
|
|
65
|
+
function RequiredError(field, msg) {
|
|
66
|
+
var _this = _super.call(this, msg) || this;
|
|
67
|
+
_this.field = field;
|
|
68
|
+
return _this;
|
|
69
|
+
}
|
|
70
|
+
return RequiredError;
|
|
71
|
+
}(Error));
|
|
72
|
+
export { RequiredError };
|
|
73
|
+
/**
|
|
74
|
+
* AuthorizeApi - fetch parameter creator
|
|
75
|
+
* @export
|
|
76
|
+
*/
|
|
77
|
+
export var AuthorizeApiFetchParamCreator = function (configuration) {
|
|
78
|
+
return {
|
|
79
|
+
/**
|
|
80
|
+
* Returns a list of permissions for the current context/user
|
|
81
|
+
* @summary Returns a list of permissions for the current context/user
|
|
82
|
+
* @param {string} filter A regex to apply to permissions uris in order to filter the returned list.
|
|
83
|
+
* @param {boolean} [pretty] Pretty print
|
|
84
|
+
* @param {*} [options] Override http request option.
|
|
85
|
+
* @throws {RequiredError}
|
|
86
|
+
*/
|
|
87
|
+
get: function (filter, pretty, options) {
|
|
88
|
+
if (options === void 0) { options = {}; }
|
|
89
|
+
// verify required parameter 'filter' is not null or undefined
|
|
90
|
+
if (filter === null || filter === undefined) {
|
|
91
|
+
throw new RequiredError('filter', 'Required parameter filter was null or undefined when calling get.');
|
|
92
|
+
}
|
|
93
|
+
var localVarPath = "/authorize/resources";
|
|
94
|
+
var localVarUrlObj = url.parse(localVarPath, true);
|
|
95
|
+
var localVarRequestOptions = Object.assign({ method: 'GET' }, options);
|
|
96
|
+
var localVarHeaderParameter = {};
|
|
97
|
+
var localVarQueryParameter = {};
|
|
98
|
+
if (filter !== undefined) {
|
|
99
|
+
localVarQueryParameter['filter'] = filter;
|
|
100
|
+
}
|
|
101
|
+
if (pretty !== undefined) {
|
|
102
|
+
localVarQueryParameter['pretty'] = pretty;
|
|
103
|
+
}
|
|
104
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
105
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
106
|
+
delete localVarUrlObj.search;
|
|
107
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
108
|
+
return {
|
|
109
|
+
url: url.format(localVarUrlObj),
|
|
110
|
+
options: localVarRequestOptions,
|
|
111
|
+
};
|
|
112
|
+
},
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* AuthorizeApi - functional programming interface
|
|
117
|
+
* @export
|
|
118
|
+
*/
|
|
119
|
+
export var AuthorizeApiFp = function (configuration) {
|
|
120
|
+
return {
|
|
121
|
+
/**
|
|
122
|
+
* Returns a list of permissions for the current context/user
|
|
123
|
+
* @summary Returns a list of permissions for the current context/user
|
|
124
|
+
* @param {string} filter A regex to apply to permissions uris in order to filter the returned list.
|
|
125
|
+
* @param {boolean} [pretty] Pretty print
|
|
126
|
+
* @param {*} [options] Override http request option.
|
|
127
|
+
* @throws {RequiredError}
|
|
128
|
+
*/
|
|
129
|
+
get: function (filter, pretty, options) {
|
|
130
|
+
var localVarFetchArgs = AuthorizeApiFetchParamCreator(configuration).get(filter, pretty, options);
|
|
131
|
+
return function (fetch, basePath) {
|
|
132
|
+
if (fetch === void 0) { fetch = portableFetch; }
|
|
133
|
+
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
134
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
|
|
135
|
+
if (response.status >= 200 && response.status < 300) {
|
|
136
|
+
return response.json();
|
|
137
|
+
}
|
|
138
|
+
else {
|
|
139
|
+
throw response;
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
};
|
|
143
|
+
},
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
/**
|
|
147
|
+
* AuthorizeApi - factory interface
|
|
148
|
+
* @export
|
|
149
|
+
*/
|
|
150
|
+
export var AuthorizeApiFactory = function (configuration, fetch, basePath) {
|
|
151
|
+
return {
|
|
152
|
+
/**
|
|
153
|
+
* Returns a list of permissions for the current context/user
|
|
154
|
+
* @summary Returns a list of permissions for the current context/user
|
|
155
|
+
* @param {string} filter A regex to apply to permissions uris in order to filter the returned list.
|
|
156
|
+
* @param {boolean} [pretty] Pretty print
|
|
157
|
+
* @param {*} [options] Override http request option.
|
|
158
|
+
* @throws {RequiredError}
|
|
159
|
+
*/
|
|
160
|
+
get: function (filter, pretty, options) {
|
|
161
|
+
return AuthorizeApiFp(configuration).get(filter, pretty, options)(fetch, basePath);
|
|
162
|
+
},
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
/**
|
|
166
|
+
* AuthorizeApi - object-oriented interface
|
|
167
|
+
* @export
|
|
168
|
+
* @class AuthorizeApi
|
|
169
|
+
* @extends {BaseAPI}
|
|
170
|
+
*/
|
|
171
|
+
var AuthorizeApi = (function (_super) {
|
|
172
|
+
__extends(AuthorizeApi, _super);
|
|
173
|
+
function AuthorizeApi() {
|
|
174
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Returns a list of permissions for the current context/user
|
|
178
|
+
* @summary Returns a list of permissions for the current context/user
|
|
179
|
+
* @param {} filter A regex to apply to permissions uris in order to filter the returned list.
|
|
180
|
+
* @param {} [pretty] Pretty print
|
|
181
|
+
* @param {*} [options] Override http request option.
|
|
182
|
+
* @throws {RequiredError}
|
|
183
|
+
* @memberof AuthorizeApi
|
|
184
|
+
*/
|
|
185
|
+
AuthorizeApi.prototype.get = function (filter, pretty, options) {
|
|
186
|
+
return AuthorizeApiFp(this.configuration).get(filter, pretty, options)(this.fetch, this.basePath);
|
|
187
|
+
};
|
|
188
|
+
return AuthorizeApi;
|
|
189
|
+
}(BaseAPI));
|
|
190
|
+
export { AuthorizeApi };
|
|
191
|
+
//# sourceMappingURL=api.js.map
|
package/api.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,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,0BAAG,GAAV,UAAW,MAAc,EAAE,MAAgB,EAAE,OAAa;QACtD,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IACtG,CAAC;IAEL,mBAAC;AAAD,CAAC,AAdD,CAAkC,OAAO,GAcxC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ARLAS permissions API
|
|
3
|
+
* permissions REST services
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 19.0.0
|
|
6
|
+
* Contact: contact@gisaia.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
9
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export interface ConfigurationParameters {
|
|
13
|
+
apiKey?: string | ((name: string) => string);
|
|
14
|
+
username?: string;
|
|
15
|
+
password?: string;
|
|
16
|
+
accessToken?: string | ((name: string, scopes?: string[]) => string);
|
|
17
|
+
basePath?: string;
|
|
18
|
+
}
|
|
19
|
+
export declare class Configuration {
|
|
20
|
+
/**
|
|
21
|
+
* parameter for apiKey security
|
|
22
|
+
* @param name security name
|
|
23
|
+
* @memberof Configuration
|
|
24
|
+
*/
|
|
25
|
+
apiKey?: string | ((name: string) => string);
|
|
26
|
+
/**
|
|
27
|
+
* parameter for basic security
|
|
28
|
+
*
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof Configuration
|
|
31
|
+
*/
|
|
32
|
+
username?: string;
|
|
33
|
+
/**
|
|
34
|
+
* parameter for basic security
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof Configuration
|
|
38
|
+
*/
|
|
39
|
+
password?: string;
|
|
40
|
+
/**
|
|
41
|
+
* parameter for oauth2 security
|
|
42
|
+
* @param name security name
|
|
43
|
+
* @param scopes oauth2 scope
|
|
44
|
+
* @memberof Configuration
|
|
45
|
+
*/
|
|
46
|
+
accessToken?: string | ((name: string, scopes?: string[]) => string);
|
|
47
|
+
/**
|
|
48
|
+
* override base path
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof Configuration
|
|
52
|
+
*/
|
|
53
|
+
basePath?: string;
|
|
54
|
+
constructor(param?: ConfigurationParameters);
|
|
55
|
+
}
|
package/configuration.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// tslint:disable
|
|
2
|
+
/**
|
|
3
|
+
* ARLAS permissions API
|
|
4
|
+
* permissions REST services
|
|
5
|
+
*
|
|
6
|
+
* OpenAPI spec version: 19.0.0
|
|
7
|
+
* Contact: contact@gisaia.com
|
|
8
|
+
*
|
|
9
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
10
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
* Do not edit the class manually.
|
|
12
|
+
*/
|
|
13
|
+
var Configuration = (function () {
|
|
14
|
+
function Configuration(param) {
|
|
15
|
+
if (param === void 0) { param = {}; }
|
|
16
|
+
this.apiKey = param.apiKey;
|
|
17
|
+
this.username = param.username;
|
|
18
|
+
this.password = param.password;
|
|
19
|
+
this.accessToken = param.accessToken;
|
|
20
|
+
this.basePath = param.basePath;
|
|
21
|
+
}
|
|
22
|
+
return Configuration;
|
|
23
|
+
}());
|
|
24
|
+
export { Configuration };
|
|
25
|
+
//# sourceMappingURL=configuration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"configuration.js","sourceRoot":"","sources":["configuration.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;GAUG;AAWH;IAoCI,uBAAY,KAAmC;QAAnC,sBAAA,EAAA,UAAmC;QAC3C,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;QAC3B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC,WAAW,CAAC;QACrC,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;IACnC,CAAC;IACL,oBAAC;AAAD,CAAC,AA3CD,IA2CC"}
|
package/custom.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare module 'portable-fetch';
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ARLAS permissions API
|
|
3
|
+
* permissions REST services
|
|
4
|
+
*
|
|
5
|
+
* OpenAPI spec version: 19.0.0
|
|
6
|
+
* Contact: contact@gisaia.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
9
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export * from "./api";
|
|
13
|
+
export * from "./configuration";
|
package/index.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// tslint:disable
|
|
2
|
+
/**
|
|
3
|
+
* ARLAS permissions API
|
|
4
|
+
* permissions REST services
|
|
5
|
+
*
|
|
6
|
+
* OpenAPI spec version: 19.0.0
|
|
7
|
+
* Contact: contact@gisaia.com
|
|
8
|
+
*
|
|
9
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
10
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
* Do not edit the class manually.
|
|
12
|
+
*/
|
|
13
|
+
export * from "./api";
|
|
14
|
+
export * from "./configuration";
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
package/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB;;;;;;;;;;GAUG;AAGH,cAAc,OAAO,CAAC;AACtB,cAAc,iBAAiB,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "arlas-permissions-api",
|
|
3
|
+
"version": "19.0.0",
|
|
4
|
+
"description": "Persists data",
|
|
5
|
+
"author": "Gisaia",
|
|
6
|
+
"main": "./index.js",
|
|
7
|
+
"typings": "./index.d.ts",
|
|
8
|
+
"keywords": [
|
|
9
|
+
"arlas",
|
|
10
|
+
"fetch",
|
|
11
|
+
"portable-fetch"
|
|
12
|
+
],
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"es6-promise": "4.2.4",
|
|
15
|
+
"portable-fetch": "3.0.0",
|
|
16
|
+
"url": "0.11.0"
|
|
17
|
+
}
|
|
18
|
+
}
|