@onesignal/node-onesignal 5.7.0 → 5.9.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.
Files changed (92) hide show
  1. package/README.md +9 -0
  2. package/dist/apis/DefaultApi.js +2282 -4372
  3. package/dist/apis/baseapi.js +11 -30
  4. package/dist/apis/exception.d.ts +1 -0
  5. package/dist/apis/exception.js +52 -26
  6. package/dist/auth/auth.js +17 -83
  7. package/dist/configuration.js +9 -9
  8. package/dist/errors.d.ts +8 -0
  9. package/dist/errors.js +11 -0
  10. package/dist/helpers.d.ts +12 -0
  11. package/dist/helpers.js +79 -0
  12. package/dist/http/http.js +53 -132
  13. package/dist/http/isomorphic-fetch.js +15 -18
  14. package/dist/index.d.ts +2 -0
  15. package/dist/index.js +2 -0
  16. package/dist/middleware.js +8 -9
  17. package/dist/models/ApiKeyToken.js +45 -46
  18. package/dist/models/ApiKeyTokensListResponse.js +15 -16
  19. package/dist/models/App.js +213 -214
  20. package/dist/models/BasicNotification.js +711 -712
  21. package/dist/models/BasicNotificationAllOf.js +627 -628
  22. package/dist/models/BasicNotificationAllOfAndroidBackgroundLayout.js +27 -28
  23. package/dist/models/Button.js +27 -28
  24. package/dist/models/CopyTemplateRequest.js +15 -16
  25. package/dist/models/CreateApiKeyRequest.js +27 -28
  26. package/dist/models/CreateApiKeyResponse.js +21 -22
  27. package/dist/models/CreateNotificationSuccessResponse.js +27 -28
  28. package/dist/models/CreateSegmentConflictResponse.js +21 -22
  29. package/dist/models/CreateSegmentSuccessResponse.js +21 -22
  30. package/dist/models/CreateTemplateRequest.js +75 -76
  31. package/dist/models/CreateUserConflictResponse.js +15 -16
  32. package/dist/models/CreateUserConflictResponseErrorsInner.js +27 -28
  33. package/dist/models/CreateUserConflictResponseErrorsItemsMeta.js +15 -16
  34. package/dist/models/CustomEvent.js +39 -40
  35. package/dist/models/CustomEventsRequest.js +15 -16
  36. package/dist/models/DeliveryData.js +39 -40
  37. package/dist/models/ExportEventsSuccessResponse.js +15 -16
  38. package/dist/models/ExportSubscriptionsRequestBody.js +27 -28
  39. package/dist/models/ExportSubscriptionsSuccessResponse.js +15 -16
  40. package/dist/models/Filter.js +57 -58
  41. package/dist/models/FilterExpression.js +63 -64
  42. package/dist/models/GenericError.js +27 -28
  43. package/dist/models/GenericSuccessBoolResponse.js +15 -16
  44. package/dist/models/GetNotificationHistoryRequestBody.js +27 -28
  45. package/dist/models/GetSegmentsSuccessResponse.js +33 -34
  46. package/dist/models/LanguageStringMap.js +267 -268
  47. package/dist/models/Notification.js +717 -718
  48. package/dist/models/NotificationAllOf.js +15 -16
  49. package/dist/models/NotificationHistorySuccessResponse.js +21 -22
  50. package/dist/models/NotificationSlice.js +33 -34
  51. package/dist/models/NotificationTarget.js +93 -94
  52. package/dist/models/NotificationWithMeta.js +789 -790
  53. package/dist/models/NotificationWithMetaAllOf.js +93 -94
  54. package/dist/models/ObjectSerializer.js +111 -115
  55. package/dist/models/Operator.js +15 -16
  56. package/dist/models/OutcomeData.js +27 -28
  57. package/dist/models/OutcomesData.js +15 -16
  58. package/dist/models/PlatformDeliveryData.js +57 -58
  59. package/dist/models/PlatformDeliveryDataEmailAllOf.js +51 -52
  60. package/dist/models/PlatformDeliveryDataSmsAllOf.js +27 -28
  61. package/dist/models/PropertiesBody.js +15 -16
  62. package/dist/models/PropertiesDeltas.js +27 -28
  63. package/dist/models/PropertiesObject.js +75 -76
  64. package/dist/models/Purchase.js +33 -34
  65. package/dist/models/RateLimitError.js +21 -22
  66. package/dist/models/Segment.js +27 -28
  67. package/dist/models/SegmentData.js +51 -52
  68. package/dist/models/SegmentNotificationTarget.js +21 -22
  69. package/dist/models/StartLiveActivityRequest.js +105 -106
  70. package/dist/models/StartLiveActivitySuccessResponse.js +15 -16
  71. package/dist/models/Subscription.js +111 -112
  72. package/dist/models/SubscriptionBody.js +15 -16
  73. package/dist/models/SubscriptionNotificationTarget.js +81 -82
  74. package/dist/models/TemplateResource.js +45 -46
  75. package/dist/models/TemplatesListResponse.js +15 -16
  76. package/dist/models/TransferSubscriptionRequestBody.js +15 -16
  77. package/dist/models/UpdateApiKeyRequest.js +27 -28
  78. package/dist/models/UpdateLiveActivityRequest.js +63 -64
  79. package/dist/models/UpdateLiveActivitySuccessResponse.js +15 -16
  80. package/dist/models/UpdateTemplateRequest.js +69 -70
  81. package/dist/models/UpdateUserRequest.js +27 -28
  82. package/dist/models/User.js +27 -28
  83. package/dist/models/UserIdentityBody.js +15 -16
  84. package/dist/models/WebButton.js +33 -34
  85. package/dist/rxjsStub.js +8 -9
  86. package/dist/servers.js +14 -15
  87. package/dist/types/ObjectParamAPI.js +92 -94
  88. package/dist/types/ObservableAPI.js +534 -931
  89. package/dist/types/PromiseAPI.d.ts +4 -0
  90. package/dist/types/PromiseAPI.js +141 -137
  91. package/dist/util.js +2 -2
  92. package/package.json +4 -2
