@magda/typescript-common 2.3.3 → 3.0.0-alpha.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 (246) hide show
  1. package/dist/AspectBuilder.d.ts +1 -1
  2. package/dist/AspectBuilder.js +1 -2
  3. package/dist/AspectCreationFailure.js +3 -4
  4. package/dist/AspectCreationFailure.js.map +1 -1
  5. package/dist/AsyncPage.js +59 -79
  6. package/dist/AsyncPage.js.map +1 -1
  7. package/dist/BaseApiClient.d.ts +3 -3
  8. package/dist/BaseApiClient.js +20 -13
  9. package/dist/BaseApiClient.js.map +1 -1
  10. package/dist/ConnectionResult.d.ts +2 -2
  11. package/dist/ConnectionResult.js +17 -22
  12. package/dist/ConnectionResult.js.map +1 -1
  13. package/dist/ConnectorRecordId.d.ts +1 -1
  14. package/dist/ConnectorRecordId.js +9 -13
  15. package/dist/ConnectorRecordId.js.map +1 -1
  16. package/dist/IndexerApiClient.d.ts +1 -1
  17. package/dist/IndexerApiClient.js +13 -32
  18. package/dist/IndexerApiClient.js.map +1 -1
  19. package/dist/JsonConnector.d.ts +9 -9
  20. package/dist/JsonConnector.js +163 -206
  21. package/dist/JsonConnector.js.map +1 -1
  22. package/dist/JsonTransformer.d.ts +3 -3
  23. package/dist/JsonTransformer.js +71 -75
  24. package/dist/JsonTransformer.js.map +1 -1
  25. package/dist/OpaCompileResponseParser.d.ts +4 -4
  26. package/dist/OpaCompileResponseParser.js +278 -211
  27. package/dist/OpaCompileResponseParser.js.map +1 -1
  28. package/dist/RecordCreationFailure.d.ts +1 -1
  29. package/dist/RecordCreationFailure.js +4 -4
  30. package/dist/RecordCreationFailure.js.map +1 -1
  31. package/dist/SQLUtils.d.ts +3 -3
  32. package/dist/SQLUtils.js +139 -195
  33. package/dist/SQLUtils.js.map +1 -1
  34. package/dist/ServerError.js +2 -4
  35. package/dist/ServerError.js.map +1 -1
  36. package/dist/Try.js +20 -35
  37. package/dist/Try.js.map +1 -1
  38. package/dist/addTrailingSlash.js +1 -4
  39. package/dist/addTrailingSlash.js.map +1 -1
  40. package/dist/appendUrlSegments.js +3 -8
  41. package/dist/appendUrlSegments.js.map +1 -1
  42. package/dist/authorization-api/AccessControlError.d.ts +1 -1
  43. package/dist/authorization-api/AccessControlError.js +2 -8
  44. package/dist/authorization-api/AccessControlError.js.map +1 -1
  45. package/dist/authorization-api/ApiClient.d.ts +3 -3
  46. package/dist/authorization-api/ApiClient.js +211 -272
  47. package/dist/authorization-api/ApiClient.js.map +1 -1
  48. package/dist/authorization-api/AuthError.d.ts +1 -1
  49. package/dist/authorization-api/AuthError.js +2 -8
  50. package/dist/authorization-api/AuthError.js.map +1 -1
  51. package/dist/authorization-api/GenericError.js +2 -4
  52. package/dist/authorization-api/GenericError.js.map +1 -1
  53. package/dist/authorization-api/authMiddleware.d.ts +3 -3
  54. package/dist/authorization-api/authMiddleware.js +19 -40
  55. package/dist/authorization-api/authMiddleware.js.map +1 -1
  56. package/dist/authorization-api/constants.js +9 -12
  57. package/dist/authorization-api/constants.js.map +1 -1
  58. package/dist/authorization-api/model.d.ts +8 -8
  59. package/dist/authorization-api/model.js +1 -2
  60. package/dist/coerceJson.js +1 -3
  61. package/dist/coerceJson.js.map +1 -1
  62. package/dist/createNoCacheFetchOptions.d.ts +1 -1
  63. package/dist/createNoCacheFetchOptions.js +4 -7
  64. package/dist/createNoCacheFetchOptions.js.map +1 -1
  65. package/dist/createServiceError.d.ts +1 -1
  66. package/dist/createServiceError.js +4 -9
  67. package/dist/createServiceError.js.map +1 -1
  68. package/dist/delay.js +1 -3
  69. package/dist/delay.js.map +1 -1
  70. package/dist/express/getNoCacheHeaders.js +1 -3
  71. package/dist/express/getNoCacheHeaders.js.map +1 -1
  72. package/dist/express/setResponseNoCache.d.ts +1 -1
  73. package/dist/express/setResponseNoCache.js +3 -8
  74. package/dist/express/setResponseNoCache.js.map +1 -1
  75. package/dist/express/status.d.ts +14 -15
  76. package/dist/express/status.js +135 -126
  77. package/dist/express/status.js.map +1 -1
  78. package/dist/fetchRequest.d.ts +6 -6
  79. package/dist/fetchRequest.js +36 -51
  80. package/dist/fetchRequest.js.map +1 -1
  81. package/dist/formatServiceError.js +1 -4
  82. package/dist/formatServiceError.js.map +1 -1
  83. package/dist/generated/registry/api.d.ts +4 -4
  84. package/dist/generated/registry/api.js +197 -102
  85. package/dist/generated/registry/api.js.map +1 -1
  86. package/dist/getAbsoluteUrl.js +8 -11
  87. package/dist/getAbsoluteUrl.js.map +1 -1
  88. package/dist/getBasePathFromUrl.js +3 -9
  89. package/dist/getBasePathFromUrl.js.map +1 -1
  90. package/dist/getBoolValWithDefault.js +1 -3
  91. package/dist/getBoolValWithDefault.js.map +1 -1
  92. package/dist/getRequest.js +9 -26
  93. package/dist/getRequest.js.map +1 -1
  94. package/dist/getRequestNoCache.js +4 -21
  95. package/dist/getRequestNoCache.js.map +1 -1
  96. package/dist/getStorageUrl.js +13 -23
  97. package/dist/getStorageUrl.js.map +1 -1
  98. package/dist/handleServerError.js +3 -9
  99. package/dist/handleServerError.js.map +1 -1
  100. package/dist/markdownToHtml.js +5 -11
  101. package/dist/markdownToHtml.js.map +1 -1
  102. package/dist/opa/AspectQuery.js +55 -79
  103. package/dist/opa/AspectQuery.js.map +1 -1
  104. package/dist/opa/AuthDecision.d.ts +2 -2
  105. package/dist/opa/AuthDecision.js +52 -69
  106. package/dist/opa/AuthDecision.js.map +1 -1
  107. package/dist/opa/AuthDecisionQueryClient.d.ts +2 -2
  108. package/dist/opa/AuthDecisionQueryClient.js +72 -102
  109. package/dist/opa/AuthDecisionQueryClient.js.map +1 -1
  110. package/dist/pgTypes.js +4 -9
  111. package/dist/pgTypes.js.map +1 -1
  112. package/dist/registry/AuthorizedRegistryClient.d.ts +4 -4
  113. package/dist/registry/AuthorizedRegistryClient.js +52 -92
  114. package/dist/registry/AuthorizedRegistryClient.js.map +1 -1
  115. package/dist/registry/RegistryClient.d.ts +2 -2
  116. package/dist/registry/RegistryClient.js +60 -76
  117. package/dist/registry/RegistryClient.js.map +1 -1
  118. package/dist/registry/TenantConsts.js +3 -6
  119. package/dist/registry/TenantConsts.js.map +1 -1
  120. package/dist/registry/model.js +1 -2
  121. package/dist/registry-manual/api.d.ts +1 -1
  122. package/dist/registry-manual/api.js +18 -7
  123. package/dist/registry-manual/api.js.map +1 -1
  124. package/dist/request.d.ts +2 -2
  125. package/dist/request.js +4 -9
  126. package/dist/request.js.map +1 -1
  127. package/dist/retry.d.ts +1 -1
  128. package/dist/retry.js +3 -9
  129. package/dist/retry.js.map +1 -1
  130. package/dist/retryBackoff.js +3 -9
  131. package/dist/retryBackoff.js.map +1 -1
  132. package/dist/runLater.js +1 -4
  133. package/dist/runLater.js.map +1 -1
  134. package/dist/session/GetUserId.d.ts +2 -2
  135. package/dist/session/GetUserId.js +10 -16
  136. package/dist/session/GetUserId.js.map +1 -1
  137. package/dist/session/GetUserSession.d.ts +1 -1
  138. package/dist/session/GetUserSession.js +6 -10
  139. package/dist/session/GetUserSession.js.map +1 -1
  140. package/dist/session/addJwtSecretFromEnvVar.js +1 -4
  141. package/dist/session/addJwtSecretFromEnvVar.js.map +1 -1
  142. package/dist/session/buildJwt.d.ts +1 -1
  143. package/dist/session/buildJwt.js +2 -5
  144. package/dist/session/buildJwt.js.map +1 -1
  145. package/dist/session/buildJwtFromReq.d.ts +1 -1
  146. package/dist/session/buildJwtFromReq.js +3 -8
  147. package/dist/session/buildJwtFromReq.js.map +1 -1
  148. package/dist/session/cookieUtils.d.ts +2 -13
  149. package/dist/session/cookieUtils.js +8 -9
  150. package/dist/session/cookieUtils.js.map +1 -1
  151. package/dist/session/destroySession.js +18 -33
  152. package/dist/session/destroySession.js.map +1 -1
  153. package/dist/session/getSessionId.js +5 -11
  154. package/dist/session/getSessionId.js.map +1 -1
  155. package/dist/tenant-api/AuthorizedTenantClient.d.ts +1 -1
  156. package/dist/tenant-api/AuthorizedTenantClient.js +22 -36
  157. package/dist/tenant-api/AuthorizedTenantClient.js.map +1 -1
  158. package/dist/tenant-api/Tenant.js +13 -5
  159. package/dist/tenant-api/Tenant.js.map +1 -1
  160. package/dist/test/JsonConnector.spec.js +56 -61
  161. package/dist/test/JsonConnector.spec.js.map +1 -1
  162. package/dist/test/JsonTransformer.spec.js +15 -19
  163. package/dist/test/JsonTransformer.spec.js.map +1 -1
  164. package/dist/test/arbitraries.d.ts +21 -21
  165. package/dist/test/arbitraries.js +85 -99
  166. package/dist/test/arbitraries.js.map +1 -1
  167. package/dist/test/aspect-templates/organization-details.d.ts +1 -4
  168. package/dist/test/aspect-templates/organization-details.js +1 -1
  169. package/dist/test/aspect-templates/organization-details.js.map +1 -1
  170. package/dist/test/buildApiClient.spec.js +81 -107
  171. package/dist/test/buildApiClient.spec.js.map +1 -1
  172. package/dist/test/buildAuthorizedTenantClient.spec.js +25 -40
  173. package/dist/test/buildAuthorizedTenantClient.spec.js.map +1 -1
  174. package/dist/test/connectors/MockExpressServer.js +9 -23
  175. package/dist/test/connectors/MockExpressServer.js.map +1 -1
  176. package/dist/test/connectors/MockRegistry.d.ts +1 -1
  177. package/dist/test/connectors/MockRegistry.js +11 -18
  178. package/dist/test/connectors/MockRegistry.js.map +1 -1
  179. package/dist/test/connectors/runConnectorTest.js +33 -55
  180. package/dist/test/connectors/runConnectorTest.js.map +1 -1
  181. package/dist/test/createMockAuthDecisionQueryClient.d.ts +4 -4
  182. package/dist/test/createMockAuthDecisionQueryClient.js +4 -9
  183. package/dist/test/createMockAuthDecisionQueryClient.js.map +1 -1
  184. package/dist/test/db/getTestDBConfig.js +1 -3
  185. package/dist/test/db/getTestDBConfig.js.map +1 -1
  186. package/dist/test/db/runMigrationSql.js +37 -58
  187. package/dist/test/db/runMigrationSql.js.map +1 -1
  188. package/dist/test/express/status.spec.js +81 -72
  189. package/dist/test/express/status.spec.js.map +1 -1
  190. package/dist/test/fakeArgv.js +6 -5
  191. package/dist/test/fakeArgv.js.map +1 -1
  192. package/dist/test/getBasePathFromUrl.spec.js +5 -10
  193. package/dist/test/getBasePathFromUrl.spec.js.map +1 -1
  194. package/dist/test/getStorageUrl.spec.js +22 -46
  195. package/dist/test/getStorageUrl.spec.js.map +1 -1
  196. package/dist/test/mockAuthApiHost.js +26 -28
  197. package/dist/test/mockAuthApiHost.js.map +1 -1
  198. package/dist/test/mockAuthorization.js +4 -10
  199. package/dist/test/mockAuthorization.js.map +1 -1
  200. package/dist/test/mockTenantDataStore.d.ts +1 -1
  201. package/dist/test/mockTenantDataStore.js +3 -5
  202. package/dist/test/mockTenantDataStore.js.map +1 -1
  203. package/dist/test/mockUserDataStore.d.ts +1 -1
  204. package/dist/test/mockUserDataStore.js +4 -6
  205. package/dist/test/mockUserDataStore.js.map +1 -1
  206. package/dist/test/registry/buildAuthorizedClient.spec.js +65 -87
  207. package/dist/test/registry/buildAuthorizedClient.spec.js.map +1 -1
  208. package/dist/test/session/buildJwt.spec.js +15 -19
  209. package/dist/test/session/buildJwt.spec.js.map +1 -1
  210. package/dist/test/session/buildJwtForRegistryEsriOpaGroupsAndOwnerTest.spec.js +6 -11
  211. package/dist/test/session/buildJwtForRegistryEsriOpaGroupsAndOwnerTest.spec.js.map +1 -1
  212. package/dist/test/session/buildJwtForRegistryEsriOpaGroupsTest.spec.js +6 -11
  213. package/dist/test/session/buildJwtForRegistryEsriOpaGroupsTest.spec.js.map +1 -1
  214. package/dist/test/session/buildJwtForRegistryEsriOpaOwnerTest.spec.js +6 -11
  215. package/dist/test/session/buildJwtForRegistryEsriOpaOwnerTest.spec.js.map +1 -1
  216. package/dist/test/testAsyncPage.spec.js +84 -105
  217. package/dist/test/testAsyncPage.spec.js.map +1 -1
  218. package/dist/test/testOpaCompileResponseParser.spec.js +192 -196
  219. package/dist/test/testOpaCompileResponseParser.spec.js.map +1 -1
  220. package/dist/test/util.js +1 -5
  221. package/dist/test/util.js.map +1 -1
  222. package/dist/unknown2Error.d.ts +2 -0
  223. package/dist/unknown2Error.js +3 -0
  224. package/dist/unknown2Error.js.map +1 -0
  225. package/dist/util/arrayToMaybe.d.ts +1 -1
  226. package/dist/util/arrayToMaybe.js +3 -6
  227. package/dist/util/arrayToMaybe.js.map +1 -1
  228. package/dist/util/cleanOrgTitle.js +1 -4
  229. package/dist/util/cleanOrgTitle.js.map +1 -1
  230. package/dist/util/escapeRegExp.js +1 -3
  231. package/dist/util/escapeRegExp.js.map +1 -1
  232. package/dist/util/getMinikubeIP.js +3 -9
  233. package/dist/util/getMinikubeIP.js.map +1 -1
  234. package/dist/util/isArray.js +1 -3
  235. package/dist/util/isArray.js.map +1 -1
  236. package/dist/util/isUuid.js +1 -3
  237. package/dist/util/isUuid.js.map +1 -1
  238. package/dist/util/unionToThrowable.d.ts +1 -1
  239. package/dist/util/unionToThrowable.js +3 -9
  240. package/dist/util/unionToThrowable.js.map +1 -1
  241. package/dist/utilityTypes.d.ts +1 -1
  242. package/dist/utilityTypes.js +1 -2
  243. package/package.json +44 -26
  244. package/dist/test/jsverify.d.ts +0 -2
  245. package/dist/test/jsverify.js +0 -8
  246. package/dist/test/jsverify.js.map +0 -1
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  /**
3
2
  *
4
3
  * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
@@ -10,101 +9,202 @@
10
9
  * https://github.com/swagger-api/swagger-codegen.git
11
10
  * Do not edit the class manually.
12
11
  */
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.WebHooksApi = exports.WebHooksApiApiKeys = exports.RecordsApi = exports.RecordsApiApiKeys = exports.RecordHistoryApi = exports.RecordHistoryApiApiKeys = exports.RecordAspectsApi = exports.RecordAspectsApiApiKeys = exports.AspectDefinitionsApi = exports.AspectDefinitionsApiApiKeys = exports.VoidAuth = exports.OAuth = exports.ApiKeyAuth = exports.HttpBasicAuth = exports.WebHookConfig = exports.WebHookAcknowledgementResponse = exports.WebHookAcknowledgement = exports.WebHook = exports.RegistryEvent = exports.RecordSummary = exports.Record = exports.PutRecordsAspectRequest = exports.PatchRecordsRequest = exports.Operation = exports.MultipleDeleteResult = exports.JsonPatch = exports.JsValue = exports.JsObject = exports.EventsPage = exports.DeleteResult = exports.DeleteRecordsAspectArrayItemsRequest = exports.CountResponse = exports.AspectDefinition = exports.ApiError = void 0;
15
- const request = require("request");
12
+ import request from 'request';
16
13
  let defaultBasePath = 'http://localhost/api/v0/registry/';
