@winible/winible-typed 2.78.1 → 2.79.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/dist/opticodds/index.js +24 -0
- package/dist/opticodds/index.js.map +1 -0
- package/dist/opticodds/openapi.json +24316 -0
- package/dist/opticodds/schemas.js +88 -0
- package/dist/opticodds/schemas.js.map +1 -0
- package/dist/opticodds/sdk.js +200 -0
- package/dist/opticodds/sdk.js.map +1 -0
- package/dist/opticodds/types.js +3 -0
- package/dist/opticodds/types.js.map +1 -0
- package/dist/typed-model/{recurly-payment-monitoring-whitelist.js → featured-capper.js} +22 -16
- package/dist/typed-model/featured-capper.js.map +1 -0
- package/dist/utils/lambdaUtils/logger.js +90 -0
- package/dist/utils/lambdaUtils/logger.js.map +1 -0
- package/opticodds/index.ts +2 -0
- package/opticodds/openapi.json +24316 -0
- package/opticodds/schemas.ts +85 -0
- package/opticodds/sdk.ts +250 -0
- package/opticodds/types.ts +85 -0
- package/package.json +7 -2
- package/dist/event-collector-models/config/config.js +0 -30
- package/dist/event-collector-models/config/config.js.map +0 -1
- package/dist/migration_numerical_id_to_external_id.js +0 -59
- package/dist/migration_numerical_id_to_external_id.js.map +0 -1
- package/dist/migrations/20241123184623-recurly-payment-monitoring-whitelist.js +0 -33
- package/dist/migrations/20241123184623-recurly-payment-monitoring-whitelist.js.map +0 -1
- package/dist/typed-model/recurly-payment-monitoring-whitelist.js.map +0 -1
- package/event-collector-models/config/config.ts +0 -29
package/opticodds/sdk.ts
ADDED
@@ -0,0 +1,250 @@
|
|
1
|
+
import type * as types from './types';
|
2
|
+
import type { ConfigOptions, FetchResponse } from 'api/dist/core'
|
3
|
+
import Oas from 'oas';
|
4
|
+
import APICore from 'api/dist/core';
|
5
|
+
import definition from './openapi.json';
|
6
|
+
|
7
|
+
class SDK {
|
8
|
+
spec: Oas;
|
9
|
+
core: APICore;
|
10
|
+
|
11
|
+
constructor() {
|
12
|
+
this.spec = Oas.init(definition);
|
13
|
+
this.core = new APICore(this.spec, 'opticodds/3.0.0 (api/6.1.3)');
|
14
|
+
}
|
15
|
+
|
16
|
+
/**
|
17
|
+
* Optionally configure various options that the SDK allows.
|
18
|
+
*
|
19
|
+
* @param config Object of supported SDK options and toggles.
|
20
|
+
* @param config.timeout Override the default `fetch` request timeout of 30 seconds. This number
|
21
|
+
* should be represented in milliseconds.
|
22
|
+
*/
|
23
|
+
config(config: ConfigOptions) {
|
24
|
+
this.core.setConfig(config);
|
25
|
+
}
|
26
|
+
|
27
|
+
/**
|
28
|
+
* If the API you're using requires authentication you can supply the required credentials
|
29
|
+
* through this method and the library will magically determine how they should be used
|
30
|
+
* within your API request.
|
31
|
+
*
|
32
|
+
* With the exception of OpenID and MutualTLS, it supports all forms of authentication
|
33
|
+
* supported by the OpenAPI specification.
|
34
|
+
*
|
35
|
+
* @example <caption>HTTP Basic auth</caption>
|
36
|
+
* sdk.auth('username', 'password');
|
37
|
+
*
|
38
|
+
* @example <caption>Bearer tokens (HTTP or OAuth 2)</caption>
|
39
|
+
* sdk.auth('myBearerToken');
|
40
|
+
*
|
41
|
+
* @example <caption>API Keys</caption>
|
42
|
+
* sdk.auth('myApiKey');
|
43
|
+
*
|
44
|
+
* @see {@link https://spec.openapis.org/oas/v3.0.3#fixed-fields-22}
|
45
|
+
* @see {@link https://spec.openapis.org/oas/v3.1.0#fixed-fields-22}
|
46
|
+
* @param values Your auth credentials for the API; can specify up to two strings or numbers.
|
47
|
+
*/
|
48
|
+
auth(...values: string[] | number[]) {
|
49
|
+
this.core.setAuth(...values);
|
50
|
+
return this;
|
51
|
+
}
|
52
|
+
|
53
|
+
/**
|
54
|
+
* If the API you're using offers alternate server URLs, and server variables, you can tell
|
55
|
+
* the SDK which one to use with this method. To use it you can supply either one of the
|
56
|
+
* server URLs that are contained within the OpenAPI definition (along with any server
|
57
|
+
* variables), or you can pass it a fully qualified URL to use (that may or may not exist
|
58
|
+
* within the OpenAPI definition).
|
59
|
+
*
|
60
|
+
* @example <caption>Server URL with server variables</caption>
|
61
|
+
* sdk.server('https://{region}.api.example.com/{basePath}', {
|
62
|
+
* name: 'eu',
|
63
|
+
* basePath: 'v14',
|
64
|
+
* });
|
65
|
+
*
|
66
|
+
* @example <caption>Fully qualified server URL</caption>
|
67
|
+
* sdk.server('https://eu.api.example.com/v14');
|
68
|
+
*
|
69
|
+
* @param url Server URL
|
70
|
+
* @param variables An object of variables to replace into the server URL.
|
71
|
+
*/
|
72
|
+
server(url: string, variables = {}) {
|
73
|
+
this.core.setServer(url, variables);
|
74
|
+
}
|
75
|
+
|
76
|
+
getSports(): Promise<FetchResponse<200, types.GetSportsResponse200>> {
|
77
|
+
return this.core.fetch('/sports', 'get');
|
78
|
+
}
|
79
|
+
|
80
|
+
getSportsActive(): Promise<FetchResponse<200, types.GetSportsActiveResponse200>> {
|
81
|
+
return this.core.fetch('/sports/active', 'get');
|
82
|
+
}
|
83
|
+
|
84
|
+
getLeagues(metadata?: types.GetLeaguesMetadataParam): Promise<FetchResponse<200, types.GetLeaguesResponse200>> {
|
85
|
+
return this.core.fetch('/leagues', 'get', metadata);
|
86
|
+
}
|
87
|
+
|
88
|
+
getLeaguesActive(metadata?: types.GetLeaguesActiveMetadataParam): Promise<FetchResponse<200, types.GetLeaguesActiveResponse200>> {
|
89
|
+
return this.core.fetch('/leagues/active', 'get', metadata);
|
90
|
+
}
|
91
|
+
|
92
|
+
getSportsbooks(): Promise<FetchResponse<200, types.GetSportsbooksResponse200>> {
|
93
|
+
return this.core.fetch('/sportsbooks', 'get');
|
94
|
+
}
|
95
|
+
|
96
|
+
getSportsbooksActive(metadata?: types.GetSportsbooksActiveMetadataParam): Promise<FetchResponse<200, types.GetSportsbooksActiveResponse200>> {
|
97
|
+
return this.core.fetch('/sportsbooks/active', 'get', metadata);
|
98
|
+
}
|
99
|
+
|
100
|
+
getSportsbooksLastPolled(metadata?: types.GetSportsbooksLastPolledMetadataParam): Promise<FetchResponse<200, types.GetSportsbooksLastPolledResponse200>> {
|
101
|
+
return this.core.fetch('/sportsbooks/last-polled', 'get', metadata);
|
102
|
+
}
|
103
|
+
|
104
|
+
getMarkets(metadata?: types.GetMarketsMetadataParam): Promise<FetchResponse<200, types.GetMarketsResponse200>> {
|
105
|
+
return this.core.fetch('/markets', 'get', metadata);
|
106
|
+
}
|
107
|
+
|
108
|
+
getMarketsActive(metadata: types.GetMarketsActiveMetadataParam): Promise<FetchResponse<200, types.GetMarketsActiveResponse200>> {
|
109
|
+
return this.core.fetch('/markets/active', 'get', metadata);
|
110
|
+
}
|
111
|
+
|
112
|
+
getMarketsSettleable(metadata: types.GetMarketsSettleableMetadataParam): Promise<FetchResponse<200, types.GetMarketsSettleableResponse200>> {
|
113
|
+
return this.core.fetch('/markets/settleable', 'get', metadata);
|
114
|
+
}
|
115
|
+
|
116
|
+
getTeams(metadata?: types.GetTeamsMetadataParam): Promise<FetchResponse<200, types.GetTeamsResponse200>> {
|
117
|
+
return this.core.fetch('/teams', 'get', metadata);
|
118
|
+
}
|
119
|
+
|
120
|
+
getPlayers(metadata?: types.GetPlayersMetadataParam): Promise<FetchResponse<200, types.GetPlayersResponse200>> {
|
121
|
+
return this.core.fetch('/players', 'get', metadata);
|
122
|
+
}
|
123
|
+
|
124
|
+
getFixtures(metadata?: types.GetFixturesMetadataParam): Promise<FetchResponse<200, types.GetFixturesResponse200>> {
|
125
|
+
return this.core.fetch('/fixtures', 'get', metadata);
|
126
|
+
}
|
127
|
+
|
128
|
+
getFixturesActive(metadata?: types.GetFixturesActiveMetadataParam): Promise<FetchResponse<200, types.GetFixturesActiveResponse200>> {
|
129
|
+
return this.core.fetch('/fixtures/active', 'get', metadata);
|
130
|
+
}
|
131
|
+
|
132
|
+
getTournaments(metadata?: types.GetTournamentsMetadataParam): Promise<FetchResponse<200, types.GetTournamentsResponse200>> {
|
133
|
+
return this.core.fetch('/tournaments', 'get', metadata);
|
134
|
+
}
|
135
|
+
|
136
|
+
getConferences(metadata?: types.GetConferencesMetadataParam): Promise<FetchResponse<200, types.GetConferencesResponse200>> {
|
137
|
+
return this.core.fetch('/conferences', 'get', metadata);
|
138
|
+
}
|
139
|
+
|
140
|
+
getDivisions(metadata?: types.GetDivisionsMetadataParam): Promise<FetchResponse<200, types.GetDivisionsResponse200>> {
|
141
|
+
return this.core.fetch('/divisions', 'get', metadata);
|
142
|
+
}
|
143
|
+
|
144
|
+
getFixturesOdds(metadata: types.GetFixturesOddsMetadataParam): Promise<FetchResponse<200, types.GetFixturesOddsResponse200>> {
|
145
|
+
return this.core.fetch('/fixtures/odds', 'get', metadata);
|
146
|
+
}
|
147
|
+
|
148
|
+
getFixturesOddsHistorical(metadata: types.GetFixturesOddsHistoricalMetadataParam): Promise<FetchResponse<200, types.GetFixturesOddsHistoricalResponse200>> {
|
149
|
+
return this.core.fetch('/fixtures/odds/historical', 'get', metadata);
|
150
|
+
}
|
151
|
+
|
152
|
+
getFixturesResults(metadata?: types.GetFixturesResultsMetadataParam): Promise<FetchResponse<200, types.GetFixturesResultsResponse200>> {
|
153
|
+
return this.core.fetch('/fixtures/results', 'get', metadata);
|
154
|
+
}
|
155
|
+
|
156
|
+
getFixturesPlayerResults(metadata?: types.GetFixturesPlayerResultsMetadataParam): Promise<FetchResponse<200, types.GetFixturesPlayerResultsResponse200>> {
|
157
|
+
return this.core.fetch('/fixtures/player-results', 'get', metadata);
|
158
|
+
}
|
159
|
+
|
160
|
+
getTournamentsResults(metadata: types.GetTournamentsResultsMetadataParam): Promise<FetchResponse<200, types.GetTournamentsResultsResponse200>> {
|
161
|
+
return this.core.fetch('/tournaments/results', 'get', metadata);
|
162
|
+
}
|
163
|
+
|
164
|
+
getFixturesPlayerResultsLastX(metadata?: types.GetFixturesPlayerResultsLastXMetadataParam): Promise<FetchResponse<200, types.GetFixturesPlayerResultsLastXResponse200>> {
|
165
|
+
return this.core.fetch('/fixtures/player-results/last-x', 'get', metadata);
|
166
|
+
}
|
167
|
+
|
168
|
+
getFixturesResultsHeadToHead(metadata: types.GetFixturesResultsHeadToHeadMetadataParam): Promise<FetchResponse<200, types.GetFixturesResultsHeadToHeadResponse200>> {
|
169
|
+
return this.core.fetch('/fixtures/results/head-to-head', 'get', metadata);
|
170
|
+
}
|
171
|
+
|
172
|
+
getFutures(metadata?: types.GetFuturesMetadataParam): Promise<FetchResponse<200, types.GetFuturesResponse200>> {
|
173
|
+
return this.core.fetch('/futures', 'get', metadata);
|
174
|
+
}
|
175
|
+
|
176
|
+
getFuturesOdds(metadata: types.GetFuturesOddsMetadataParam): Promise<FetchResponse<200, types.GetFuturesOddsResponse200>> {
|
177
|
+
return this.core.fetch('/futures/odds', 'get', metadata);
|
178
|
+
}
|
179
|
+
|
180
|
+
getGraderOdds(metadata: types.GetGraderOddsMetadataParam): Promise<FetchResponse<200, types.GetGraderOddsResponse200>> {
|
181
|
+
return this.core.fetch('/grader/odds', 'get', metadata);
|
182
|
+
}
|
183
|
+
|
184
|
+
getGraderFutures(metadata: types.GetGraderFuturesMetadataParam): Promise<FetchResponse<200, types.GetGraderFuturesResponse200>> {
|
185
|
+
return this.core.fetch('/grader/futures', 'get', metadata);
|
186
|
+
}
|
187
|
+
|
188
|
+
getInjuries(metadata?: types.GetInjuriesMetadataParam): Promise<FetchResponse<200, types.GetInjuriesResponse200>> {
|
189
|
+
return this.core.fetch('/injuries', 'get', metadata);
|
190
|
+
}
|
191
|
+
|
192
|
+
postParlayOdds(body: types.PostParlayOddsBodyParam, metadata?: types.PostParlayOddsMetadataParam): Promise<FetchResponse<200, types.PostParlayOddsResponse200>> {
|
193
|
+
return this.core.fetch('/parlay/odds', 'post', body, metadata as any);
|
194
|
+
}
|
195
|
+
|
196
|
+
getStreamOddsSport(metadata: types.GetStreamOddsSportMetadataParam): Promise<FetchResponse<200, types.GetStreamOddsSportResponse200>> {
|
197
|
+
return this.core.fetch('/stream/odds/{sport}', 'get', metadata);
|
198
|
+
}
|
199
|
+
|
200
|
+
getStreamResultsSport(metadata: types.GetStreamResultsSportMetadataParam): Promise<FetchResponse<200, types.GetStreamResultsSportResponse200>> {
|
201
|
+
return this.core.fetch('/stream/results/{sport}', 'get', metadata);
|
202
|
+
}
|
203
|
+
|
204
|
+
getCopilotFixturesOdds(metadata?: types.GetCopilotFixturesOddsMetadataParam): Promise<FetchResponse<200, types.GetCopilotFixturesOddsResponse200>> {
|
205
|
+
return this.core.fetch('/copilot/fixtures/odds', 'get', metadata);
|
206
|
+
}
|
207
|
+
|
208
|
+
getCopilotGraderOdds(metadata: types.GetCopilotGraderOddsMetadataParam): Promise<FetchResponse<200, types.GetCopilotGraderOddsResponse200>> {
|
209
|
+
return this.core.fetch('/copilot/grader/odds', 'get', metadata);
|
210
|
+
}
|
211
|
+
|
212
|
+
getCopilotParlayOdds(metadata: types.GetCopilotParlayOddsMetadataParam): Promise<FetchResponse<200, types.GetCopilotParlayOddsResponse200>> {
|
213
|
+
return this.core.fetch('/copilot/parlay/odds', 'get', metadata);
|
214
|
+
}
|
215
|
+
|
216
|
+
getStreamCopilotSportOdds(metadata: types.GetStreamCopilotSportOddsMetadataParam): Promise<FetchResponse<200, types.GetStreamCopilotSportOddsResponse200>> {
|
217
|
+
return this.core.fetch('/stream/copilot/{sport}/odds', 'get', metadata);
|
218
|
+
}
|
219
|
+
|
220
|
+
postCopilotQueueStart(body: types.PostCopilotQueueStartBodyParam): Promise<FetchResponse<200, types.PostCopilotQueueStartResponse200>> {
|
221
|
+
return this.core.fetch('/copilot/queue/start', 'post', body);
|
222
|
+
}
|
223
|
+
|
224
|
+
postCopilotQueueStop(body: types.PostCopilotQueueStopBodyParam): Promise<FetchResponse<200, types.PostCopilotQueueStopResponse200>> {
|
225
|
+
return this.core.fetch('/copilot/queue/stop', 'post', body);
|
226
|
+
}
|
227
|
+
|
228
|
+
getCopilotQueueStatus(metadata?: types.GetCopilotQueueStatusMetadataParam): Promise<FetchResponse<200, types.GetCopilotQueueStatusResponse200>> {
|
229
|
+
return this.core.fetch('/copilot/queue/status', 'get', metadata);
|
230
|
+
}
|
231
|
+
|
232
|
+
postFixtureResultsQueueStart(body: types.PostFixtureResultsQueueStartBodyParam): Promise<FetchResponse<200, types.PostFixtureResultsQueueStartResponse200>> {
|
233
|
+
return this.core.fetch('/fixture/results/queue/start', 'post', body);
|
234
|
+
}
|
235
|
+
|
236
|
+
postFixtureResultsQueueStop(body: types.PostFixtureResultsQueueStopBodyParam): Promise<FetchResponse<200, types.PostFixtureResultsQueueStopResponse200>> {
|
237
|
+
return this.core.fetch('/fixture/results/queue/stop', 'post', body);
|
238
|
+
}
|
239
|
+
|
240
|
+
getFixtureResultsQueueStatus(metadata?: types.GetFixtureResultsQueueStatusMetadataParam): Promise<FetchResponse<200, types.GetFixtureResultsQueueStatusResponse200>> {
|
241
|
+
return this.core.fetch('/fixture/results/queue/status', 'get', metadata);
|
242
|
+
}
|
243
|
+
}
|
244
|
+
|
245
|
+
const createSDK = (() => { return new SDK(); })()
|
246
|
+
;
|
247
|
+
|
248
|
+
export default createSDK;
|
249
|
+
|
250
|
+
export type { GetConferencesMetadataParam, GetConferencesResponse200, GetCopilotFixturesOddsMetadataParam, GetCopilotFixturesOddsResponse200, GetCopilotGraderOddsMetadataParam, GetCopilotGraderOddsResponse200, GetCopilotParlayOddsMetadataParam, GetCopilotParlayOddsResponse200, GetCopilotQueueStatusMetadataParam, GetCopilotQueueStatusResponse200, GetDivisionsMetadataParam, GetDivisionsResponse200, GetFixtureResultsQueueStatusMetadataParam, GetFixtureResultsQueueStatusResponse200, GetFixturesActiveMetadataParam, GetFixturesActiveResponse200, GetFixturesMetadataParam, GetFixturesOddsHistoricalMetadataParam, GetFixturesOddsHistoricalResponse200, GetFixturesOddsMetadataParam, GetFixturesOddsResponse200, GetFixturesPlayerResultsLastXMetadataParam, GetFixturesPlayerResultsLastXResponse200, GetFixturesPlayerResultsMetadataParam, GetFixturesPlayerResultsResponse200, GetFixturesResponse200, GetFixturesResultsHeadToHeadMetadataParam, GetFixturesResultsHeadToHeadResponse200, GetFixturesResultsMetadataParam, GetFixturesResultsResponse200, GetFuturesMetadataParam, GetFuturesOddsMetadataParam, GetFuturesOddsResponse200, GetFuturesResponse200, GetGraderFuturesMetadataParam, GetGraderFuturesResponse200, GetGraderOddsMetadataParam, GetGraderOddsResponse200, GetInjuriesMetadataParam, GetInjuriesResponse200, GetLeaguesActiveMetadataParam, GetLeaguesActiveResponse200, GetLeaguesMetadataParam, GetLeaguesResponse200, GetMarketsActiveMetadataParam, GetMarketsActiveResponse200, GetMarketsMetadataParam, GetMarketsResponse200, GetMarketsSettleableMetadataParam, GetMarketsSettleableResponse200, GetPlayersMetadataParam, GetPlayersResponse200, GetSportsActiveResponse200, GetSportsResponse200, GetSportsbooksActiveMetadataParam, GetSportsbooksActiveResponse200, GetSportsbooksLastPolledMetadataParam, GetSportsbooksLastPolledResponse200, GetSportsbooksResponse200, GetStreamCopilotSportOddsMetadataParam, GetStreamCopilotSportOddsResponse200, GetStreamOddsSportMetadataParam, GetStreamOddsSportResponse200, GetStreamResultsSportMetadataParam, GetStreamResultsSportResponse200, GetTeamsMetadataParam, GetTeamsResponse200, GetTournamentsMetadataParam, GetTournamentsResponse200, GetTournamentsResultsMetadataParam, GetTournamentsResultsResponse200, PostCopilotQueueStartBodyParam, PostCopilotQueueStartResponse200, PostCopilotQueueStopBodyParam, PostCopilotQueueStopResponse200, PostFixtureResultsQueueStartBodyParam, PostFixtureResultsQueueStartResponse200, PostFixtureResultsQueueStopBodyParam, PostFixtureResultsQueueStopResponse200, PostParlayOddsBodyParam, PostParlayOddsMetadataParam, PostParlayOddsResponse200 } from './types';
|
@@ -0,0 +1,85 @@
|
|
1
|
+
import type { FromSchema } from 'json-schema-to-ts';
|
2
|
+
import * as schemas from './schemas';
|
3
|
+
|
4
|
+
export type GetConferencesMetadataParam = FromSchema<typeof schemas.GetConferences.metadata>;
|
5
|
+
export type GetConferencesResponse200 = FromSchema<typeof schemas.GetConferences.response['200']>;
|
6
|
+
export type GetCopilotFixturesOddsMetadataParam = FromSchema<typeof schemas.GetCopilotFixturesOdds.metadata>;
|
7
|
+
export type GetCopilotFixturesOddsResponse200 = FromSchema<typeof schemas.GetCopilotFixturesOdds.response['200']>;
|
8
|
+
export type GetCopilotGraderOddsMetadataParam = FromSchema<typeof schemas.GetCopilotGraderOdds.metadata>;
|
9
|
+
export type GetCopilotGraderOddsResponse200 = FromSchema<typeof schemas.GetCopilotGraderOdds.response['200']>;
|
10
|
+
export type GetCopilotParlayOddsMetadataParam = FromSchema<typeof schemas.GetCopilotParlayOdds.metadata>;
|
11
|
+
export type GetCopilotParlayOddsResponse200 = FromSchema<typeof schemas.GetCopilotParlayOdds.response['200']>;
|
12
|
+
export type GetCopilotQueueStatusMetadataParam = FromSchema<typeof schemas.GetCopilotQueueStatus.metadata>;
|
13
|
+
export type GetCopilotQueueStatusResponse200 = FromSchema<typeof schemas.GetCopilotQueueStatus.response['200']>;
|
14
|
+
export type GetDivisionsMetadataParam = FromSchema<typeof schemas.GetDivisions.metadata>;
|
15
|
+
export type GetDivisionsResponse200 = FromSchema<typeof schemas.GetDivisions.response['200']>;
|
16
|
+
export type GetFixtureResultsQueueStatusMetadataParam = FromSchema<typeof schemas.GetFixtureResultsQueueStatus.metadata>;
|
17
|
+
export type GetFixtureResultsQueueStatusResponse200 = FromSchema<typeof schemas.GetFixtureResultsQueueStatus.response['200']>;
|
18
|
+
export type GetFixturesActiveMetadataParam = FromSchema<typeof schemas.GetFixturesActive.metadata>;
|
19
|
+
export type GetFixturesActiveResponse200 = FromSchema<typeof schemas.GetFixturesActive.response['200']>;
|
20
|
+
export type GetFixturesMetadataParam = FromSchema<typeof schemas.GetFixtures.metadata>;
|
21
|
+
export type GetFixturesOddsHistoricalMetadataParam = FromSchema<typeof schemas.GetFixturesOddsHistorical.metadata>;
|
22
|
+
export type GetFixturesOddsHistoricalResponse200 = FromSchema<typeof schemas.GetFixturesOddsHistorical.response['200']>;
|
23
|
+
export type GetFixturesOddsMetadataParam = FromSchema<typeof schemas.GetFixturesOdds.metadata>;
|
24
|
+
export type GetFixturesOddsResponse200 = FromSchema<typeof schemas.GetFixturesOdds.response['200']>;
|
25
|
+
export type GetFixturesPlayerResultsLastXMetadataParam = FromSchema<typeof schemas.GetFixturesPlayerResultsLastX.metadata>;
|
26
|
+
export type GetFixturesPlayerResultsLastXResponse200 = FromSchema<typeof schemas.GetFixturesPlayerResultsLastX.response['200']>;
|
27
|
+
export type GetFixturesPlayerResultsMetadataParam = FromSchema<typeof schemas.GetFixturesPlayerResults.metadata>;
|
28
|
+
export type GetFixturesPlayerResultsResponse200 = FromSchema<typeof schemas.GetFixturesPlayerResults.response['200']>;
|
29
|
+
export type GetFixturesResponse200 = FromSchema<typeof schemas.GetFixtures.response['200']>;
|
30
|
+
export type GetFixturesResultsHeadToHeadMetadataParam = FromSchema<typeof schemas.GetFixturesResultsHeadToHead.metadata>;
|
31
|
+
export type GetFixturesResultsHeadToHeadResponse200 = FromSchema<typeof schemas.GetFixturesResultsHeadToHead.response['200']>;
|
32
|
+
export type GetFixturesResultsMetadataParam = FromSchema<typeof schemas.GetFixturesResults.metadata>;
|
33
|
+
export type GetFixturesResultsResponse200 = FromSchema<typeof schemas.GetFixturesResults.response['200']>;
|
34
|
+
export type GetFuturesMetadataParam = FromSchema<typeof schemas.GetFutures.metadata>;
|
35
|
+
export type GetFuturesOddsMetadataParam = FromSchema<typeof schemas.GetFuturesOdds.metadata>;
|
36
|
+
export type GetFuturesOddsResponse200 = FromSchema<typeof schemas.GetFuturesOdds.response['200']>;
|
37
|
+
export type GetFuturesResponse200 = FromSchema<typeof schemas.GetFutures.response['200']>;
|
38
|
+
export type GetGraderFuturesMetadataParam = FromSchema<typeof schemas.GetGraderFutures.metadata>;
|
39
|
+
export type GetGraderFuturesResponse200 = FromSchema<typeof schemas.GetGraderFutures.response['200']>;
|
40
|
+
export type GetGraderOddsMetadataParam = FromSchema<typeof schemas.GetGraderOdds.metadata>;
|
41
|
+
export type GetGraderOddsResponse200 = FromSchema<typeof schemas.GetGraderOdds.response['200']>;
|
42
|
+
export type GetInjuriesMetadataParam = FromSchema<typeof schemas.GetInjuries.metadata>;
|
43
|
+
export type GetInjuriesResponse200 = FromSchema<typeof schemas.GetInjuries.response['200']>;
|
44
|
+
export type GetLeaguesActiveMetadataParam = FromSchema<typeof schemas.GetLeaguesActive.metadata>;
|
45
|
+
export type GetLeaguesActiveResponse200 = FromSchema<typeof schemas.GetLeaguesActive.response['200']>;
|
46
|
+
export type GetLeaguesMetadataParam = FromSchema<typeof schemas.GetLeagues.metadata>;
|
47
|
+
export type GetLeaguesResponse200 = FromSchema<typeof schemas.GetLeagues.response['200']>;
|
48
|
+
export type GetMarketsActiveMetadataParam = FromSchema<typeof schemas.GetMarketsActive.metadata>;
|
49
|
+
export type GetMarketsActiveResponse200 = FromSchema<typeof schemas.GetMarketsActive.response['200']>;
|
50
|
+
export type GetMarketsMetadataParam = FromSchema<typeof schemas.GetMarkets.metadata>;
|
51
|
+
export type GetMarketsResponse200 = FromSchema<typeof schemas.GetMarkets.response['200']>;
|
52
|
+
export type GetMarketsSettleableMetadataParam = FromSchema<typeof schemas.GetMarketsSettleable.metadata>;
|
53
|
+
export type GetMarketsSettleableResponse200 = FromSchema<typeof schemas.GetMarketsSettleable.response['200']>;
|
54
|
+
export type GetPlayersMetadataParam = FromSchema<typeof schemas.GetPlayers.metadata>;
|
55
|
+
export type GetPlayersResponse200 = FromSchema<typeof schemas.GetPlayers.response['200']>;
|
56
|
+
export type GetSportsActiveResponse200 = FromSchema<typeof schemas.GetSportsActive.response['200']>;
|
57
|
+
export type GetSportsResponse200 = FromSchema<typeof schemas.GetSports.response['200']>;
|
58
|
+
export type GetSportsbooksActiveMetadataParam = FromSchema<typeof schemas.GetSportsbooksActive.metadata>;
|
59
|
+
export type GetSportsbooksActiveResponse200 = FromSchema<typeof schemas.GetSportsbooksActive.response['200']>;
|
60
|
+
export type GetSportsbooksLastPolledMetadataParam = FromSchema<typeof schemas.GetSportsbooksLastPolled.metadata>;
|
61
|
+
export type GetSportsbooksLastPolledResponse200 = FromSchema<typeof schemas.GetSportsbooksLastPolled.response['200']>;
|
62
|
+
export type GetSportsbooksResponse200 = FromSchema<typeof schemas.GetSportsbooks.response['200']>;
|
63
|
+
export type GetStreamCopilotSportOddsMetadataParam = FromSchema<typeof schemas.GetStreamCopilotSportOdds.metadata>;
|
64
|
+
export type GetStreamCopilotSportOddsResponse200 = FromSchema<typeof schemas.GetStreamCopilotSportOdds.response['200']>;
|
65
|
+
export type GetStreamOddsSportMetadataParam = FromSchema<typeof schemas.GetStreamOddsSport.metadata>;
|
66
|
+
export type GetStreamOddsSportResponse200 = FromSchema<typeof schemas.GetStreamOddsSport.response['200']>;
|
67
|
+
export type GetStreamResultsSportMetadataParam = FromSchema<typeof schemas.GetStreamResultsSport.metadata>;
|
68
|
+
export type GetStreamResultsSportResponse200 = FromSchema<typeof schemas.GetStreamResultsSport.response['200']>;
|
69
|
+
export type GetTeamsMetadataParam = FromSchema<typeof schemas.GetTeams.metadata>;
|
70
|
+
export type GetTeamsResponse200 = FromSchema<typeof schemas.GetTeams.response['200']>;
|
71
|
+
export type GetTournamentsMetadataParam = FromSchema<typeof schemas.GetTournaments.metadata>;
|
72
|
+
export type GetTournamentsResponse200 = FromSchema<typeof schemas.GetTournaments.response['200']>;
|
73
|
+
export type GetTournamentsResultsMetadataParam = FromSchema<typeof schemas.GetTournamentsResults.metadata>;
|
74
|
+
export type GetTournamentsResultsResponse200 = FromSchema<typeof schemas.GetTournamentsResults.response['200']>;
|
75
|
+
export type PostCopilotQueueStartBodyParam = FromSchema<typeof schemas.PostCopilotQueueStart.body>;
|
76
|
+
export type PostCopilotQueueStartResponse200 = FromSchema<typeof schemas.PostCopilotQueueStart.response['200']>;
|
77
|
+
export type PostCopilotQueueStopBodyParam = FromSchema<typeof schemas.PostCopilotQueueStop.body>;
|
78
|
+
export type PostCopilotQueueStopResponse200 = FromSchema<typeof schemas.PostCopilotQueueStop.response['200']>;
|
79
|
+
export type PostFixtureResultsQueueStartBodyParam = FromSchema<typeof schemas.PostFixtureResultsQueueStart.body>;
|
80
|
+
export type PostFixtureResultsQueueStartResponse200 = FromSchema<typeof schemas.PostFixtureResultsQueueStart.response['200']>;
|
81
|
+
export type PostFixtureResultsQueueStopBodyParam = FromSchema<typeof schemas.PostFixtureResultsQueueStop.body>;
|
82
|
+
export type PostFixtureResultsQueueStopResponse200 = FromSchema<typeof schemas.PostFixtureResultsQueueStop.response['200']>;
|
83
|
+
export type PostParlayOddsBodyParam = FromSchema<typeof schemas.PostParlayOdds.body>;
|
84
|
+
export type PostParlayOddsMetadataParam = FromSchema<typeof schemas.PostParlayOdds.metadata>;
|
85
|
+
export type PostParlayOddsResponse200 = FromSchema<typeof schemas.PostParlayOdds.response['200']>;
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@winible/winible-typed",
|
3
|
-
"version": "2.
|
3
|
+
"version": "2.79.0",
|
4
4
|
"description": "",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"types": "./dist/index.d.ts",
|
@@ -9,7 +9,8 @@
|
|
9
9
|
"./dist/src/types": "./dist/src/types.js",
|
10
10
|
"./event-collector-models": "./dist/event-collector-models/index.js",
|
11
11
|
"./utils": "./dist/utils/index.js",
|
12
|
-
"./utils/lambdaUtils": "./dist/utils/lambdaUtils/index.js"
|
12
|
+
"./utils/lambdaUtils": "./dist/utils/lambdaUtils/index.js",
|
13
|
+
"./opticodds": "./dist/opticodds/index.js"
|
13
14
|
},
|
14
15
|
"scripts": {
|
15
16
|
"start": "nf start",
|
@@ -24,6 +25,9 @@
|
|
24
25
|
"author": "Clay Jones",
|
25
26
|
"license": "ISC",
|
26
27
|
"dependencies": {
|
28
|
+
"api": "^6.1.3",
|
29
|
+
"json-schema-to-ts": "^2.12.0",
|
30
|
+
"oas": "^20.11.0",
|
27
31
|
"@paypal/checkout-server-sdk": "^1.0.2",
|
28
32
|
"@sendgrid/mail": "^7.4.4",
|
29
33
|
"@slack/bolt": "^3.12.1",
|
@@ -82,6 +86,7 @@
|
|
82
86
|
"utils/**/*",
|
83
87
|
"support/**/*",
|
84
88
|
"src/**/*",
|
89
|
+
"opticodds/**/*",
|
85
90
|
"index.ts",
|
86
91
|
"dist/**/*"
|
87
92
|
]
|
@@ -1,30 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
require("dotenv").config();
|
3
|
-
module.exports = {
|
4
|
-
development: {
|
5
|
-
dialect: "postgres",
|
6
|
-
host: process.env.TS_DB_HOST,
|
7
|
-
port: process.env.TS_DB_PORT,
|
8
|
-
database: process.env.TS_DB_NAME,
|
9
|
-
username: process.env.TS_DB_USER,
|
10
|
-
password: process.env.TS_DB_PASSWORD,
|
11
|
-
dialectOptions: {
|
12
|
-
ssl: false,
|
13
|
-
},
|
14
|
-
},
|
15
|
-
production: {
|
16
|
-
dialect: "postgres",
|
17
|
-
host: process.env.TS_DB_HOST,
|
18
|
-
port: process.env.TS_DB_PORT,
|
19
|
-
database: process.env.TS_DB_NAME,
|
20
|
-
username: process.env.TS_DB_USER,
|
21
|
-
password: process.env.TS_DB_PASSWORD,
|
22
|
-
dialectOptions: {
|
23
|
-
ssl: {
|
24
|
-
require: true,
|
25
|
-
rejectUnauthorized: false,
|
26
|
-
},
|
27
|
-
},
|
28
|
-
},
|
29
|
-
};
|
30
|
-
//# sourceMappingURL=config.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../event-collector-models/config/config.ts"],"names":[],"mappings":";AAAA,OAAO,CAAC,QAAQ,CAAC,CAAC,MAAM,EAAE,CAAC;AAE3B,MAAM,CAAC,OAAO,GAAG;IACf,WAAW,EAAE;QACX,OAAO,EAAE,UAAU;QACnB,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,UAAU;QAC5B,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,UAAU;QAC5B,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,UAAU;QAChC,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,UAAU;QAChC,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,cAAc;QACpC,cAAc,EAAE;YACd,GAAG,EAAE,KAAK;SACX;KACF;IACD,UAAU,EAAE;QACV,OAAO,EAAE,UAAU;QACnB,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,UAAU;QAC5B,IAAI,EAAE,OAAO,CAAC,GAAG,CAAC,UAAU;QAC5B,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,UAAU;QAChC,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,UAAU;QAChC,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,cAAc;QACpC,cAAc,EAAE;YACd,GAAG,EAAE;gBACH,OAAO,EAAE,IAAI;gBACb,kBAAkB,EAAE,KAAK;aAC1B;SACF;KACF;CACF,CAAC"}
|
@@ -1,59 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const sequelize_1 = require("sequelize");
|
4
|
-
/**
|
5
|
-
* Migration para alterar numerical_id para external_id
|
6
|
-
* Alterando o tipo de INTEGER para STRING e renomeando a coluna
|
7
|
-
*/
|
8
|
-
module.exports = {
|
9
|
-
async up(queryInterface) {
|
10
|
-
// 1. Alterar tipo de numerical_id para VARCHAR nas tabelas
|
11
|
-
await queryInterface.changeColumn("bet_sports", "numerical_id", {
|
12
|
-
type: sequelize_1.DataTypes.STRING,
|
13
|
-
allowNull: false,
|
14
|
-
});
|
15
|
-
await queryInterface.changeColumn("leagues", "numerical_id", {
|
16
|
-
type: sequelize_1.DataTypes.STRING,
|
17
|
-
allowNull: false,
|
18
|
-
});
|
19
|
-
await queryInterface.changeColumn("markets", "numerical_id", {
|
20
|
-
type: sequelize_1.DataTypes.STRING,
|
21
|
-
allowNull: false,
|
22
|
-
});
|
23
|
-
await queryInterface.changeColumn("sportsbooks", "numerical_id", {
|
24
|
-
type: sequelize_1.DataTypes.STRING,
|
25
|
-
allowNull: false,
|
26
|
-
});
|
27
|
-
// 2. Renomear colunas de numerical_id para external_id
|
28
|
-
await queryInterface.renameColumn("bet_sports", "numerical_id", "external_id");
|
29
|
-
await queryInterface.renameColumn("leagues", "numerical_id", "external_id");
|
30
|
-
await queryInterface.renameColumn("markets", "numerical_id", "external_id");
|
31
|
-
await queryInterface.renameColumn("sportsbooks", "numerical_id", "external_id");
|
32
|
-
},
|
33
|
-
async down(queryInterface) {
|
34
|
-
// Reverter as alterações
|
35
|
-
// 1. Renomear de volta para numerical_id
|
36
|
-
await queryInterface.renameColumn("bet_sports", "external_id", "numerical_id");
|
37
|
-
await queryInterface.renameColumn("leagues", "external_id", "numerical_id");
|
38
|
-
await queryInterface.renameColumn("markets", "external_id", "numerical_id");
|
39
|
-
await queryInterface.renameColumn("sportsbooks", "external_id", "numerical_id");
|
40
|
-
// 2. Alterar tipo de volta para INTEGER
|
41
|
-
await queryInterface.changeColumn("bet_sports", "numerical_id", {
|
42
|
-
type: sequelize_1.DataTypes.INTEGER,
|
43
|
-
allowNull: false,
|
44
|
-
});
|
45
|
-
await queryInterface.changeColumn("leagues", "numerical_id", {
|
46
|
-
type: sequelize_1.DataTypes.INTEGER,
|
47
|
-
allowNull: false,
|
48
|
-
});
|
49
|
-
await queryInterface.changeColumn("markets", "numerical_id", {
|
50
|
-
type: sequelize_1.DataTypes.INTEGER,
|
51
|
-
allowNull: false,
|
52
|
-
});
|
53
|
-
await queryInterface.changeColumn("sportsbooks", "numerical_id", {
|
54
|
-
type: sequelize_1.DataTypes.INTEGER,
|
55
|
-
allowNull: false,
|
56
|
-
});
|
57
|
-
},
|
58
|
-
};
|
59
|
-
//# sourceMappingURL=migration_numerical_id_to_external_id.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"migration_numerical_id_to_external_id.js","sourceRoot":"","sources":["../migration_numerical_id_to_external_id.ts"],"names":[],"mappings":";;AAAA,yCAAsD;AAEtD;;;GAGG;AAEH,MAAM,CAAC,OAAO,GAAG;IACf,KAAK,CAAC,EAAE,CAAC,cAA8B;QACrC,2DAA2D;QAC3D,MAAM,cAAc,CAAC,YAAY,CAAC,YAAY,EAAE,cAAc,EAAE;YAC9D,IAAI,EAAE,qBAAS,CAAC,MAAM;YACtB,SAAS,EAAE,KAAK;SACjB,CAAC,CAAC;QAEH,MAAM,cAAc,CAAC,YAAY,CAAC,SAAS,EAAE,cAAc,EAAE;YAC3D,IAAI,EAAE,qBAAS,CAAC,MAAM;YACtB,SAAS,EAAE,KAAK;SACjB,CAAC,CAAC;QAEH,MAAM,cAAc,CAAC,YAAY,CAAC,SAAS,EAAE,cAAc,EAAE;YAC3D,IAAI,EAAE,qBAAS,CAAC,MAAM;YACtB,SAAS,EAAE,KAAK;SACjB,CAAC,CAAC;QAEH,MAAM,cAAc,CAAC,YAAY,CAAC,aAAa,EAAE,cAAc,EAAE;YAC/D,IAAI,EAAE,qBAAS,CAAC,MAAM;YACtB,SAAS,EAAE,KAAK;SACjB,CAAC,CAAC;QAEH,uDAAuD;QACvD,MAAM,cAAc,CAAC,YAAY,CAC/B,YAAY,EACZ,cAAc,EACd,aAAa,CACd,CAAC;QACF,MAAM,cAAc,CAAC,YAAY,CAAC,SAAS,EAAE,cAAc,EAAE,aAAa,CAAC,CAAC;QAC5E,MAAM,cAAc,CAAC,YAAY,CAAC,SAAS,EAAE,cAAc,EAAE,aAAa,CAAC,CAAC;QAC5E,MAAM,cAAc,CAAC,YAAY,CAC/B,aAAa,EACb,cAAc,EACd,aAAa,CACd,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,cAA8B;QACvC,yBAAyB;QAEzB,yCAAyC;QACzC,MAAM,cAAc,CAAC,YAAY,CAC/B,YAAY,EACZ,aAAa,EACb,cAAc,CACf,CAAC;QACF,MAAM,cAAc,CAAC,YAAY,CAAC,SAAS,EAAE,aAAa,EAAE,cAAc,CAAC,CAAC;QAC5E,MAAM,cAAc,CAAC,YAAY,CAAC,SAAS,EAAE,aAAa,EAAE,cAAc,CAAC,CAAC;QAC5E,MAAM,cAAc,CAAC,YAAY,CAC/B,aAAa,EACb,aAAa,EACb,cAAc,CACf,CAAC;QAEF,wCAAwC;QACxC,MAAM,cAAc,CAAC,YAAY,CAAC,YAAY,EAAE,cAAc,EAAE;YAC9D,IAAI,EAAE,qBAAS,CAAC,OAAO;YACvB,SAAS,EAAE,KAAK;SACjB,CAAC,CAAC;QAEH,MAAM,cAAc,CAAC,YAAY,CAAC,SAAS,EAAE,cAAc,EAAE;YAC3D,IAAI,EAAE,qBAAS,CAAC,OAAO;YACvB,SAAS,EAAE,KAAK;SACjB,CAAC,CAAC;QAEH,MAAM,cAAc,CAAC,YAAY,CAAC,SAAS,EAAE,cAAc,EAAE;YAC3D,IAAI,EAAE,qBAAS,CAAC,OAAO;YACvB,SAAS,EAAE,KAAK;SACjB,CAAC,CAAC;QAEH,MAAM,cAAc,CAAC,YAAY,CAAC,aAAa,EAAE,cAAc,EAAE;YAC/D,IAAI,EAAE,qBAAS,CAAC,OAAO;YACvB,SAAS,EAAE,KAAK;SACjB,CAAC,CAAC;IACL,CAAC;CACF,CAAC"}
|
@@ -1,33 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const sequelize_1 = require("sequelize");
|
4
|
-
exports.default = {
|
5
|
-
async up(queryInterface, sequelize) {
|
6
|
-
await queryInterface.createTable("recurly_payment_monitoring_whitelist", {
|
7
|
-
id: {
|
8
|
-
type: sequelize_1.DataTypes.BIGINT,
|
9
|
-
primaryKey: true,
|
10
|
-
allowNull: false,
|
11
|
-
autoIncrement: true,
|
12
|
-
},
|
13
|
-
user_id: {
|
14
|
-
type: sequelize_1.DataTypes.BIGINT,
|
15
|
-
allowNull: false,
|
16
|
-
references: {
|
17
|
-
model: "users",
|
18
|
-
key: "id",
|
19
|
-
},
|
20
|
-
onDelete: "CASCADE",
|
21
|
-
},
|
22
|
-
createdAt: {
|
23
|
-
type: sequelize_1.DataTypes.DATE,
|
24
|
-
allowNull: false,
|
25
|
-
defaultValue: sequelize.literal("NOW()"),
|
26
|
-
},
|
27
|
-
});
|
28
|
-
},
|
29
|
-
async down(queryInterface, sequelize) {
|
30
|
-
await queryInterface.dropTable("recurly_payment_monitoring_whitelist");
|
31
|
-
},
|
32
|
-
};
|
33
|
-
//# sourceMappingURL=20241123184623-recurly-payment-monitoring-whitelist.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"20241123184623-recurly-payment-monitoring-whitelist.js","sourceRoot":"","sources":["../../migrations/20241123184623-recurly-payment-monitoring-whitelist.ts"],"names":[],"mappings":";;AAAA,yCAAiE;AAEjE,kBAAe;IACb,KAAK,CAAC,EAAE,CAAC,cAA8B,EAAE,SAAoB;QAC3D,MAAM,cAAc,CAAC,WAAW,CAAC,sCAAsC,EAAE;YACvE,EAAE,EAAE;gBACF,IAAI,EAAE,qBAAS,CAAC,MAAM;gBACtB,UAAU,EAAE,IAAI;gBAChB,SAAS,EAAE,KAAK;gBAChB,aAAa,EAAE,IAAI;aACpB;YACD,OAAO,EAAE;gBACP,IAAI,EAAE,qBAAS,CAAC,MAAM;gBACtB,SAAS,EAAE,KAAK;gBAChB,UAAU,EAAE;oBACV,KAAK,EAAE,OAAO;oBACd,GAAG,EAAE,IAAI;iBACV;gBACD,QAAQ,EAAE,SAAS;aACpB;YACD,SAAS,EAAE;gBACT,IAAI,EAAE,qBAAS,CAAC,IAAI;gBACpB,SAAS,EAAE,KAAK;gBAChB,YAAY,EAAE,SAAS,CAAC,OAAO,CAAC,OAAO,CAAC;aACzC;SACF,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,cAA8B,EAAE,SAAoB;QAC7D,MAAM,cAAc,CAAC,SAAS,CAAC,sCAAsC,CAAC,CAAC;IACzE,CAAC;CACF,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"recurly-payment-monitoring-whitelist.js","sourceRoot":"","sources":["../../typed-model/recurly-payment-monitoring-whitelist.ts"],"names":[],"mappings":";;;;;AAAA,yCAMmB;AAEnB,kDAA0B;AAE1B,kEAAuC;AAEvC,MAAM,iCAAkC,SAAQ,iBAG/C;CAIA;AAED,iCAAiC,CAAC,IAAI,CACpC;IACE,EAAE,EAAE;QACF,IAAI,EAAE,qBAAS,CAAC,MAAM;QACtB,UAAU,EAAE,IAAI;QAChB,SAAS,EAAE,KAAK;QAChB,aAAa,EAAE,IAAI;KACpB;IACD,MAAM,EAAE;QACN,IAAI,EAAE,qBAAS,CAAC,MAAM;QACtB,SAAS,EAAE,KAAK;QAChB,KAAK,EAAE,SAAS;QAChB,UAAU,EAAE;YACV,KAAK,EAAE,cAAI;YACX,GAAG,EAAE,IAAI;SACV;QACD,QAAQ,EAAE,SAAS;KACpB;IACD,SAAS,EAAE,qBAAS,CAAC,IAAI;CAC1B,EACD;IACE,SAAS,EAAT,sBAAS;IACT,SAAS,EAAE,sCAAsC;IACjD,UAAU,EAAE,KAAK;CAClB,CACF,CAAC;AAGF,cAAI,CAAC,MAAM,CAAC,iCAAiC,EAAE;IAC7C,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE,IAAI;IACf,EAAE,EAAE,4BAA4B;CACjC,CAAC,CAAC;AAEH,iCAAiC,CAAC,SAAS,CAAC,cAAI,EAAE;IAChD,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE,IAAI;IACf,EAAE,EAAE,MAAM;CACX,CAAC,CAAC;AAEH,kBAAe,iCAAiC,CAAC"}
|
@@ -1,29 +0,0 @@
|
|
1
|
-
require("dotenv").config();
|
2
|
-
|
3
|
-
module.exports = {
|
4
|
-
development: {
|
5
|
-
dialect: "postgres",
|
6
|
-
host: process.env.TS_DB_HOST,
|
7
|
-
port: process.env.TS_DB_PORT,
|
8
|
-
database: process.env.TS_DB_NAME,
|
9
|
-
username: process.env.TS_DB_USER,
|
10
|
-
password: process.env.TS_DB_PASSWORD,
|
11
|
-
dialectOptions: {
|
12
|
-
ssl: false,
|
13
|
-
},
|
14
|
-
},
|
15
|
-
production: {
|
16
|
-
dialect: "postgres",
|
17
|
-
host: process.env.TS_DB_HOST,
|
18
|
-
port: process.env.TS_DB_PORT,
|
19
|
-
database: process.env.TS_DB_NAME,
|
20
|
-
username: process.env.TS_DB_USER,
|
21
|
-
password: process.env.TS_DB_PASSWORD,
|
22
|
-
dialectOptions: {
|
23
|
-
ssl: {
|
24
|
-
require: true,
|
25
|
-
rejectUnauthorized: false,
|
26
|
-
},
|
27
|
-
},
|
28
|
-
},
|
29
|
-
};
|