package/dist/http/http.js CHANGED
@@ -1,19 +1,4 @@
1
1
  "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
18
3
  if (k2 === undefined) k2 = k;
19
4
  var desc = Object.getOwnPropertyDescriptor(m, k);
@@ -28,45 +13,9 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
28
13
  var __exportStar = (this && this.__exportStar) || function(m, exports) {
29
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
30
15
  };
31
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
32
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
33
- return new (P || (P = Promise))(function (resolve, reject) {
34
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
35
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
36
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
37
- step((generator = generator.apply(thisArg, _arguments || [])).next());
38
- });
39
- };
40
- var __generator = (this && this.__generator) || function (thisArg, body) {
41
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
42
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
43
- function verb(n) { return function (v) { return step([n, v]); }; }
44
- function step(op) {
45
- if (f) throw new TypeError("Generator is already executing.");
46
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
47
- 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;
48
- if (y = 0, t) op = [op[0] & 2, t.value];
49
- switch (op[0]) {
50
- case 0: case 1: t = op; break;
51
- case 4: _.label++; return { value: op[1], done: false };
52
- case 5: _.label++; y = op[1]; op = [0]; continue;
53
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
54
- default:
55
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
56
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
57
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
58
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
59
- if (t[2]) _.ops.pop();
60
- _.trys.pop(); continue;
61
- }
62
- op = body.call(thisArg, _);
63
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
64
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
65
- }
66
- };
67
16
  Object.defineProperty(exports, "__esModule", { value: true });
68
17
  exports.wrapHttpLibrary = exports.ResponseContext = exports.SelfDecodingBody = exports.RequestContext = exports.HttpException = exports.HttpMethod = void 0;