17
14
  // ===============================================
18
15
  // This file is autogenerated - Please do not edit
19
16
  // ===============================================
20
17
  /* tslint:disable:no-unused-variable */
21
- class ApiError {
18
+ export class ApiError {
19
+ 'message';
22
20
  }
23
- exports.ApiError = ApiError;
24
21
  /**
25
22
  * A type of aspect in the registry, unique for a tenant.
26
23
  */
27
- class AspectDefinition {
24
+ export class AspectDefinition {
25
+ /**
26
+ * The identifier for the aspect type.
27
+ */
28
+ 'id';
29
+ /**
30
+ * The name of the aspect.
31
+ */
32
+ 'name';
33
+ /**
34
+ * The JSON Schema of this aspect.
35
+ */
36
+ 'jsonSchema';
28
37
  }
29
- exports.AspectDefinition = AspectDefinition;
30
- class CountResponse {
38
+ export class CountResponse {
39
+ 'count';
31
40
  }
32
- exports.CountResponse = CountResponse;
33
- class DeleteRecordsAspectArrayItemsRequest {
41
+ export class DeleteRecordsAspectArrayItemsRequest {
42
+ 'recordIds';
43
+ 'jsonPath';
44
+ 'items';
34
45
  }
35
- exports.DeleteRecordsAspectArrayItemsRequest = DeleteRecordsAspectArrayItemsRequest;
36
- class DeleteResult {
46
+ export class DeleteResult {
47
+ 'deleted';
37
48
  }
38
- exports.DeleteResult = DeleteResult;
39
49
  /**
40
50
  * A page of events.
41
51
  */
42
- class EventsPage {
52
+ export class EventsPage {
53
+ /**
54
+ * Whether there are more events available.
55
+ */
56
+ 'hasMore';
57
+ /**
58
+ * A token to be used to get the next page of events.
59
+ */
60
+ 'nextPageToken';
61
+ /**
62
+ * The events in this page.
63
+ */
64
+ 'events';
43
65
  }
44
- exports.EventsPage = EventsPage;
45
- class JsObject {
66
+ export class JsObject {
67
+ 'fields';
46
68
  }
47
- exports.JsObject = JsObject;
48
- class JsValue {
69
+ export class JsValue {
49
70
  }
50
- exports.JsValue = JsValue;
51
- class JsonPatch {
71
+ export class JsonPatch {
72
+ 'ops';
52
73
  }
53
- exports.JsonPatch = JsonPatch;
54
- class MultipleDeleteResult {
74
+ export class MultipleDeleteResult {
75
+ 'count';
55
76
  }
56
- exports.MultipleDeleteResult = MultipleDeleteResult;
57
- class Operation {
77
+ export class Operation {
58
78
  }
59
- exports.Operation = Operation;
60
- class PatchRecordsRequest {
79
+ export class PatchRecordsRequest {
80
+ 'recordIds';
81
+ 'jsonPath';
61
82
  }
62
- exports.PatchRecordsRequest = PatchRecordsRequest;
63
- class PutRecordsAspectRequest {
83
+ export class PutRecordsAspectRequest {
84
+ 'recordIds';
85
+ 'data';
64
86
  }
65
- exports.PutRecordsAspectRequest = PutRecordsAspectRequest;
66
87
  /**
67
88
  * A record in the registry, usually including data for one or more aspects, unique for a tenant.
68
89
  */
69
- class Record {
90
+ export class Record {
91
+ /**
92
+ * The identifier of the record
93
+ */
94
+ 'id';
95
+ /**
96
+ * The name of the record
97
+ */
98
+ 'name';
99
+ /**
100
+ * The aspects included in this record
101
+ */
102
+ 'aspects';
103
+ /**
104
+ * A tag representing the action by the source of this record (e.g. an id for a individual crawl of a data portal).
105
+ */
106
+ 'sourceTag';
107
+ /**
108
+ * The identifier of a tenant
109
+ */
110
+ 'tenantId';
70
111
  }
71
- exports.Record = Record;
72
112
  /**
73
113
  * A summary of a record in the registry. Summaries specify which aspects are available, but do not include data for any aspects.
74
114
  */
75
- class RecordSummary {
115
+ export class RecordSummary {
116
+ /**
117
+ * The identifier of the record
118
+ */
119
+ 'id';
120
+ /**
121
+ * The name of the record
122
+ */
123
+ 'name';
124
+ /**
125
+ * The list of aspect IDs for which this record has data
126
+ */
127
+ 'aspects';
128
+ /**
129
+ * The identifier of the tenant
130
+ */
131
+ 'tenantId';
76
132
  }
77
- exports.RecordSummary = RecordSummary;
78
- class RegistryEvent {
133
+ export class RegistryEvent {
134
+ 'id';
135
+ 'eventTime';
136
+ 'eventType';
137
+ 'userId';
138
+ 'data';
139
+ 'tenantId';
79
140
  }
80
- exports.RegistryEvent = RegistryEvent;
81
- class WebHook {
141
+ export class WebHook {
142
+ 'id';
143
+ 'name';
144
+ 'active';
145
+ 'lastEvent';
146
+ 'url';
147
+ 'eventTypes';
148
+ 'isWaitingForResponse';
149
+ 'config';
150
+ 'enabled';
151
+ 'lastRetryTime';
152
+ 'retryCount';
153
+ 'isRunning';
154
+ 'isProcessing';
155
+ 'ownerId';
156
+ 'creatorId';
157
+ 'editorId';
158
+ 'createTime';
159
+ 'editTime';
82
160
  }
83
- exports.WebHook = WebHook;
84
161
  /**
85
162
  * Asynchronously acknowledges receipt of a web hook notification.
86
163
  */
87
- class WebHookAcknowledgement {
164
+ export class WebHookAcknowledgement {
165
+ /**
166
+ * True if the web hook was received successfully and the listener is ready for further notifications. False if the web hook was not received and the same notification should be repeated.
167
+ */
168
+ 'succeeded';
169
+ /**
170
+ * The ID of the last event received by the listener. This should be the value of the `lastEventId` property of the web hook payload that is being acknowledged. This value is ignored if `succeeded` is false.
171
+ */
172
+ 'lastEventIdReceived';
173
+ /**
174
+ * Should the webhook be active or inactive?
175
+ */
176
+ 'active';
88
177
  }
89
- exports.WebHookAcknowledgement = WebHookAcknowledgement;
90
178
  /**
91
179
  * The response to an asynchronous web hook acknowledgement.
92
180
  */
93
- class WebHookAcknowledgementResponse {
181
+ export class WebHookAcknowledgementResponse {
182
+ /**
183
+ * The ID of the last event successfully received by the listener. Further notifications will start after this event.
184
+ */
185
+ 'lastEventIdReceived';
94
186
  }
95
- exports.WebHookAcknowledgementResponse = WebHookAcknowledgementResponse;
96
- class WebHookConfig {
187
+ export class WebHookConfig {
188
+ 'aspects';
189
+ 'optionalAspects';
190
+ 'includeEvents';
191
+ 'includeRecords';
192
+ 'includeAspectDefinitions';
193
+ 'dereference';
97
194
  }
98
- exports.WebHookConfig = WebHookConfig;
99
- class HttpBasicAuth {
195
+ export class HttpBasicAuth {
196
+ username;
197
+ password;
100
198
  applyToRequest(requestOptions) {
101
199
  requestOptions.auth = {
102
200
  username: this.username, password: this.password
103
201
  };
104
202
  }
105
203
  }
106
- exports.HttpBasicAuth = HttpBasicAuth;
107
- class ApiKeyAuth {
204
+ export class ApiKeyAuth {
205
+ location;
206
+ paramName;
207
+ apiKey;
108
208
  constructor(location, paramName) {
109
209
  this.location = location;
110
210
  this.paramName = paramName;
@@ -118,32 +218,32 @@ class ApiKeyAuth {
118
218
  }
119
219
  }
120
220
  }
121
- exports.ApiKeyAuth = ApiKeyAuth;
122
- class OAuth {
221
+ export class OAuth {
222
+ accessToken;
123
223
  applyToRequest(requestOptions) {
124
224
  if (requestOptions && requestOptions.headers) {
125
225
  requestOptions.headers["Authorization"] = "Bearer " + this.accessToken;
126
226
  }
127
227
  }
128
228
  }
129
- exports.OAuth = OAuth;
130
- class VoidAuth {
229
+ export class VoidAuth {
230
+ username;
231
+ password;
131
232
  applyToRequest(_) {
132
233
  // Do nothing
133
234
  }
134
235
  }
135
- exports.VoidAuth = VoidAuth;
136
- var AspectDefinitionsApiApiKeys;
236
+ export var AspectDefinitionsApiApiKeys;
137
237
  (function (AspectDefinitionsApiApiKeys) {
138
- })(AspectDefinitionsApiApiKeys = exports.AspectDefinitionsApiApiKeys || (exports.AspectDefinitionsApiApiKeys = {}));
139
- class AspectDefinitionsApi {
238
+ })(AspectDefinitionsApiApiKeys || (AspectDefinitionsApiApiKeys = {}));
239
+ export class AspectDefinitionsApi {
240
+ basePath = defaultBasePath;
241
+ defaultHeaders = {};
242
+ _useQuerystring = false;
243
+ authentications = {
244
+ 'default': new VoidAuth(),
245
+ };
140
246
  constructor(basePathOrUsername, password, basePath) {
141
- this.basePath = defaultBasePath;
142
- this.defaultHeaders = {};
143
- this._useQuerystring = false;
144
- this.authentications = {
145
- 'default': new VoidAuth(),
146
- };
147
247
  if (password) {
148
248
  if (basePath) {
149
249
  this.basePath = basePath;
@@ -465,18 +565,17 @@ class AspectDefinitionsApi {
465
565
  });
466
566
  }
467
567
  }
468
- exports.AspectDefinitionsApi = AspectDefinitionsApi;
469
- var RecordAspectsApiApiKeys;
568
+ export var RecordAspectsApiApiKeys;
470
569
  (function (RecordAspectsApiApiKeys) {
471
- })(RecordAspectsApiApiKeys = exports.RecordAspectsApiApiKeys || (exports.RecordAspectsApiApiKeys = {}));
472
- class RecordAspectsApi {
570
+ })(RecordAspectsApiApiKeys || (RecordAspectsApiApiKeys = {}));
571
+ export class RecordAspectsApi {
572
+ basePath = defaultBasePath;
573
+ defaultHeaders = {};
574
+ _useQuerystring = false;
575
+ authentications = {
576
+ 'default': new VoidAuth(),
577
+ };
473
578
  constructor(basePathOrUsername, password, basePath) {
474
- this.basePath = defaultBasePath;
475
- this.defaultHeaders = {};
476
- this._useQuerystring = false;
477
- this.authentications = {
478
- 'default': new VoidAuth(),
479
- };
480
579
  if (password) {
481
580
  if (basePath) {
482
581
  this.basePath = basePath;
@@ -909,18 +1008,17 @@ class RecordAspectsApi {
909
1008
  });
910
1009
  }
911
1010
  }
912
- exports.RecordAspectsApi = RecordAspectsApi;
913
- var RecordHistoryApiApiKeys;
1011
+ export var RecordHistoryApiApiKeys;
914
1012
  (function (RecordHistoryApiApiKeys) {
915
- })(RecordHistoryApiApiKeys = exports.RecordHistoryApiApiKeys || (exports.RecordHistoryApiApiKeys = {}));
916
- class RecordHistoryApi {
1013
+ })(RecordHistoryApiApiKeys || (RecordHistoryApiApiKeys = {}));
1014
+ export class RecordHistoryApi {
1015
+ basePath = defaultBasePath;
1016
+ defaultHeaders = {};
1017
+ _useQuerystring = false;
1018
+ authentications = {
1019
+ 'default': new VoidAuth(),
1020
+ };
917
1021
  constructor(basePathOrUsername, password, basePath) {
918
- this.basePath = defaultBasePath;
919
- this.defaultHeaders = {};
920
- this._useQuerystring = false;
921
- this.authentications = {
922
- 'default': new VoidAuth(),
923
- };
924
1022
  if (password) {
925
1023
  if (basePath) {
926
1024
  this.basePath = basePath;
@@ -1085,18 +1183,17 @@ class RecordHistoryApi {
1085
1183
  });
1086
1184
  }
1087
1185
  }
1088
- exports.RecordHistoryApi = RecordHistoryApi;
1089
- var RecordsApiApiKeys;
1186
+ export var RecordsApiApiKeys;
1090
1187
  (function (RecordsApiApiKeys) {
1091
- })(RecordsApiApiKeys = exports.RecordsApiApiKeys || (exports.RecordsApiApiKeys = {}));
1092
- class RecordsApi {
1188
+ })(RecordsApiApiKeys || (RecordsApiApiKeys = {}));
1189
+ export class RecordsApi {
1190
+ basePath = defaultBasePath;
1191
+ defaultHeaders = {};
1192
+ _useQuerystring = false;
1193
+ authentications = {
1194
+ 'default': new VoidAuth(),
1195
+ };
1093
1196
  constructor(basePathOrUsername, password, basePath) {
1094
- this.basePath = defaultBasePath;
1095
- this.defaultHeaders = {};
1096
- this._useQuerystring = false;
1097
- this.authentications = {
1098
- 'default': new VoidAuth(),
1099
- };
1100
1197
  if (password) {
1101
1198
  if (basePath) {
1102
1199
  this.basePath = basePath;
@@ -2128,18 +2225,17 @@ class RecordsApi {
2128
2225
  });
2129
2226
  }
2130
2227
  }
2131
- exports.RecordsApi = RecordsApi;
2132
- var WebHooksApiApiKeys;
2228
+ export var WebHooksApiApiKeys;
2133
2229
  (function (WebHooksApiApiKeys) {
2134
- })(WebHooksApiApiKeys = exports.WebHooksApiApiKeys || (exports.WebHooksApiApiKeys = {}));
2135
- class WebHooksApi {
2230
+ })(WebHooksApiApiKeys || (WebHooksApiApiKeys = {}));
2231
+ export class WebHooksApi {
2232
+ basePath = defaultBasePath;
2233
+ defaultHeaders = {};
2234
+ _useQuerystring = false;
2235
+ authentications = {
2236
+ 'default': new VoidAuth(),
2237
+ };
2136
2238
  constructor(basePathOrUsername, password, basePath) {
2137
- this.basePath = defaultBasePath;
2138
- this.defaultHeaders = {};
2139
- this._useQuerystring = false;
2140
- this.authentications = {
2141
- 'default': new VoidAuth(),
2142
- };
2143
2239
  if (password) {
2144
2240
  if (basePath) {
2145
2241
  this.basePath = basePath;
@@ -2494,5 +2590,4 @@ class WebHooksApi {
2494
2590
  });
2495
2591
  }
2496
2592
  }
2497
- exports.WebHooksApi = WebHooksApi;
2498
2593
  //# sourceMappingURL=api.js.map