snaptrade-typescript-sdk 6.0.0 → 6.2.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.
@@ -16,7 +16,7 @@ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'ax
16
16
  import { Configuration } from '../configuration';
17
17
  // Some imports not used depending on template conditions
18
18
  // @ts-ignore
19
- import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
19
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
20
20
  // @ts-ignore
21
21
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
22
22
  // @ts-ignore
@@ -75,13 +75,13 @@ export const ReferenceDataApiAxiosParamCreator = function (configuration?: Confi
75
75
  const localVarQueryParameter = {} as any;
76
76
 
77
77
  // authentication PartnerClientId required
78
- await setApiKeyToObject(localVarQueryParameter, "clientId", configuration)
78
+ await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
79
79
 
80
80
  // authentication PartnerSignature required
81
- await setApiKeyToObject(localVarHeaderParameter, "Signature", configuration)
81
+ await setApiKeyToObject({object: localVarHeaderParameter, keyParamName: "Signature", configuration})
82
82
 
83
83
  // authentication PartnerTimestamp required
84
- await setApiKeyToObject(localVarQueryParameter, "timestamp", configuration)
84
+ await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
85
85
 
86
86
 
87
87
 
@@ -121,13 +121,13 @@ export const ReferenceDataApiAxiosParamCreator = function (configuration?: Confi
121
121
  const localVarQueryParameter = {} as any;
122
122
 
123
123
  // authentication PartnerClientId required
124
- await setApiKeyToObject(localVarQueryParameter, "clientId", configuration)
124
+ await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
125
125
 
126
126
  // authentication PartnerSignature required
127
- await setApiKeyToObject(localVarHeaderParameter, "Signature", configuration)
127
+ await setApiKeyToObject({object: localVarHeaderParameter, keyParamName: "Signature", configuration})
128
128
 
129
129
  // authentication PartnerTimestamp required
130
- await setApiKeyToObject(localVarQueryParameter, "timestamp", configuration)
130
+ await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
131
131
 
132
132
 
133
133
 
@@ -167,13 +167,13 @@ export const ReferenceDataApiAxiosParamCreator = function (configuration?: Confi
167
167
  const localVarQueryParameter = {} as any;
168
168
 
169
169
  // authentication PartnerClientId required
170
- await setApiKeyToObject(localVarQueryParameter, "clientId", configuration)
170
+ await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
171
171
 
172
172
  // authentication PartnerSignature required
173
- await setApiKeyToObject(localVarHeaderParameter, "Signature", configuration)
173
+ await setApiKeyToObject({object: localVarHeaderParameter, keyParamName: "Signature", configuration})
174
174
 
175
175
  // authentication PartnerTimestamp required
176
- await setApiKeyToObject(localVarQueryParameter, "timestamp", configuration)
176
+ await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
177
177
 
178
178
 
179
179
 
@@ -213,13 +213,13 @@ export const ReferenceDataApiAxiosParamCreator = function (configuration?: Confi
213
213
  const localVarQueryParameter = {} as any;
214
214
 
215
215
  // authentication PartnerClientId required
216
- await setApiKeyToObject(localVarQueryParameter, "clientId", configuration)
216
+ await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
217
217
 
218
218
  // authentication PartnerSignature required
219
- await setApiKeyToObject(localVarHeaderParameter, "Signature", configuration)
219
+ await setApiKeyToObject({object: localVarHeaderParameter, keyParamName: "Signature", configuration})
220
220
 
221
221
  // authentication PartnerTimestamp required
222
- await setApiKeyToObject(localVarQueryParameter, "timestamp", configuration)
222
+ await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
223
223
 
224
224
 
225
225
 
@@ -260,13 +260,13 @@ export const ReferenceDataApiAxiosParamCreator = function (configuration?: Confi
260
260
  const localVarQueryParameter = {} as any;
261
261
 
262
262
  // authentication PartnerClientId required
263
- await setApiKeyToObject(localVarQueryParameter, "clientId", configuration)
263
+ await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
264
264
 
265
265
  // authentication PartnerSignature required
266
- await setApiKeyToObject(localVarHeaderParameter, "Signature", configuration)
266
+ await setApiKeyToObject({object: localVarHeaderParameter, keyParamName: "Signature", configuration})
267
267
 
268
268
  // authentication PartnerTimestamp required
269
- await setApiKeyToObject(localVarQueryParameter, "timestamp", configuration)
269
+ await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
270
270
 
271
271
 
272
272
 
@@ -314,13 +314,13 @@ export const ReferenceDataApiAxiosParamCreator = function (configuration?: Confi
314
314
  const localVarQueryParameter = {} as any;
315
315
 
316
316
  // authentication PartnerClientId required
317
- await setApiKeyToObject(localVarQueryParameter, "clientId", configuration)
317
+ await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
318
318
 
319
319
  // authentication PartnerSignature required
320
- await setApiKeyToObject(localVarHeaderParameter, "Signature", configuration)
320
+ await setApiKeyToObject({object: localVarHeaderParameter, keyParamName: "Signature", configuration})
321
321
 
322
322
  // authentication PartnerTimestamp required
323
- await setApiKeyToObject(localVarQueryParameter, "timestamp", configuration)
323
+ await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
324
324
 
325
325
  if (symbolId !== undefined) {
326
326
  localVarQueryParameter['symbolId'] = symbolId;
@@ -365,13 +365,13 @@ export const ReferenceDataApiAxiosParamCreator = function (configuration?: Confi
365
365
  const localVarQueryParameter = {} as any;
366
366
 
367
367
  // authentication PartnerClientId required
368
- await setApiKeyToObject(localVarQueryParameter, "clientId", configuration)
368
+ await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
369
369
 
370
370
  // authentication PartnerSignature required
371
- await setApiKeyToObject(localVarHeaderParameter, "Signature", configuration)
371
+ await setApiKeyToObject({object: localVarHeaderParameter, keyParamName: "Signature", configuration})
372
372
 
373
373
  // authentication PartnerTimestamp required
374
- await setApiKeyToObject(localVarQueryParameter, "timestamp", configuration)
374
+ await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
375
375
 
376
376
  if (brokerage !== undefined) {
377
377
  localVarQueryParameter['brokerage'] = brokerage;
@@ -415,13 +415,13 @@ export const ReferenceDataApiAxiosParamCreator = function (configuration?: Confi
415
415
  const localVarQueryParameter = {} as any;
416
416
 
417
417
  // authentication PartnerClientId required
418
- await setApiKeyToObject(localVarQueryParameter, "clientId", configuration)
418
+ await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
419
419
 
420
420
  // authentication PartnerSignature required
421
- await setApiKeyToObject(localVarHeaderParameter, "Signature", configuration)
421
+ await setApiKeyToObject({object: localVarHeaderParameter, keyParamName: "Signature", configuration})
422
422
 
423
423
  // authentication PartnerTimestamp required
424
- await setApiKeyToObject(localVarQueryParameter, "timestamp", configuration)
424
+ await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
425
425
 
426
426
 
427
427
 
@@ -461,13 +461,13 @@ export const ReferenceDataApiAxiosParamCreator = function (configuration?: Confi
461
461
  const localVarQueryParameter = {} as any;
462
462
 
463
463
  // authentication PartnerClientId required
464
- await setApiKeyToObject(localVarQueryParameter, "clientId", configuration)
464
+ await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
465
465
 
466
466
  // authentication PartnerSignature required
467
- await setApiKeyToObject(localVarHeaderParameter, "Signature", configuration)
467
+ await setApiKeyToObject({object: localVarHeaderParameter, keyParamName: "Signature", configuration})
468
468
 
469
469
  // authentication PartnerTimestamp required
470
- await setApiKeyToObject(localVarQueryParameter, "timestamp", configuration)
470
+ await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
471
471
 
472
472
 
473
473
 
@@ -507,13 +507,13 @@ export const ReferenceDataApiAxiosParamCreator = function (configuration?: Confi
507
507
  const localVarQueryParameter = {} as any;
508
508
 
509
509
  // authentication PartnerClientId required
510
- await setApiKeyToObject(localVarQueryParameter, "clientId", configuration)
510
+ await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
511
511
 
512
512
  // authentication PartnerSignature required
513
- await setApiKeyToObject(localVarHeaderParameter, "Signature", configuration)
513
+ await setApiKeyToObject({object: localVarHeaderParameter, keyParamName: "Signature", configuration})
514
514
 
515
515
  // authentication PartnerTimestamp required
516
- await setApiKeyToObject(localVarQueryParameter, "timestamp", configuration)
516
+ await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
517
517
 
518
518
 
519
519
 
@@ -564,13 +564,13 @@ export const ReferenceDataApiAxiosParamCreator = function (configuration?: Confi
564
564
  const localVarQueryParameter = {} as any;
565
565
 
566
566
  // authentication PartnerClientId required
567
- await setApiKeyToObject(localVarQueryParameter, "clientId", configuration)
567
+ await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
568
568
 
569
569
  // authentication PartnerSignature required
570
- await setApiKeyToObject(localVarHeaderParameter, "Signature", configuration)
570
+ await setApiKeyToObject({object: localVarHeaderParameter, keyParamName: "Signature", configuration})
571
571
 
572
572
  // authentication PartnerTimestamp required
573
- await setApiKeyToObject(localVarQueryParameter, "timestamp", configuration)
573
+ await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
574
574
 
575
575
  if (userId !== undefined) {
576
576
  localVarQueryParameter['userId'] = userId;
@@ -16,7 +16,7 @@ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'ax
16
16
  import { Configuration } from '../configuration';
17
17
  // Some imports not used depending on template conditions
18
18
  // @ts-ignore
19
- import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
19
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
20
20
  // @ts-ignore
21
21
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
22
22
  // @ts-ignore
@@ -82,13 +82,13 @@ export const TradingApiAxiosParamCreator = function (configuration?: Configurati
82
82
  const localVarQueryParameter = {} as any;
83
83
 
84
84
  // authentication PartnerClientId required
85
- await setApiKeyToObject(localVarQueryParameter, "clientId", configuration)
85
+ await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
86
86
 
87
87
  // authentication PartnerSignature required
88
- await setApiKeyToObject(localVarHeaderParameter, "Signature", configuration)
88
+ await setApiKeyToObject({object: localVarHeaderParameter, keyParamName: "Signature", configuration})
89
89
 
90
90
  // authentication PartnerTimestamp required
91
- await setApiKeyToObject(localVarQueryParameter, "timestamp", configuration)
91
+ await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
92
92
 
93
93
  if (userId !== undefined) {
94
94
  localVarQueryParameter['userId'] = userId;
@@ -151,13 +151,13 @@ export const TradingApiAxiosParamCreator = function (configuration?: Configurati
151
151
  const localVarQueryParameter = {} as any;
152
152
 
153
153
  // authentication PartnerClientId required
154
- await setApiKeyToObject(localVarQueryParameter, "clientId", configuration)
154
+ await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
155
155
 
156
156
  // authentication PartnerSignature required
157
- await setApiKeyToObject(localVarHeaderParameter, "Signature", configuration)
157
+ await setApiKeyToObject({object: localVarHeaderParameter, keyParamName: "Signature", configuration})
158
158
 
159
159
  // authentication PartnerTimestamp required
160
- await setApiKeyToObject(localVarQueryParameter, "timestamp", configuration)
160
+ await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
161
161
 
162
162
 
163
163
 
@@ -205,13 +205,13 @@ export const TradingApiAxiosParamCreator = function (configuration?: Configurati
205
205
  const localVarQueryParameter = {} as any;
206
206
 
207
207
  // authentication PartnerClientId required
208
- await setApiKeyToObject(localVarQueryParameter, "clientId", configuration)
208
+ await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
209
209
 
210
210
  // authentication PartnerSignature required
211
- await setApiKeyToObject(localVarHeaderParameter, "Signature", configuration)
211
+ await setApiKeyToObject({object: localVarHeaderParameter, keyParamName: "Signature", configuration})
212
212
 
213
213
  // authentication PartnerTimestamp required
214
- await setApiKeyToObject(localVarQueryParameter, "timestamp", configuration)
214
+ await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
215
215
 
216
216
 
217
217
 
@@ -260,13 +260,13 @@ export const TradingApiAxiosParamCreator = function (configuration?: Configurati
260
260
  const localVarQueryParameter = {} as any;
261
261
 
262
262
  // authentication PartnerClientId required
263
- await setApiKeyToObject(localVarQueryParameter, "clientId", configuration)
263
+ await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
264
264
 
265
265
  // authentication PartnerSignature required
266
- await setApiKeyToObject(localVarHeaderParameter, "Signature", configuration)
266
+ await setApiKeyToObject({object: localVarHeaderParameter, keyParamName: "Signature", configuration})
267
267
 
268
268
  // authentication PartnerTimestamp required
269
- await setApiKeyToObject(localVarQueryParameter, "timestamp", configuration)
269
+ await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
270
270
 
271
271
  if (userId !== undefined) {
272
272
  localVarQueryParameter['userId'] = userId;
@@ -331,13 +331,13 @@ export const TradingApiAxiosParamCreator = function (configuration?: Configurati
331
331
  const localVarQueryParameter = {} as any;
332
332
 
333
333
  // authentication PartnerClientId required
334
- await setApiKeyToObject(localVarQueryParameter, "clientId", configuration)
334
+ await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
335
335
 
336
336
  // authentication PartnerSignature required
337
- await setApiKeyToObject(localVarHeaderParameter, "Signature", configuration)
337
+ await setApiKeyToObject({object: localVarHeaderParameter, keyParamName: "Signature", configuration})
338
338
 
339
339
  // authentication PartnerTimestamp required
340
- await setApiKeyToObject(localVarQueryParameter, "timestamp", configuration)
340
+ await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
341
341
 
342
342
  if (userId !== undefined) {
343
343
  localVarQueryParameter['userId'] = userId;
@@ -406,13 +406,13 @@ export const TradingApiAxiosParamCreator = function (configuration?: Configurati
406
406
  const localVarQueryParameter = {} as any;
407
407
 
408
408
  // authentication PartnerClientId required
409
- await setApiKeyToObject(localVarQueryParameter, "clientId", configuration)
409
+ await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
410
410
 
411
411
  // authentication PartnerSignature required
412
- await setApiKeyToObject(localVarHeaderParameter, "Signature", configuration)
412
+ await setApiKeyToObject({object: localVarHeaderParameter, keyParamName: "Signature", configuration})
413
413
 
414
414
  // authentication PartnerTimestamp required
415
- await setApiKeyToObject(localVarQueryParameter, "timestamp", configuration)
415
+ await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
416
416
 
417
417
 
418
418
 
@@ -463,13 +463,13 @@ export const TradingApiAxiosParamCreator = function (configuration?: Configurati
463
463
  const localVarQueryParameter = {} as any;
464
464
 
465
465
  // authentication PartnerClientId required
466
- await setApiKeyToObject(localVarQueryParameter, "clientId", configuration)
466
+ await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
467
467
 
468
468
  // authentication PartnerSignature required
469
- await setApiKeyToObject(localVarHeaderParameter, "Signature", configuration)
469
+ await setApiKeyToObject({object: localVarHeaderParameter, keyParamName: "Signature", configuration})
470
470
 
471
471
  // authentication PartnerTimestamp required
472
- await setApiKeyToObject(localVarQueryParameter, "timestamp", configuration)
472
+ await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
473
473
 
474
474
 
475
475
 
@@ -518,13 +518,13 @@ export const TradingApiAxiosParamCreator = function (configuration?: Configurati
518
518
  const localVarQueryParameter = {} as any;
519
519
 
520
520
  // authentication PartnerClientId required
521
- await setApiKeyToObject(localVarQueryParameter, "clientId", configuration)
521
+ await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
522
522
 
523
523
  // authentication PartnerSignature required
524
- await setApiKeyToObject(localVarHeaderParameter, "Signature", configuration)
524
+ await setApiKeyToObject({object: localVarHeaderParameter, keyParamName: "Signature", configuration})
525
525
 
526
526
  // authentication PartnerTimestamp required
527
- await setApiKeyToObject(localVarQueryParameter, "timestamp", configuration)
527
+ await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
528
528
 
529
529
  if (userId !== undefined) {
530
530
  localVarQueryParameter['userId'] = userId;
@@ -584,13 +584,13 @@ export const TradingApiAxiosParamCreator = function (configuration?: Configurati
584
584
  const localVarQueryParameter = {} as any;
585
585
 
586
586
  // authentication PartnerClientId required
587
- await setApiKeyToObject(localVarQueryParameter, "clientId", configuration)
587
+ await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
588
588
 
589
589
  // authentication PartnerSignature required
590
- await setApiKeyToObject(localVarHeaderParameter, "Signature", configuration)
590
+ await setApiKeyToObject({object: localVarHeaderParameter, keyParamName: "Signature", configuration})
591
591
 
592
592
  // authentication PartnerTimestamp required
593
- await setApiKeyToObject(localVarQueryParameter, "timestamp", configuration)
593
+ await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
594
594
 
595
595
  if (userId !== undefined) {
596
596
  localVarQueryParameter['userId'] = userId;
@@ -651,13 +651,13 @@ export const TradingApiAxiosParamCreator = function (configuration?: Configurati
651
651
  const localVarQueryParameter = {} as any;
652
652
 
653
653
  // authentication PartnerClientId required
654
- await setApiKeyToObject(localVarQueryParameter, "clientId", configuration)
654
+ await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
655
655
 
656
656
  // authentication PartnerSignature required
657
- await setApiKeyToObject(localVarHeaderParameter, "Signature", configuration)
657
+ await setApiKeyToObject({object: localVarHeaderParameter, keyParamName: "Signature", configuration})
658
658
 
659
659
  // authentication PartnerTimestamp required
660
- await setApiKeyToObject(localVarQueryParameter, "timestamp", configuration)
660
+ await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
661
661
 
662
662
  if (userId !== undefined) {
663
663
  localVarQueryParameter['userId'] = userId;
@@ -16,7 +16,7 @@ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'ax
16
16
  import { Configuration } from '../configuration';
17
17
  // Some imports not used depending on template conditions
18
18
  // @ts-ignore
19
- import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
19
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
20
20
  // @ts-ignore
21
21
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
22
22
  // @ts-ignore
@@ -60,13 +60,13 @@ export const TransactionsAndReportingApiAxiosParamCreator = function (configurat
60
60
  const localVarQueryParameter = {} as any;
61
61
 
62
62
  // authentication PartnerClientId required
63
- await setApiKeyToObject(localVarQueryParameter, "clientId", configuration)
63
+ await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
64
64
 
65
65
  // authentication PartnerSignature required
66
- await setApiKeyToObject(localVarHeaderParameter, "Signature", configuration)
66
+ await setApiKeyToObject({object: localVarHeaderParameter, keyParamName: "Signature", configuration})
67
67
 
68
68
  // authentication PartnerTimestamp required
69
- await setApiKeyToObject(localVarQueryParameter, "timestamp", configuration)
69
+ await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
70
70
 
71
71
  if (startDate !== undefined) {
72
72
  localVarQueryParameter['startDate'] = startDate;
@@ -141,13 +141,13 @@ export const TransactionsAndReportingApiAxiosParamCreator = function (configurat
141
141
  const localVarQueryParameter = {} as any;
142
142
 
143
143
  // authentication PartnerClientId required
144
- await setApiKeyToObject(localVarQueryParameter, "clientId", configuration)
144
+ await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "clientId", configuration})
145
145
 
146
146
  // authentication PartnerSignature required
147
- await setApiKeyToObject(localVarHeaderParameter, "Signature", configuration)
147
+ await setApiKeyToObject({object: localVarHeaderParameter, keyParamName: "Signature", configuration})
148
148
 
149
149
  // authentication PartnerTimestamp required
150
- await setApiKeyToObject(localVarQueryParameter, "timestamp", configuration)
150
+ await setApiKeyToObject({object: localVarQueryParameter, keyParamName: "timestamp", configuration})
151
151
 
152
152
  if (startDate !== undefined) {
153
153
  localVarQueryParameter['startDate'] = startDate;
package/common.ts CHANGED
@@ -14,7 +14,7 @@
14
14
 
15
15
  import { Configuration } from "./configuration";
16
16
  import { RequiredError, RequestArgs } from "./base";
17
- import { AxiosInstance, AxiosResponse } from 'axios';
17
+ import axios, { AxiosInstance, AxiosResponse } from 'axios';
18
18
  import { requestAfterHook } from "./requestAfterHook";
19
19
 
20
20
  /**
@@ -38,20 +38,35 @@ export const assertParamExists = function (functionName: string, paramName: stri
38
38
  *
39
39
  * @export
40
40
  */
41
- export const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {
42
- if (configuration && configuration.apiKey) {
43
- if (typeof configuration.apiKey === "function")
44
- object[keyParamName] = await configuration.apiKey(keyParamName);
45
- else if (typeof configuration.apiKey === "string")
46
- object[keyParamName] = configuration.apiKey;
47
- else if (typeof configuration.apiKey === "object") {
48
- if (keyParamName in configuration.apiKey)
49
- object[keyParamName] = configuration.apiKey[keyParamName];
50
- } else
51
- throw Error(
52
- `Unexpected type ${typeof configuration.apiKey} for Configuration.apiKey`
53
- );
54
- }
41
+ export const setApiKeyToObject = async function ({
42
+ object,
43
+ key,
44
+ type,
45
+ keyParamName,
46
+ configuration,
47
+ }: {
48
+ object: any
49
+ key?: string
50
+ type?: "Cookie",
51
+ keyParamName: string
52
+ configuration?: Configuration
53
+ }) {
54
+ key = key ? key : keyParamName
55
+ if (configuration && configuration.apiKey) {
56
+ if (typeof configuration.apiKey === 'function')
57
+ object[key] = await configuration.apiKey(keyParamName)
58
+ else if (typeof configuration.apiKey === 'string')
59
+ object[key] = configuration.apiKey
60
+ else if (typeof configuration.apiKey === 'object') {
61
+ if (keyParamName in configuration.apiKey)
62
+ object[key] = configuration.apiKey[keyParamName]
63
+ } else
64
+ throw Error(
65
+ `Unexpected type ${typeof configuration.apiKey} for Configuration.apiKey`
66
+ )
67
+ }
68
+ if (type === "Cookie")
69
+ object[key] = `${keyParamName}=${object[key]}`
55
70
  }
56
71
 
57
72
  /**
package/configuration.ts CHANGED
@@ -109,7 +109,7 @@ export class Configuration {
109
109
  this.accessToken = param.accessToken;
110
110
  this.basePath = param.basePath;
111
111
  this.baseOptions = param.baseOptions;
112
- this.userAgent = param.userAgent === undefined ? "Konfig/6.0.0/typescript" : param.userAgent;
112
+ this.userAgent = param.userAgent === undefined ? "Konfig/6.2.0/typescript" : param.userAgent;
113
113
  this.formDataCtor = param.formDataCtor;
114
114
  }
115
115