69
- var rxjsStub_1 = require("../rxjsStub");
18
+ const rxjsStub_1 = require("../rxjsStub");
70
19
  __exportStar(require("./isomorphic-fetch"), exports);
71
20
  var HttpMethod;
72
21
  (function (HttpMethod) {
@@ -80,92 +29,78 @@ var HttpMethod;
80
29
  HttpMethod["TRACE"] = "TRACE";
81
30
  HttpMethod["PATCH"] = "PATCH";
82
31
  })(HttpMethod = exports.HttpMethod || (exports.HttpMethod = {}));
83
- var HttpException = (function (_super) {
84
- __extends(HttpException, _super);
85
- function HttpException(msg) {
86
- return _super.call(this, msg) || this;
32
+ class HttpException extends Error {
33
+ constructor(msg) {
34
+ super(msg);
87
35
  }
88
- return HttpException;
89
- }(Error));
36
+ }
90
37
  exports.HttpException = HttpException;
91
- var RequestContext = (function () {
92
- function RequestContext(url, httpMethod) {
38
+ class RequestContext {
39
+ constructor(url, httpMethod) {
93
40
  this.httpMethod = httpMethod;
94
41
  this.headers = {};
95
42
  this.body = undefined;
96
43
  this.url = new URL(url);
97
44
  }
98
- RequestContext.prototype.getUrl = function () {
45
+ getUrl() {
99
46
  return this.url.toString();
100
- };
101
- RequestContext.prototype.setUrl = function (url) {
47
+ }
48
+ setUrl(url) {
102
49
  this.url = new URL(url);
103
- };
104
- RequestContext.prototype.setBody = function (body) {
50
+ }
51
+ setBody(body) {
105
52
  this.body = body;
106
- };
107
- RequestContext.prototype.getHttpMethod = function () {
53
+ }
54
+ getHttpMethod() {
108
55
  return this.httpMethod;
109
- };
110
- RequestContext.prototype.getHeaders = function () {
56
+ }
57
+ getHeaders() {
111
58
  return this.headers;
112
- };
113
- RequestContext.prototype.getBody = function () {
59
+ }
60
+ getBody() {
114
61
  return this.body;
115
- };
116
- RequestContext.prototype.setQueryParam = function (name, value) {
62
+ }
63
+ setQueryParam(name, value) {
117
64
  this.url.searchParams.set(name, value);
118
- };
119
- RequestContext.prototype.addCookie = function (name, value) {
65
+ }
66
+ addCookie(name, value) {
120
67
  if (!this.headers["Cookie"]) {
121
68
  this.headers["Cookie"] = "";
122
69
  }
123
70
  this.headers["Cookie"] += name + "=" + value + "; ";
124
- };
125
- RequestContext.prototype.setHeaderParam = function (key, value) {
71
+ }
72
+ setHeaderParam(key, value) {
126
73
  this.headers[key] = value;
127
- };
128
- return RequestContext;
129
- }());
74
+ }
75
+ }
130
76
  exports.RequestContext = RequestContext;
131
- var SelfDecodingBody = (function () {
132
- function SelfDecodingBody(dataSource) {
77
+ class SelfDecodingBody {
78
+ constructor(dataSource) {
133
79
  this.dataSource = dataSource;
134
80
  }
135
- SelfDecodingBody.prototype.binary = function () {
81
+ binary() {
136
82
  return this.dataSource;
137
- };
138
- SelfDecodingBody.prototype.text = function () {
139
- return __awaiter(this, void 0, void 0, function () {
140
- var data;
141
- return __generator(this, function (_a) {
142
- switch (_a.label) {
143
- case 0: return [4, this.dataSource];
144
- case 1:
145
- data = _a.sent();
146
- return [2, data.toString()];
147
- }
148
- });
149
- });
150
- };
151
- return SelfDecodingBody;
152
- }());
83
+ }
84
+ async text() {
85
+ const data = await this.dataSource;
86
+ return data.toString();
87
+ }
88
+ }
153
89
  exports.SelfDecodingBody = SelfDecodingBody;
154
- var ResponseContext = (function () {
155
- function ResponseContext(httpStatusCode, headers, body) {
90
+ class ResponseContext {
91
+ constructor(httpStatusCode, headers, body) {
156
92
  this.httpStatusCode = httpStatusCode;
157
93
  this.headers = headers;
158
94
  this.body = body;
159
95
  }
160
- ResponseContext.prototype.getParsedHeader = function (headerName) {
161
- var result = {};
96
+ getParsedHeader(headerName) {
97
+ const result = {};
162
98
  if (!this.headers[headerName]) {
163
99
  return result;
164
100
  }
165
- var parameters = this.headers[headerName].split(";");
166
- for (var _i = 0, parameters_1 = parameters; _i < parameters_1.length; _i++) {
167
- var parameter = parameters_1[_i];
168
- var _a = parameter.split("=", 2), key = _a[0], value = _a[1];
101
+ const parameters = this.headers[headerName].split(";");
102
+ for (const parameter of parameters) {
103
+ let [key, value] = parameter.split("=", 2);
169
104
  key = key.toLowerCase().trim();
170
105
  if (value === undefined) {
171
106
  result[""] = key;
@@ -179,34 +114,20 @@ var ResponseContext = (function () {
179
114
  }
180
115
  }
181
116
  return result;
182
- };
183
- ResponseContext.prototype.getBodyAsFile = function () {
184
- return __awaiter(this, void 0, void 0, function () {
185
- var data, fileName;
186
- return __generator(this, function (_a) {
187
- switch (_a.label) {
188
- case 0: return [4, this.body.binary()];
189
- case 1:
190
- data = _a.sent();
191
- fileName = this.getParsedHeader("content-disposition")["filename"] || "";
192
- return [2, { data: data, name: fileName }];
193
- }
194
- });
195
- });
196
- };
197
- ResponseContext.prototype.getBodyAsAny = function () {
198
- return __awaiter(this, void 0, void 0, function () {
199
- return __generator(this, function (_a) {
200
- return [2, this.body];
201
- });
202
- });
203
- };
204
- return ResponseContext;
205
- }());
117
+ }
118
+ async getBodyAsFile() {
119
+ const data = await this.body.binary();
120
+ const fileName = this.getParsedHeader("content-disposition")["filename"] || "";
121
+ return { data, name: fileName };
122
+ }
123
+ async getBodyAsAny() {
124
+ return this.body;
125
+ }
126
+ }
206
127
  exports.ResponseContext = ResponseContext;
207
128
  function wrapHttpLibrary(promiseHttpLibrary) {
208
129
  return {
209
- send: function (request) {
130
+ send(request) {
210
131
  return (0, rxjsStub_1.from)(promiseHttpLibrary.send(request));
211
132
  }
212
133
  };
@@ -1,32 +1,29 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.IsomorphicFetchHttpLibrary = void 0;
4
- var http_1 = require("./http");
5
- var rxjsStub_1 = require("../rxjsStub");
6
- var IsomorphicFetchHttpLibrary = (function () {
7
- function IsomorphicFetchHttpLibrary() {
8
- }
9
- IsomorphicFetchHttpLibrary.prototype.send = function (request) {
10
- var method = request.getHttpMethod().toString();
11
- var body = request.getBody();
12
- var resultPromise = fetch(request.getUrl(), {
4
+ const http_1 = require("./http");
5
+ const rxjsStub_1 = require("../rxjsStub");
6
+ class IsomorphicFetchHttpLibrary {
7
+ send(request) {
8
+ let method = request.getHttpMethod().toString();
9
+ let body = request.getBody();
10
+ const resultPromise = fetch(request.getUrl(), {
13
11
  method: method,
14
12
  body: body,
15
13
  headers: request.getHeaders(),
16
- }).then(function (resp) {
17
- var headers = {};
18
- resp.headers.forEach(function (value, name) {
14
+ }).then((resp) => {
15
+ const headers = {};
16
+ resp.headers.forEach((value, name) => {
19
17
  headers[name] = value;
20
18
  });
21
- var body = {
22
- text: function () { return resp.text(); },
23
- binary: function () { return resp.buffer(); }
19
+ const body = {
20
+ text: () => resp.text(),
21
+ binary: () => resp.buffer()
24
22
  };
25
23
  return new http_1.ResponseContext(resp.status, headers, body);
26
24
  });
27
25
  return (0, rxjsStub_1.from)(resultPromise);
28
- };
29
- return IsomorphicFetchHttpLibrary;
30
- }());
26
+ }
27
+ }
31
28
  exports.IsomorphicFetchHttpLibrary = IsomorphicFetchHttpLibrary;
32
29
  //# sourceMappingURL=isomorphic-fetch.js.map
package/dist/index.d.ts CHANGED
@@ -4,7 +4,9 @@ export * from "./models/all";
4
4
  export { createConfiguration } from "./configuration";
5
5
  export { Configuration, ConfigurationParameters } from "./configuration";
6
6
  export * from "./apis/exception";
7
+ export * from "./helpers";
7
8
  export * from "./servers";
8
9
  export { RequiredError } from "./apis/baseapi";
9
10
  export { PromiseMiddleware as Middleware } from './middleware';
10
11
  export { PromiseDefaultApi as DefaultApi } from './types/PromiseAPI';
12
+ export * from "./errors";
package/dist/index.js CHANGED
@@ -21,9 +21,11 @@ __exportStar(require("./models/all"), exports);
21
21
  var configuration_1 = require("./configuration");
22
22
  Object.defineProperty(exports, "createConfiguration", { enumerable: true, get: function () { return configuration_1.createConfiguration; } });
23
23
  __exportStar(require("./apis/exception"), exports);
24
+ __exportStar(require("./helpers"), exports);
24
25
  __exportStar(require("./servers"), exports);
25
26
  var baseapi_1 = require("./apis/baseapi");
26
27
  Object.defineProperty(exports, "RequiredError", { enumerable: true, get: function () { return baseapi_1.RequiredError; } });
27
28
  var PromiseAPI_1 = require("./types/PromiseAPI");
28
29
  Object.defineProperty(exports, "DefaultApi", { enumerable: true, get: function () { return PromiseAPI_1.PromiseDefaultApi; } });
30
+ __exportStar(require("./errors"), exports);
29
31
  //# sourceMappingURL=index.js.map
@@ -1,18 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PromiseMiddlewareWrapper = void 0;
4
- var rxjsStub_1 = require("./rxjsStub");
5
- var PromiseMiddlewareWrapper = (function () {
6
- function PromiseMiddlewareWrapper(middleware) {
4
+ const rxjsStub_1 = require("./rxjsStub");
5
+ class PromiseMiddlewareWrapper {
6
+ constructor(middleware) {
7
7
  this.middleware = middleware;
8
8
  }
9
- PromiseMiddlewareWrapper.prototype.pre = function (context) {
9
+ pre(context) {
10
10
  return (0, rxjsStub_1.from)(this.middleware.pre(context));
11
- };
12
- PromiseMiddlewareWrapper.prototype.post = function (context) {
11
+ }
12
+ post(context) {
13
13
  return (0, rxjsStub_1.from)(this.middleware.post(context));
14
- };
15
- return PromiseMiddlewareWrapper;
16
- }());
14
+ }
15
+ }
17
16
  exports.PromiseMiddlewareWrapper = PromiseMiddlewareWrapper;
18
17
  //# sourceMappingURL=middleware.js.map
@@ -1,52 +1,51 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ApiKeyToken = void 0;
4
- var ApiKeyToken = (function () {
5
- function ApiKeyToken() {
6
- }
7
- ApiKeyToken.getAttributeTypeMap = function () {
4
+ class ApiKeyToken {
5
+ static getAttributeTypeMap() {
8
6
  return ApiKeyToken.attributeTypeMap;
9
- };
10
- ApiKeyToken.discriminator = undefined;
11
- ApiKeyToken.attributeTypeMap = [
12
- {
13
- "name": "token_id",
14
- "baseName": "token_id",
15
- "type": "string",
16
- "format": ""
17
- },
18
- {
19
- "name": "updated_at",
20
- "baseName": "updated_at",
21
- "type": "string",
22
- "format": ""
23
- },
24
- {
25
- "name": "created_at",
26
- "baseName": "created_at",
27
- "type": "string",
28
- "format": ""
29
- },
30
- {
31
- "name": "name",
32
- "baseName": "name",
33
- "type": "string",
34
- "format": ""
35
- },
36
- {
37
- "name": "ip_allowlist_mode",
38
- "baseName": "ip_allowlist_mode",
39
- "type": "ApiKeyTokenIpAllowlistModeEnum",
40
- "format": ""
41
- },
42
- {
43
- "name": "ip_allowlist",
44
- "baseName": "ip_allowlist",
45
- "type": "Array<string>",
46
- "format": ""
47
- }
48
- ];
49
- return ApiKeyToken;
50
- }());
7
+ }
8
+ constructor() {
9
+ }
10
+ }
51
11
  exports.ApiKeyToken = ApiKeyToken;
12
+ ApiKeyToken.discriminator = undefined;
13
+ ApiKeyToken.attributeTypeMap = [
14
+ {
15
+ "name": "token_id",
16
+ "baseName": "token_id",
17
+ "type": "string",
18
+ "format": ""
19
+ },
20
+ {
21
+ "name": "updated_at",
22
+ "baseName": "updated_at",
23
+ "type": "string",
24
+ "format": ""
25
+ },
26
+ {
27
+ "name": "created_at",
28
+ "baseName": "created_at",
29
+ "type": "string",
30
+ "format": ""
31
+ },
32
+ {
33
+ "name": "name",
34
+ "baseName": "name",
35
+ "type": "string",
36
+ "format": ""
37
+ },
38
+ {
39
+ "name": "ip_allowlist_mode",
40
+ "baseName": "ip_allowlist_mode",
41
+ "type": "ApiKeyTokenIpAllowlistModeEnum",
42
+ "format": ""
43
+ },
44
+ {
45
+ "name": "ip_allowlist",
46
+ "baseName": "ip_allowlist",
47
+ "type": "Array<string>",
48
+ "format": ""
49
+ }
50
+ ];
52
51
  //# sourceMappingURL=ApiKeyToken.js.map
@@ -1,22 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ApiKeyTokensListResponse = void 0;
4
- var ApiKeyTokensListResponse = (function () {
5
- function ApiKeyTokensListResponse() {
6
- }
7
- ApiKeyTokensListResponse.getAttributeTypeMap = function () {
4
+ class ApiKeyTokensListResponse {
5
+ static getAttributeTypeMap() {
8
6
  return ApiKeyTokensListResponse.attributeTypeMap;
9
- };
10
- ApiKeyTokensListResponse.discriminator = undefined;
11
- ApiKeyTokensListResponse.attributeTypeMap = [
12
- {
13
- "name": "tokens",
14
- "baseName": "tokens",
15
- "type": "Array<ApiKeyToken>",
16
- "format": ""
17
- }
18
- ];
19
- return ApiKeyTokensListResponse;
20
- }());
7
+ }
8
+ constructor() {
9
+ }
10
+ }
21
11
  exports.ApiKeyTokensListResponse = ApiKeyTokensListResponse;
12
+ ApiKeyTokensListResponse.discriminator = undefined;
13
+ ApiKeyTokensListResponse.attributeTypeMap = [
14
+ {
15
+ "name": "tokens",
16
+ "baseName": "tokens",
17
+ "type": "Array<ApiKeyToken>",
18
+ "format": ""
19
+ }
20
+ ];
22
21
  //# sourceMappingURL=ApiKeyTokensListResponse.js.map